heading); $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()); $hasfooter = (empty($PAGE->layout_options['nofooter'])); $hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT)); $hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-post', $OUTPUT)); $haslogininfo = (empty($PAGE->layout_options['nologininfo'])); $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 ($hassidepre || $hassidepost) { $bodyclasses[] = 'background'; } if (!empty($PAGE->theme->settings->logo)) { $logourl = $PAGE->theme->settings->logo; } else { $logourl = NULL; } if (!empty($PAGE->theme->settings->footnote)) { $footnote = $PAGE->theme->settings->footnote; } else { $footnote = ''; } echo $OUTPUT->doctype() ?> htmlattributes() ?>>