diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-01-26 21:30:17 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-01-26 21:30:17 +0000 |
commit | 5c5eed1390a103fecc2c57c21bbf79365cb1ee98 (patch) | |
tree | 3f5b5c2d8e9b48428c2c692e759e1970ced8e808 /includes/event.php | |
parent | 044a72589427d5fa7f5e59562300bd9c2844ce89 (diff) | |
download | phpicalendar-5c5eed1390a103fecc2c57c21bbf79365cb1ee98.tar.gz phpicalendar-5c5eed1390a103fecc2c57c21bbf79365cb1ee98.tar.bz2 phpicalendar-5c5eed1390a103fecc2c57c21bbf79365cb1ee98.zip |
More template work on event.php
Diffstat (limited to 'includes/event.php')
-rw-r--r-- | includes/event.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/event.php b/includes/event.php index 3de7a73..ec94749 100644 --- a/includes/event.php +++ b/includes/event.php @@ -26,10 +26,10 @@ $cal_title_full = $cal.' '.$calendar_lang; // Format event time if (($start) && ($end)) { - $event_times=' - <font class="V9">(<i>' . $start . ' - ' . $end . '</i>)</font>'; + $event_times = $start . ' - ' . $end; } if ($start == '' && $end == '' && (isset($start) && isset($end))) { - $event_times=' - <font class="V9">(<i>' . $all_day_lang . '</i>)</font>'; + $event_times = $all_day_lang; } if ($description) $description = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$description); @@ -56,6 +56,9 @@ if ($location) { if ($url != '') $location = '<a href="'.$url.'" target="_blank">'.$location.'</a>'; } +if (sizeof($attendee) == 0) $attendee = ''; +if (sizeof($organizer) == 0) $organizer = ''; + $page = new Page(BASE.'templates/'.$template.'/event.tpl'); $page->replace_tags(array( |