heading; $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()); $hasfooter = (empty($PAGE->layout_options['nofooter'])); $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT); $hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT); $showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT); $showsidepost = $hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT); $custommenu = $OUTPUT->custom_menu(); $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); $bodyclasses = array(); if ($showsidepre && !$showsidepost) { $bodyclasses[] = 'side-pre-only'; } else if ($showsidepost && !$showsidepre) { $bodyclasses[] = 'side-post-only'; } else if (!$showsidepost && !$showsidepre) { $bodyclasses[] = 'content-only'; } if ($hascustommenu) { $bodyclasses[] = 'has_custom_menu'; } /************************************************************************************************/ if (!empty($PAGE->theme->settings->logo)) { $logourl = $PAGE->theme->settings->logo; if (strtolower(substr($logourl, 0, 4)) != 'http') { $logourl = $CFG->wwwroot.'/'.$logourl; } } else { $logourl = $OUTPUT->pix_url('logo_small', 'theme'); } $hasframe = !isset($PAGE->theme->settings->noframe) || !$PAGE->theme->settings->noframe; $displaylogo = !isset($PAGE->theme->settings->displaylogo) || $PAGE->theme->settings->displaylogo; /************************************************************************************************/ echo $OUTPUT->doctype() ?> htmlattributes() ?>> <?php echo $PAGE->title ?> standard_head_html() ?> standard_top_of_body_html(); if ($hasframe) { ?>
 
main_content() ?>
blocks_for_region('side-pre') ?>
blocks_for_region('side-post') ?>