diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-08-18 00:14:48 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-08-18 00:14:48 +0000 |
commit | 9f5b31c395b1af54175fb0d4afe3a1d9e931045a (patch) | |
tree | 4dd6ae5b355db8143f6e44147f062a55d1ea9a1f | |
parent | 135161f65b8633cb6ebf2554b97a07b386dfecb3 (diff) | |
download | phpicalendar-9f5b31c395b1af54175fb0d4afe3a1d9e931045a.tar.gz phpicalendar-9f5b31c395b1af54175fb0d4afe3a1d9e931045a.tar.bz2 phpicalendar-9f5b31c395b1af54175fb0d4afe3a1d9e931045a.zip |
Updated for speeds.
-rw-r--r-- | admin.php | 8 | ||||
-rw-r--r-- | month.php | 8 | ||||
-rw-r--r-- | preferences.php | 7 | ||||
-rw-r--r-- | print.php | 7 | ||||
-rw-r--r-- | rss/index.php | 7 | ||||
-rw-r--r-- | week.php | 7 | ||||
-rw-r--r-- | year.php | 7 |
7 files changed, 36 insertions, 15 deletions
@@ -43,10 +43,12 @@ $calendar_name = $lang['l_admin_header']; $page = new Page(BASE.'templates/'.$template.'/admin.tpl'); -$page->replace_tags(array( +$page->replace_files(array( 'header' => BASE.'templates/'.$template.'/header.tpl', - 'footer' => BASE.'templates/'.$template.'/footer.tpl', - 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', + 'footer' => BASE.'templates/'.$template.'/footer.tpl' + )); + +$page->replace_tags(array( 'event_js' => BASE.'functions/event.js', 'charset' => $charset, 'default_path' => '', @@ -49,10 +49,14 @@ $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); $page = new Page(BASE.'templates/'.$template.'/month.tpl'); -$page->replace_tags(array( + +$page->replace_files(array( 'header' => BASE.'templates/'.$template.'/header.tpl', 'footer' => BASE.'templates/'.$template.'/footer.tpl', - 'calendar_nav' => BASE.'templates/'.$template.'/calendar_nav.tpl', + 'sidebar' => BASE.'templates/'.$template.'/calendar_nav.tpl' + )); + +$page->replace_tags(array( 'event_js' => BASE.'functions/event.js', 'charset' => $charset, 'template' => $template, diff --git a/preferences.php b/preferences.php index 810c77d..0d8badc 100644 --- a/preferences.php +++ b/preferences.php @@ -133,9 +133,12 @@ $generated = number_format(($php_ended-$php_started),3); $page = new Page(BASE.'templates/'.$template.'/preferences.tpl'); -$page->replace_tags(array( +$page->replace_files(array( 'header' => BASE.'templates/'.$template.'/header.tpl', - 'footer' => BASE.'templates/'.$template.'/footer.tpl', + 'footer' => BASE.'templates/'.$template.'/footer.tpl' + )); + +$page->replace_tags(array( 'charset' => $charset, 'template' => $template, 'default_path' => '', @@ -38,10 +38,13 @@ if ($printview == 'day') { $page = new Page(BASE.'templates/'.$template.'/print.tpl'); -$page->replace_tags(array( +$page->replace_files(array( 'header' => BASE.'templates/'.$template.'/header.tpl', 'footer' => BASE.'templates/'.$template.'/footer.tpl', - 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', + 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl' + )); + +$page->replace_tags(array( 'event_js' => BASE.'functions/event.js', 'charset' => $charset, 'default_path' => '', diff --git a/rss/index.php b/rss/index.php index e16bb1b..b8649a1 100644 --- a/rss/index.php +++ b/rss/index.php @@ -27,9 +27,12 @@ foreach ($filelist as $file) { $page = new Page(BASE.'templates/'.$template.'/rss_index.tpl'); -$page->replace_tags(array( +$page->replace_files(array( 'header' => BASE.'templates/'.$template.'/header.tpl', - 'footer' => BASE.'templates/'.$template.'/footer.tpl', + 'footer' => BASE.'templates/'.$template.'/footer.tpl' + )); + +$page->replace_tags(array( 'event_js' => BASE.'functions/event.js', 'default_path' => $default_path.'/', 'template' => $template, @@ -45,10 +45,13 @@ $logout_querys = logout_querys(); $page = new Page(BASE.'templates/'.$template.'/week.tpl'); -$page->replace_tags(array( +$page->replace_files(array( 'header' => BASE.'templates/'.$template.'/header.tpl', 'footer' => BASE.'templates/'.$template.'/footer.tpl', - 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl', + 'sidebar' => BASE.'templates/'.$template.'/sidebar.tpl' + )); + +$page->replace_tags(array( 'event_js' => BASE.'functions/event.js', 'charset' => $charset, 'default_path' => '', @@ -17,9 +17,12 @@ $prev_year = date ("Ymd", $prev_year); $page = new Page(BASE.'templates/'.$template.'/year.tpl'); -$page->replace_tags(array( +$page->replace_files(array( 'header' => BASE.'templates/'.$template.'/header.tpl', - 'footer' => BASE.'templates/'.$template.'/footer.tpl', + 'footer' => BASE.'templates/'.$template.'/footer.tpl' + )); + +$page->replace_tags(array( 'template' => $template, 'charset' => $charset, 'default_path' => '', |