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); $custommenu = $OUTPUT->custom_menu(); $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); $courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = ''; if (empty($PAGE->layout_options['nocourseheaderfooter'])) { $courseheader = $OUTPUT->course_header(); $coursecontentheader = $OUTPUT->course_content_header(); if (empty($PAGE->layout_options['nocoursefooter'])) { $coursecontentfooter = $OUTPUT->course_content_footer(); $coursefooter = $OUTPUT->course_footer(); } } $bodyclasses = array(); if ($hassidepre && !$hassidepost) { $bodyclasses[] = 'side-pre-only'; } else if ($hassidepost && !$hassidepre) { $bodyclasses[] = 'side-post-only'; } else if (!$hassidepost && !$hassidepre) { $bodyclasses[] = 'content-only'; } if ($hascustommenu) { $bodyclasses[] = 'has_custom_menu'; } echo $OUTPUT->doctype() ?> htmlattributes() ?>> <?php echo $PAGE->title ?> standard_head_html() ?> standard_top_of_body_html() ?>
main_content() ?>
blocks_for_region('side-pre') ?>
standard_end_of_body_html() ?>