mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
theme MDL-22187 upgrade settings page no longer shows blocks
This commit is contained in:
parent
b6a56aeae0
commit
931697773c
@ -137,7 +137,7 @@ $THEME->layouts = array(
|
||||
'maintenance' => array(
|
||||
'file' => 'general.php',
|
||||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true, 'nonavbar'=>true),
|
||||
'options' => array('noblocks'=>true, 'nofooter'=>true, 'nonavbar'=>true),
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
$hasheading = ($PAGE->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);
|
||||
$hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT));
|
||||
$hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-post', $OUTPUT));
|
||||
|
||||
$bodyclasses = array();
|
||||
if ($hassidepre && !$hassidepost) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user