diff --git a/ext/downtime.ext.php b/ext/downtime.ext.php index 6a4edaea..fd707005 100644 --- a/ext/downtime.ext.php +++ b/ext/downtime.ext.php @@ -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", "DOWNTIME MODE IS ON!"), 0); + } + } } // }}} // do things {{{