. /** * A secure layout for the ilb theme. * * @package theme_ilb * @copyright 2016 Damyon Wiese * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); $blockshtml = $OUTPUT->blocks('side-pre'); $hasblocks = strpos($blockshtml, 'data-block=') !== false; $bodyattributes = $OUTPUT->body_attributes(); $templatecontext = [ 'sitename' => format_string($SITE->shortname, true, ['context' => context_course::instance(SITEID), "escape" => false]), 'output' => $OUTPUT, 'bodyattributes' => $bodyattributes, 'sidepreblocks' => $blockshtml, 'hasblocks' => $hasblocks ]; echo $OUTPUT->render_from_template('theme_ilb/secure', $templatecontext);