From df20a752716a8f2010b335e2a735b6ff79958c6b Mon Sep 17 00:00:00 2001 From: Daku Date: Wed, 18 Jan 2012 09:56:25 +0000 Subject: [PATCH] removing holiday feature from lite theme --- themes/lite/holidays/style_aprilfools.css | 21 ------------ themes/lite/layout.class.php | 39 ++--------------------- 2 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 themes/lite/holidays/style_aprilfools.css diff --git a/themes/lite/holidays/style_aprilfools.css b/themes/lite/holidays/style_aprilfools.css deleted file mode 100644 index 0f3f3080..00000000 --- a/themes/lite/holidays/style_aprilfools.css +++ /dev/null @@ -1,21 +0,0 @@ - /* - If you wish to play about with colors, the main two colors to replace are: - Main color: #CEDFF0 - Secondary color: #E3EFFA - */ - -BODY { - background: #F0F7FF; - font-family: sans-serif; - font-size: 14px; - margin: 0px; - /* It's a bit crazy but, april fools is supposed to be crazy. - This flips the entire page upside down. - TODO: Add a way for the user to disable this */ - - -webkit-transform: rotate(-180deg); /*Safari*/ - -moz-transform: rotate(-180deg); /*Firefox*/ - -o-transform: rotate(-180deg); /*Opera*/ - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); /*IE6*/ - ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; /*IE7+?*/ -} diff --git a/themes/lite/layout.class.php b/themes/lite/layout.class.php index 363f466b..44e1ec08 100644 --- a/themes/lite/layout.class.php +++ b/themes/lite/layout.class.php @@ -23,33 +23,6 @@ class Layout { foreach($page->html_headers as $line) { $header_html .= "\t\t$line\n"; } - - /* Holiday Stuff! - If the current day is one of the set holidays, it will use a seperate stylesheet. Aswell as a few extra things depending on the day. - This only adds April Fools for now. - TODO: Add setup block to make the whole holiday thing "optional". / Choose what holidays you wish to use. - */ - if(/*date('d/m') == '01/01' || date('d/m') == '14/02' || */date('d/m') == '01/04'/* || date('d/m') == '24/12' || date('d/m') == '25/12' || date('d/m') == '31/12'*/){ - - $csssheet = "$main_block_html"; } - // This is required for the holiday feature. - if(empty($csssheet)){ - $csssheet = ""; - } - if(empty($banner)){ - $holiday = ""; - } - print << @@ -195,12 +160,12 @@ class Layout { {$page->title} - $csssheet + $header_html - $banner + $menu $custom_sublinks