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 2525 "psr-4" : {
2626 "Visiosoft\\ DefaultadminTheme\\ " : " src/"
2727 }
28+ },
29+ "require" : {
30+ "visiosoft/submenu-plugin" : " *"
2831 }
2932}
Original file line number Diff line number Diff line change 33<aside id =" menu" class =" scrollbar" >
44
55 <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 %}
934 </ul >
1035
1136</aside >
You can’t perform that action at this time.
0 commit comments