Merge branch 'MDL-62145-master' of git://github.com/damyon/moodle
[moodle.git] / theme / boost / templates / navbar.mustache
CommitLineData
3ec69c2e
BB
1{{!
2 This file is part of Moodle - http://moodle.org/
3
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16}}
17{{!
18 Page navbar.
19}}
805f078b 20<nav class="fixed-top navbar navbar-light bg-white navbar-expand moodle-has-zindex" aria-label="{{#str}}sitemenubar, admin{{/str}}">
3ec69c2e
BB
21
22 <div data-region="drawer-toggle" class="d-inline-block mr-3">
23 <button aria-expanded="{{#navdraweropen}}true{{/navdraweropen}}{{^navdraweropen}}false{{/navdraweropen}}" aria-controls="nav-drawer" type="button" class="btn nav-link float-sm-left mr-1 btn-secondary" data-action="toggle-drawer" data-side="left" data-preference="drawer-open-nav">{{#pix}}i/menubars{{/pix}}<span class="sr-only">{{#str}}sidepanel, core{{/str}}</span></button>
24 </div>
25
26 <a href="{{{ config.wwwroot }}}" class="navbar-brand {{# output.should_display_navbar_logo }}has-logo{{/ output.should_display_navbar_logo }}
27 {{^ output.should_display_navbar_logo }}
28 d-none d-sm-inline
29 {{/ output.should_display_navbar_logo }}
30 ">
31 {{# output.should_display_navbar_logo }}
32 <span class="logo d-none d-sm-inline">
33 <img src="{{output.get_compact_logo_url}}" alt="{{sitename}}">
34 </span>
35 {{/ output.should_display_navbar_logo }}
36 <span class="site-name d-none d-md-inline">{{{ sitename }}}</span>
37 </a>
38
39 <ul class="navbar-nav d-none d-md-flex">
40 <!-- custom_menu -->
41 {{{ output.custom_menu }}}
42 <!-- page_heading_menu -->
43 {{{ output.page_heading_menu }}}
44 </ul>
45 <ul class="nav navbar-nav ml-auto">
46 <div class="d-none d-lg-block">
47 {{{ output.search_box }}}
48 </div>
49 <!-- navbar_plugin_output -->
50 <li class="nav-item">
51 {{{ output.navbar_plugin_output }}}
52 </li>
53 <!-- user_menu -->
f5779bb1 54 <li class="nav-item d-flex align-items-center">
3ec69c2e
BB
55 {{{ output.user_menu }}}
56 </li>
57 </ul>
58 <!-- search_box -->
59</nav>
60