vendor/shopware/storefront/Resources/views/storefront/layout/cookie/cookie-configuration.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  2. {% block utilities_offcanvas_meta %}
  3.     {% set isAjaxOffcanvas = true %}
  4.     {{ parent() }}
  5. {% endblock %}
  6. {% block utilities_offcanvas_close_text %}
  7.     {{ "cookie.headline"|trans|sw_sanitize }}
  8. {% endblock %}
  9. {% block utilities_offcanvas_content %}
  10.     <div class="offcanvas-cookie">
  11.         <div class="offcanvas-cookie-description">
  12.             <p>
  13.                 {{ "cookie.message"|trans({
  14.                     '%url%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') })
  15.                 })|raw }}
  16.             </p>
  17.             <div class="row align-items-center h6 offcanvas-cookie-header">
  18.                 <div class="col">
  19.                     {{ "cookie.configuration"|trans|sw_sanitize }}
  20.                 </div>
  21.             </div>
  22.         </div>
  23.         <div class="offcanvas-cookie-list">
  24.             {% for cookieGroup in cookieGroups %}
  25.                 {% sw_include '@Storefront/storefront/layout/cookie/cookie-configuration-group.html.twig' with {
  26.                     cookieGroup: cookieGroup
  27.                 } only %}
  28.             {% endfor %}
  29.         </div>
  30.         {% if config('core.basicInformation.acceptAllCookies') %}
  31.             {% block layout_cookie_configuration_allow_all_button %}
  32.                 <button
  33.                     type="submit"
  34.                     class="btn btn-primary btn-block js-offcanvas-cookie-accept-all">
  35.                     {{ "cookie.acceptAll"|trans|sw_sanitize }}
  36.                 </button>
  37.             {% endblock %}
  38.         {% endif %}
  39.         {% block layout_cookie_configuration_button %}
  40.             <button
  41.                 type="submit"
  42.                 class="btn btn-primary btn-block js-offcanvas-cookie-submit">
  43.                 {{ "cookie.save"|trans|sw_sanitize }}
  44.             </button>
  45.         {% endblock %}
  46.     </div>
  47. {% endblock %}