2012-01-18 09:55:00 +00:00
|
|
|
<?php
|
2019-05-28 17:59:38 +01:00
|
|
|
class HolidayTheme extends Themelet
|
|
|
|
{
|
|
|
|
public function display_holiday($date)
|
|
|
|
{
|
|
|
|
global $page;
|
|
|
|
if ($date) {
|
|
|
|
$csssheet = "<link rel='stylesheet' href='".get_base_href()."/contrib/holiday/stylesheets/";
|
2012-01-18 09:55:00 +00:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
// April Fools
|
|
|
|
// Flips the entire page upside down!
|
|
|
|
// TODO: Make it possible for the user to turn this off!
|
|
|
|
if (date('d/m') == '01/04') {
|
|
|
|
$csssheet .= "aprilfools.css";
|
|
|
|
}
|
2012-01-18 09:55:00 +00:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
$csssheet .= "' type='text/css'>";
|
|
|
|
$page->add_html_header("$csssheet");
|
|
|
|
}
|
|
|
|
}
|
2012-01-18 09:55:00 +00:00
|
|
|
}
|