MDL-55074 theme_boost: Navigation and blocks
[moodle.git] / theme / boost / templates / header.mustache
CommitLineData
5f18da12
FM
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 header.
19}}
99061152 20<header role="banner" class="pos-f-t navbar navbar-full navbar-light bg-faded navbar-static-top moodle-has-zindex">
5f18da12 21
99061152 22 <div class="container-fluid">
463ae176 23
99061152
DW
24 <div data-region="drawer-toggle">
25 <button aria-expanded="{{#navdraweropen}}true{{/navdraweropen}}{{^navdraweropen}}false{{/navdraweropen}}" aria-controls="nav-drawer" type="button" class="btn pull-xs-left m-r-1 btn-secondary" data-action="toggle-drawer" data-side="left" data-preference="drawer-open-nav">&#9776;<span class="sr-only">{{#str}}expand, core{{/str}}</span></button>
26 </div>
4c9a20e8 27
137c289a 28 <a role="banner" href="{{{ config.wwwroot }}}" class="navbar-brand {{# output.should_display_navbar_logo }}has-logo{{/ output.should_display_navbar_logo }}">
4c9a20e8 29 {{# output.should_display_navbar_logo }}
99061152 30 <span class="logo hidden-xs-down">
137c289a 31 <img src="{{output.get_compact_logo_url}}" alt="{{sitename}}">
99061152 32 </span>
4c9a20e8 33 {{/ output.should_display_navbar_logo }}
99061152 34 <span class="site-name hidden-sm-down">{{{ sitename }}}</span>
4c9a20e8
BR
35 </a>
36
99061152
DW
37 <div data-region="drawer-toggle">
38 <button aria-expanded="{{#blocksdraweropen}}true{{/blocksdraweropen}}{{^blocksdraweropen}}false{{/blocksdraweropen}}" aria-controls="blocks-drawer" type="button" class="pull-xs-right m-l-1 btn btn-secondary" data-side="right" data-preference="drawer-open-blocks" data-action="toggle-drawer">{{#pix}}blocksdrawer, theme_boost{{/pix}}<span class="sr-only">{{#str}}expand, core{{/str}}</span></button>
39 </div>
40
4c9a20e8
BR
41 <!-- user_menu -->
42 {{{ output.user_menu }}}
43
963ba889
RW
44 <!-- navbar_plugin_output -->
45 {{{ output.navbar_plugin_output }}}
46
4c9a20e8 47 <!-- search_box -->
99061152 48 <span class="hidden-md-down">
4c9a20e8 49 {{{ output.search_box }}}
99061152
DW
50 </span>
51
52 <nav class="nav navbar-nav hidden-md-down">
53 <!-- custom_menu -->
54 {{{ output.custom_menu }}}
55 <!-- page_heading_menu -->
56 {{{ output.page_heading_menu }}}
57 </nav>
5f18da12
FM
58 </div>
59</header>
4c9a20e8 60