{% if menu %}
    <ul class="{% if subclass %}{{ subclass }}{% else %}vertical menu accordion-menu{% endif %}" {% if subclass %} {% else %}data-accordion-menu {% endif %} >
        {% for item in menu %}
            <li class="{{ item.classes | join(' ') }}">
                <a class="close-button" href="{{ item.get_link }}" {{ item.target ? 'target="_blank"' : null }} data-swup-transition="menu-link" data-close>{{ item.title }}</a>
                {% include "partials/navigation/menu.twig" with {'menu': item.get_children , 'subclass': 'child-item'} %}
            </li>
        {% endfor %}
    </ul>
{% endif %}
