custom/plugins/Itptheme/src/Resources/views/storefront/component/privacy-notice.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Resources/storefront/component/privacy-notice.html.twig' %}
  2. {% block component_privacy_notice %}
  3.     <div class="form-text privacy-notice">
  4.         {% block component_privacy_title %}
  5.             {{ parent() }}
  6.         {% endblock %}
  7.         {% block component_privacy_dpi %}
  8.             {% if config('core.loginRegistration.requireDataProtectionCheckbox') == 1 %}
  9.                 {# CIO-AI-Driven: Split privacy and TOS into two separate required checkboxes #}
  10.                 <div class="data-protection-information">
  11.                     <div class="custom-control custom-checkbox data-protection-information">
  12.                         {% block component_privacy_dpi_checkbox %}
  13.                             {{ parent() }}
  14.                         {% endblock %}
  15.                         {% block component_privacy_dpi_label %}
  16.                             <label class="custom-control-label no-validation"
  17.                                    for="acceptedDataProtection">
  18.                                 {{ "general.dataProtectionCheckboxLabel"|trans({
  19.                                     '%privacyUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.privacyPage') })
  20.                                 })|raw }}
  21.                               {{ "general.required"|trans|sw_sanitize }}
  22.                               </label>
  23.                         {% endblock %}
  24.                     </div>
  25.                     <div class="custom-control custom-checkbox tos-information">
  26.                         <input type="checkbox"
  27.                                class="custom-control-input{% if formViolations.getViolations('/acceptedTos') is not empty %} is-invalid{% endif %}"
  28.                                name="acceptedTos"
  29.                                required="required"
  30.                                value="1"
  31.                                id="acceptedTos"
  32.                                {% if data.get('acceptedTos') %}checked="checked"{% endif %}>
  33.                         <label class="custom-control-label no-validation"
  34.                                for="acceptedTos">
  35.                             {{ 'general.tosCheckboxLabel'|trans({
  36.                                 '%tosUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.tosPage') })
  37.                             })|raw }}
  38.                              {{ "general.required"|trans|sw_sanitize }}
  39.                          </label>
  40.                     </div>
  41.                 </div>
  42.             {% else %}
  43.                 <div class="data-protection-information">
  44.                     {% block component_privacy_label %}
  45.                         {{ parent() }}
  46.                     {% endblock %}
  47.                 </div>
  48.             {% endif %}
  49.         {% endblock %}
  50.     </div>
  51. {% endblock %}