website rev 708
index.php: clean-up and use PHP for date
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 05 00:25:56 2011 +0100 (2011-01-05) |
parents | c7bd8b28228e |
children | 60726f7e2ff4 |
files | index.php netmap.php |
line diff
1.1 --- a/index.php Tue Jan 04 23:41:00 2011 +0100 1.2 +++ b/index.php Wed Jan 05 00:25:56 2011 +0100 1.3 @@ -9,14 +9,13 @@ 1.4 <meta name="robots" content="index, follow, all" /> 1.5 <meta name="revisit-after" content="3 days" /> 1.6 <meta name="expires" content="never" /> 1.7 - <meta name="modified" content="2010-11-04 21:10:00" /> 1.8 + <meta name="modified" content="<?php echo (date( "Y-m-d H:i:s", getlastmod())); ?>" /> 1.9 <meta name="author" content="Christophe Lincoln"/> 1.10 <meta name="publisher" content="www.slitaz.org" /> 1.11 <meta name="verify-v1" content="qieECDfB5l+EBkG8QMNuHOGfol0/MEe4U22/4iVupNw=" /> 1.12 - <link rel="shortcut icon" href="favicon.ico" /> 1.13 + <link rel="shortcut icon" href="favicon.ico" /> 1.14 <link rel="stylesheet" type="text/css" href="slitaz.css" /> 1.15 <link rel="alternate" type="application/rss+xml" title="SliTaz Website feed" href="en/rss.xml" /> 1.16 - <link rel="alternate" type="application/atom+xml" title="SliTaz Labs feed" href="http://labs.slitaz.org/news?format=atom" /> 1.17 <link rel="Content" href="#content" /> 1.18 </head> 1.19 <body bgcolor="#ffffff"> 1.20 @@ -24,9 +23,10 @@ 1.21 <!-- Header --> 1.22 <div id="header"> 1.23 <a name="top"></a> 1.24 + <!-- Logo --> 1.25 <a href="http://www.slitaz.org/"><img id="logo" 1.26 - src="pics/website/logo.png" title="www.slitaz.org" alt="www.slitaz.org" 1.27 - style="border: 0px solid ; width: 200px; height: 74px;" /></a> 1.28 + src="pics/website/logo.png" 1.29 + title="www.slitaz.org" alt="www.slitaz.org" /></a> 1.30 <p id="titre">#!/GNU/Linux</p> 1.31 </div> 1.32 1.33 @@ -67,7 +67,6 @@ 1.34 </p> 1.35 </div> 1.36 1.37 -<!-- Download --> 1.38 <div class="nav_box"> 1.39 <h4>Quick Download</h4> 1.40 <ul> 1.41 @@ -78,7 +77,6 @@ 1.42 </ul> 1.43 </div> 1.44 1.45 -<!-- SliTaz network --> 1.46 <div class="nav_box"> 1.47 <h4>SliTaz Network</h4> 1.48 <ul> 1.49 @@ -95,27 +93,20 @@ 1.50 1.51 </div> 1.52 1.53 -<!-- Content top. --> 1.54 -<div id="content_top"> 1.55 -<div class="top_left"></div> 1.56 -<div class="top_right"></div> 1.57 -</div> 1.58 - 1.59 <!-- Content --> 1.60 <div id="content"> 1.61 -<a name="content"></a> 1.62 1.63 <h1>Boot baby... boot!</h1> 1.64 <div class="imagebox"> 1.65 -<a><img src="pics/website/desktop.png" title="Desktop" alt="desktop" 1.66 +<img 1.67 + src="pics/website/desktop.png" 1.68 + title="Desktop" alt="desktop" 1.69 style="width: 288px; height: 180px;" /> 1.70 </div> 1.71 1.72 +<!-- We just keep the last 4 web site news --> 1.73 <div id="news"> 1.74 - 1.75 -<!-- We just keep the last 4 web site news --> 1.76 - 1.77 -<h2><font color="#DF8F06">Latest news</font></h2> 1.78 +<h2>Latest news</h2> 1.79 1.80 <ul> 1.81 <li><strong><a href="en/#news">4 November 2010 - New Cooking 20101104</a></strong></li> 1.82 @@ -126,32 +117,21 @@ 1.83 </ul> 1.84 1.85 <div class="infobox"> 1.86 -<img 1.87 - src="pics/website/news.png" 1.88 - style="vertical-align: middle; width: 20px; height: 20px;" alt="news" /> 1.89 -Read the latest news in your language: 1.90 -<strong><a href="de/index.html#news">de</a></strong> | 1.91 -<strong><a href="en/index.html#news">en</a></strong> | 1.92 -<strong><a href="es/index.html#news">es</a></strong> | 1.93 -<strong><a href="fr/index.html#news">fr</a></strong> | 1.94 -<strong><a href="id/index.html#news">id</a></strong> | 1.95 -<strong><a href="pt/index.html#news">pt</a></strong> | 1.96 -<a href="cn/index.html#news"><img 1.97 - src="pics/website/cn.png" 1.98 - style="vertical-align: middle;" 1.99 - title="Chinese" alt="cn" /></a> 1.100 + <img src="pics/website/news.png" alt="news" /> 1.101 + Read the latest news in your language: 1.102 + <strong><a href="de/index.html#news">de</a></strong> | 1.103 + <strong><a href="en/index.html#news">en</a></strong> | 1.104 + <strong><a href="es/index.html#news">es</a></strong> | 1.105 + <strong><a href="fr/index.html#news">fr</a></strong> | 1.106 + <strong><a href="id/index.html#news">id</a></strong> | 1.107 + <strong><a href="pt/index.html#news">pt</a></strong> | 1.108 + <a href="cn/index.html#news"><img 1.109 + src="pics/website/cn.png" 1.110 + style="vertical-align: middle;" 1.111 + title="Chinese" alt="cn" /></a> 1.112 </div> 1.113 1.114 -<!-- We display the 5 last commit and build for cooking 1.115 - 1.116 -NOTE: Using php system() may use a lot of cpu, we have a cron to generate 1.117 - an include file each hours. Example with PHP: 1.118 - echo "<ul>\n"; 1.119 - system("hg log --repository $repo --limit 5 --no-merges \ 1.120 - --template ' <li><strong>{date|shortdate}</strong> \ 1.121 - - <a href=\"$url/rev/{rev}\">{desc}</a></li>\n'"); 1.122 - echo "<\ul>\n"; 1.123 ---> 1.124 +<!-- We display the 5 last commit and build for cooking --> 1.125 1.126 <?php 1.127 include("/var/cache/slitaz/website/latest.html"); 1.128 @@ -160,7 +140,7 @@ 1.129 <!-- End of news --> 1.130 </div> 1.131 1.132 -<h2><font color="#DF8F06">Internationalization</font></h2> 1.133 +<h2>Internationalization</h2> 1.134 1.135 <p> 1.136 The SliTaz web site is available in several languages and maintained by the 1.137 @@ -169,21 +149,17 @@ 1.138 translated into your language. 1.139 </p> 1.140 1.141 -<!-- End of content with round corner --> 1.142 -</div> 1.143 -<div id="content_bottom"> 1.144 -<div class="bottom_left"></div> 1.145 -<div class="bottom_right"></div> 1.146 +<!-- End of content --> 1.147 </div> 1.148 1.149 <!-- Start of footer and copy notice --> 1.150 <div id="copy"> 1.151 <p> 1.152 -Last modification: 2010-11-04 21:10:00 - 1.153 +Last modification: <?php echo (date( "Y-m-d H:i:s", getlastmod())); ?> - 1.154 <a href="#top">Top of the page</a> 1.155 </p> 1.156 <p> 1.157 -Copyright © <span class="year"></span> <a href="http://www.slitaz.org/">SliTaz</a> - 1.158 +Copyright © <?php echo date('Y'); ?> <a href="http://www.slitaz.org/">SliTaz</a> - 1.159 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> 1.160 </p> 1.161 <!-- End of copy -->
2.1 --- a/netmap.php Tue Jan 04 23:41:00 2011 +0100 2.2 +++ b/netmap.php Wed Jan 05 00:25:56 2011 +0100 2.3 @@ -15,13 +15,13 @@ 2.4 2.5 <!-- Header --> 2.6 <div id="header"> 2.7 - <a name="top"></a> 2.8 -<!-- Access --> 2.9 -<div id="access"> 2.10 -</div> 2.11 + <a name="top"></a> 2.12 + <!-- Access --> 2.13 + <div id="access"></div> 2.14 + <!-- Logo --> 2.15 <a href="http://www.slitaz.org/"><img id="logo" 2.16 - src="pics/website/logo.png" title="slitaz.org" alt="slitaz.org" 2.17 - style="border: 0px solid ; width: 200px; height: 74px;" /></a> 2.18 + src="pics/website/logo.png" 2.19 + title="www.slitaz.org" alt="www.slitaz.org" /></a> 2.20 <p id="titre">#!/GNU/Linux</p> 2.21 </div> 2.22 2.23 @@ -111,7 +111,7 @@ 2.24 <!-- Start of footer and copy notice --> 2.25 <div id="copy"> 2.26 <p> 2.27 -Copyright © 2010 <a href="http://www.slitaz.org/">SliTaz</a> - 2.28 +Copyright © <?php echo date('Y'); ?> <a href="http://www.slitaz.org/">SliTaz</a> - 2.29 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> 2.30 </p> 2.31 <!-- End of copy -->