. /** * An embedded 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(); $fakeblockshtml = $OUTPUT->blocks('side-pre', array(), 'aside', true); $hasfakeblocks = strpos($fakeblockshtml, 'data-block="_fake"') !== false; $templatecontext = [ 'output' => $OUTPUT, 'hasfakeblocks' => $hasfakeblocks, 'fakeblocks' => $fakeblockshtml, ]; echo $OUTPUT->render_from_template('theme_ilb/embedded', $templatecontext);