From ac6b6a481c8ef1b37c6239affe3822fd03bf26cb Mon Sep 17 00:00:00 2001 From: Patrick Malley Date: Fri, 25 Jun 2010 05:40:50 +0000 Subject: [PATCH] MDL-22875 - general cleanup of layouts --- theme/canvas/layout/frontpage.php | 108 ++++++++++++++------------ theme/canvas/layout/general.php | 124 ++++++++++++++++++------------ 2 files changed, 133 insertions(+), 99 deletions(-) diff --git a/theme/canvas/layout/frontpage.php b/theme/canvas/layout/frontpage.php index 4426b4fbdf4..bf4ae45fa0a 100644 --- a/theme/canvas/layout/frontpage.php +++ b/theme/canvas/layout/frontpage.php @@ -1,5 +1,8 @@ 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); @@ -26,77 +29,82 @@ echo $OUTPUT->doctype() ?>
+ +
- + +
+ standard_end_of_body_html() ?> \ No newline at end of file diff --git a/theme/canvas/layout/general.php b/theme/canvas/layout/general.php index 495c1f71720..c5e77258db4 100644 --- a/theme/canvas/layout/general.php +++ b/theme/canvas/layout/general.php @@ -26,71 +26,97 @@ echo $OUTPUT->doctype() ?> standard_top_of_body_html() ?>
- - -
+ +
+ standard_end_of_body_html() ?> \ No newline at end of file