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="{{ formCheckboxWrapperClass }} data-protection-information">
  9. {% block component_privacy_dpi_checkbox %}
  10. <input type="checkbox"
  11. class="{{ formCheckInputClass }} {% 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. {# @deprecated tag:v6.5.0 - Translation parameter %url% will be removed, use %privacyUrl% and %tosUrl% instead #}
  22. {{ "general.privacyNotice"|trans({
  23. '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.privacyPage') }),
  24. '%privacyUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.privacyPage') }),
  25. '%tosUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.tosPage') })
  26. })|raw }}
  27. {{ "general.required"|trans|sw_sanitize }}
  28. </label>
  29. {% endblock %}
  30. </div>
  31. {% else %}
  32. <div class="data-protection-information">
  33. {% block component_privacy_label %}
  34. <label>
  35. {# @deprecated tag:v6.5.0 - Translation parameter %url% will be removed, use %privacyUrl% and %tosUrl% instead #}
  36. {{ "general.privacyNotice"|trans({
  37. '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.privacyPage') }),
  38. '%privacyUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.privacyPage') }),
  39. '%tosUrl%': path('frontend.cms.page',{ id: config('core.basicInformation.tosPage') })
  40. })|raw }}
  41. </label>
  42. {% endblock %}
  43. </div>
  44. {% endif %}
  45. {% endblock %}
  46. </div>
  47. {% endblock %}