{% load combo %}
{% if menuitems %}
<ul>
{% spaceless %}
{% for menuitem in menuitems %}
<li data-menu-page-id="{{ menuitem.page.id }}" class="menu-{{ menuitem.page.slug }} {% if menuitem.selected %}selected{% endif %}"><a
    href="{% page_absolute_url menuitem.page %}"><span>{{ menuitem.page.title }}</span></a>
  {% if depth > 1 %}
  {% with new_depth=depth|add:"1" %}
  {% show_menu current_page=menuitem.page level=-1 depth=new_depth %}
  {% endwith %}
  {% endif %}
</li>
{% endfor %}
{% endspaceless %}
</ul>
{% endif %}
