WIP Issue #9 - Fixed message on all pages, need to work on UI and DB.

This commit is contained in:
Daniel Thee Roperto
2016-09-05 19:50:26 +10:00
parent 98de8a6c69
commit aca6a0122e
6 changed files with 69 additions and 5 deletions

View File

@@ -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'
);
}
}