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 @deprecated since Moodle 4.0
19 @template theme_boost/flat_navigation
21 Display the flat navigation for the boost theme
23 Classes required for JS:
26 Data attributes required for JS:
29 Context variables required for this template:
30 * flatnavigation - array of flat_navigation_nodes
31 * showdivider - boolean
34 * get_indent - integer
35 * is_section - boolean
38 Example context (json):
54 "text": "Last & Second"
59 <nav class="list-group" aria-label="{{firstcollectionlabel}}">
65 <nav class="list-group mt-1" aria-label="{{get_collectionlabel}}">
70 <a class="list-group-item list-group-item-action {{#isactive}}active{{/isactive}} {{#classes}}{{.}} {{/classes}}" href="{{{action}}}" data-key="{{key}}" data-isexpandable="{{isexpandable}}" data-indent="{{get_indent}}" data-showdivider="{{showdivider}}" data-type="{{type}}" data-nodetype="{{nodetype}}" data-collapse="{{collapse}}" data-forceopen="{{forceopen}}" data-isactive="{{isactive}}" data-hidden="{{hidden}}" data-preceedwithhr="{{preceedwithhr}}" {{#parent.key}}data-parent-key="{{.}}"{{/parent.key}}>
71 <div class="ml-{{get_indent}}">
74 <span class="media-left">
75 {{#pix}}{{{icon.pix}}}, {{{icon.component}}}, {{{icon.alt}}}{{/pix}}
78 <span class="media-body {{#isactive}}font-weight-bold{{/isactive}}">{{{text}}}</span>
86 <div class="list-group-item {{#classes}}{{.}} {{/classes}}" data-key="{{key}}" data-isexpandable="{{isexpandable}}" data-indent="{{get_indent}}" data-showdivider="{{showdivider}}" data-type="{{type}}" data-nodetype="{{nodetype}}" data-collapse="{{collapse}}" data-forceopen="{{forceopen}}" data-isactive="{{isactive}}" data-hidden="{{hidden}}" data-preceedwithhr="{{preceedwithhr}}" {{#parent.key}}data-parent-key="{{.}}"{{/parent.key}}>
87 <div class="ml-{{get_indent}}">
90 <span class="media-left">
91 {{#pix}}{{{icon.pix}}}, {{{icon.component}}}, {{{icon.alt}}}{{/pix}}
94 <span class="media-body">{{{text}}}</span>
100 {{/ flatnavigation }}