{% extends '/views/parts/logic/block-settings.twig' %}
{% block blocksettings  %}
    <header class="global-header header header-standard">
        {% block contactnavbar %}
            {% if contact_menu.items is not empty %}
                <nav class="navbar navbar-expand-lg {{ inner_classes }} {{ theme_settings.container }}">
                    <div class="container-fluid">
                        <div class="details-contact justify-content-center">
                            <span class="contact-phone">Contact: <a title="Contact Telephone Number" href="tel:{{ site_settings["Company Details"]["Phone number"] }}">{{ site_settings["Company Details"]["Phone number"] }}</a> </span> <span class="divider">|</span> <span class="contact-email"><a title="Contact Email Address" href="mailto:{{ site_settings["Company Details"]["Primary Email"] }}">{{ site_settings["Company Details"]["Primary Email"] }}</a></span>
                        </div>
                        <div class="menu-contact justify-content-end">
                            {% set given_menu = contact_menu %}
                            {{ include('/parts/menu.twig') }}
                        </div>
                    </div>
                </nav>
            {% endif %}
        {% endblock %}
        {% block mainnavbar %}
            <nav class="navbar navbar-expand-lg {{ inner_classes }} {{ theme_settings.container }}">
                <div class="container-fluid">
                    {% block logo %}
                        {% if logo %}
                            {% set image = logo %}
                            <a class="navbar-brand" href="/">
                                {{ include('/parts/image.twig') }}
                            </a>
                        {% endif %}
                    {% endblock %}
                    {% block menu %}
                        <div class="collapse navbar-collapse menu-standard justify-content-center" id="navbarSupportedContent">
                            {% set given_menu = menu %}
                            {{ include('/parts/menu.twig') }}
                        </div>
                        {% block secondmenu %}
                            {% if second_menu.items is not empty %}
                                {% set given_menu = second_menu %}
                                <div class="menu-second justify-content-end">
                                    {{ include('/parts/second-menu.twig') }}
                                </div>
                            {% endif %}
                        {% endblock %}
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                    {% endblock %}
                </div>
            </nav>
        {% endblock %}
    </header>
{% endblock %}