{% load i18n %}
{% if menuitems %}
{% spaceless %}
{% for menuitem in menuitems %}
<li data-menu-page-id="{{ menuitem.page.id }}" class="menu-{{ menuitem.page.slug }} {% if menuitem.selected %}selected{% endif %}"><a
    {% if menuitem.selected %}title="{{ menuitem.page.title }} - {% trans "active page" %}"{% endif %}
    href="{% page_absolute_url menuitem.page %}"><span>{{ menuitem.page.title }}</span></a>
  {% if depth > 1 %}
    {% show_menu current_page=menuitem.page level=-1 depth=depth reduce_depth=True ignore_visibility=ignore_visibility %}
  {% endif %}
</li>
{% endfor %}
{% endspaceless %}
{% endif %}
