You are here

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

This is a template file for the cookie consent withdraw button.

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

eu-cookie-withdraw-button - withdraw button eu-cookie-withdraw-tab - tab that reveals the withdraw interface

Variables available:

  • message: Contains the text that will be displayed within the banner.
  • withdraw_tab_button_label: Label for the tab that sits at the window edge.
  • withdraw_action_button_label: Label for the withdraw button.

File

templates/eu_cookie_compliance_withdraw.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * This is a template file for the cookie consent withdraw button.
  5. *
  6. * When overriding this template it is important to note that jQuery will use
  7. * the following classes to assign actions to the button:
  8. *
  9. * eu-cookie-withdraw-button - withdraw button
  10. * eu-cookie-withdraw-tab - tab that reveals the withdraw interface
  11. *
  12. * Variables available:
  13. * - message: Contains the text that will be displayed within the banner.
  14. * - withdraw_tab_button_label: Label for the tab that sits at the window edge.
  15. * - withdraw_action_button_label: Label for the withdraw button.
  16. */
  17. #}
  18. <button type="button" class="eu-cookie-withdraw-tab">{{ withdraw_tab_button_label }}</button>
  19. <div role="alertdialog" aria-labelledby="popup-text" class="eu-cookie-withdraw-banner">
  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="eu-cookie-withdraw-button">{{ withdraw_action_button_label }}</button>
  26. </div>
  27. </div>
  28. </div>