
{% if members_area is not empty %}

    {% set members_breadcrumbs = [
        {
            url: '/',
            name: 'Home'
        },
        {
            url: '/members/',
            name: 'Members'
        }
    ] %}

    {% if breadcrumbs is not empty %}
        {% set breadcrumbs = members_breadcrumbs|merge(breadcrumbs) %}
    {% else %}
        {% set breadcrumbs = members_breadcrumbs %}
    {% endif %}

{% endif %}


{% if breadcrumbs|length > 0 and disable_breadcrumbs is empty %}


    {% if no_warp is empty %}

        {% if breadcrumbs[0].breadcrumbs_only is empty %}
            <div class="breadcrumbsWrapper {{ class }}">

            <div class="innerBreadcrumbs">

            <div {% if browse_breadcrumbs is not empty %}id="productFilterBreadcrumbs"{% else %}id="primaryBreadcrumbs"{% endif %} class="breadcrumbWrap">
        {% endif %}

    {% endif %}

    <ul class="breadcrumbs">
        {% for breadcrumb in breadcrumbs %}
            <li>
                {% if breadcrumb.url is not empty and breadcrumb.url is not numeric %}
                <a href="{{ breadcrumb.url }}" title="{{ breadcrumb.name }}">
                    {% endif %}

                    {{ breadcrumb.name|raw|truncate(36, '...') }}

                {% if breadcrumb.url is not empty and breadcrumb.url is not numeric %}
                </a>
                {% endif %}
                
                {% if loop.last is empty %}
                    <i class="svgIcon">{{ file_get_contents(settings.SITE_PATH ~ settings.THEME_URL ~ '/images/icons/chevron-right-custom.svg')|raw }}</i>
                {% endif %}
            </li>
        {% endfor%}
    </ul>

    {% if no_warp is empty %}

        {% if breadcrumbs[0].breadcrumbs_only is empty or breadcrumbs_only is not empty %}
            </div> <!-- .breadcrumbWrap -->

            {% if trust_breadcrumb_logos is not empty and hide_logos is empty %}
                <div class="breadcrumbLogos">
                    {% include '/includes/elements/trust_logos.twig' with {
                        banner_mode: false,
                        mobile_only: false,
                        trust_logos: trust_breadcrumb_logos
                    }%}
                </div> <!-- .breadcrumbIcons -->
            {% endif %}

            </div> <!-- .innerBreadcrumbs -->

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

    {% endif %}

{% endif %}
