{% macro title(item) %}
{{ item.title | trans(item.translationParameters, item.translationDomain) }}
{% endmacro %}
{% macro node(item) %}
{% if item.items | length %}
<li class="{% if item.active %}active open{% endif %}">
<a href="#" onclick="return false;">
{% if item.icon %}<i class="icon-{{ item.icon }}"></i>{% endif %}
<span class="title">{{ _self.title(item) }}</span>
<span class="arrow {% if item.active %}open{% endif %}"></span>
{% if item.active %}<span class="selected"></span>{% endif %}
</a>
<ul class="sub-menu">
{% for child in item.items %}
{{ _self.node(child) }}
{% endfor %}
</ul>
</li>
{% else %}
<li class="{% if item.active %}active{% endif %}">
<a href="{{ item.url }}">{{ _self.title(item) }}</a>
</li>
{% endif %}
{% endmacro %}
<div class="page-sidebar-wrapper">
<div class="page-sidebar navbar-collapse collapse">
<ul class="page-sidebar-menu"
data-keep-expanded="false"
data-auto-scroll="false"
data-slide-speed="200">
<li class="sidebar-toggler-wrapper"></li>
{% for item in sidebar %}
{{ _self.node(item) }}
{% endfor %}
</ul>
</div>
</div>