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/custom_menu_item
19
 
20
    Custom menu item template
21
 
22
    Example context (json): {}
23
}}
24
{{^divider}}
25
{{#haschildren}}
26
<li class="dropdown nav-item">
27
    <a class="dropdown-toggle nav-link" id="drop-down-{{uniqid}}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="#">
28
        {{text}}
29
    </a>
30
    <div class="dropdown-menu" aria-labelledby="drop-down-{{uniqid}}">
31
        {{#children}}
32
            {{^divider}}
33
                <a class="dropdown-item" href="{{{url}}}" {{#title}}title="{{{title}}}"{{/title}}>{{text}}</a>
34
            {{/divider}}
35
            {{#divider}}
36
                <div class="dropdown-divider"></div>
37
            {{/divider}}
38
        {{/children}}
39
    </div>
40
</li>
41
{{/haschildren}}
42
{{^haschildren}}
43
<li class="nav-item"><a class="nav-link" href="{{{url}}}" {{#title}}title="{{{title}}}"{{/title}}>{{text}}</a></li>
44
{{/haschildren}}
45
{{/divider}}