<ul class="navbar-nav">
    {% for item in second_menu.items %}
        {% set link_classes = item.classes|join(' ') %}
        {% set active = '' %}
        {% set ariacurrent = '' %}
        {% if 'current_page_item' in link_classes %}
            {% set active = ' active' %}
            {% set ariacurrent = ' aria-current="page"' %}
        {% endif %}
        <li class="nav-item">
            <a class="btn{{ active }} {{ item.classes|join(' ') }}"{{ ariacurrent }} href="{{ item.link }}" {{ item.is_target_blank ? 'target="_blank"' }}>{{ item.title }}</a>
        </li>
    {% endfor %}
</ul>
