Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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_universe/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="navbar navbar-expand moodle-has-zindex" aria-label="{{#str}}navigation{{/str}}">
32
 
33
            {{# output.should_display_navbar_logo }}
34
                <span class="rui-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
 
39
            {{^ output.should_display_navbar_logo }}
40
            <span class="site-name d-none d-md-inline">{{{ sitename }}}</span>
41
            {{/ output.should_display_navbar_logo }}
42
 
43
        {{# output.secure_layout_language_menu }}
44
        <ul class="navbar-nav d-none d-md-flex">
45
            <!-- language_menu -->
46
            {{{ . }}}
47
        </ul>
48
        {{/ output.secure_layout_language_menu }}
49
        {{# output.secure_layout_login_info }}
50
        <div class="ml-auto">
51
            {{{ . }}}
52
        </div>
53
        {{/ output.secure_layout_login_info }}
54
</nav>