Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7868/functions
Modified Files:
date_functions.php
Log Message:
Added titles
Index: date_functions.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** date_functions.php 1 Oct 2004 23:47:12 -0000 1.25
--- date_functions.php 26 Oct 2004 19:12:29 -0000 1.26
***************
*** 165,168 ****
--- 165,173 ----
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)) {
***************
*** 199,206 ****
// --></script>";
! $return .= '<a class="'.$link_class.'" href="#" onclick="openEventWindow('.$popup_data_index.'); return false;">';
$popup_data_index++;
} else {
! $return .= '<a class="'.$link_class.'" href="'.$res[1].'">';
}
$return .= $pre_text.$event_text.$post_text.'</a>'."\n";
--- 204,211 ----
// --></script>";
! $return .= '<a class="'.$link_class.'" title="'.$title.'" href="#" onclick="openEventWindow('.$popup_data_index.'); return false;">';
$popup_data_index++;
} else {
! $return .= '<a class="'.$link_class.'" title="'.$title.'" href="'.$res[1].'">';
}
$return .= $pre_text.$event_text.$post_text.'</a>'."\n";
|