diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-11-21 07:29:08 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-11-21 07:29:08 +0000 |
commit | cb7619cc43e7096807dcddff5554655d6d6aa4ff (patch) | |
tree | 4e6ccb49eb2c001e1bf1d739d60d3f4f92841fa8 /functions/date_functions.php | |
parent | ff44e85ed119981d8f01461bb2bde86de06e43bc (diff) | |
download | phpicalendar-cb7619cc43e7096807dcddff5554655d6d6aa4ff.tar.gz phpicalendar-cb7619cc43e7096807dcddff5554655d6d6aa4ff.tar.bz2 phpicalendar-cb7619cc43e7096807dcddff5554655d6d6aa4ff.zip |
Updated event to be half the size of previous release. More CSS, less
crappy HTML.
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r-- | functions/date_functions.php | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php index 374752f..d430cd5 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -171,29 +171,12 @@ function openevent($calendar_name, $start, $end, $arr, $lines, $wrap, $pre_text, $event_text = strip_tags($event_text, '<b><i><u>'); } - if (isset($arr["organizer"])) { - $organizer = addslashes($arr["organizer"]); - } - - if (isset($arr["attendee"])) { - $attendee = addslashes($arr["attendee"]); - } - - if (isset($arr["location"])) { - $location = addslashes($arr["location"]); - } - - if (isset($arr["status"])) { - $status = addslashes($arr["status"]); - } - - if (isset($arr["description"])) { - $description = addslashes(stripslashes(urldecode($arr["description"]))); - } - - if (isset($arr["url"])) { - $url = addslashes(stripslashes(urldecode($arr["url"]))); - } + if (isset($arr["organizer"])) $organizer = addslashes($arr["organizer"]); + if (isset($arr["attendee"])) $attendee = addslashes($arr["attendee"]); + if (isset($arr["location"])) $location = addslashes($arr["location"]); + if (isset($arr["status"])) $status = addslashes($arr["status"]); + 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) { @@ -215,12 +198,12 @@ echo <<<END // --></script> END; - echo "<a class=\"$link_class\" href=\"#\" onclick=\"openEventWindow($popup_data_index);\">"; + echo '<a class="'.$link_class.'" href="#" onclick="openEventWindow('.$popup_data_index.');">'; $popup_data_index++; } else { - echo "<a class=\"$link_class\" href=\"{$res[1]}\">"; + echo '<a class="'.$link_class.'" href="'.$res[1].'">'; } - echo "{$pre_text}{$event_text}{$post_text}</a>\n"; + echo $pre_text.$event_text.$post_text.'</a>'."\n"; } } |