MDL-55802 theme_noname: Navbar is responsive and better styled
[moodle.git] / theme / noname / templates / header.mustache
1 {{!
2     This file is part of Moodle - http://moodle.org/
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.
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.
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">
22     <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     <a href="{{{ config.wwwroot }}}" class="navbar-brand">
25         {{# output.should_display_navbar_logo }}
26             <div class="logo">
27                 <img src="{{output.get_compact_logo_url}}" alt={{#quote}}{{sitename}}{{/quote}}>
28             </div>
29         {{/ output.should_display_navbar_logo }}
30         <div class="site-name">{{{ sitename }}}</div>
31     </a>
33     <!-- user_menu -->
34     {{{ output.user_menu }}}
36     <!-- search_box -->
37     {{{ output.search_box }}}
39     <div class="collapse navbar-toggleable-xs" id="bd-main-nav">
40         <nav class="nav navbar-nav">
41             <!-- custom_menu -->
42             {{{ output.custom_menu }}}
43             <!-- page_heading_menu -->
44             {{{ output.page_heading_menu }}}
45         </nav>
46     </div>
47 </header>