mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
blocks MDL-19902: were seeing empty block columns on the front page when not logged in.
It turns out the only reliable way to find out whether blocks will appear is to get the contents. :-(
This commit is contained in:
parent
78d27a9049
commit
fb3611a567
@ -29,7 +29,7 @@
|
||||
a multi-column cross-browser layout too, so this is a temporary hack. -->
|
||||
<table id="layout-table" summary="layout">
|
||||
<tr>
|
||||
<?php if ($PAGE->blocks->region_has_content('side-pre')) { ?>
|
||||
<?php if ($PAGE->blocks->region_has_content('side-pre', $OUTPUT)) { ?>
|
||||
<td id="region-side-pre" class="block-region">
|
||||
<?php echo $OUTPUT->blocks_for_region('side-pre') ?>
|
||||
</td>
|
||||
@ -37,7 +37,7 @@
|
||||
<td id="content">
|
||||
[MAIN CONTENT GOES HERE]
|
||||
</td>
|
||||
<?php if ($PAGE->blocks->region_has_content('side-post')) { ?>
|
||||
<?php if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) { ?>
|
||||
<td id="region-side-post" class="block-region">
|
||||
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
|
||||
</td>
|
||||
|
@ -32,7 +32,7 @@
|
||||
a multi-column cross-browser layout too, so this is a temporary hack. -->
|
||||
<table id="layout-table" summary="layout">
|
||||
<tr>
|
||||
<?php if ($PAGE->blocks->region_has_content('side-pre')) { ?>
|
||||
<?php if ($PAGE->blocks->region_has_content('side-pre', $OUTPUT)) { ?>
|
||||
<td id="region-side-pre" class="block-region">
|
||||
<?php echo $OUTPUT->blocks_for_region('side-pre') ?>
|
||||
</td>
|
||||
@ -40,7 +40,7 @@
|
||||
<td id="content">
|
||||
[MAIN CONTENT GOES HERE]
|
||||
</td>
|
||||
<?php if ($PAGE->blocks->region_has_content('side-post')) { ?>
|
||||
<?php if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) { ?>
|
||||
<td id="region-side-post" class="block-region">
|
||||
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user