website diff index.php @ rev 746

mainpage: Add a feed grid (feeds are cached by a script and cron)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jan 23 23:01:40 2011 +0100 (2011-01-23)
parents 14e0a6244a5b
children 35688e566dbe
line diff
     1.1 --- a/index.php	Sat Jan 15 16:22:24 2011 +0000
     1.2 +++ b/index.php	Sun Jan 23 23:01:40 2011 +0100
     1.3 @@ -3,7 +3,7 @@
     1.4  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     1.5  <head>
     1.6      <title>SliTaz GNU/Linux</title>
     1.7 -    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
     1.8 +    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
     1.9      <meta name="description" content="SliTaz GNU/Linux LiveCD operating system" />
    1.10      <meta name="keywords" lang="en" content="System, libre, gnu, linux, logiciels opensource, livecd" />
    1.11      <meta name="robots" content="index, follow, all" />
    1.12 @@ -18,13 +18,13 @@
    1.13      <link rel="alternate" type="application/rss+xml" title="SliTaz Website feed" href="en/rss.xml" />
    1.14      <link rel="alternate" type="application/atom+xml" title="SliTaz Labs feed" href="http://labs.slitaz.org/news?format=atom" />
    1.15      <link rel="alternate" type="application/rss+xml" title="SliTaz SCN feed" href="http://scn.slitaz.org/rss.xml" />
    1.16 -    <script type="text/javascript" src="scripts/slideshow.js"></script>
    1.17 +    <script type="text/javascript" src="libs/js/slideshow.js"></script>
    1.18      <link rel="Content" href="#content" />
    1.19  </head>
    1.20  <body>
    1.21  
    1.22  <?php
    1.23 -	require_once("scripts/get_feed.php");
    1.24 +	require_once("libs/get-feed.php");
    1.25  ?>
    1.26  
    1.27  <!-- Header -->
    1.28 @@ -123,6 +123,9 @@
    1.29  		title="Chinese" alt="cn" /></a>
    1.30  </div>
    1.31  
    1.32 +<!-- End of news -->
    1.33 +</div>
    1.34 +
    1.35  <h2>Latest Tweet</h2>
    1.36  <div id="twitter">
    1.37  	<script src="http://widgets.twimg.com/j/2/widget.js"></script>
    1.38 @@ -158,27 +161,35 @@
    1.39  	</script>
    1.40  </div>
    1.41  
    1.42 +<h2>Feed Grid</h2>
    1.43 +
    1.44 +<div class="feed-grid">
    1.45 +	<div class="right_box">
    1.46 +		<h3><img src="pics/website/feed.png" alt=".png" />Community Network</h3>
    1.47 +		<?php get_rss_feed("/var/cache/slitaz/website/scn.xml"); ?>
    1.48 +	</div>
    1.49 +	<div class="left_box">
    1.50 +		<h3><img src="pics/website/feed.png" alt=".png" />Support Forum</h3>
    1.51 +		<?php get_forum_rss_feed("/var/cache/slitaz/website/forum.xml"); ?>
    1.52 +	</div>
    1.53 +</div>
    1.54 +<div class="feed-grid">
    1.55 +	<div class="right_box">
    1.56 +		<h3><img src="pics/website/feed.png" alt=".png" />Documentation</h3>
    1.57 +		<?php get_rss_feed("/var/cache/slitaz/website/doc.xml"); ?>
    1.58 +	</div>
    1.59 +	<div class="left_box">
    1.60 +		<h3><img src="pics/website/feed.png" alt=".png" />Bug Tracker</h3>
    1.61 +		<?php get_atom_feed("/var/cache/slitaz/website/bugs.xml"); ?>
    1.62 +	</div>
    1.63 +</div>
    1.64 +
    1.65  <!-- We display the 5 last commit and build for cooking -->
    1.66  
    1.67  <?php
    1.68  include("/var/cache/slitaz/website/latest.html");
    1.69  ?>
    1.70  
    1.71 -<h2>Community Network Feed</h2>
    1.72 -<div class="feedbox">
    1.73 -	<div>
    1.74 -		<?php get_feed("http://scn.slitaz.org/rss.xml"); ?>
    1.75 -	</div>
    1.76 -	<div style="height: auto;">
    1.77 -		<p style="margin: 4px 0 0; font-size: 12px; float: right;">
    1.78 -			<a href="http://scn.slitaz.org/user/register">Join the community</a>
    1.79 -		</p>
    1.80 -	</div>
    1.81 -</div>
    1.82 -
    1.83 -<!-- End of news -->
    1.84 -</div>
    1.85 -
    1.86  <h2>Spread SliTaz</h2>
    1.87  <p>
    1.88  	One way to help the project is to make SliTaz even more popular.