website rev 946
Add forum activity to main pages
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 13 20:28:01 2012 +0100 (2012-03-13) |
parents | 304b3f1894f7 |
children | 50d873b3dfdf |
files | cn/index.php en/devel/index.php en/index.php en/packages/index.php es/index.php fr/index.php index.php lib/get-feeds.php lib/get-feeds.sh pt/index.php |
line diff
1.1 --- a/cn/index.php Tue Mar 13 19:14:50 2012 +0100 1.2 +++ b/cn/index.php Tue Mar 13 20:28:01 2012 +0100 1.3 @@ -144,101 +144,54 @@ 1.4 LiveCD镜像.</p> 1.5 </li> 1.6 1.7 -<!-- <li><strong>14 March 2010 - RC series and Solutionslinux 2010 (Paris)</strong> 1.8 - <p>Since we're getting closer to the next stable release, we have updated the 1.9 - core ISO image to start with a RC series. The Major change is the switch to 1.10 - Midori as the default web browser, this will improve user experience and let 1.11 - us keep SliTaz at 30Mb. Midori is a modern browser powered by the webkit engine - 1.12 - it is fast, simple to use and well integrated with the SliTaz desktop.</p> 1.13 - <p>This updated ISO comes with a bunch of bug and dependency fixes, we have 1.14 - also improved the home made tools and scripts. This new ISO image can be 1.15 - downloaded from the SliTaz mirrors (35 MB): 1.16 - <a href="http://mirror.slitaz.org/iso/cooking/slitaz-cooking.iso">slitaz-cooking.iso</a></p> 1.17 - <p>By the way, the SliTaz project will be at 1.18 - <a href="http://www.solutionslinux.fr/">Solutionslinux</a> 2010 next 1.19 - week in Paris. You will be able to learn about the project and make 1.20 - contact with members of the association and the development team.</p> 1.21 - </li> 1.22 - 1.23 - <li><strong>21 February 2010 - New Cooking 20100221</strong> 1.24 - <p>SliTaz contributors are proud to announce a new Cooking version of the 1.25 - LiveCD. This is the last Cooking RC before 3.0 is released. The core ISO image 1.26 - is at 27 MB and comes with many changes and improvments. This Cooking uses 1.27 - Xorg as X server instead of Xvesa and provides full UTF-8 support. With 1.28 - a clean desktop environment, it also provides many applications for daily 1.29 - usage and common tasks. Netsurf replaces firefox as the default web browser. 1.30 - Nevertheless, a Firefox flavor at 29 Mb with sound and wifi support can 1.31 - also be downloaded from the official mirrors.</p> 1.32 - <p>On the updates and improvements side: tazpkg is faster, boot-scripts are 1.33 - updated and home-made toolboxes are improved. Wifibox uses awk for better 1.34 - network scanning. WPA support in the boot scripts have been improved. Boot 1.35 - time is logged for performance measuring. The SliTaz installer will now 1.36 - try to use files from an USB device if no cdrom is found, allow you to 1.37 - create a default user account, set a root password and use a separate /home 1.38 - partition. And finally, LiveCD customization is now much easier: users 1.39 - just have to boot, modify and use writefs via the Tazlito graphical interface 1.40 - or from the command line to generate their own customized CD.</p> 1.41 - <p>As usual, you can <a href="get/#cooking">download</a> these new 1.42 - flavors from one of the official mirrors of the project and provide feedback 1.43 - on the SliTaz forum.</p> 1.44 - </li> 1.45 - <li><strong>News archives:</strong> 1.46 - <a href="news/2007.html">2007</a> | 1.47 - <a href="news/2008.html">2008</a> | 1.48 - <a href="news/2009.html">2009</a></li>--> 1.49 - <!-- 1.50 - <li><strong>2009年11月4日 新的Cooking版本——20091104</strong><br /> 1.51 -新的Slitaz Cooking已经发布,这个系统以拥有2100个软件包的软件仓库为基础,使用Glibc 2.10.1和GCC 4.4.1重建,包含Linux 2.6.30.6内核,有着更好的硬件支持和内置模块。启动速度也大大增加。LiveCD中Firefox等主要软件升级到最新稳定版,图形界面的功能也大大增强。Tazpkg软件包管理器增加不少新特性,可以将deb/rpm/arch/slackware/ipk等软件包转化为Siltaz格式。ISO镜像拥有新的Openbox、GTK、图标主题以及一个更漂亮的桌面,ePDFview也被一个在线PDF阅读器替换。由于内核增大以及软件包依赖关系,这个ISO镜像大于30MB(31.5MB)。 1.52 -Slitaz也拥有了新的<a href="http://forum.slitaz.org/">论坛</a>和<a href="http://scn.slitaz.org/">通讯平台</a>,你可以在那里与网友分享、交流。新的Cooking版本可从官方网站<a href="get/#cooking">下载</a>。 1.53 - 1.54 - </li> 1.55 - <li><strong>2009年5月19日 SliTaz 出席日内瓦LinuxDays 2009</strong><br /> 1.56 -LinuxDays在日内瓦进行期间,Slitaz协会会在Association Village出现,并且会在星期三发布演讲。这个演讲主要讲述"SliTaz Business Server" 在邮件服务器、嵌入式设备等方面的应用。 1.57 -在这三天里,工作组成员将会详细策划Slitaz展览。我们还会对Slitaz进行宣传,包括创建可启动U盘(LiveUSB)和CD。LinuxDays LiveCD会包括不少设计用于移动的软件。你也可以到现场给我们提问,和我们聊天。你可以在<a href="http://labs.slitaz.org/wiki/events/2009-linuxdays">SliTaz实验室</a>和<a href="2009.linuxdays.ch"> 2009.linuxdays.ch</a>找到相关资料。 1.58 - </li> 1.59 - <li><strong>2009年4月16日 SliTaz GNU/linux 2.0 发布</strong><br /> 1.60 -经过一年的漫长等待,Slitaz工作组发布了新的稳定版——SliTaz GNU/linux 2.0。在这一年间,我们一直致力于提供一个轻快小巧、稳定的操作系统。ISO镜像文件大小不足30M额的Slitaz提供了一个完整的桌面环境,还可以通过软件包管理器安装超过1400个软件包。这只要轻点鼠标就可以完成。这个新版本提供分区自动挂载(兼容NTFS)、无线网络支持、gPXE和boot.slitaz.org的网络启动、USB和PCI设备的自动选择、软件包管理器和控制中心,还提供各种管理系统的图形界面工具。你可以更轻松地通过小工具轻松创建可启动USB设备和LiveCD。LiveCD包含Firefox 3.0.8、gFTP、LostIRC、ePDFView、mtPaint、 Transmission、Osmo和Alsaplayer。网站的文档已经升级,你还可以阅读ISO中的发行笔记来查看这个版本更详细的更新。SliTaz GNU/linux 2.0现在已经可以在官方源下载。 1.61 - </li> 1.62 - <li><strong>2009年3月27日 实验室和新的软件源</strong><br /> 1.63 -我们会不断提升发行版和服务的质量。近期<a href="http://labs.slitaz.org/">SliTaz Labs</a>顺利运行,这个平台可以让Slitaz贡献者更有效地合作,可以报告BUG、提出新要求。SliTaz Labs给每个<a href="http://labs.slitaz.org/projects">项目</a>提供了一个wiki、一个讨论区、一个新闻模块等内容。SliTaz Labs还提供计划内容总览、更新报告等功能。你可以注册SliTaz Labs来参与计划或者发表评论。我们还增添了2个新的软件源:瑞士的SWITCHmirror和中国的LupaWorld。感谢对我们的支持。 1.64 - </li> 1.65 - <li><strong>2009年3月20日 SliTaz出席巴黎Solutionslinux 2009</strong><br /> 1.66 -Slitaz将会出席在巴黎的2009 Solutionslinux会展,我们将在观众席上派出3个成员。此外,其他Slitaz的贡献者也将会在会场的各个角落出现。现在你就有了一个测试各种电脑的好时机,例如你可以做“EeePC是否能使用Slitaz”的试验。你还可以现场创建一个Slitaz可启动U盘(自带),如果没带U盘,也可以购买U盘或LiveCD。你还可以了解关于Slitaz的信息,或者和Slitaz工作组的成员交流讨论。网站: 1.67 - <a href="http://www.solutionslinux.fr/">www.solutionslinux.fr</a>, 1.68 - <a href="http://www.solutionslinux.fr/associations.php?pg=2_7">Village associations</a>, 1.69 - <a href="http://www.solutionslinux.fr/exposant_fiche.php?id=763&pg=2_4">SliTaz Stand</a>. 1.70 - </li> 1.71 - <li><strong>2009年2月28日 - 新Cooking版本 20090228</strong><br /> 1.72 -Slitaz工作组发布了一个新的Cooking版本,这个版本修复了很多BUG,升级了很多软件,做了许许多多的改进,还增添了许多新特性。例如PCI/USB设备可以由Tazhw自动管理,设备的控件可以通过图形界面,轻点鼠标完成,Tazndis可以让你通过简单的图形界面管理Windows驱动。图形界面的软件包管理器变得更加简单易用,LiveUSB设备也可以通过一个窗口轻松创建。 Netbox可以显示所有的网络连接,新增的WIfibox可以连接上无线网络。你还可以手动或者通过Tazhw来管理“喜爱网络”、设置网卡。在图形界面方面,也新增了一个可以启用/禁用自启动程序的GUI,你可以在Openbox的菜单中打开它。此外,Desktopbox也新增了一个简易的通知程序。我们在为下一个稳定版做准备。你可以到 <a href="get/index.html#cooking">下载</a>页面或任意一个源下载这个版本的ISO镜像。 1.73 - </li> 1.74 - --> 1.75 </ul> 1.76 1.77 <!-- End of news --> 1.78 </div> 1.79 1.80 +<h2>Project Activity</h2> 1.81 +<?php require_once("../lib/get-feeds.php"); ?> 1.82 + 1.83 +<div class="activity"> 1.84 + <p> 1.85 + <a href="http://scn.slitaz.org/activity/"><img 1.86 + src="/images/users.png" alt="users.png" /></a> 1.87 + Community activity 1.88 + <?php get_feed("scn.xml"); ?> 1.89 + </div> 1.90 + <p class="activity_more"> 1.91 + <a href="http://scn.slitaz.org/activity/">More activity</a> 1.92 + </p> 1.93 +</div> 1.94 + 1.95 +<div class="activity"> 1.96 + <p> 1.97 + <a href="http://forum.slitaz.org/"><img 1.98 + src="/images/support.png" alt="[ Support ]" /></a> 1.99 + Forum activity 1.100 + <?php get_feed_forum("forum.xml"); ?> 1.101 + </div> 1.102 + <p class="activity_more"> 1.103 + <a href="http://forum.slitaz.org/">More support</a> 1.104 + </p> 1.105 +</div> 1.106 + 1.107 +<div class="activity"> 1.108 + <p> 1.109 + <a href="http://hg.slitaz.org/"> 1.110 + <img src="/images/development.png" alt="development.png" /></a> 1.111 + Latest commits in wok 1.112 + <?php get_feed("wok.xml"); ?> 1.113 + </div> 1.114 + <p class="activity_more"> 1.115 + <a href="http://hg.slitaz.org/">More commits</a> 1.116 + </p> 1.117 +</div> 1.118 + 1.119 <!-- End of content --> 1.120 </div> 1.121 1.122 -<!-- Footer --> 1.123 -<div id="footer"> 1.124 - Copyright © <span class="year"></span> 1.125 - <a href="http://www.slitaz.org/">SliTaz</a> - Network: 1.126 - <a href="http://scn.slitaz.org/">Community</a> 1.127 - <a href="http://doc.slitaz.org/">Doc</a> 1.128 - <a href="http://forum.slitaz.org/">Forum</a> 1.129 - <a href="http://pkgs.slitaz.org/">Packages</a> 1.130 - <a href="http://bugs.slitaz.org">Bugs</a> 1.131 - <a href="http://hg.slitaz.org/">Hg</a> 1.132 - <p> 1.133 - SliTaz @ 1.134 - <a href="http://twitter.com/slitaz">Twitter</a> 1.135 - <a href="http://www.facebook.com/slitaz">Facebook</a> 1.136 - <a href="http://distrowatch.com/slitaz">Distrowatch</a> 1.137 - <a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a> 1.138 - <a href="http://flattr.com/profile/slitaz">Flattr</a> 1.139 - </p> 1.140 -</div> 1.141 +<?php include("../lib/html/footer.html"); ?> 1.142 1.143 </body> 1.144 </html>
2.1 --- a/en/devel/index.php Tue Mar 13 19:14:50 2012 +0100 2.2 +++ b/en/devel/index.php Tue Mar 13 20:28:01 2012 +0100 2.3 @@ -50,7 +50,6 @@ 2.4 <li><a href="http://bugs.slitaz.org/">SliTaz Bug Tracker</a></li> 2.5 </ul> 2.6 2.7 -<a name="devel"></a> 2.8 <h2>Get involved</h2> 2.9 <p> 2.10 SliTaz is an open source and community driven distribution. Everyone is 2.11 @@ -75,6 +74,22 @@ 2.12 <a href="http://scn.slitaz.org/groups/artwork/">Artwork group</a> 2.13 </p> 2.14 2.15 +<h2>Activity</h2> 2.16 + 2.17 +<?php require_once("../../lib/get-feeds.php"); ?> 2.18 + 2.19 +<div class="activity"> 2.20 + <p> 2.21 + <a href="http://hg.slitaz.org/"><img 2.22 + src="/images/development.png" alt="[ Devel ]" /></a> 2.23 + Latest commits in wok 2.24 + <?php get_feed("wok.xml"); ?> 2.25 + </div> 2.26 + <p class="activity_more"> 2.27 + <a href="http://hg.slitaz.org/">More commits</a> 2.28 + </p> 2.29 +</div> 2.30 + 2.31 <!-- End of content --> 2.32 </div> 2.33
3.1 --- a/en/index.php Tue Mar 13 19:14:50 2012 +0100 3.2 +++ b/en/index.php Tue Mar 13 20:28:01 2012 +0100 3.3 @@ -170,6 +170,18 @@ 3.4 3.5 <div class="activity"> 3.6 <p> 3.7 + <a href="http://forum.slitaz.org/"><img 3.8 + src="/images/support.png" alt="[ Support ]" /></a> 3.9 + Forum activity 3.10 + <?php get_feed_forum("forum.xml"); ?> 3.11 + </div> 3.12 + <p class="activity_more"> 3.13 + <a href="http://forum.slitaz.org/">More support</a> 3.14 + </p> 3.15 +</div> 3.16 + 3.17 +<div class="activity"> 3.18 + <p> 3.19 <a href="http://hg.slitaz.org/"> 3.20 <img src="../images/development.png" alt="development.png" /></a> 3.21 Latest commits in wok
4.1 --- a/en/packages/index.php Tue Mar 13 19:14:50 2012 +0100 4.2 +++ b/en/packages/index.php Tue Mar 13 20:28:01 2012 +0100 4.3 @@ -6,11 +6,8 @@ 4.4 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> 4.5 <meta name="description" content="SliTaz GNU/Linux LiveCD packages" /> 4.6 <meta name="keywords" lang="en" content="package, tazpkg" /> 4.7 - <meta name="robots" content="index, follow, all" /> 4.8 - <meta name="modified" content="<?php echo (date( "Y-m-d H:i:s", getlastmod())); ?>" /> 4.9 <meta name="author" content="Christophe Lincoln, Paul Issot"/> 4.10 - <link rel="shortcut icon" href="../../favicon.ico" /> 4.11 - <link rel="stylesheet" type="text/css" href="../../slitaz.css" /> 4.12 + <?php include("../../lib/html/meta-link.html"); ?> 4.13 </head> 4.14 <body> 4.15 4.16 @@ -85,12 +82,12 @@ 4.17 4.18 <h2>Activity</h2> 4.19 4.20 -<?php require_once("../../libs/get-feeds.php"); ?> 4.21 +<?php require_once("../../lib/get-feeds.php"); ?> 4.22 4.23 <div class="activity"> 4.24 <p> 4.25 - <a href="http://hg.slitaz.org/"> 4.26 - <img src="../../images/development.png" alt="development.png" /></a> 4.27 + <a href="http://hg.slitaz.org/"><img 4.28 + src="/images/development.png" alt="[ Devel ]" /></a> 4.29 Latest commits in wok 4.30 <?php get_feed("wok.xml"); ?> 4.31 </div>
5.1 --- a/es/index.php Tue Mar 13 19:14:50 2012 +0100 5.2 +++ b/es/index.php Tue Mar 13 20:28:01 2012 +0100 5.3 @@ -197,6 +197,18 @@ 5.4 5.5 <div class="activity"> 5.6 <p> 5.7 + <a href="http://forum.slitaz.org/"><img 5.8 + src="/images/support.png" alt="[ Support ]" /></a> 5.9 + Forum activity 5.10 + <?php get_feed_forum("forum.xml"); ?> 5.11 + </div> 5.12 + <p class="activity_more"> 5.13 + <a href="http://forum.slitaz.org/">More support</a> 5.14 + </p> 5.15 +</div> 5.16 + 5.17 +<div class="activity"> 5.18 + <p> 5.19 <a href="http://hg.slitaz.org/"> 5.20 <img src="../images/development.png" alt="development.png" /></a> 5.21 ltimos commits en el wok
6.1 --- a/fr/index.php Tue Mar 13 19:14:50 2012 +0100 6.2 +++ b/fr/index.php Tue Mar 13 20:28:01 2012 +0100 6.3 @@ -175,6 +175,18 @@ 6.4 6.5 <div class="activity"> 6.6 <p> 6.7 + <a href="http://forum.slitaz.org/"><img 6.8 + src="/images/support.png" alt="[ Support ]" /></a> 6.9 + Activit du forum 6.10 + <?php get_feed_forum("forum.xml"); ?> 6.11 + </div> 6.12 + <p class="activity_more"> 6.13 + <a href="http://forum.slitaz.org/">Plus de support</a> 6.14 + </p> 6.15 +</div> 6.16 + 6.17 +<div class="activity"> 6.18 + <p> 6.19 <a href="http://hg.slitaz.org/"> 6.20 <img src="../images/development.png" alt="development.png" /></a> 6.21 Derniers commits dans le wok
7.1 --- a/index.php Tue Mar 13 19:14:50 2012 +0100 7.2 +++ b/index.php Tue Mar 13 20:28:01 2012 +0100 7.3 @@ -114,6 +114,18 @@ 7.4 7.5 <div class="activity"> 7.6 <p> 7.7 + <a href="http://forum.slitaz.org/"><img 7.8 + src="/images/support.png" alt="[ Support ]" /></a> 7.9 + Forum activity 7.10 + <?php get_feed_forum("forum.xml"); ?> 7.11 + </div> 7.12 + <p class="activity_more"> 7.13 + <a href="http://forum.slitaz.org/">More support</a> 7.14 + </p> 7.15 +</div> 7.16 + 7.17 +<div class="activity"> 7.18 + <p> 7.19 <a href="http://hg.slitaz.org/"> 7.20 <img src="images/development.png" alt="development.png" /></a> 7.21 Latest commits in wok
8.1 --- a/lib/get-feeds.php Tue Mar 13 19:14:50 2012 +0100 8.2 +++ b/lib/get-feeds.php Tue Mar 13 20:28:01 2012 +0100 8.3 @@ -59,4 +59,33 @@ 8.4 } 8.5 } 8.6 8.7 +// Read Forum Feed 8.8 +function get_feed_forum($feed) { 8.9 + $cache = '/var/cache/slitaz/website'; 8.10 + $entries = 4; 8.11 + // have the page displayed even if any xml file 8.12 + if ( ! file_exists("$cache/$feed")) { 8.13 + echo "</p>\n<div>\n"; 8.14 + echo "Missing feed: $cache/$feed\n" . "</div>\n"; 8.15 + } 8.16 + else { 8.17 + $content = file_get_contents("$cache/$feed"); 8.18 + $x = new SimpleXmlElement($content); 8.19 + $count = 0; 8.20 + // We look for last item, channel may not have a PubDate* 8.21 + $up = ($x->channel->item->pubDate); 8.22 + echo "<span>- Updated: " . substr("$up", 5, 17) . "</span>\n"; 8.23 + echo "</p>\n<div>\n<ul>\n"; 8.24 + foreach($x->channel->item as $entry) { 8.25 + $count = $count + 1; 8.26 + echo " <li><a href='$entry->link' title='$entry->title'>" . 8.27 + $entry->title . "</a></li>\n"; 8.28 + if ($count == $entries) { 8.29 + break; 8.30 + } 8.31 + } 8.32 + echo "</ul>\n"; 8.33 + } 8.34 +} 8.35 + 8.36 ?>
9.1 --- a/lib/get-feeds.sh Tue Mar 13 19:14:50 2012 +0100 9.2 +++ b/lib/get-feeds.sh Tue Mar 13 20:28:01 2012 +0100 9.3 @@ -21,7 +21,7 @@ 9.4 wget -O scn.xml $SCN_FEED 2>/dev/null 9.5 wget -O wok.xml $WOK_FEED 2>/dev/null 9.6 wget -O blog.xml $BLOG_FEED 2>/dev/null 9.7 -#wget -O forum.xml $FORUM_FEED 2>/dev/null 9.8 +wget -O forum.xml $FORUM_FEED 2>/dev/null 9.9 echo "Done" 9.10 9.11 exit 0
10.1 --- a/pt/index.php Tue Mar 13 19:14:50 2012 +0100 10.2 +++ b/pt/index.php Tue Mar 13 20:28:01 2012 +0100 10.3 @@ -198,6 +198,18 @@ 10.4 10.5 <div class="activity"> 10.6 <p> 10.7 + <a href="http://forum.slitaz.org/"><img 10.8 + src="/images/support.png" alt="[ Support ]" /></a> 10.9 + Forum activity 10.10 + <?php get_feed_forum("forum.xml"); ?> 10.11 + </div> 10.12 + <p class="activity_more"> 10.13 + <a href="http://forum.slitaz.org/">More support</a> 10.14 + </p> 10.15 +</div> 10.16 + 10.17 +<div class="activity"> 10.18 + <p> 10.19 <a href="http://hg.slitaz.org/"> 10.20 <img src="../images/development.png" alt="development.png" /></a> 10.21 ltimos commits no wok