website diff index.php @ rev 678

Improve home page with last commit and pkgs + use PHP
author Christophe Lincoln <pankso@slitaz.org>
date Sun Nov 07 14:42:03 2010 +0100 (2010-11-07)
parents
children 3811e0845e2e
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/index.php	Sun Nov 07 14:42:03 2010 +0100
     1.3 @@ -0,0 +1,206 @@
     1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     1.5 +	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     1.6 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     1.7 +<head>
     1.8 +    <title>SliTaz GNU/Linux</title>
     1.9 +    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    1.10 +    <meta name="description" content="SliTaz GNU/Linux LiveCD operating system" />
    1.11 +    <meta name="keywords" lang="en" content="System, libre, gnu, linux, logiciels opensource, livecd" />
    1.12 +    <meta name="robots" content="index, follow, all" />
    1.13 +    <meta name="revisit-after" content="3 days" />
    1.14 +    <meta name="expires" content="never" />
    1.15 +    <meta name="modified" content="2010-11-04 21:10:00" />
    1.16 +    <meta name="author" content="Christophe Lincoln"/>
    1.17 +    <meta name="publisher" content="www.slitaz.org" />
    1.18 +    <meta name="verify-v1" content="qieECDfB5l+EBkG8QMNuHOGfol0/MEe4U22/4iVupNw=" />
    1.19 +    <link rel="shortcut icon" href="favicon.ico" />
    1.20 +    <link rel="stylesheet" type="text/css" href="slitaz.css" />
    1.21 +    <link rel="alternate" type="application/rss+xml" title="SliTaz Website feed" href="en/rss.xml" />
    1.22 +	<link rel="alternate" type="application/atom+xml" title="SliTaz Labs feed" href="http://labs.slitaz.org/news?format=atom" />
    1.23 +    <link rel="Content" href="index.html#content" />
    1.24 +</head>
    1.25 +<body bgcolor="#ffffff">
    1.26 +
    1.27 +<!-- Header -->
    1.28 +<div id="header">
    1.29 +	<a name="top"></a>
    1.30 +	<a href="http://www.slitaz.org/"><img id="logo"
    1.31 +	src="pics/website/logo.png" title="www.slitaz.org" alt="www.slitaz.org"
    1.32 +	style="border: 0px solid ; width: 200px; height: 74px;" /></a>
    1.33 +	<p id="titre">#!/GNU/Linux</p>
    1.34 +</div>
    1.35 +
    1.36 +<!-- Navigation menu -->
    1.37 +<div id="nav">
    1.38 +
    1.39 +<div class="nav_box">
    1.40 +<h4><img
    1.41 +	src="pics/website/locale.png"
    1.42 +	style="vertical-align: middle; width: 20px; height: 20px;"
    1.43 +	alt="language" />
    1.44 +Language</h4>
    1.45 +<div style="width: 50%; position: absolute; right: 0px;">
    1.46 +<ul>
    1.47 +<li><a href="id/index.html">Indonesian</a></li>
    1.48 +	<li><a href="pt/index.html">Português</a></li>
    1.49 +	<li><a href="cn/index.html" title="Chinese">
    1.50 +	<img
    1.51 +		src="pics/website/cn.png"
    1.52 +		style="vertical-align: middle;"
    1.53 +		title="Chinese" alt="cn" /></a></li>
    1.54 +</ul>
    1.55 +</div>
    1.56 +<ul>
    1.57 +	<li><a href="en/index.html">English</a></li>
    1.58 +	<li><a href="de/index.html">Deutsch</a></li>
    1.59 +	<li><a href="fr/index.html">Français</a></li>
    1.60 +	<li><a href="es/index.html">Español</a> </li>
    1.61 +</ul>
    1.62 +</div>
    1.63 +
    1.64 +<div class="nav_box">
    1.65 +<h4>About SliTaz</h4>
    1.66 +<p>
    1.67 +SliTaz is an open source and free operating system providing a fully featured
    1.68 +desktop or server in less than 30 Mb. SliTaz is simple to use, fast and stable.
    1.69 +<a href="en/about/">More information...</a>
    1.70 +</p>
    1.71 +</div>
    1.72 +
    1.73 +<!-- Download -->
    1.74 +<div class="nav_box">
    1.75 +<h4>Quick Download</h4>
    1.76 +<ul>
    1.77 +	<li>Stable Core LiveCD: 
    1.78 +	<a href="http://mirror.slitaz.org/iso/3.0/slitaz-3.0.iso">SliTaz 3.0</a></li>
    1.79 +	<li>Cooking Core LiveCD: 
    1.80 +	<a href="http://mirror.slitaz.org/iso/cooking/slitaz-cooking.iso">SliTaz 20101104</a></li>
    1.81 +</ul>
    1.82 +</div>
    1.83 +
    1.84 +<!-- SliTaz network -->
    1.85 +<div class="nav_box">
    1.86 +<h4>SliTaz Network</h4>
    1.87 +<ul>
    1.88 +	<li><a href="http://forum.slitaz.org/">Community Forum</a></li>
    1.89 +	<li><a href="http://labs.slitaz.org/">SliTaz Laboratories</a></li>
    1.90 +	<li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
    1.91 +	<li><a href="http://pizza.slitaz.org/">Online Builder</a></li>
    1.92 +	<li><a href="http://boot.slitaz.org/">SliTaz Web Boot</a></li>
    1.93 +	<li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
    1.94 +	<li><a href="http://distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
    1.95 +</ul>
    1.96 +</div>
    1.97 +
    1.98 +</div>
    1.99 +
   1.100 +<!-- Content top. -->
   1.101 +<div id="content_top">
   1.102 +<div class="top_left"></div>
   1.103 +<div class="top_right"></div>
   1.104 +</div>
   1.105 +
   1.106 +<!-- Content -->
   1.107 +<div id="content">
   1.108 +<a name="content"></a>
   1.109 +
   1.110 +<h1><font color="#3E1220">Home</font></h1>
   1.111 +<h2><font color="#DF8F06">Boot baby... boot!</font></h2>
   1.112 +
   1.113 +<div style="text-align: center;">
   1.114 +<img
   1.115 +	src="pics/website/screenpresentation.png"
   1.116 +	title="SliTaz Desktops" alt="slitaz-desktop"
   1.117 +	style="width: 380px; height: 170px; margin-top: 8px;" />
   1.118 +</div>
   1.119 +
   1.120 +<div id="news">
   1.121 +
   1.122 +<!-- We just keep the last 4 web site news -->
   1.123 +
   1.124 +<h2><font color="#DF8F06">Latest news</font></h2>
   1.125 +
   1.126 +<ul>
   1.127 +	<li><strong><a href="en/#news">4 November 2010 - New Cooking 20101104</a></strong></li>
   1.128 +	<li><strong>8 May 2010 - Summer of Documentation</strong></li>
   1.129 +	<li><strong>28 March 2010 - SliTaz GNU/Linux 3.0 released</strong></li>
   1.130 +	<li><strong>14 March 2010 - RC series and Solutionslinux 2010 (Paris)</strong></li>
   1.131 +	<li><strong>21 February 2010 - New Cooking 20100221</strong></li>
   1.132 +</ul>
   1.133 +
   1.134 +<div class="infobox">
   1.135 +<img
   1.136 +	src="pics/website/news.png"
   1.137 +	style="vertical-align: middle; width: 20px; height: 20px;" alt="news" />
   1.138 +Read the latest news in your language:
   1.139 +<strong><a href="en/index.html#news">en</a></strong> |
   1.140 +<strong><a href="de/index.html#news">de</a></strong> |
   1.141 +<strong><a href="es/index.html#news">es</a></strong> |
   1.142 +<strong><a href="fr/index.html#news">fr</a></strong> |
   1.143 +<strong><a href="id/index.html#news">id</a></strong> |
   1.144 +<strong><a href="pt/index.html#news">pt</a></strong> |
   1.145 +<a href="cn/index.html#news"><img
   1.146 +	src="pics/website/cn.png"
   1.147 +	style="vertical-align: middle;"
   1.148 +	title="Chinese" alt="cn" /></a>
   1.149 +</div>
   1.150 +
   1.151 +<!-- We display the 5 last commit and build for cooking 
   1.152 +
   1.153 +NOTE: Using php system() may use a lot of cpu, we have a cron to generate
   1.154 +      an include file each hours. Example with PHP:
   1.155 +      echo "<ul>\n";
   1.156 +      system("hg log --repository $repo --limit 5 --no-merges \
   1.157 +	      --template '	<li><strong>{date|shortdate}</strong> \
   1.158 +          - <a href=\"$url/rev/{rev}\">{desc}</a></li>\n'");
   1.159 +      echo "<\ul>\n";
   1.160 +-->
   1.161 +
   1.162 +<?php
   1.163 +include("/var/cache/slitaz/website/latest.html");
   1.164 +?>
   1.165 +
   1.166 +<!-- End of news -->
   1.167 +</div>
   1.168 +
   1.169 +<h2><font color="#DF8F06">Internationalization</font></h2>
   1.170 +
   1.171 +<p>
   1.172 +The SliTaz web site is available in several languages and maintained by the
   1.173 +<a href="i18n.html">internationalization</a> team (i18n). Help is often
   1.174 +needed and you're welcome to join us if you would like to see the website
   1.175 +translated into your language.
   1.176 +</p>
   1.177 +
   1.178 +<!-- End of content with round corner -->
   1.179 +</div>
   1.180 +<div id="content_bottom">
   1.181 +<div class="bottom_left"></div>
   1.182 +<div class="bottom_right"></div>
   1.183 +</div>
   1.184 +
   1.185 +<!-- Start of footer and copy notice -->
   1.186 +<div id="copy">
   1.187 +<p>
   1.188 +Last modification: 2010-11-04 21:10:00 -
   1.189 +<a href="index.html#top">Top of the page</a>
   1.190 +</p>
   1.191 +<p>
   1.192 +Copyright &copy; <span class="year"></span> <a href="http://www.slitaz.org/">SliTaz</a> -
   1.193 +<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
   1.194 +</p>
   1.195 +<!-- End of copy -->
   1.196 +</div>
   1.197 +
   1.198 +<!-- Bottom and logo's -->
   1.199 +<div id="bottom">
   1.200 +<p>
   1.201 +<a href="http://validator.w3.org/check?uri=referer"><img
   1.202 +	src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
   1.203 +	title="Code validé XHTML 1.0"
   1.204 +	style="width: 80px; height: 15px;" /></a>
   1.205 +</p>
   1.206 +</div>
   1.207 +
   1.208 +</body>
   1.209 +</html>