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

    <div class="flyoutHeader">

        <div class="flyoutHeaderTop">

            <h2>Menu</h2>
            
            <a href="#" class="flyoutButton" aria-label="Close mini basket">
                <i class="closeButton">
                    {{ file_get_contents(settings.SITE_PATH ~ settings.THEME_URL ~ '/images/icons/close.svg')|raw }}
                </i>
            </a> <!-- .flyoutButton -->

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

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

                <div class="userRow">

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

                    <div class="userName">

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

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

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

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

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

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

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

    <div class="flyoutBody">


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

        <div class="linksMenu mainMenu">
            {{ hooks_do_action('load_site_menu',  'Primary Nav') }}
        </div> <!-- .linksMenu -->
        
    </div> <!-- .flyoutBody -->


    <div class="flyoutBackground">
        {{ file_get_contents(settings.SITE_PATH ~ settings.THEME_URL ~ '/images/backgrounds/menu-backdrop.svg')|raw }}
    </div> <!-- .flyoutBackground -->


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