make a big 'downtime mode is on' notice
git-svn-id: file:///home/shish/svn/shimmie2/trunk@5 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
7fdd4d787e
commit
f219e199e9
1 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,14 @@ class Downtime extends Extension {
|
|||
$event->config->set_bool("downtime", $_POST['downtime']);
|
||||
$event->config->set_string("downtime_message", $_POST['downtime_message']);
|
||||
}
|
||||
if(is_a($event, 'PageRequestEvent')) {
|
||||
global $config;
|
||||
if($config->get_bool("downtime")) {
|
||||
global $page;
|
||||
|
||||
$page->add_side_block(new Block("Downtime", "<span style='font-size: 1.5em'><b>DOWNTIME MODE IS ON!</b></span>"), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
// do things {{{
|
||||
|
|
Reference in a new issue