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 core/moremenu_children
19
 
20
    The More menu children
21
 
22
    Example context (json):
23
    {
24
        "divider": "",
25
        "haschildren": "",
26
        "moremenuid": "614c104dbacfa",
27
        "text": "Moodle community",
28
        "children": "",
29
        "title": "Moodle community",
30
        "url": "https://moodle.org"
31
    }
32
}}
33
{{^haschildren}}
34
    <li data-key="{{key}}" class="dropdown-item-wrapper" role="none" data-forceintomoremenu="{{#forceintomoremenu}}true{{/forceintomoremenu}}{{^forceintomoremenu}}false{{/forceintomoremenu}}">
35
        {{#istablist}}
36
            {{#is_action_link}}
37
                <a role="tab" class="dropdown-item {{#classes}}{{.}} {{/classes}}" href="{{tab}}" data-toggle="tab" data-text="{{{text}}}" data-disableactive="true" tabindex="-1">
38
                    <span class="dropdown-item-text">{{{text}}}</span>
39
                </a>
40
                {{#action_link_actions}}
41
                    {{> core/actions }}
42
                {{/action_link_actions}}
43
            {{/is_action_link}}
44
            {{^is_action_link}}
45
                <a role="tab" class="nav-link {{#isactive}}active{{/isactive}} {{#classes}}{{.}} {{/classes}}"
46
                    href="{{tab}}" data-toggle="tab" data-text="{{{text}}}"
47
                    {{#isactive}}aria-selected="true"{{/isactive}}
48
                    {{^isactive}}tabindex="-1"{{/isactive}}
49
                >
50
                    <span class="dropdown-item-text">{{{text}}}</span>
51
                </a>
52
            {{/is_action_link}}
53
        {{/istablist}}
54
        {{^istablist}}
55
            {{#is_action_link}}
56
                <a role="menuitem" class="dropdown-item {{#classes}}{{.}} {{/classes}}" {{#actionattributes}}{{name}}="{{value}}"{{/actionattributes}} href="{{{url}}}{{{action}}}" data-disableactive="true" tabindex="-1">
57
                    {{{text}}}
58
                </a>
59
                {{#action_link_actions}}
60
                    {{> core/actions }}
61
                {{/action_link_actions}}
62
            {{/is_action_link}}
63
            {{^is_action_link}}
64
                <a role="menuitem" class="dropdown-item {{#isactive}}active{{/isactive}} {{#classes}}{{.}} {{/classes}}"
65
                    href="{{{url}}}{{{action}}}"
66
                    {{#isactive}}aria-current="true"{{/isactive}}
67
                    {{^isactive}}tabindex="-1"{{/isactive}}
68
                >
69
                <span class="dropdown-item-text">{{{text}}}</span>
70
                </a>
71
            {{/is_action_link}}
72
        {{/istablist}}
73
    </li>
74
{{/haschildren}}