From 5c5eed1390a103fecc2c57c21bbf79365cb1ee98 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 26 Jan 2004 21:30:17 +0000 Subject: More template work on event.php --- includes/event.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'includes/event.php') 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=' - (' . $start . ' - ' . $end . ')'; + $event_times = $start . ' - ' . $end; } if ($start == '' && $end == '' && (isset($start) && isset($end))) { - $event_times=' - (' . $all_day_lang . ')'; + $event_times = $all_day_lang; } if ($description) $description = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'\0',$description); @@ -56,6 +56,9 @@ if ($location) { if ($url != '') $location = ''.$location.''; } +if (sizeof($attendee) == 0) $attendee = ''; +if (sizeof($organizer) == 0) $organizer = ''; + $page = new Page(BASE.'templates/'.$template.'/event.tpl'); $page->replace_tags(array( -- cgit v1.2.3