File tree Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Original file line number Diff line number Diff line change 25
25
"psr-4" : {
26
26
"Visiosoft\\ DefaultadminTheme\\ " : " src/"
27
27
}
28
+ },
29
+ "require" : {
30
+ "visiosoft/submenu-plugin" : " *"
28
31
}
29
32
}
Original file line number Diff line number Diff line change 3
3
<aside id =" menu" class =" scrollbar" >
4
4
5
5
<ul >
6
- {% for section in template .cp .sections .root ().visible() %}
7
- {{ menu.sections (template .cp .sections , section ) }}
8
- {% endfor %}
6
+ {% if not template .module .parent %}
7
+ {% for section in template .cp .sections .root ().visible() %}
8
+ {{ menu.sections (template .cp .sections , section ) }}
9
+ {% endfor %}
10
+
11
+ {% for navigation in getSubmenus(template .module .namespace ) %}
12
+ <li >
13
+ <a href =" {{ url(navigation .href ) }}" >
14
+ {{ trans(navigation .title ) }}
15
+ </a >
16
+ </li >
17
+ {% endfor %}
18
+ {% else %}
19
+ {% for navigation in getSections(template .module .parent ) %}
20
+ <li >
21
+ <a href =" {{ url(navigation .href ) }}" >
22
+ {{ trans(navigation .title ) }}
23
+ </a >
24
+ </li >
25
+ {% endfor %}
26
+ {% for navigation in getSections(template .module .namespace ) %}
27
+ <li >
28
+ <a href =" {{ url(navigation .href ) }}" >
29
+ {{ trans(navigation .title ) }}
30
+ </a >
31
+ </li >
32
+ {% endfor %}
33
+ {% endif %}
9
34
</ul >
10
35
11
36
</aside >
You can’t perform that action at this time.
0 commit comments