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_monocolor/custom_menu_item
|
|
|
19 |
|
|
|
20 |
Custom menu item template
|
|
|
21 |
|
|
|
22 |
Example context (json): {}
|
|
|
23 |
}}
|
|
|
24 |
{{^divider}}
|
|
|
25 |
{{#haschildren}}
|
|
|
26 |
<div class="rui-navbar-lang dropup">
|
|
|
27 |
<button class="rui-topbar-btn rui-lang-btn" id="drop-down-{{uniqid}}" data-toggle="dropdown" aria-haspopup="true" role="button" aria-label="Languages" aria-expanded="false">
|
|
|
28 |
<svg class="ml-md-2" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
29 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5.75 19.25L5.75 13.25M5.75 13.25L5.75 5.75C5.75 5.75 8.5 3.5 12 5.75C15.5 8 18.25 5.75 18.25 5.75L18.25 13.25C18.25 13.25 15.5 15.5 12 13.25C8.5 11 5.75 13.25 5.75 13.25Z"></path>
|
|
|
30 |
</svg>
|
|
|
31 |
<span class="rui-lang-btn-text ml-2 mr-2 text-uppercase">{{currentlangname}}</span>
|
|
|
32 |
</button>
|
|
|
33 |
<div class="dropdown-menu" aria-labelledby="drop-down-{{uniqid}}">
|
|
|
34 |
{{#children}}
|
|
|
35 |
{{^divider}}
|
|
|
36 |
<a class="dropdown-item" href="{{{url}}}" {{#title}}title="{{{title}}}"{{/title}}>{{text}}</a>
|
|
|
37 |
{{/divider}}
|
|
|
38 |
{{#divider}}
|
|
|
39 |
<div class="dropdown-divider"></div>
|
|
|
40 |
{{/divider}}
|
|
|
41 |
{{/children}}
|
|
|
42 |
</div>
|
|
|
43 |
</div>
|
|
|
44 |
{{/haschildren}}
|
|
|
45 |
{{^haschildren}}
|
|
|
46 |
<a class="nav-item nav-link" href="{{{url}}}" {{#title}}title="{{{title}}}"{{/title}}>{{text}}</a>
|
|
|
47 |
{{/haschildren}}
|
|
|
48 |
{{/divider}}
|