src/Storefront/Resources/views/storefront/component/privacy-notice.html.twig line 1

  1. {% block component_privacy_notice %}
  2.     <div class="form-text privacy-notice">
  3.         {% block component_privacy_title %}
  4.             <strong>{{ "general.privacyTitle"|trans|sw_sanitize }}</strong><br/>
  5.         {% endblock %}
  6.         {% block component_privacy_dpi %}
  7.             {% if config('core.loginRegistration.requireDataProtectionCheckbox') == 1 %}
  8.                 <div class="form-check data-protection-information">
  9.                     {% block component_privacy_dpi_checkbox %}
  10.                         <input type="checkbox"
  11.                                class="form-check-input {% if formViolations.getViolations('/acceptedDataProtection') is not empty %} is-invalid{% endif %}"
  12.                                name="acceptedDataProtection"
  13.                                required="required"
  14.                                value="1"
  15.                                id="acceptedDataProtection"
  16.                                {% if data.get('acceptedDataProtection') %}checked="checked"{% endif %}>
  17.                     {% endblock %}
  18.                     {% block component_privacy_dpi_label %}
  19.                         <label class="custom-control-label no-validation"
  20.                                for="acceptedDataProtection">
  21.                             {{ "general.privacyNoticeText"|trans({
  22.                                 '%privacyUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.privacyPage') }),
  23.                                 '%tosUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.tosPage') })
  24.                             })|raw }}
  25.                             {{ "general.required"|trans|sw_sanitize }}
  26.                         </label>
  27.                     {% endblock %}
  28.                 </div>
  29.             {% else %}
  30.                 <div class="data-protection-information">
  31.                     {% block component_privacy_label %}
  32.                         <label>
  33.                             {{ "general.privacyNoticeText"|trans({
  34.                                 '%privacyUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.privacyPage') }),
  35.                                 '%tosUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.tosPage') })
  36.                             })|raw }}
  37.                         </label>
  38.                     {% endblock %}
  39.                 </div>
  40.             {% endif %}
  41.         {% endblock %}
  42.     </div>
  43. {% endblock %}