vendor/shopware/storefront/Resources/views/storefront/element/cms-element-form/form-components/cms-element-form-privacy.html.twig line 1

Open in your IDE?
  1. {% block cms_form_privacy_opt_in %}
  2.     {% set identifierTemplate = 'form-privacy-opt-in-%s' %}
  3.     {% if requiresTermsOfService is not defined %}
  4.         {% set requiresTermsOfService = true %}
  5.     {% endif %}
  6.     {% block cms_form_privacy_opt_in_title %}
  7.         <div>{{ "general.privacyTitle"|trans }} {{ "general.required"|trans }}</div>
  8.     {% endblock %}
  9.     <div class="form-text privacy-notice {{ formCheckboxWrapperClass }}">
  10.         {% block cms_form_privacy_opt_in_input %}
  11.             <input name="privacy"
  12.                    type="checkbox"
  13.                    class="{{ formCheckInputClass }}"
  14.                    id="{{ identifierTemplate|format(_key) }}"
  15.                    required>
  16.         {% endblock %}
  17.         {% block cms_form_privacy_opt_in_label %}
  18.             <label for="{{ identifierTemplate|format(_key) }}" class="{{ formCheckLabelClass }}">
  19.                 {% if requiresTermsOfService == true %}
  20.                     {# @deprecated tag:v6.5.0 - Translation parameter %url% will be removed, use %privacyUrl% and %tosUrl% instead #}
  21.                     {{ "general.privacyNotice"|trans({
  22.                         '%url%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
  23.                         '%privacyUrl%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
  24.                         '%tosUrl%': path('frontend.cms.page', { id: config('core.basicInformation.tosPage')} )
  25.                     })|raw }}
  26.                 {% else %}
  27.                     {{ "contact.privacyNotice"|trans({
  28.                         '%privacyUrl%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') })
  29.                     })|raw }}
  30.                 {% endif %}
  31.             </label>
  32.         {% endblock %}
  33.     </div>
  34. {% endblock %}