[GRASSweb-list] markus: web rss.xml,NONE,1.1 main.inc,1.76,1.77

grass at intevation.de grass at intevation.de
Tue Oct 31 05:39:53 EST 2006


Author: markus

Update of /grassrepository/web
In directory doto:/tmp/cvs-serv27904

Modified Files:
	main.inc 
Added Files:
	rss.xml 
Log Message:
added new RSS feed thing (thanks to Peter Misovic)

--- NEW FILE: rss.xml ---
<?xml version="1.0" encoding="windows-1250"?>
<?xml-stylesheet type="text/css" href="grass_news_style.css" ?>
<rss version="0.91">
  <channel>
    <title>Geographic Resources Analysis Support System</title>
    <link>http://grass.itc.it/index.php</link>
    <description>News about Geographic Resources Analysis Support System</description>
    <language>en-us</language>
    <copyright>Copyright 1999-2006 GRASS Development Team.</copyright>
    <managingEditor>weblist at grass.itc.it</managingEditor>
    <webMaster>weblist at grass.itc.it</webMaster>
    
    <image>
      <title>GRASS GIS</title>
      <url>http://grass.itc.it/images/grasslogo_vector_small.png</url>
      <link>http://grass.itc.it/index.php</link>
      <width>110</width>
      <height>123</height>
      <description>News about Geographic Resources Analysis Support System.</description>
    </image>

      <item>
      <title>GRASS 6.2.0RC3 released</title>
      <link>http://grass.itc.it/grass62/</link>
      <description>The last release candidate</description>
      <pubDate>Tue, 24 Oct 2006 09:39:21 GMT</pubDate>
      <guid>http://grass.itc.it/</guid>
    </item>
    
    <item>
      <title>GRASS 6.2.0RC2 released</title>
      <link>http://grass.itc.it/grass62/</link>
      <description>Approaching the final release</description>
      <pubDate>Fri, 6 Oct 2006 11:06:42 GMT</pubDate>
      <guid>http://grass.itc.it/</guid>
    </item>
    
    <item>
      <title>GRASS 6.2.0RC1 released</title>
      <link>http://grass.itc.it/grass62/</link>
      <description>The first release candidate</description>
      <pubDate>Tue, 26 Sept 2006 08:37:32 GMT</pubDate>
      <guid>http://grass.itc.it/</guid>
    </item>
    
    <item>
      <title>GRASS 6.2.0beta3 released</title>
      <link>http://grass.itc.it/grass62/</link>
      <description>The last beta version</description>
      <pubDate>Tue, 18 Sept 2006 08:56:02 GMT</pubDate>
      <guid>http://grass.itc.it/</guid>
    </item>
    
    <item>
      <title>OSGeo foundation Award</title>
      <link>https://www.osgeo.org/servlets/NewsItemView?newsItemID=41</link>
      <description>Markus Neteler Wins Sol Katz GFOSS Award</description>
      <pubDate>Tue, 15 Sept 2006 08:56:02 GMT</pubDate>
      <guid>http://grass.itc.it/</guid>
    </item>
  
  </channel>
</rss>

Index: main.inc
===================================================================
RCS file: /grassrepository/web/main.inc,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- main.inc	31 Oct 2006 09:46:17 -0000	1.76
+++ main.inc	31 Oct 2006 10:39:51 -0000	1.77
@@ -50,18 +50,22 @@
 
    <!-- MAIN: NEWS SECTION -->
    <center>
-   <h4>Latest News!</h4>
+   <h4>Latest News!
+   <a href="http://grass.itc.it/rss.xml"><img src="feed/rss-icon.gif" alt="RSS Feed" border=0></a></h4>
     </center>
-    
-<ul>
- <li>24 Oct 2006: <a href="grass62/">GRASS 6.2.0RC3</a> released (<a href="download/index.php#g62x">Downloads</a>)
- <li>6 Oct 2006: <a href="grass62/">GRASS 6.2.0RC2</a> released (<a href="download/index.php#g62x">Downloads</a>)
- <li>26 Sept 2006: <a href="grass62/">GRASS 6.2.0RC1</a> released (<a href="download/index.php#g62x">Downloads</a>)
- <li>18 Sept 2006: <a href="grass62/">GRASS 6.2.0beta3</a> released (<a href="download/index.php#g62x">Downloads</a>)
- <li>15 Sept 2006: <a href="https://www.osgeo.org/servlets/NewsItemView?newsItemID=41">Markus Neteler Wins Sol Katz GFOSS Award</a>
-</ul>
-           
-  
+
+  <ul>
+   <?php
+   include("feed/rss.php"); // we'd better hardcode the URL ?
+   $r1 =& new XML_RSS('http://grass.itc.it/rss.xml');
+   $r1->parse();
+   foreach ($r1->getItems() as $value) {
+        $format = '%d %b %Y';
+        echo "<li>".strftime($format,strtotime($value['pubdate'])).": <a href=\"".$value['link']."\"><strong>".$value["title"]."</strong></a> - ".$value["description"]."</li>\n";
+}
+   ?>
+  </ul>
+
  <center>         
   <h4>Upcoming Conferences/Short Courses:</h4>
  </center>





More information about the grass-web mailing list