Merge branch 'MDL-72250-master-3' of https://github.com/bmbrands/moodle

This commit is contained in:
Shamim Rezaie 2021-11-17 07:30:54 +11:00
commit dfe03b3036
14 changed files with 210 additions and 28 deletions

View file

@ -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),