File tree Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Original file line number Diff line number Diff line change 6
6
<div class =" dropdown-menu results" style =" max-height: 800px;overflow-x: auto;" >
7
7
{% set moduleName = " " %}
8
8
{% for key , navigation in template .cp .navigation %}
9
-
10
- {% if moduleName != trans(navigation .breadcrumb ) %}
11
- <a style =" color: {{ setting_value(' visiosoft.theme.defaultadmin::primary_color' ) }}!important;"
12
- class =" dropdown-item" {{ html_attributes(navigation .attributes ) }} {{ navigation .class }}>
9
+ <a style =" color: {{ setting_value(' visiosoft.theme.defaultadmin::primary_color' ) }}!important;"
10
+ class =" dropdown-item" {{ html_attributes(navigation .attributes ) }} {{ navigation .class }}>
13
11
<span class =" title" >
14
12
{{ trans(navigation .breadcrumb ) }}
15
13
</span >
16
- </a >
17
- {% endif %}
18
-
19
- <a class =" dropdown-item" {{ html_attributes(navigation .attributes ) }} {{ navigation .class }}>
20
-
21
- <span class =" title" >
22
- - {{ trans(navigation .title ) }}
23
- <span style =" color:transparent; font-size: 14px;" > ( {{ trans(navigation .breadcrumb ) }} ) </span >
24
-
25
- </span >
26
14
</a >
27
- {% set moduleName = trans(navigation .breadcrumb ) %}
15
+
16
+ {% set sections = getSections(navigation .slug ) %}
17
+ {% for section in sections ['main' ] %}
18
+ <a class =" dropdown-item" href =" {{ section .href }}" >
19
+ <span class =" title" >
20
+ - {{ trans(section .title ) }}
21
+ <span style =" color:transparent; font-size: 14px;" > ( {{ trans(navigation .breadcrumb ) }} ) </span >
22
+ </span >
23
+ </a >
24
+ {% endfor %}
28
25
{% endfor %}
29
26
</div >
30
- </form >
27
+ </form >
You can’t perform that action at this time.
0 commit comments