diff --git a/theme/leatherbound/config.php b/theme/leatherbound/config.php index 0a0428d5a77..e6ce14d9835 100644 --- a/theme/leatherbound/config.php +++ b/theme/leatherbound/config.php @@ -33,19 +33,6 @@ $THEME->sheets = array( // this theme's /styles/ directory. //////////////////////////////////////////////////// -$THEME->parents_exclude_sheets = array( - 'base'=>array( - 'navigation', - 'browser', - ), -); - -//////////////////////////////////////////////////// -// An array of stylesheets not to inherit from the -// themes parents -//////////////////////////////////////////////////// - - $THEME->enable_dock = true; //////////////////////////////////////////////////// diff --git a/theme/leatherbound/layout/frontpage.php b/theme/leatherbound/layout/frontpage.php index d46c7d327d6..d3880ec9e44 100644 --- a/theme/leatherbound/layout/frontpage.php +++ b/theme/leatherbound/layout/frontpage.php @@ -3,18 +3,23 @@ $hasheading = ($PAGE->heading); $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); +$showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT)); +$showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT)); + $bodyclasses = array(); -if ($hassidepre && !$hassidepost) { +if ($showsidepre && !$showsidepost) { $bodyclasses[] = 'side-pre-only'; -} else if ($hassidepost && !$hassidepre) { +} else if ($showsidepost && !$showsidepre) { $bodyclasses[] = 'side-post-only'; -} else if (!$hassidepost && !$hassidepre) { +} else if (!$showsidepost && !$showsidepre) { $bodyclasses[] = 'content-only'; } + echo $OUTPUT->doctype() ?> htmlattributes() ?>>
@@ -61,7 +66,7 @@ echo $OUTPUT->doctype() ?> -