mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-39573-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
f000edba16
@ -25,6 +25,17 @@ $hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->regio
|
||||
$showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT));
|
||||
$showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT));
|
||||
|
||||
// If there can be a sidepost region on this page and we are editing, always
|
||||
// show it so blocks can be dragged into it.
|
||||
if ($PAGE->user_is_editing()) {
|
||||
if ($PAGE->blocks->is_known_region('side-pre')) {
|
||||
$showsidepre = true;
|
||||
}
|
||||
if ($PAGE->blocks->is_known_region('side-post')) {
|
||||
$showsidepost = true;
|
||||
}
|
||||
}
|
||||
|
||||
$custommenu = $OUTPUT->custom_menu();
|
||||
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
|
||||
|
||||
|
@ -39,6 +39,17 @@ $hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->regio
|
||||
$showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT));
|
||||
$showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT));
|
||||
|
||||
// If there can be a sidepost region on this page and we are editing, always
|
||||
// show it so blocks can be dragged into it.
|
||||
if ($PAGE->user_is_editing()) {
|
||||
if ($PAGE->blocks->is_known_region('side-pre')) {
|
||||
$showsidepre = true;
|
||||
}
|
||||
if ($PAGE->blocks->is_known_region('side-post')) {
|
||||
$showsidepost = true;
|
||||
}
|
||||
}
|
||||
|
||||
$haslogo = (!empty($PAGE->theme->settings->logo));
|
||||
|
||||
$hasfootnote = (!empty($PAGE->theme->settings->footnote));
|
||||
|
Loading…
x
Reference in New Issue
Block a user