From d3dbfff6b2d833fe630f3ee8c27450fe0c15cc6e Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 26 Oct 2004 19:12:28 +0000 Subject: Added titles --- functions/date_functions.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'functions/date_functions.php') diff --git a/functions/date_functions.php b/functions/date_functions.php index 0b6c752..e6913b4 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -164,6 +164,11 @@ function chooseOffset($time) { function openevent($calendar_name, $start, $end, $arr, $lines, $wrap, $pre_text, $post_text, $link_class, $url) { $event_text = stripslashes(urldecode($arr["event_text"])); + if (empty($start)) { + $title = $event_text; + } else { + $title = $start.' - '.$end.': '.$event_text; + } # for iCal pseudo tag comptability if (ereg("<([[:alpha:]]+://)([^<>[:space:]]+)>",$event_text,$matches)) { $full_event_text = $matches[1] . $matches[2]; @@ -198,10 +203,10 @@ $return = " document.popup_data[$popup_data_index] = eventData; // -->"; - $return .= ''; + $return .= ''; $popup_data_index++; } else { - $return .= ''; + $return .= ''; } $return .= $pre_text.$event_text.$post_text.''."\n"; } -- cgit v1.2.3