diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2007-02-16 06:34:10 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2007-02-16 06:34:10 +0000 |
commit | 8835f290aeb05b2071320b38c14f6a4f013c06be (patch) | |
tree | 2d87d1ef04f28b7940fa2d9eb8b2db69e12f3933 /rss | |
parent | 9ad3203bf87da355f14ce1f10815b50386308dee (diff) | |
download | phpicalendar-8835f290aeb05b2071320b38c14f6a4f013c06be.tar.gz phpicalendar-8835f290aeb05b2071320b38c14f6a4f013c06be.tar.bz2 phpicalendar-8835f290aeb05b2071320b38c14f6a4f013c06be.zip |
allow rss link to event popup option
Diffstat (limited to 'rss')
-rw-r--r-- | rss/rss.php | 11 | ||||
-rwxr-xr-x | rss/rss1.0.php | 12 | ||||
-rw-r--r-- | rss/rss2.0.php | 10 |
3 files changed, 25 insertions, 8 deletions
diff --git a/rss/rss.php b/rss/rss.php index 6062b8f..e37e7bf 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -188,9 +188,16 @@ $uid_arr = array(); $rss_title = urldecode ("$dayofweek: $event_text"); - $event_data = serialize($val); - $rss_link = "$default_path/event.php?getdate=$thisdate&cal=$cal&event_data=$event_data"; + + if (isset($rss_link_to_event) && $$rss_link_to_event == 'yes'){ + $event_data = serialize($val); + $rss_link = "$default_path/event.php?getdate=$thisdate&cal=$cal&event_data=$event_data"; + }else{ + $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal"); + + } if (isset($cpath) && $cpath !='') $rss_link.="&cpath=$cpath"; + $rss_description = htmlspecialchars ("$dayofweek $event_start: $description"); $rss .= '<item>'."\n"; diff --git a/rss/rss1.0.php b/rss/rss1.0.php index 8dcc0a0..cd99958 100755 --- a/rss/rss1.0.php +++ b/rss/rss1.0.php @@ -196,11 +196,17 @@ $uid_arr = array(); */
/* Add %20's for spaces for the calendar links to make them valid url's */
$urlcal = rawurlencode ("$cal");
- $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal");
- if (isset($cpath) && $cpath !=''){
- $rss_link .= "&cpath=$cpath";
+
+ if (isset($rss_link_to_event) && $$rss_link_to_event == 'yes'){
+ $event_data = serialize($val);
+ $rss_link = "$default_path/event.php?getdate=$thisdate&cal=$cal&event_data=$event_data";
+ }else{
+ $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal");
+
}
+ if (isset($cpath) && $cpath !='') $rss_link.="&cpath=$cpath";
/* End link modification */
+
$rss_description = htmlspecialchars ("$dayofweek $event_start: $description");
$rss .= '<rdf:li rdf:resource="'.$rss_link.'&uid='.$uid.'/" />'."\n";
diff --git a/rss/rss2.0.php b/rss/rss2.0.php index 1fd30a0..c315730 100644 --- a/rss/rss2.0.php +++ b/rss/rss2.0.php @@ -199,10 +199,14 @@ $uid_arr = array(); */
/* Add %20's for spaces for the calendar links to make them valid url's */
$urlcal = rawurlencode ("$cal");
- $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal");
- if (isset($cpath) && $cpath !=''){
- $rss_link .= "&cpath=$cpath";
+ if (isset($rss_link_to_event) && $$rss_link_to_event == 'yes'){
+ $event_data = serialize($val);
+ $rss_link = "$default_path/event.php?getdate=$thisdate&cal=$cal&event_data=$event_data";
+ }else{
+ $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal");
+
}
+ if (isset($cpath) && $cpath !='') $rss_link.="&cpath=$cpath";
/* End link modification */
$rss_description = htmlspecialchars ("$dayofweek $event_start: $description");
|