mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
WIP Issue #9 - Fixed message on all pages, need to work on UI and DB.
This commit is contained in:
14
renderer.php
14
renderer.php
@@ -29,8 +29,7 @@ if (!defined('MOODLE_INTERNAL')) {
|
||||
* @copyright Catalyst IT
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class auth_outage_renderer extends plugin_renderer_base
|
||||
{
|
||||
class auth_outage_renderer extends plugin_renderer_base {
|
||||
public function rendersubtitle($subtitlekey) {
|
||||
if (!is_string($subtitlekey)) {
|
||||
throw new \InvalidArgumentException('$subtitle is not a string.');
|
||||
@@ -124,4 +123,15 @@ class auth_outage_renderer extends plugin_renderer_base
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function renderbar($outage) {
|
||||
global $PAGE;
|
||||
|
||||
$PAGE->requires->css(new moodle_url('/auth/outage/res/outage.css'));
|
||||
|
||||
return html_writer::div(
|
||||
html_writer::tag('b', $outage->title),
|
||||
'auth_outage_warningbar'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user