{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}

{% block cms_breadcrumb %}
	{% set bannerImageEntity = null %}
    {% if activeRoute == 'frontend.navigation.page' %}
        {% set bannerImage = page.category.customFields.bc_category_banner_img %}
        {% if bannerImage !== null %}
            {% set mediaCollection = searchMedia([bannerImage],context.context) %}
            {% set bannerImageEntity = mediaCollection.get(bannerImage) %}
            {% if bannerImageEntity %}
                {% sw_include "@Storefront/storefront/Aquapages/content/listing-banner.html.twig" %}
            {% endif %}
        {% endif %}
    {% endif %}

	{% if bannerImageEntity is null %}
		{{ parent() }}
	{% endif %}
{% endblock %}
