diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2009-07-07 14:48:28 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2009-07-07 14:48:28 +0000 |
commit | f36d3298f0401e4fb1ca131d18d51d3d47e39818 (patch) | |
tree | 46c674f1774b120741ea173c4706f581cbd7dccf /functions/date_functions.php | |
parent | 710abd276f9720e6e5b049c64d0aac5a2cc198d5 (diff) | |
download | phpicalendar-f36d3298f0401e4fb1ca131d18d51d3d47e39818.tar.gz phpicalendar-f36d3298f0401e4fb1ca131d18d51d3d47e39818.tar.bz2 phpicalendar-f36d3298f0401e4fb1ca131d18d51d3d47e39818.zip |
HTML/CSS template rewrites, nice-title integration, XSS fixes, version bump
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r-- | functions/date_functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php index 4751ad2..0aeef60 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -234,6 +234,8 @@ function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $lin $full_event_text = $event_text; $event_text = strip_tags($event_text, '<b><i><u><img>'); } + + if (!empty($link_class)) $link_class = ' class="'.$link_class.'"'; if (!empty($event_text)) { $title = strip_tags(str_replace("<br />","\n",$title)); @@ -254,10 +256,10 @@ function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $lin document.popup_data[$popup_data_index] = eventData; // --></script>"; - $return .= '<a class="'.$link_class.'" title="'.$title.'" href="#" onclick="openEventWindow('.$popup_data_index.'); return false;">'; + $return .= '<a'.$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 .= '<a'.$link_class.' title="'.$title.'" href="'.$res[1].'">'; } $return .= $pre_text.$event_text.$post_text.'</a>'."\n"; } |