From fed8bd8a84209a71224353fd37176f7f494e2f5d Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 6 Feb 2004 04:54:43 +0000 Subject: Tomorrow's events turn off when none are present. --- functions/template.php | 11 ++++++-- templates/default/sidebar.tpl | 66 +++++++++++++++++++++---------------------- 2 files changed, 41 insertions(+), 36 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('(.*)', $replace_ad, $this->page); - $this->page = ereg_replace('(.*)', $replace_e, $this->page); + $this->page = ereg_replace('(.*)', $replace_ad, $this->page); + $this->page = ereg_replace('(.*)', $replace_e, $this->page); + + } else { + + $this->page = ereg_replace('(.*)', '', $this->page); + + } } function draw_month($template_p, $offset = '+0', $type) { diff --git a/templates/default/sidebar.tpl b/templates/default/sidebar.tpl index f0d64e3..4f4f22a 100644 --- a/templates/default/sidebar.tpl +++ b/templates/default/sidebar.tpl @@ -25,16 +25,16 @@ - - - + + +
-
+
- - + +
{L_JUMP}
{L_JUMP}
@@ -62,18 +62,18 @@
- - - + + +
-
+
- - + +
{L_TOMORROWS}
{L_TOMORROWS}
@@ -90,20 +90,20 @@
- - - + + +
-
+
- - + +
{L_TODO}
{L_TODO}
@@ -137,12 +137,12 @@
- - - + + +
-
+
@@ -150,28 +150,28 @@ {MONTH_SMALL|-1} - - - + + +
-
+
{MONTH_SMALL|+0} - - - + + +
-
+
{MONTH_SMALL|+1} - - - + + +
-- cgit v1.2.3