{% if menu %}
	<ul>
	{% for item in menu %}

		{% if item.get_children is not empty %}
			{% set submenu = true %}
		{% else %}
			{% set submenu = false %}
		{% endif %}

		<li class="{{item.classes | join(' ')}}{% if submenu %} has-dropdown{% endif %}">
			<a
				href="{{item.get_link}}"
                {% if loop.first %}class="active"{% endif %}
				{#{% if submenu %}
					class="dropdown-toggle"
					data-toggle="dropdown"
					role="button"
					aria-haspopup="true"
					aria-expanded="false"
				{% endif %}#}
			>
				{{item.title}}
				{#{% if submenu %}<span class="caret"></span>{% endif %}#}
			</a>
			{% if submenu %}
				{% include "dropdown-menu.twig" with {'menu': item.get_children} %}
			{% endif %}
		</li>
	{% endfor %}
	</ul>
{% endif %}
