{% macro loop(page) %} {% for p in page.children.visible %} {% set current_page = (p.active or p.activeChild) ? 'pure-menu-selected' : '' %} {% if p.children.visible.count > 0 %}
  • {% if p.header.icon %}{% endif %} {{ p.menu }}
  • {% else %}
  • {% if p.header.icon %}{% endif %} {{ p.menu }}
  • {% endif %} {% endfor %} {% endmacro %}