vendor/shopware/storefront/Resources/views/storefront/component/privacy-notice.html.twig line 1

Open in your IDE?
  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="custom-control custom-checkbox data-protection-information">
  9.                     {% block component_privacy_dpi_checkbox %}
  10.                         <input type="checkbox"
  11.                                class="custom-control-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.privacyNotice"|trans({
  22.                                 '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.privacyPage') })
  23.                             })|raw }}
  24.                             {{ "general.required"|trans|sw_sanitize }}
  25.                         </label>
  26.                     {% endblock %}
  27.                 </div>
  28.             {% else %}
  29.                 <div class="data-protection-information">
  30.                     {% block component_privacy_label %}
  31.                         <label>
  32.                             {{ "general.privacyNotice"|trans({
  33.                                 '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.privacyPage') })
  34.                             })|raw }}
  35.                         </label>
  36.                     {% endblock %}
  37.                 </div>
  38.             {% endif %}
  39.         {% endblock %}
  40.     </div>
  41. {% endblock %}