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

Open in your IDE?
  1. {% if child.cookie is not empty and child.hidden is not same as(true) %}
  2.     {% set cookie = child.cookie %}
  3.     <div class="offcanvas-cookie-entry {{ formCheckboxWrapperClass }}">
  4.         <input
  5.             type="checkbox"
  6.             class="{{ formCheckInputClass }}"
  7.             id="cookie_{{ cookie }}"
  8.             {% if isRequired %}
  9.                 checked="checked"
  10.                 disabled="disabled"
  11.                 data-cookie-required="true"
  12.             {% endif %}
  13.             {% if cookie %}
  14.                 data-cookie="{{ cookie }}"
  15.             {% endif %}
  16.             {% if child.value %}
  17.                 data-cookie-value="{{ child.value }}"
  18.             {% endif %}
  19.             {% if child.expiration %}
  20.                 data-cookie-expiration="{{ child.expiration }}"
  21.             {% endif %}>
  22.         <label
  23.             for="cookie_{{ cookie }}"
  24.             class="custom-control-label">
  25.             {{ child.snippet_name ? child.snippet_name|trans|sw_sanitize : cookie }}
  26.         </label>
  27.         {% if child.snippet_description %}
  28.             <p>{{ child.snippet_description|trans|sw_sanitize }}</p>
  29.         {% endif %}
  30.     </div>
  31. {% endif %}