templates/gdpr.html.twig line 1

Open in your IDE?
  1. {# TODO improve this to remove the first test (each unit test should just sync the settings) #}
  2. {% if
  3.     app.environment != 'test'
  4.     and settings.value(constant('App\\Settings\\SettingsManager::DISCLAIMER_COOKIE_TOGGLE')) == false
  5.     and not app.request.cookies.has(constant('App\\GDPR\\GDPR::GDPR_COOKIE_NAME')) %}
  6. <div id="gdpr-container">
  7.     <div id="gdpr-popup" class="alert alert-info m-0 text-center">
  8.         <strong>{% trans %}This website uses cookies to manage user logging information. It does not sell personal data to third parties.{% endtrans %}</strong>
  9.         <br>{{ get_page_link(1, true)|raw }}
  10.         <form id="cookies-form" action="{{ path('gdpr') }}" method="post">
  11.             <input id="gdpr-checkbox" type="checkbox" required> <label for="gdpr-checkbox">{% trans %}I accept the use of cookies.{% endtrans %}</label>
  12.             <button class="btn btn-sm btn-primary">{% trans %}OK{% endtrans %}</button>
  13.         </form>
  14.     </div>
  15. </div>
  16. {% endif %}