Skip to content

Commit

Permalink
added mandatory lines to formal_white report layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Kordan committed Feb 3, 2012
1 parent 372a0cf commit 214381b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions 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']));

Expand All @@ -15,6 +18,7 @@
if (!$showsidepre) {
$bodyclasses[] = 'content-only';
}

if ($hascustommenu) {
$bodyclasses[] = 'has_custom_menu';
}
Expand Down Expand Up @@ -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">
Expand All @@ -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">
Expand Down Expand Up @@ -171,7 +182,6 @@
//one more div is waiting to be closed

} ?>

<div class="moodledocsleft">
<?php
//echo $OUTPUT->login_info();
Expand Down

0 comments on commit 214381b

Please sign in to comment.