custom/plugins/KayloBasicTheme/src/Resources/views/storefront/layout/cookie/cookie-permission.html.twig line 1

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