{% sw_extends '@Storefront/storefront/base.html.twig' %}
{# TODO: Ggf. mehrere Klassen behandeln #}
{% set bodyClasses = (page.cmsPage.cssClass|striptags)|trim %}
{% block base_body_classes %}{{ parent() }}{% if bodyClasses is not empty %} page-{{ bodyClasses }}{% endif %}{% endblock %}
{% block base_main_inner %}
<div class="container-main">
{% block page_content %}
{# {% block cms_breadcrumb %}
<div class="breadcrumb cms-breadcrumb container" style="padding-left: 0 !important;">
{% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
context: context,
category: page.header.navigation.active
} only %}
</div>
{% endblock %} #}
{% block cms_content %}
{% set cmsPageClasses = ('cms-page ' ~ page.cmsPage.cssClass|striptags)|trim %}
<div class="{{ cmsPageClasses }} row">
{% block page_content_blocks %}
{% sw_include "@Storefront/storefront/page/content/detail.html.twig" with {'cmsPage': page.cmsPage} %}
{% endblock %}
</div>
{% endblock %}
{% endblock %}
</div>
{#
<script>
((containerMain, cmsPage)=>{
if (!containerMain || !cmsPage) return;
if (cmsPage.classList.contains("preisanfrage") || cmsPage.classList.contains("fullscreen")) {
containerMain.style.setProperty('max-width', 'unset', 'important');
}
})(document.querySelector('.container-main'), document.querySelector(".cms-page"));
</script>#}
{% endblock %}