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 dropdown">
|
|
|
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" title="{{currentlangname}}" data-toggle="tooltip">
|
|
|
28 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor"><g><g data-name="flag"><polyline points="24 24 0 24 0 0" opacity="0"/><path d="M19.27 4.68a1.79 1.79 0 0 0-1.6-.25 7.53 7.53 0 0 1-2.17.28 8.54 8.54 0 0 1-3.13-.78A10.15 10.15 0 0 0 8.5 3c-2.89 0-4 1-4.2 1.14a1 1 0 0 0-.3.72V20a1 1 0 0 0 2 0v-4.3a6.28 6.28 0 0 1 2.5-.41 8.54 8.54 0 0 1 3.13.78 10.15 10.15 0 0 0 3.87.93 7.66 7.66 0 0 0 3.5-.7 1.74 1.74 0 0 0 1-1.55V6.11a1.77 1.77 0 0 0-.73-1.43zM18 14.59a6.32 6.32 0 0 1-2.5.41 8.36 8.36 0 0 1-3.13-.79 10.34 10.34 0 0 0-3.87-.92 9.51 9.51 0 0 0-2.5.29V5.42A6.13 6.13 0 0 1 8.5 5a8.36 8.36 0 0 1 3.13.79 10.34 10.34 0 0 0 3.87.92 9.41 9.41 0 0 0 2.5-.3z"/></g></g></svg>
|
|
|
29 |
</button>
|
|
|
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 |
</div>
|
|
|
41 |
{{/haschildren}}
|
|
|
42 |
{{^haschildren}}
|
|
|
43 |
<a class="nav-item nav-link" href="{{{url}}}" {{#title}}title="{{{title}}}"{{/title}}>{{text}}</a>
|
|
|
44 |
{{/haschildren}}
|
|
|
45 |
{{/divider}}
|