website rev 809
Move #news to a class and display blog posts on main page
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 30 20:52:06 2011 +0200 (2011-03-30) |
parents | 111573c244f6 |
children | 5d1ceaf1d0b8 |
files | cn/index.php de/index.php en/index.php es/index.php fr/index.php id/index.php index.php libs/get-feeds.php pt/index.php slitaz.css |
line diff
1.1 --- a/cn/index.php Wed Mar 30 20:31:49 2011 +0200 1.2 +++ b/cn/index.php Wed Mar 30 20:52:06 2011 +0200 1.3 @@ -98,7 +98,7 @@ 1.4 <a href="http://doc.slitaz.org/en:newsletter:start">每月时讯</a> 1.5 </div> 1.6 1.7 -<div id="news"> 1.8 +<div class="news"> 1.9 1.10 <ul> 1.11 <!-- <li><strong>Date - Title</strong>
2.1 --- a/de/index.php Wed Mar 30 20:31:49 2011 +0200 2.2 +++ b/de/index.php Wed Mar 30 20:52:06 2011 +0200 2.3 @@ -105,7 +105,7 @@ 2.4 <a href="http://doc.slitaz.org/en:newsletter:start">Monthly Newsletter</a> 2.5 </div> 2.6 2.7 -<div id="news"> 2.8 +<div class="news"> 2.9 2.10 <ul> 2.11 <!-- <li><strong>Date - Title</strong>
3.1 --- a/en/index.php Wed Mar 30 20:31:49 2011 +0200 3.2 +++ b/en/index.php Wed Mar 30 20:52:06 2011 +0200 3.3 @@ -120,7 +120,7 @@ 3.4 <a href="http://doc.slitaz.org/en:newsletter:start">Monthly Newsletter</a> 3.5 </div> 3.6 3.7 -<div id="news"> 3.8 +<div class="news"> 3.9 3.10 <ul> 3.11 <!-- <li><strong>Date - Title</strong>
4.1 --- a/es/index.php Wed Mar 30 20:31:49 2011 +0200 4.2 +++ b/es/index.php Wed Mar 30 20:52:06 2011 +0200 4.3 @@ -95,7 +95,7 @@ 4.4 4.5 <h2>ltimas noticias</h2> 4.6 4.7 -<div id="news"> 4.8 +<div class="news"> 4.9 4.10 <ul> 4.11 <li><strong>4 de noviembre de 2010 - Nueva Cooking</strong>
5.1 --- a/fr/index.php Wed Mar 30 20:31:49 2011 +0200 5.2 +++ b/fr/index.php Wed Mar 30 20:52:06 2011 +0200 5.3 @@ -112,7 +112,7 @@ 5.4 <a href="http://doc.slitaz.org/fr:newsletter:start">Lettre d'information</a> 5.5 </div> 5.6 5.7 -<div id="news"> 5.8 +<div class="news"> 5.9 5.10 <ul> 5.11 <!-- <li><strong>Date - Title</strong>
6.1 --- a/id/index.php Wed Mar 30 20:31:49 2011 +0200 6.2 +++ b/id/index.php Wed Mar 30 20:52:06 2011 +0200 6.3 @@ -98,7 +98,7 @@ 6.4 <a href="http://doc.slitaz.org/en:newsletter:start">Newsletter Bulanan</a> 6.5 </div> 6.6 6.7 -<div id="news"> 6.8 +<div class="news"> 6.9 6.10 <ul> 6.11 <!-- <li><strong>Date - Title</strong>
7.1 --- a/index.php Wed Mar 30 20:31:49 2011 +0200 7.2 +++ b/index.php Wed Mar 30 20:52:06 2011 +0200 7.3 @@ -87,16 +87,21 @@ 7.4 at min-height: 220px; --> 7.5 7.6 <!-- We just keep the last 4 web site news --> 7.7 -<div id="news"> 7.8 +<div class="news"> 7.9 7.10 -<h2>Latest news</h2> 7.11 +<h2>Latest News</h2> 7.12 7.13 <ul> 7.14 - <li><strong><a href="en/#news">29 March 2011 - New Cooking 20110329</a></strong></li> 7.15 - <li><strong><a href="en/#20101104">4 November 2010 - New Cooking 20101104</a></strong></li> 7.16 - <li><strong>8 May 2010 - Summer of Documentation</strong></li> 7.17 - <li><strong>28 March 2010 - SliTaz GNU/Linux 3.0 released</strong></li> 7.18 - <li><strong>14 March 2010 - RC series and Solutionslinux 2010 (Paris)</strong></li> 7.19 + <li><strong><a href="en/#news">New Cooking 20110329</a></strong> 7.20 + <span>- 29 March 2011</span></li> 7.21 + <li><strong><a href="en/#20101104">New Cooking 20101104</a></strong> 7.22 + <span>- 4 November 2010</span></li> 7.23 + <li><strong>Summer of Documentation</strong> 7.24 + <span>- 8 May 2010</span></li> 7.25 + <li><strong>SliTaz GNU/Linux 3.0 released</strong> 7.26 + <span>- 28 March 2010 </span></li> 7.27 + <li><strong>RC series and Solutionslinux 2010 (Paris)</strong> 7.28 + <span>- 14 March 2010</span></li> 7.29 </ul> 7.30 7.31 <!-- End of news --> 7.32 @@ -131,6 +136,12 @@ 7.33 </p> 7.34 </div> 7.35 7.36 +<h2>Blog Posts</h2> 7.37 + 7.38 +<div class="news"> 7.39 + <?php get_feed_blog("blog.xml"); ?> 7.40 +</div> 7.41 + 7.42 <h2>Latest Tweet</h2> 7.43 <div id="twitter"> 7.44 <script src="http://widgets.twimg.com/j/2/widget.js"></script>
8.1 --- a/libs/get-feeds.php Wed Mar 30 20:31:49 2011 +0200 8.2 +++ b/libs/get-feeds.php Wed Mar 30 20:52:06 2011 +0200 8.3 @@ -15,7 +15,7 @@ 8.4 $count = 0; 8.5 // We look for last item, channel may not have a PubDate* 8.6 $up = ($x->channel->item->pubDate); 8.7 - echo "<span>Updated: " . substr("$up", 5, 17) . "</span>\n"; 8.8 + echo "<span>- Updated: " . substr("$up", 5, 17) . "</span>\n"; 8.9 echo "</p>\n<div>\n<ul>\n"; 8.10 foreach($x->channel->item as $entry) { 8.11 $count = $count + 1; 8.12 @@ -49,7 +49,7 @@ 8.13 $count = $count + 1; 8.14 echo " <li><strong><a href='$entry->link' title='$entry->title'>" . 8.15 $entry->title . "</strong></a>\n"; 8.16 - echo "<span>" . substr("$entry->pubDate", 5, 17) . "</span>\n"; 8.17 + echo "<span>- " . substr("$entry->pubDate", 5, 17) . "</span>\n"; 8.18 echo "<p>$entry->description</p>\n</li>"; 8.19 if ($count == $entries) { 8.20 break;
9.1 --- a/pt/index.php Wed Mar 30 20:31:49 2011 +0200 9.2 +++ b/pt/index.php Wed Mar 30 20:52:06 2011 +0200 9.3 @@ -90,7 +90,7 @@ 9.4 9.5 <h2>ltimas notcias</h2> 9.6 9.7 -<div id="news"> 9.8 +<div class="news"> 9.9 9.10 <ul> 9.11 <li><strong>4 de Novembro de 2010 - Nova verso "cooking" 20101104</strong>
10.1 --- a/slitaz.css Wed Mar 30 20:31:49 2011 +0200 10.2 +++ b/slitaz.css Wed Mar 30 20:52:06 2011 +0200 10.3 @@ -152,16 +152,16 @@ 10.4 text-align: justify; 10.5 } 10.6 10.7 -#news li { 10.8 +.news li { 10.9 list-style-type: square; 10.10 border-bottom: 1px dotted #BEBEBE; 10.11 margin-left: -25px; 10.12 padding: 4px 0px 4px 0px; 10.13 } 10.14 10.15 -#news a, .feed-grid a { text-decoration: none; } 10.16 -#news p a { text-decoration: underline; } 10.17 -#news p a:hover { text-decoration: none; } 10.18 +.news a, .feed-grid a { text-decoration: none; } 10.19 +.news p a { text-decoration: underline; } 10.20 +.news p a:hover { text-decoration: none; } 10.21 #twitter { margin: 20px 0; } 10.22 #gallery { text-align: center; } 10.23 10.24 @@ -198,11 +198,16 @@ 10.25 .activity a { text-decoration: none; } 10.26 .activity ul { list-style-type: none; 10.27 margin: 4px 0; padding: 0 4px; line-height: 150%; } 10.28 -.activity span { color: #666; font-size: 11px; font-weight: normal; } 10.29 .activity_more { text-align: right; } 10.30 .activity_more a { font-weight: normal; color: #000; padding: 0 4px; } 10.31 .activity_more a:hover { text-decoration: underline; } 10.32 10.33 +.activity span, .news span { 10.34 + color: #666; 10.35 + font-size: 11px; 10.36 + font-weight: normal; 10.37 +} 10.38 + 10.39 /* Button */ 10.40 10.41 .button a {