Objet : devel-adl
Archives de la liste
- From: svn AT agendadulibre.org
- To: devel AT agendadulibre.org
- Subject: [Devel] r253 - trunk
- Date: Thu, 15 Mar 2007 21:01:08 +0100 (CET)
- List-archive: <http://lolut.utbm.info/pipermail/devel>
- List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>
Author: thomas
Date: Thu Mar 15 21:01:06 2007
New Revision: 253
Modified:
trunk/rss.php
Log:
Indication de la date de début et de fin dans le titre des entrées de
flux RSS, si elles sont différentes.
Modified: trunk/rss.php
==============================================================================
--- trunk/rss.php (original)
+++ trunk/rss.php Thu Mar 15 21:01:06 2007
@@ -119,13 +119,19 @@
while ($event = mysql_fetch_object($list))
{
- $start_timestamp = date_mysql2timestamp($event->start_time);
+ $start_day =
onlyday_timestamp2humanreadable(date_mysql2timestamp($event->start_time));
+ $end_day =
onlyday_timestamp2humanreadable(date_mysql2timestamp($event->end_time));
echo " <item rdf:about=\"" . calendar_absolute_url("showevent.php?id=" .
$event->id) . "\">\n";
- echo " <title>" . xmlentities($event->city) . " : " .
- xmlentities($event->title) . ", " .
- onlyday_timestamp2humanreadable($start_timestamp) .
- "</title>\n";
+
+ echo " <title>";
+ echo xmlentities($event->city) . " : " . xmlentities($event->title);
+ if ($start_day == $end_day)
+ echo ", le " . $start_day;
+ else
+ echo ", du " . $start_day . " au " . $end_day;
+ echo "</title>\n";
+
echo " <link>" . calendar_absolute_url("showevent.php?id=" . $event->id)
. "</link>\n";
echo " <guid>" . $event->id . "@agendadulibre.org</guid>";
$evt_timezone = ereg_replace("^\+([0-9][0-9])([0-9][0-9])$", "+\\1:\\2",
- [Devel] r253 - trunk, svn, 15/03/2007
Archives gérées par MHonArc 2.6.16.