15 lines
371 B
PHP
15 lines
371 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
class HolidayTheme extends Themelet
|
|
{
|
|
public function display_holiday(?string $holiday)
|
|
{
|
|
global $page;
|
|
if ($holiday) {
|
|
$page->add_html_header(
|
|
"<link rel='stylesheet' href='".get_base_href()."/contrib/holiday/stylesheets/$holiday.css' type='text/css'>"
|
|
);
|
|
}
|
|
}
|
|
}
|