MDL-55793 theme_noname: Use fixed width container
[moodle.git] / theme / noname / 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}}
20<header role="banner" class="navbar navbar-light bg-faded navbar-static-top moodle-has-zindex">
21
428de3dc 22 <div class="container">
4c9a20e8
BR
23 <button class="navbar-toggler pull-xs-right hidden-sm-up" data-toggle="collapse" data-target="#bd-main-nav" aria-expanded="false" aria-controls="bd-main-nav" type="button">☰<span class="sr-only">{{#str}}expand{{/str}}</span></button>
24
25 <a role="banner" href="{{{ config.wwwroot }}}" class="navbar-brand">
26 {{# output.should_display_navbar_logo }}
27 <div class="logo">
28 <img src="{{output.get_compact_logo_url}}" alt={{#quote}}{{sitename}}{{/quote}}>
29 </div>
30 {{/ output.should_display_navbar_logo }}
31 <div class="site-name">{{{ sitename }}}</div>
32 </a>
33
34 <!-- user_menu -->
35 {{{ output.user_menu }}}
36
37 <!-- search_box -->
38 {{{ output.search_box }}}
39
40 <div class="collapse navbar-toggleable-xs" id="bd-main-nav">
41 <nav class="nav navbar-nav">
42 <!-- custom_menu -->
43 {{{ output.custom_menu }}}
44 <!-- page_heading_menu -->
45 {{{ output.page_heading_menu }}}
46 </nav>
47 </div>
5f18da12
FM
48 </div>
49</header>
4c9a20e8 50