vendor/shopware/storefront/Resources/views/storefront/page/content/single-cms-page.html.twig line 1

Open in your IDE?
  1. {% block single_cms_page_doctype %}
  2.     <!DOCTYPE html>
  3. {% endblock %}
  4. {% block single_cms_page_html %}
  5.     <html lang="{{ "meta.xmlLang"|trans|striptags }}"
  6.           itemscope="itemscope"
  7.           itemtype="https://schema.org/WebPage">
  8. {% endblock %}
  9. {% block single_cms_page_head %}
  10.     {% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
  11. {% endblock %}
  12. {% block single_cms_page_body %}
  13.     <body class="{% block single_cms_page_body_classes %}is-ctl-{{ controllerName|lower }} is-act-{{ controllerAction|lower }}{% endblock %}">
  14.         {% block single_cms_page_body_inner %}
  15.             {% block single_cms_page_noscript %}
  16.                 <noscript class="noscript-main">
  17.                     {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  18.                         type: 'info',
  19.                         content: 'general.noscriptNotice'|trans|sw_sanitize
  20.                     } %}
  21.                 </noscript>
  22.             {% endblock %}
  23.             {% block single_cms_page_header %}
  24.                 <header class="header-main">
  25.                     {% block single_cms_page_header_inner %}
  26.                         <div class="container">
  27.                             <div class="row align-items-center header-row">
  28.                                 <div class="col-12 col-lg-auto header-logo-col">
  29.                                     {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
  30.                                 </div>
  31.                             </div>
  32.                         </div>
  33.                     {% endblock %}
  34.                 </header>
  35.             {% endblock %}
  36.             {% block single_cms_page_main %}
  37.                 <main class="content-main">
  38.                     {% block single_cms_page_main_content %}
  39.                         {# @deprecated tag:v6.5.0 - keep if branch - page.cmsPage will be removed. Use page.landingPage.cmsPage instead #}
  40.                         {% if feature('v6.5.0.0') %}
  41.                             {% set cmsPageClasses = ('cms-page ' ~ page.landingPage.cmsPage.cssClass|striptags)|trim %}
  42.                         {% else %}
  43.                             {% set cmsPageClasses = ('cms-page ' ~ page.cmsPage.cssClass|striptags)|trim %}
  44.                         {% endif %}
  45.                         <div class="{{ cmsPageClasses }}">
  46.                             {% block page_content_blocks %}
  47.                                 {# @deprecated tag:v6.5.0 - keep if branch - page.cmsPage will be removed. Use page.landingPage.cmsPage instead #}
  48.                                 {% if feature('v6.5.0.0') %}
  49.                                     {% sw_include "@Storefront/storefront/page/content/detail.html.twig" with {'cmsPage': page.landingPage.cmsPage, 'landingPage': page.landingPage} %}
  50.                                 {% else %}
  51.                                     {% sw_include "@Storefront/storefront/page/content/detail.html.twig" with {'cmsPage': page.cmsPage, 'landingPage': page.landingPage} %}
  52.                                 {% endif %}
  53.                             {% endblock %}
  54.                         </div>
  55.                     {% endblock %}
  56.                 </main>
  57.             {% endblock %}
  58.             {% block single_cms_page_footer %}
  59.                 <footer class="footer-main mt-5 w-75 mx-auto">
  60.                     {% block single_cms_page_footer_content %}
  61.                         <div class="container mt-3 text-center">
  62.                             {% if config('core.basicInformation.imprintPage') is not null %}
  63.                                 <a href="{{ path('frontend.maintenance.singlepage',{ id: config('core.basicInformation.imprintPage') }) }}"
  64.                                    title="{{ "general.imprintLink"|trans|sw_sanitize }}"
  65.                                    class="{{ paddingStartClass }}-2 {{ paddingEndClass }}-2">
  66.                                     {{ "general.imprintLink"|trans|sw_sanitize }}
  67.                                 </a>
  68.                             {% endif %}
  69.                             {% if config('core.basicInformation.privacyPage') is not null %}
  70.                                 <a href="{{ path('frontend.maintenance.singlepage',{ id: config('core.basicInformation.privacyPage') }) }}"
  71.                                    title="{{ "general.privacyLink"|trans|sw_sanitize }}"
  72.                                    class="{{ paddingStartClass }}-2 {{ paddingEndClass }}-2">
  73.                                     {{ "general.privacyLink"|trans|sw_sanitize }}
  74.                                 </a>
  75.                             {% endif %}
  76.                         </div>
  77.                     {% endblock %}
  78.                 </footer>
  79.             {% endblock %}
  80.         {% endblock %}
  81.         {% block single_cms_page_scroll_up %}
  82.             {% sw_include '@Storefront/storefront/layout/scroll-up.html.twig' %}
  83.         {% endblock %}
  84.         {% block single_cms_page_cookie_permission %}
  85.             {% sw_include '@Storefront/storefront/layout/cookie/cookie-permission.html.twig' %}
  86.         {% endblock %}
  87.         {% block single_cms_page_pseudo_modal %}
  88.             {% sw_include '@Storefront/storefront/component/pseudo-modal.html.twig' %}
  89.         {% endblock %}
  90.         {% block single_cms_page_body_script %}
  91.             {% block single_cms_page_script_breakpoints %}
  92.                 {# Register the available viewport breakpoints the window.breakpoints object #}
  93.                 <script>
  94.                     {% set breakpoint = {
  95.                         'xs': theme_config('breakpoint.xs'),
  96.                         'sm': theme_config('breakpoint.sm'),
  97.                         'md': theme_config('breakpoint.md'),
  98.                         'lg': theme_config('breakpoint.lg'),
  99.                         'xl': theme_config('breakpoint.xl')
  100.                     } %}
  101.                     {# @deprecated tag:v6.5.0 - Bootstrap v5 adds xxl breakpoint #}
  102.                     {% if feature('v6.5.0.0') %}
  103.                         {% set breakpoint = breakpoint|merge({
  104.                             'xxl': theme_config('breakpoint.xxl')
  105.                         }) %}
  106.                     {% endif %}
  107.                     window.breakpoints = {{ breakpoint|json_encode()|raw }};
  108.                 </script>
  109.             {% endblock %}
  110.             {% block single_cms_page_script_csrf %}
  111.                 <script>
  112.                     window.csrf = {
  113.                         'enabled': '{{ shopware.csrfEnabled }}',
  114.                         'mode': '{{ shopware.csrfMode }}'
  115.                     }
  116.                 </script>
  117.             {% endblock %}
  118.         {% endblock %}
  119.     </body>
  120. {% endblock %}
  121. </html>