heading); $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()); $hasfooter = (empty($PAGE->layout_options['nofooter'])); $hassidepost = $PAGE->blocks->region_has_content('side-post', $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 ($showsidepost) { $bodyclasses[] = 'side-post-only'; } else if (!$showsidepost) { $bodyclasses[] = 'content-only'; } echo $OUTPUT->doctype() ?> htmlattributes() ?>>