. /** * Renderers to align Moodle's HTML with that expected by Bootstrap * * @package theme_bootstrap * @copyright 2012 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); class theme_bootstrap_core_renderer_maintenance extends core_renderer_maintenance { public function notification($message, $classes = 'notifyproblem') { $message = clean_text($message); if ($classes == 'notifyproblem') { return html_writer::div($message, 'alert alert-danger'); } if ($classes == 'notifywarning') { return html_writer::div($message, 'alert alert-warning'); } if ($classes == 'notifysuccess') { return html_writer::div($message, 'alert alert-success'); } if ($classes == 'notifymessage') { return html_writer::div($message, 'alert alert-info'); } if ($classes == 'redirectmessage') { return html_writer::div($message, 'alert alert-block alert-info'); } return html_writer::div($message, $classes); } }