{% macro nav_loop(page) %} {% import _self as macros %} {% for p in page.children.visible %} {% set current_page = (p.active or p.activeChild) ? 'active' : '' %} {% if p.children.visible.count > 0 %}
  • {% if p.routable == false %} {% if p.header.icon %}{% endif %} {{ p.menu }} {% elseif p.routable != false and p.children.count > 0 %} {% if p.header.icon %}{% endif %} {{ p.menu }} {% else %} {% if p.header.icon %}{% endif %} {{ p.menu }} {% endif %}
  • {% else %}
  • {% if p.header.icon %}{% endif %} {{ p.menu }}
  • {% endif %} {% endfor %} {% endmacro %}