Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Fix: Administration / Naviagtion menu still appearing when flat navig…
Browse files Browse the repository at this point in the history
…ation is on because they are not in the side-pre region.
  • Loading branch information
gjb2048 committed Jan 2, 2019
1 parent e75267e commit f58e757
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ New in 3.6.0.2
==============
- FIX: Participants menu only on course and module pages.
- FIX: Style improvements to messages.
- FIX: Administration / Naviagtion menu still appearing when flat navigation is on because they are not in the side-pre region.
- NEW: Show / hide the participants menu with the 'participantsmenu' setting in the 'Header' settings.

New in 3.6.0.1
Expand Down
5 changes: 2 additions & 3 deletions classes/output/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2132,14 +2132,13 @@ public function essential_blocks($region, $classes = array(), $tag = 'aside', $b
);

$regioncontent = '';
$flatnavigation = false;
$flatnavigation = (!empty(\theme_essential\toolbox::get_setting('flatnavigation')));
$flatnavigationcontent = '';
if ((\theme_essential\toolbox::get_setting('flatnavigation')) && ($region == 'side-pre')) {
if (($flatnavigation) && ($region == 'side-pre')) {
global $PAGE;
$templatecontext = array('flatnavigation' => $PAGE->flatnav);
$flatnavigationcontent = $this->render_from_template('theme_essential/flat_navigation', $templatecontext);
$attributes['data-region'] = 'drawer';
$flatnavigation = true;
}
$editing = $this->page->user_is_editing();
if ($editing) {
Expand Down

0 comments on commit f58e757

Please sign in to comment.