vendor/shopware/storefront/Resources/views/storefront/page/content/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
    
    {# @var page \Shopware\Storefront\Page\LandingPage\LandingPage|\Shopware\Storefront\Page\CategoryPage\CategoryPage #}
    {% block base_main_inner %}
        <div class="container-main">
            {% block page_content %}
                {% block cms_breadcrumb %}
                    <div class="breadcrumb cms-breadcrumb container">
                        {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
                            context: context,
                            category: page.header.navigation.active
                        } only %}
                    </div>
                {% endblock %}
    
                {% block cms_content %}
                    {# @deprecated tag:v6.5.0 - keep if branch - page.cmsPage will be removed. Use page.landingPage.cmsPage instead #}
                    {% if feature('v6.5.0.0') %}
                        {% set cmsPageClasses = ('cms-page ' ~ page.landingPage.cmsPage.cssClass|striptags)|trim %}
                        {% set cmsPage = page.landingPage ? page.landingPage.cmsPage : page.cmsPage %}
                    {% else %}
                        {% set cmsPageClasses = ('cms-page ' ~ page.cmsPage.cssClass|striptags)|trim %}
                        {% set cmsPage = page.cmsPage %}
                    {% endif %}
                    {% set landingPage = page.landingPage ? page.landingPage : {} %}
                    <div class="{{ cmsPageClasses }}">
                        {% block page_content_blocks %}
                            {% sw_include "@Storefront/storefront/page/content/detail.html.twig" with {'cmsPage': cmsPage, 'landingPage': landingPage} %}
                        {% endblock %}
                    </div>
                {% endblock %}
            {% endblock %}
        </div>
    {% endblock %}