From d85c0578f18324c7c0b764f2e6969908f426349f Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 26 Jan 2004 07:46:46 +0000 Subject: Template for event checkin. --- config.inc.php | 1 + functions/template.php | 3 +-- includes/event.php | 10 +++++----- templates/default/event.tpl | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.inc.php b/config.inc.php index 55502eb..b98e66f 100644 --- a/config.inc.php +++ b/config.inc.php @@ -6,6 +6,7 @@ // Follow instructions to the right for detailed information $style_sheet = 'silver'; // Themes support - silver, red, green, orange, grey, tan +$template = 'default'; $default_view = 'day'; // Default view for calendars = 'day', 'week', 'month', 'year' $minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current' $default_cal = $ALL_CALENDARS_COMBINED; // Exact filename of calendar without .ics. Or set to $ALL_CALENDARS_COMBINED to open all calenders combined into one. diff --git a/functions/template.php b/functions/template.php index a1cf2bb..1472c15 100644 --- a/functions/template.php +++ b/functions/template.php @@ -21,8 +21,7 @@ class Page { if (sizeof($tags) > 0) foreach ($tags as $tag => $data) { $data = (file_exists($data)) ? $this->parse($data) : $data; - $this->page = eregi_replace('{' . $tag . '}', $data, - $this->page); + $this->page = eregi_replace('{' . $tag . '}', $data, $this->page); } else die('No tags designated for replacement.'); diff --git a/includes/event.php b/includes/event.php index 7e3f08e..3de7a73 100644 --- a/includes/event.php +++ b/includes/event.php @@ -55,9 +55,8 @@ if ($attendee) { if ($location) { if ($url != '') $location = ''.$location.''; } -$sheet_href = BASE.'styles/'.$style_sheet.'/default.css'; -$page = new Page(BASE.'templates/default/event.tpl'); +$page = new Page(BASE.'templates/'.$template.'/event.tpl'); $page->replace_tags(array( 'cal' => $cal, @@ -73,11 +72,12 @@ $page->replace_tags(array( 'location_lang' => $location_lang, 'location' => $location, 'sheet_href' => $sheet_href, - 'cal_title_full' => $cal_title_full - + 'cal_title_full' => $cal_title_full, + 'base' => BASE, + 'template' => $template + )); $page->output(); - ?> diff --git a/templates/default/event.tpl b/templates/default/event.tpl index 102bbfb..44ed4b8 100644 --- a/templates/default/event.tpl +++ b/templates/default/event.tpl @@ -4,7 +4,7 @@ {CAL} - +
-- cgit v1.2.3