{% macro loop(page, parent_loop) %} {% import _self as self %} {% if parent_loop|length > 0 %} {% set data_level = parent_loop %} {% else %} {% set data_level = 0 %} {% endif %} {% for p in page.children.visible %} {% set parent_page = p.activeChild ? ' parent' : '' %} {% set current_page = p.active ? ' active' : '' %}
  • {% if data_level == 0 %}{{ loop.index }}. {% endif %}{{ p.menu }} {% if p.children.count > 0 %} {% endif %}
  • {% endfor %} {% endmacro %} {% macro version(p) %} {% set parent_page = p.activeChild ? ' parent' : '' %} {% set current_page = p.active ? ' active' : '' %}
    {% if p.activeChild or p.active %} {% else %} {% endif %} {{ p.menu }}
    {% endmacro %} {% import _self as macro %}
    {% if theme_config.top_level_version %} {% for slug, ver in pages.children %} {{ macro.version(ver) }} {% endfor %} {% else %} {% endif %}
    {{ 'THEME_LEARN2_CLEAR_HISTORY'|t }}
    {% include 'partials/language-selector.html.twig' %}