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

Open in your IDE?
  1. {% set useDefaultCookieConsent = config('core.basicInformation.useDefaultCookieConsent') == true %}
  2. {% if useDefaultCookieConsent %}
  3.     {% block layout_cookie_permission_inner %}
  4.         {% set acceptAllCookies = config('core.basicInformation.acceptAllCookies') %}
  5.         <div
  6.             class="cookie-permission-container"
  7.             data-cookie-permission="true">
  8.             <div class="container">
  9.                 <div class="row align-items-center">
  10.                     {% block layout_cookie_permission_inner_content %}
  11.                         <div class="col cookie-permission-content">
  12.                             {{ "cookie.message"|trans({
  13.                                 '%url%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') })
  14.                             })|raw }}
  15.                         </div>
  16.                     {% endblock %}
  17.                     {% block layout_cookie_permission_inner_button %}
  18.                         <div class="col-12 col-md-auto d-flex justify-content-center flex-wrap cookie-permission-actions {{ paddingEndClass }}-2">
  19.                             {% block layout_cookie_permission_inner_button_deny %}
  20.                                 <span class="cookie-permission-button js-cookie-permission-button">
  21.                                     <button
  22.                                         type="submit"
  23.                                         class="btn btn-primary">
  24.                                         {{ "cookie.deny"|trans|sw_sanitize }}
  25.                                     </button>
  26.                                 </span>
  27.                             {% endblock %}
  28.                             {% block layout_cookie_permission_inner_button_configuration %}
  29.                                 <span class="js-cookie-configuration-button">
  30.                                     <button
  31.                                         type="submit"
  32.                                         class="btn btn-primary">
  33.                                         {{ "cookie.configure"|trans|sw_sanitize }}
  34.                                     </button>
  35.                                 </span>
  36.                             {% endblock %}
  37.                             {% if acceptAllCookies %}
  38.                                 {% block layout_cookie_permission_inner_button_accept_all %}
  39.                                     <span class="js-cookie-accept-all-button">
  40.                                         <button
  41.                                             type="submit"
  42.                                             class="btn btn-primary">
  43.                                             {{ "cookie.acceptAll"|trans|sw_sanitize }}
  44.                                         </button>
  45.                                     </span>
  46.                                 {% endblock %}
  47.                             {% endif %}
  48.                         </div>
  49.                     {% endblock %}
  50.                 </div>
  51.             </div>
  52.         </div>
  53.     {% endblock %}
  54. {% endif %}