aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-02-06 04:54:43 +0000
committerChad Little <clittle@users.sourceforge.net>2004-02-06 04:54:43 +0000
commitfed8bd8a84209a71224353fd37176f7f494e2f5d (patch)
treee98724cdc0a83234ec147b2c165ee8911f8384a5 /functions
parent014332905f5f2266ecdbeedbf3b12d16091d753c (diff)
downloadphpicalendar-fed8bd8a84209a71224353fd37176f7f494e2f5d.tar.gz
phpicalendar-fed8bd8a84209a71224353fd37176f7f494e2f5d.tar.bz2
phpicalendar-fed8bd8a84209a71224353fd37176f7f494e2f5d.zip
Tomorrow's events turn off when none are present.
Diffstat (limited to 'functions')
-rw-r--r--functions/template.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/functions/template.php b/functions/template.php
index ab0c742..6781efc 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -79,10 +79,15 @@ class Page {
}
}
}
- }
- $this->page = ereg_replace('<!-- switch t_allday on -->(.*)<!-- switch t_allday off -->', $replace_ad, $this->page);
- $this->page = ereg_replace('<!-- switch t_event on -->(.*)<!-- switch t_event off -->', $replace_e, $this->page);
+ $this->page = ereg_replace('<!-- switch t_allday on -->(.*)<!-- switch t_allday off -->', $replace_ad, $this->page);
+ $this->page = ereg_replace('<!-- switch t_event on -->(.*)<!-- switch t_event off -->', $replace_e, $this->page);
+
+ } else {
+
+ $this->page = ereg_replace('<!-- switch tomorrows_events on -->(.*)<!-- switch tomorrows_events off -->', '', $this->page);
+
+ }
}
function draw_month($template_p, $offset = '+0', $type) {

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