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)); $haslogininfo = (empty($PAGE->layout_options['nologininfo'])); $showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT)); $custommenu = $OUTPUT->custom_menu(); $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); $bodyclasses = array(); if (!$showsidepre) { $bodyclasses[] = 'content-only'; } if ($hascustommenu) { $bodyclasses[] = 'has_custom_menu'; } /************************************************************************************************/ if (!empty($PAGE->theme->settings->customlogourl)) { $logourl = $PAGE->theme->settings->customlogourl; 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->headercontent) || $PAGE->theme->settings->headercontent; /************************************************************************************************/ echo $OUTPUT->doctype() ?> htmlattributes() ?>>