. /** * A three column layout for the boost theme. * * @package theme_boost * @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, array('context' => context_course::instance(SITEID))), 'output' => $OUTPUT, 'bodyattributes' => $bodyattributes, 'sidepreblocks' => $blockshtml, 'hasblocks' => $hasblocks ]; echo $OUTPUT->render_from_template('theme_boost/secure', $templatecontext);