From cb7619cc43e7096807dcddff5554655d6d6aa4ff Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 21 Nov 2003 07:29:08 +0000 Subject: Updated event to be half the size of previous release. More CSS, less crappy HTML. --- includes/event.php | 121 ++++++++++++++++++----------------------------------- 1 file changed, 41 insertions(+), 80 deletions(-) (limited to 'includes/event.php') diff --git a/includes/event.php b/includes/event.php index d4e7483..059ba54 100644 --- a/includes/event.php +++ b/includes/event.php @@ -30,108 +30,69 @@ if ($start == '' && $end == '' && (isset($start) && isset($end))) { $event_times=' - (' . $all_day_lang . ')'; } -// Format optional event fields if ($description) { - $display.="\n"; - $display.='' . "\n"; - $display.=' ' . "\n"; - $display.='' . "\n"; - $display.=ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'\0',$description); - $display.='' . "\n"; - $display.='' . "\n"; + $display = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'\0',$description); + $display .= '
'; } if ($organizer) { $i=0; - $display.='' . "\n"; - $display.=' ' . "\n"; - $display.=''; - $display.=$organizer_lang . ' - '; + $display .= $organizer_lang . ' - '; foreach ($organizer as $val) { - $organizers.=$organizer[$i]["name"] . ', '; + $organizers .= $organizer[$i]["name"] . ', '; $i++; } - $display.=substr($organizers,0,-2); - $display.='' . "\n"; - $display.='' . "\n"; + $display .= substr($organizers,0,-2); + $display .= '
'; } if ($attendee) { $i=0; - $display.="\n"; - $display.='' . "\n"; - $display.=' ' . "\n"; - $display.='' . "\n"; - $display.=$attendee_lang . ' - '; + $display .= $attendee_lang . ' - '; foreach ($attendee as $val) { $attendees .= $attendee[$i]["name"] . ', '; $i++; } - $attendees=substr($attendees,0,-2); - $display.='' . "\n"; - $display.='' . "\n"; + $attendees = substr($attendees,0,-2); + $display .= '
'; } if ($status) { - $display.="\n"; - $display.='' . "\n"; - $display.=' ' . "\n"; - $display.='' . "\n"; - $display.=$status_lang . ' - ' . $status. '' . "\n"; - $display.=''; + $display .= $status_lang . ' - ' . $status. '
' . "\n"; } if ($location) { if (isset($url)) $location = ''.$location.''; - $display.="\n"; - $display.='' . "\n"; - $display.=' ' . "\n"; - $display.='' . "\n"; - $display.=$location_lang . ' - ' . $location.'' . "\n"; - $display.='' . "\n"; + $display .= $location_lang . ' - ' . $location.'
' . "\n"; } -?> - - - - - <?php echo $cal; ?> - "> - +$sheet_href = BASE.'styles/'.$style_sheet.'/default.css'; - - -
- - - - - - - - - - +echo << - - - - - -
- - - - - - + + + + + {$cal} + + + +
+


+ + + + + + +
{$cal_title_full}
+
+

{$event} {$event_times}

+ {$display} +
+
+ + + -
- - +END; - -
- - - - +?> \ No newline at end of file -- cgit v1.2.3