blocks->region_has_content('side-pre', $OUTPUT)) { $regionsinfo .= '-pre'; } if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) { $regionsinfo .= '-post'; } echo $OUTPUT->doctype() ?> htmlattributes() ?>>