diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-10-26 19:12:28 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-10-26 19:12:28 +0000 |
commit | d3dbfff6b2d833fe630f3ee8c27450fe0c15cc6e (patch) | |
tree | 66a41f774aa1ad94e56b689fd697c00523619f71 /functions/date_functions.php | |
parent | 7d9941400da5ef37763099957617d4cd173e9840 (diff) | |
download | phpicalendar-d3dbfff6b2d833fe630f3ee8c27450fe0c15cc6e.tar.gz phpicalendar-d3dbfff6b2d833fe630f3ee8c27450fe0c15cc6e.tar.bz2 phpicalendar-d3dbfff6b2d833fe630f3ee8c27450fe0c15cc6e.zip |
Added titles
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r-- | functions/date_functions.php | 9 |
1 files changed, 7 insertions, 2 deletions
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 <http> 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; // --></script>"; - $return .= '<a class="'.$link_class.'" href="#" onclick="openEventWindow('.$popup_data_index.'); return false;">'; + $return .= '<a class="'.$link_class.'" title="'.$title.'" href="#" onclick="openEventWindow('.$popup_data_index.'); return false;">'; $popup_data_index++; } else { - $return .= '<a class="'.$link_class.'" href="'.$res[1].'">'; + $return .= '<a class="'.$link_class.'" title="'.$title.'" href="'.$res[1].'">'; } $return .= $pre_text.$event_text.$post_text.'</a>'."\n"; } |