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. --- functions/date_functions.php | 35 ++++--------- includes/event.php | 121 +++++++++++++++---------------------------- 2 files changed, 50 insertions(+), 106 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, ''); } - 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; - echo ""; + echo ''; $popup_data_index++; } else { - echo ""; + echo ''; } - echo "{$pre_text}{$event_text}{$post_text}\n"; + echo $pre_text.$event_text.$post_text.''."\n"; } } 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