2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template core/moremenu_children
20 The More menu children
22 Example context (json):
26 "moremenuid": "614c104dbacfa",
27 "text": "Moodle community",
29 "title": "Moodle community",
30 "url": "https://moodle.org"
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}}
43 <div class="dropdown-menu" role="menu" id="drop-down-menu-{{moremenuid}}" aria-labelledby="drop-down-{{moremenuid}}">
47 <a class="dropdown-item" role="menuitem" {{#actionattributes}}{{name}}="{{value}}" {{/actionattributes}} href="{{{url}}}{{{action}}}"
48 {{#title}}title="{{.}}"{{/title}}
49 data-disableactive="true" tabindex="-1"
53 {{#action_link_actions}}
55 {{/action_link_actions}}
58 <a class="dropdown-item" role="menuitem" href="{{{url}}}{{{action}}}" {{#isactive}}aria-current="true"{{/isactive}} tabindex="-1"
59 {{#title}}title="{{.}}"{{/title}}
66 <div class="dropdown-divider"></div>
73 <li data-key="{{key}}" class="nav-item" role="none" data-forceintomoremenu="{{#forceintomoremenu}}true{{/forceintomoremenu}}{{^forceintomoremenu}}false{{/forceintomoremenu}}">
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}}
81 {{#action_link_actions}}
83 {{/action_link_actions}}
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}}
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"
104 {{#action_link_actions}}
106 {{/action_link_actions}}
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}}