1- <ul class =" {{ ulClass }}" id =" {{ ulId }}" >
1+ {% set extraAttributes = ' ' %}
2+ {% if page is defined %}
3+ <ul class =" sidebar-menu scrollable pos-r" >
4+ {% endif %}
25 {% for page in container %}
3-
46 {% if navigation.isAllowed (page ) %}
5-
6- {% set liClass = ' ' %}
7- {% set extraAttributes = ' ' %}
8- {% if navigation.isActive (page ) %}
9- {% set liClass = ' active' %}
10- {% endif %}
11-
127 {% if page.hasChildren () %}
13- {% set liClass = liClass ~ ' parent' %}
14- {% endif %}
15-
16- {% if page.getOption (' type' ) and page.getOption (' type' ) == ' separator' %}
17- <li role =" presentation" class =" divider" ></li >
8+ <li class =" nav-item dropdown nav-group {% if loop .first %} mT-30 {% endif %} {% if isRoute(page.getOption (' uri' )) %} open {% endif %}" >
9+ <a class =" dropdown-toggle cur-p" {% autoescape false %}{{ pageAttributes(page ) ~ extraAttributes }}{% endautoescape %}>
10+ <span class =" icon-holder" >
11+ <i class =" {{ page.getOption (' icon' ) }}" ></i >
12+ </span >
13+ <span class =" title" >{{ page.getOption (' label' ) }}</span >
14+ <span class =" arrow" >
15+ <i class =" ti-angle-right" ></i >
16+ </span >
17+ </a >
18+
19+ <ul class =" dropdown-menu" >
20+ {{ navigationPartial(page , ' partial::menu' ) }}
21+ </ul >
22+ </li >
1823 {% else %}
19- <li class =" {{ liClass }}" >
20-
21- {% if page.hasChildren () %}
22- {% if depth == 0 %}
23- <div class =" submenu master-tooltip clearfix" data-bs-toggle =" collapse" href =" #sub-item-{{ loop .index }}" title =" {{ page.getOption (' label' ) }}" >
24- <i class =" {{ page.getOption (' icon' ) }} master-tooltip" title =" {{ page.getOption (' label' ) }}" ></i >
25- <div class =" item-label master-tooltip" title =" {{ page.getOption (' label' ) }}" >{{ page.getOption (' label' ) }}</div >
26- <i class =" fa fa-chevron-circle-down pull-right" ></i >
27- </div >
28- {% else %}
29- <i class =" {{ page.getOption (' icon' ) }} master-tooltip" title =" {{ page.getOption (' label' ) }}" ></i >
30- {{ page.getOption (' label' ) }}
31- {% endif %}
32- {% else %}
33- {% if depth == 0 %}
34- <a class =" master-tooltip clearfix" href =" {{ navigation.getHref (page ) }}" {% autoescape false %}{{ pageAttributes(page ) ~ extraAttributes }}{% endautoescape %} title =" {{ page.getOption (' label' ) }}" >
35- <i class =" {{ page.getOption (' icon' ) }} master-tooltip" title =" {{ page.getOption (' label' ) }}" ></i >
36- <div class =" item-label" >{{ page.getOption (' label' ) }}</div >
37- </a >
38- {% else %}
39- <a class =" clearfix" href =" {{ navigation.getHref (page ) }}" {% autoescape false %}{{ pageAttributes(page ) ~ extraAttributes }}{% endautoescape %} >
24+ {% if page.hasParent () %}
25+ <li class =" nav-item dropdown" >
26+ <a href =" {{ navigation.getHref (page ) }}" class =" {% if isRoute(page.getOption (' uri' )) %} text-primary fw-medium current-route {% endif %} {% autoescape false %}{{ pageAttributes(page ) ~ extraAttributes }}{% endautoescape %}" >
27+ <span >{{ page.getOption (' label' ) }}</span >
28+ </a >
29+ </li >
30+ {% else %}
31+ <li class =" nav-item {% if loop .first %} mT-30 {% endif %}" >
32+ <a class =" sidebar-link {% if isRoute(page.getOption (' uri' )) %} text-primary fw-medium current-route {% endif %}" href =" {{ navigation.getHref (page ) }}" {% autoescape false %}{{ pageAttributes(page ) ~ extraAttributes }}{% endautoescape %}>
33+ <span class =" icon-holder" >
4034 <i class =" {{ page.getOption (' icon' ) }}" ></i >
41- {{ page.getOption (' label' ) }}
42- </a >
43- {% endif %}
44- {% endif %}
45-
46- {% if page.hasChildren () %}
47- {% set subitemUlClass = ' children collapse' %}
48- {% if navigation.isActive (page ) %}
49- {% set subitemUlClass = subitemUlClass ~ ' in' %}
50- {% endif %}
51-
52- {% set ulId = ' sub-item-' ~ loop .index %}
53- {{ navigationPartial(page , ' partial::menu' , {ulClass : subitemUlClass , ulId : ulId , depth : depth + 1 }) }}
54-
55- {% endif %}
56-
57- </li >
35+ </span >
36+ <span class =" title" >{{ page.getOption (' label' ) }}</span >
37+ </a >
38+ </li >
39+ {% endif %}
5840 {% endif %}
59-
6041 {% endif %}
61-
6242 {% endfor %}
43+ {% if page is defined %}
6344</ul >
45+ {% endif %}
0 commit comments