mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
Merge branch 'MDL-72250-master-3' of https://github.com/bmbrands/moodle
This commit is contained in:
commit
dfe03b3036
14 changed files with 210 additions and 28 deletions
|
@ -57,10 +57,12 @@ class primary implements renderable, templatable {
|
|||
|
||||
$menudata = (object) array_merge($this->get_primary_nav(), $this->get_custom_menu($output));
|
||||
$moremenu = new \core\navigation\output\more_menu($menudata, 'navbar-nav', false);
|
||||
$mobileprimarynav = array_merge($this->get_primary_nav(), $this->get_custom_menu($output));
|
||||
|
||||
$languagemenu = new \core\output\language_menu($this->page);
|
||||
|
||||
return [
|
||||
'mobileprimarynav' => $mobileprimarynav,
|
||||
'moremenu' => $moremenu->export_for_template($output),
|
||||
'lang' => !isloggedin() || isguestuser() ? $languagemenu->export_for_template($output) : [],
|
||||
'user' => $this->get_user_menu($output),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue