<div class="flyoutWrap {% if disable_flyout_footer is not empty %}--disable-flyoutFooter{% endif %}">

    <div class="flyoutWrap__header">

        <div class="flyoutWrap__header__top">

            <h2 class="flyoutWrap__header__title">Menu</h2>

            <button type="button" class="js_flyoutToggleButton flyoutWrap__header__button" aria-label="Close menu">
                <i class="flyoutWrap__header__button__icon">
                    {{ file_get_contents(settings.SITE_PATH ~ settings.THEME_URL ~ '/images/icons/close.svg')|raw }}
                </i>
            </button> <!-- .flyoutButton -->

        </div> <!-- .flyoutHeaderTop -->

        {% if is_member is not empty and true == false%}
            <div class="flyoutWrap__header__user">

                <div class="flyoutWrap__header__user__row">

                    {% if member_initials is not empty %}
                        <div class="flyoutWrap__header__user__icon">
                            <span>{{ member_initials }}</span>
                        </div> <!-- .userIcon -->
                    {% endif %}

                    <div class="flyoutWrap__header__user__name">

                        {% if member_full_name is not empty %}
                            <div class="flyoutWrap__header__user__name--top">
                                <h5>{{ member_full_name }}</h5>
                            </div> <!-- .userNameTop -->
                        {% endif %}

                        <div class="flyoutWrap__header__user__link">
                            <a href="/members/">My account</a>
                        </div> <!-- .userLink -->

                    </div> <!-- .userName -->

                    {% if new_messages is not empty and new_messages != 0 %}
                        <div class="flyoutWrap__header__messages">
                            <span>{{ new_messages }}</span>
                        </div> <!-- .messages -->
                    {% endif %}

                </div> <!-- .userRow -->

            </div> <!-- .flyoutHeaderUser -->
        {% endif %}

    </div> <!-- .flyoutHeader -->

    <div class="flyoutWrap__body">
            {{ hooks_do_action('load_site_menu',  'Main Navigation') }}
    </div> <!-- .flyoutBody -->

</div> <!-- .flyoutWrap -->
