1 |
efrain |
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 |
@template theme_classic/navbar-secure
|
|
|
19 |
|
|
|
20 |
This template renders the top navbar.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"output": {
|
|
|
25 |
"should_display_navbar_logo": "true",
|
|
|
26 |
"get_compact_logo_url": "http://example.com/image.png"
|
|
|
27 |
},
|
|
|
28 |
"sitename": "Moodle Site"
|
|
|
29 |
}
|
|
|
30 |
}}
|
|
|
31 |
<nav class="fixed-top navbar navbar-bootswatch navbar-expand moodle-has-zindex">
|
|
|
32 |
<div class="container-fluid">
|
|
|
33 |
{{# output.should_display_navbar_logo }}
|
|
|
34 |
<span class="logo d-none d-sm-inline">
|
|
|
35 |
<img src="{{output.get_compact_logo_url}}" alt="{{sitename}}">
|
|
|
36 |
</span>
|
|
|
37 |
{{/ output.should_display_navbar_logo }}
|
|
|
38 |
<span class="site-name d-none d-md-inline">{{{ sitename }}}</span>
|
|
|
39 |
|
|
|
40 |
{{# output.secure_layout_language_menu }}
|
|
|
41 |
<ul class="navbar-nav d-none d-md-flex">
|
|
|
42 |
<!-- language_menu -->
|
|
|
43 |
{{{ . }}}
|
|
|
44 |
</ul>
|
|
|
45 |
{{/ output.secure_layout_language_menu }}
|
|
|
46 |
{{# output.secure_layout_login_info }}
|
|
|
47 |
<div class="ml-auto">
|
|
|
48 |
{{{ . }}}
|
|
|
49 |
</div>
|
|
|
50 |
{{/ output.secure_layout_login_info }}
|
|
|
51 |
</div>
|
|
|
52 |
</nav>
|