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 class="dropdown nav-item" role="none" data-forceintomoremenu="{{#forceintomoremenu}}true{{/forceintomoremenu}}{{^forceintomoremenu}}false{{/forceintomoremenu}}">
35
        <a class="dropdown-toggle nav-link {{#isactive}}active{{/isactive}} {{#classes}}{{.}} {{/classes}}" id="drop-down-{{moremenuid}}" role="menuitem" data-toggle="dropdown"
36
            aria-haspopup="true" aria-expanded="false" href="#" aria-controls="drop-down-menu-{{moremenuid}}"
37
            {{#title}}title="{{.}}"{{/title}}
38
            {{#isactive}}aria-current="true"{{/isactive}}
39
            {{^isactive}}tabindex="-1"{{/isactive}}
40
        >
41
            {{{text}}}
42
        </a>
43
        <div class="dropdown-menu" role="menu" id="drop-down-menu-{{moremenuid}}" aria-labelledby="drop-down-{{moremenuid}}">
44
            {{#children}}
45
                {{^divider}}
46
                    {{#is_action_link}}
47
                        <a class="dropdown-item" role="menuitem" {{#actionattributes}}{{name}}="{{value}}" {{/actionattributes}} href="{{{url}}}{{{action}}}"
48
                            {{#title}}title="{{.}}"{{/title}}
49
                            data-disableactive="true" tabindex="-1"
50
                        >
51
                            {{{text}}}
52
                        </a>
53
                        {{#action_link_actions}}
54
                            {{> core/actions }}
55
                        {{/action_link_actions}}
56
                    {{/is_action_link}}
57
                    {{^is_action_link}}
58
                        <a class="dropdown-item" role="menuitem" href="{{{url}}}{{{action}}}" {{#isactive}}aria-current="true"{{/isactive}} tabindex="-1"
59
                            {{#title}}title="{{.}}"{{/title}}
60
                        >
61
                            {{{text}}}
62
                        </a>
63
                    {{/is_action_link}}
64
                {{/divider}}
65
                {{#divider}}
66
                    <div class="dropdown-divider"></div>
67
                {{/divider}}
68
            {{/children}}
69
        </div>
70
    </li>
71
{{/haschildren}}
72
{{^haschildren}}
73
    <li data-key="{{key}}" class="nav-item" role="none" data-forceintomoremenu="{{#forceintomoremenu}}true{{/forceintomoremenu}}{{^forceintomoremenu}}false{{/forceintomoremenu}}">
74
        {{#istablist}}
75
            {{#is_action_link}}
76
                <a role="tab" class="nav-link {{#classes}}{{.}} {{/classes}}" href="{{tab}}" data-toggle="tab" data-text="{{{text}}}" data-disableactive="true" tabindex="-1"
77
                    {{#title}}title="{{.}}"{{/title}}
78
                >
79
                    {{{text}}}
80
                </a>
81
                {{#action_link_actions}}
82
                    {{> core/actions }}
83
                {{/action_link_actions}}
84
            {{/is_action_link}}
85
            {{^is_action_link}}
86
                <a role="tab" class="nav-link {{#isactive}}active{{/isactive}} {{#classes}}{{.}} {{/classes}}"
87
                    href="{{tab}}" data-toggle="tab" data-text="{{{text}}}"
88
                    {{#title}}title="{{.}}"{{/title}}
89
                    {{#isactive}}aria-selected="true"{{/isactive}}
90
                    {{^isactive}}tabindex="-1"{{/isactive}}
91
                >
92
                    {{{text}}}
93
                </a>
94
            {{/is_action_link}}
95
        {{/istablist}}
96
        {{^istablist}}
97
            {{#is_action_link}}
98
                <a role="menuitem" class="nav-link {{#classes}}{{.}} {{/classes}}" {{#actionattributes}}{{name}}="{{value}}" {{/actionattributes}} href="{{{url}}}{{{action}}}"
99
                    {{#title}}title="{{.}}"{{/title}}
100
                    data-disableactive="true" tabindex="-1"
101
                >
102
                    {{{text}}}
103
                </a>
104
                {{#action_link_actions}}
105
                    {{> core/actions }}
106
                {{/action_link_actions}}
107
            {{/is_action_link}}
108
            {{^is_action_link}}
109
                <a role="menuitem" class="nav-link {{#isactive}}active{{/isactive}} {{#classes}}{{.}} {{/classes}}"
110
                    href="{{{url}}}{{{action}}}"
111
                    {{#title}}title="{{.}}"{{/title}}
112
                    {{#isactive}}aria-current="true"{{/isactive}}
113
                    {{^isactive}}tabindex="-1"{{/isactive}}
114
                >
115
                    {{{text}}}
116
                </a>
117
            {{/is_action_link}}
118
        {{/istablist}}
119
    </li>
120
{{/haschildren}}