[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/areas/events
From:       Daniel Molkentin <molkentin () kde ! org>
Date:       2008-04-17 19:36:34
Message-ID: 1208460994.975034.23185.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 798230 by danimo:

more attributes


 M  +3 -1      parse_gm_feed.inc  
 M  +6 -1      rss.php  


--- trunk/www/areas/events/parse_gm_feed.inc #798229:798230
@@ -100,7 +100,9 @@
     $status = substr( $gd_status[0]['attribs']['']['value'], -8);
 
     $when = $item->get_item_tags('http://schemas.google.com/g/2005', 'when');
-    $date = $when[0]['attribs']['']['startTime'];
+    $date= $when[0]['attribs']['']['startTime'];
+    $startTime = $when[0]['attribs']['']['startTime'];
+    $endTime= $when[0]['attribs']['']['endTime'];
     $unixdate = SimplePie_Misc::parse_date($date);
     $where = $item->get_item_tags('http://schemas.google.com/g/2005', 'where');
     $location = $where[0]['attribs']['']['valueString'];
--- trunk/www/areas/events/rss.php #798229:798230
@@ -24,8 +24,13 @@
     $linked_description=htmlspecialchars($linked_description);
 ?>
 	<item>
-		 <title><?php echo $gCalDate.": ".$item['title']." (".$item['where'].")"; ?></title>
+		 <title><?php echo $gCalDate.": ".$item['title']; ?></title>
 		 <link><?php //echo $item->get_permalink();?>http://events.kde.org/upcoming.php</link>
+		 <guid><?php echo $item->get_permalink();?></guid>
+		 <date><?php echo date("r", $item['date'] )</date>
+		 <startTime><?php echo date("r", $item['startTime'] )</startTime>
+		 <endTime><?php echo date("r", $item['endTime'] )</endTime>
+		 <location>$item['where']</location>
 		 <description><?php echo $linked_description; ?></description>
 	</item>
 <?php
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic