aboutsummaryrefslogtreecommitdiffstats
path: root/rss
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-26 22:56:59 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-26 22:56:59 +0000
commitcd579553df9e8536553b305f7ada01db4fde2ecb (patch)
treeb2445600a0a5038fbd17b6d7788e3fa49804ee9f /rss
parent814f9259d959a58d17858a42cc425d4080c4e61c (diff)
downloadphpicalendar-cd579553df9e8536553b305f7ada01db4fde2ecb.tar.gz
phpicalendar-cd579553df9e8536553b305f7ada01db4fde2ecb.tar.bz2
phpicalendar-cd579553df9e8536553b305f7ada01db4fde2ecb.zip
Final version of RSS.
Diffstat (limited to 'rss')
-rw-r--r--rss/rss.php31
1 files changed, 17 insertions, 14 deletions
diff --git a/rss/rss.php b/rss/rss.php
index 59da1f2..3925e12 100644
--- a/rss/rss.php
+++ b/rss/rss.php
@@ -101,26 +101,29 @@ if ($rssview == "month") {
ereg ("([0-9]{6})([0-9]{2})", $key, $regs);
if ($regs[1] == $parse_month) {
$getdate = $key;
+ $dayofmonth = strtotime ($getdate);
+ $dayofmonth = localizeDate ($rss_month_date, $dayofmonth);
// Pull out each day
foreach ($new_val2 as $new_val) {
// Pull out each time
foreach ($new_val as $new_key2 => $val) {
-
- $event_start = @$val["event_start"];
- $event_start = date ($timeFormat, @strtotime ("$event_start"));
- $event_text = stripslashes(urldecode($val["event_text"]));
- $event_text = strip_tags($event_text, '<b><i><u>');
- $event_text = word_wrap($event_text, 21, $tomorrows_events_lines);
- $description = stripslashes(urldecode($val["description"]));
- $description = strip_tags($description, '<b><i><u>');
- $rss .= '<item>'."\n";
- $rss .= '<title>'.$event_start.' '.$event_text.'</title>'."\n";
- $rss .= '<link>'.$default_path.'/day.php?getdate='.$getdate.'&cal='.$cal.'</link>'."\n";
- $rss .= '<description>'.$description.'</description>'."\n";
- $rss .= '</item>'."\n";
- $events_week++;
+ if ($val["event_text"]) {
+ $event_start = @$val["event_start"];
+ $event_start = date ($timeFormat, @strtotime ("$event_start"));
+ $event_text = stripslashes(urldecode($val["event_text"]));
+ $event_text = strip_tags($event_text, '<b><i><u>');
+ $event_text = word_wrap($event_text, 21, $tomorrows_events_lines);
+ $description = stripslashes(urldecode($val["description"]));
+ $description = strip_tags($description, '<b><i><u>');
+ $rss .= '<item>'."\n";
+ $rss .= '<title>'.$dayofmonth.': '.$event_text.'</title>'."\n";
+ $rss .= '<link>'.$default_path.'/day.php?getdate='.$getdate.'&cal='.$cal.'</link>'."\n";
+ $rss .= '<description>'.$dayofmonth.' '.$event_start.': '.$description.'</description>'."\n";
+ $rss .= '</item>'."\n";
+ $events_week++;
+ }
if ($events_week < 1) {
$rss .= '<item>'."\n";

© 2014-2024 Faster IT GmbH | imprint | privacy policy