You are here

eu_cookie_compliance_popup_info_consent_default.html.twig in EU Cookie Compliance (GDPR Compliance) 8

This is a template file for a banner prompting user to give their consent for the website to set cookies.

When overriding this template it is important to note that jQuery will use the following classes to assign actions to buttons:

agree-button - agree to setting cookies find-more-button - link to an information page

Variables available:

  • message: Contains the text that will be display whithin the banner
  • agree_button: Label for the agree button
  • disagree_button: Label for the disagree button

File

templates/eu_cookie_compliance_popup_info_consent_default.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * This is a template file for a banner prompting user to give their consent for
  5. * the website to set cookies.
  6. *
  7. * When overriding this template it is important to note that jQuery will use
  8. * the following classes to assign actions to buttons:
  9. *
  10. * agree-button - agree to setting cookies
  11. * find-more-button - link to an information page
  12. *
  13. * Variables available:
  14. * - message: Contains the text that will be display whithin the banner
  15. * - agree_button: Label for the agree button
  16. * - disagree_button: Label for the disagree button
  17. */
  18. #}
  19. <div role="alertdialog" aria-labelledby="popup-text" class="eu-cookie-compliance-banner eu-cookie-compliance-banner-info">
  20. <div class ="popup-content info eu-cookie-compliance-content">
  21. <div id="popup-text" class="eu-cookie-compliance-message">
  22. {{ message }}
  23. </div>
  24. <div id="popup-buttons" class="eu-cookie-compliance-buttons">
  25. <button type="button" class="agree-button eu-cookie-compliance-agree-button">{{ agree_button }}</button>
  26. {% if disagree_button %}
  27. <button type="button" class="disagree-button find-more-button eu-cookie-compliance-more-button">{{ disagree_button }}</button>
  28. {% endif %}
  29. </div>
  30. </div>
  31. </div>