diff --git a/theme/leatherbound/layout/frontpage.php b/theme/leatherbound/layout/frontpage.php index d3880ec9e44..b492b8fe4b4 100644 --- a/theme/leatherbound/layout/frontpage.php +++ b/theme/leatherbound/layout/frontpage.php @@ -9,6 +9,8 @@ $hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT); $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) { @@ -18,7 +20,9 @@ if ($showsidepre && !$showsidepost) { } else if (!$showsidepost && !$showsidepre) { $bodyclasses[] = 'content-only'; } - +if ($hascustommenu) { + $bodyclasses[] = 'has_custom_menu'; +} echo $OUTPUT->doctype() ?> htmlattributes() ?>> @@ -50,9 +54,17 @@ echo $OUTPUT->doctype() ?> + +
+ +
+ + + +
diff --git a/theme/leatherbound/layout/general.php b/theme/leatherbound/layout/general.php index bc6c787d599..74d01c1b085 100644 --- a/theme/leatherbound/layout/general.php +++ b/theme/leatherbound/layout/general.php @@ -5,6 +5,8 @@ $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()); $hasfooter = (empty($PAGE->layout_options['nofooter'])); $hassidepre = $PAGE->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) { @@ -14,6 +16,9 @@ if ($hassidepre && !$hassidepost) { } else if (!$hassidepost && !$hassidepre) { $bodyclasses[] = 'content-only'; } +if ($hascustommenu) { + $bodyclasses[] = 'has_custom_menu'; +} echo $OUTPUT->doctype() ?> htmlattributes() ?>> @@ -42,6 +47,10 @@ echo $OUTPUT->doctype() ?>
+ + +
+
+ +
+ +