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)); $bodyclasses = array(); if ($hassidepre && !$hassidepost) { $bodyclasses[] = 'side-pre-only'; } else if ($hassidepost && !$hassidepre) { $bodyclasses[] = 'side-post-only'; } else if (!$hassidepost && !$hassidepre) { $bodyclasses[] = 'content-only'; } echo $OUTPUT->doctype() ?> htmlattributes() ?>>