From 214381bfc11dda6619e68a7588673db7ee36c117 Mon Sep 17 00:00:00 2001 From: Kordan Date: Fri, 3 Feb 2012 08:24:29 +0100 Subject: [PATCH] added mandatory lines to formal_white report layout --- theme/formal_white/layout/report.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/theme/formal_white/layout/report.php b/theme/formal_white/layout/report.php index 9baa35330bf..c3040a3f117 100644 --- a/theme/formal_white/layout/report.php +++ b/theme/formal_white/layout/report.php @@ -1,8 +1,11 @@ heading); +defined('MOODLE_INTERNAL') || die(); + +$hasheading = $PAGE->heading; $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()); $hasfooter = (empty($PAGE->layout_options['nofooter'])); + $hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT)); $haslogininfo = (empty($PAGE->layout_options['nologininfo'])); @@ -15,6 +18,7 @@ $bodyclasses = array(); if (!$showsidepre) { $bodyclasses[] = 'content-only'; } + if ($hascustommenu) { $bodyclasses[] = 'has_custom_menu'; } @@ -94,11 +98,16 @@ echo $OUTPUT->doctype() ?>
+ +
+ + +
@@ -108,13 +117,15 @@ echo $OUTPUT->doctype() ?>
+ +
- +
@@ -171,7 +182,6 @@ if ($hasfooter) { //one more div is waiting to be closed } ?> -
login_info(); -- 2.43.0