Skip to content
Browse files

added mandatory lines to formal_white report layout

  • Loading branch information...
1 parent 372a0cf commit 214381bfc11dda6619e68a7588673db7ee36c117 @kordan kordan committed Feb 3, 2012
Showing with 13 additions and 3 deletions.
  1. +13 −3 theme/formal_white/layout/report.php
View
16 theme/formal_white/layout/report.php
@@ -1,8 +1,11 @@
<?php
-$hasheading = ($PAGE->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 @@
if (!$showsidepre) {
$bodyclasses[] = 'content-only';
}
+
if ($hascustommenu) {
$bodyclasses[] = 'has_custom_menu';
}
@@ -94,11 +98,16 @@
<!-- start of moodle content -->
<div id="page-content" class="clearfix">
+
+ <!-- main mandatory content of the moodle page -->
<div id="report-main-content">
<div class="region-content">
<?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
</div>
</div>
+ <!-- end of main mandatory content of the moodle page -->
+
+ <!-- left column block - diplayed only if... -->
<?php if ($hassidepre) { ?>
<div id="report-region-wrap">
<div id="report-region-pre" class="block-region">
@@ -108,13 +117,15 @@
</div>
</div>
<?php } ?>
+ <!-- end of left column block - diplayed only if... -->
+
</div>
<!-- end of moodle content -->
<div class="clearfix"></div>
<?php if ($hasframe) { ?>
- </div> <!-- end of wrapper -->
+ </div> <!-- </wrapper> -->
</div> <!-- </frameright> -->
</div> <!-- </frameleft> -->
<div id="framebottomright">
@@ -171,7 +182,6 @@
//one more div is waiting to be closed
} ?>
-
<div class="moodledocsleft">
<?php
//echo $OUTPUT->login_info();

0 comments on commit 214381b

Please sign in to comment.
Something went wrong with that request. Please try again.