website rev 731

Add get_feed.php and CSS for feedbox
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 14 04:49:24 2011 +0100 (2011-01-14)
parents 3f3bf2407cbf
children 08a545ba44cc
files scripts/get_feed.php slitaz.css
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/get_feed.php	Fri Jan 14 04:49:24 2011 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +<?php
     1.5 +
     1.6 +// Read Feed
     1.7 +function get_feed($feed_url) {
     1.8 +	$content = file_get_contents($feed_url);
     1.9 +	$x = new SimpleXmlElement($content);
    1.10 +	echo "<ul>";
    1.11 +	foreach($x->channel->item as $entry) {
    1.12 +		echo "
    1.13 +		<li>
    1.14 +		  <strong><a href='$entry->link' 
    1.15 +			title='$entry->title'>" . $entry->title . "</a></strong>
    1.16 +		  <p>$entry->description</p>
    1.17 +		</li>";
    1.18 +		}
    1.19 +	echo "</ul>";
    1.20 +}
    1.21 +
    1.22 +?>
     2.1 --- a/slitaz.css	Fri Jan 14 00:42:02 2011 +0100
     2.2 +++ b/slitaz.css	Fri Jan 14 04:49:24 2011 +0100
     2.3 @@ -325,7 +325,30 @@
     2.4  	-ms-transform: rotate(-45deg) skew(15deg, 15deg);
     2.5  	transform: rotate(-45deg) skew(15deg, 15deg);
     2.6  }
     2.7 -	
     2.8 +
     2.9 +#twitter, .feedbox {
    2.10 +	margin-top: 20px;
    2.11 +	-moz-border-radius: 8px;
    2.12 +	-webkit-border-radius: 8px;
    2.13 +	border-radius: 8px;
    2.14 +	-moz-box-shadow: 0 1px 3px #666;
    2.15 +	-webkit-box-shadow: 0 1px 3px #666;
    2.16 +	box-shadow: 0 1px 3px #666;
    2.17 +}
    2.18 +
    2.19 +.feedbox {
    2.20 +	background-color: #f9f9f9;
    2.21 +	padding: 10px 20px;
    2.22 +	margin: 20px 100px;
    2.23 +}
    2.24 +
    2.25 +.feedbox div {
    2.26 +	height: 320px;
    2.27 +	overflow: auto;
    2.28 +}
    2.29 +
    2.30 +.feedbox ul { list-style-type: none; margin: 0; }
    2.31 +
    2.32  /* Button */
    2.33  
    2.34  .button { margin-left: 20px; }
    2.35 @@ -409,16 +432,6 @@
    2.36  	height: 163px;
    2.37  }
    2.38  
    2.39 -#twitter {
    2.40 -	margin-top: 20px;
    2.41 -	-moz-border-radius: 8px;
    2.42 -	-webkit-border-radius: 8px;
    2.43 -	border-radius: 8px;
    2.44 -	-moz-box-shadow: 0 1px 3px #666;
    2.45 -	-webkit-box-shadow: 0 1px 3px #666;
    2.46 -	box-shadow: 0 1px 3px #666;
    2.47 -}
    2.48 -
    2.49  /* HTML styles */
    2.50  
    2.51  h1 {