aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-01-26 07:46:46 +0000
committerChad Little <clittle@users.sourceforge.net>2004-01-26 07:46:46 +0000
commitd85c0578f18324c7c0b764f2e6969908f426349f (patch)
tree7230fa2de1f82db4d4ebc973ac3cfdc4b81e521f
parent97490a16baeab752422569259366b309163cb6e5 (diff)
downloadphpicalendar-d85c0578f18324c7c0b764f2e6969908f426349f.tar.gz
phpicalendar-d85c0578f18324c7c0b764f2e6969908f426349f.tar.bz2
phpicalendar-d85c0578f18324c7c0b764f2e6969908f426349f.zip
Template for event checkin.
-rw-r--r--config.inc.php1
-rw-r--r--functions/template.php3
-rw-r--r--includes/event.php10
-rw-r--r--templates/default/event.tpl2
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 = '<a href="'.$url.'" target="_blank">'.$location.'</a>';
}
-$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 @@
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title>{CAL}</title>
- <link rel="stylesheet" type="text/css" href="{SHEET_HREF}">
+ <link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
</head>
<body>
<center>

© 2014-2024 Faster IT GmbH | imprint | privacy policy