public function notification($message, $classes = 'notifyproblem') { $message = clean_text($message); if ($classes == 'notifyproblem') { return bootstrap::alert_error($message); } if ($classes == 'notifysuccess') { return bootstrap::alert_success($message); } if ($classes == 'notifymessage') { return bootstrap::alert_info($message); } if ($classes == 'notifymessage') { return bootstrap::alert_default($message); } if ($classes == 'redirectmessage') { return bootstrap::alert_block_info($message); } return bootstrap::alert_default($message); }
/** * Output the copyright notice. * @return string HTML to output. */ protected function moodle_copyright() { global $CFG; $copyrighttext = '<p><a href="http://moodle.org/">Moodle</a> ' . '<a href="http://docs.moodle.org/dev/Releases" title="' . $CFG->version . '">' . $CFG->release . '</a></p>' . '<p>Copyright © 1999 onwards, Martin Dougiamas ' . 'and <a href="http://docs.moodle.org/dev/Credits">many other contributors</a>.</p>' . '<p><a href="http://docs.moodle.org/dev/License">GNU Public License</a><p>'; return bootstrap::alert_info($copyrighttext); }