/** * Initialises the renderer instance. * * @param moodle_page $page * @param string $target * @throws coding_exception */ public function __construct(moodle_page $page, $target) { if ($target !== RENDERER_TARGET_MAINTENANCE || $page->pagelayout !== 'maintenance') { throw new coding_exception('Invalid request for the maintenance renderer.'); } parent::__construct($page, $target); }
/** * Get the compact logo URL. * * @return string */ public function get_compact_logo_url($maxwidth = 100, $maxheight = 100) { return parent::get_compact_logo_url(null, 35); }