From b941c90ce2d8f9a1248425087063257aacd615bc Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 20 Nov 2003 05:18:38 +0000 Subject: Added URL support to popup, re-wrote event.php for less code. --- functions/date_functions.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'functions/date_functions.php') diff --git a/functions/date_functions.php b/functions/date_functions.php index 8745c1a..374752f 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -160,7 +160,7 @@ function chooseOffset($time) { return $offset; } -function openevent($calendar_name, $start, $end, $arr, $lines, $wrap, $pre_text, $post_text, $link_class) { +function openevent($calendar_name, $start, $end, $arr, $lines, $wrap, $pre_text, $post_text, $link_class, $url) { $event_text = stripslashes(urldecode($arr["event_text"])); # for iCal pseudo tag comptability if (ereg("<([[:alpha:]]+://)([^<>[:space:]]+)>",$event_text,$matches)) { @@ -190,6 +190,10 @@ function openevent($calendar_name, $start, $end, $arr, $lines, $wrap, $pre_text, if (isset($arr["description"])) { $description = addslashes(stripslashes(urldecode($arr["description"]))); } + + if (isset($arr["url"])) { + $url = addslashes(stripslashes(urldecode($arr["url"]))); + } if (!empty($event_text)) { if ($lines > 0) { @@ -206,7 +210,7 @@ function openevent($calendar_name, $start, $end, $arr, $lines, $wrap, $pre_text, echo << -- cgit v1.2.3