
{% import _self as menus %}
{{ menus.menu_links(info.menu['#items'], attributes, 0) }}

{% macro menu_links(items, attributes, menu_level) %}
  {% import _self as menus %}
  {% if items %}
    {% if menu_level == 0 %}
      <ul class="basket_menu">
    {% else %}
      <ul>
    {% endif %}
    {% for item in items %}
        {% if menu_level == 0 %}
            {% if item.below %}
              <li class="level_0">
                  <div class="group_title">{{ item.title }}</div>
                  {{ menus.menu_links(item.below, attributes, menu_level + 1) }}
              </li>
            {% endif %}
        {% else %}
            {% set attributes = item.attributes %}
            {% if(item.in_active_trail and menu_level == 1) %}
                {% set attributes = attributes.addClass('active-trail') %}
            {% endif %}
            <li{{ attributes }}>
            {{ link(item.title, item.url) }}
            {% if item.below %}
              {{ menus.menu_links(item.below, attributes, menu_level + 1) }}
            {% endif %}
        </li>
      {% endif %}
    {% endfor %}
    </ul>
  {% endif %}
{% endmacro %}

{% if info.logo %}
  <div class="logo_wrap">
    {{ info.logo|raw }}
  </div>
{% endif %}
