You are here

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

This is a template file for a banner informing a user that he has already agreed to cookies.

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

hide-popup-button - destroy the banner find-more-button - link to an information page

Variables available:

  • $message: Contains the text that will be display within the banner
  • $hide_button: Label for the hide button
  • $find_more_button: Label for the find out more button

File

templates/eu_cookie_compliance_popup_agreed.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * This is a template file for a banner informing a user that he has already
  5. * agreed to 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. * hide-popup-button - destroy the banner
  11. * find-more-button - link to an information page
  12. *
  13. * Variables available:
  14. * - $message: Contains the text that will be display within the banner
  15. * - $hide_button: Label for the hide button
  16. * - $find_more_button: Label for the find out more button
  17. */
  18. #}
  19. <div role="alertdialog" aria-labelledby="popup-text" class="eu-cookie-compliance-banner eu-cookie-compliance-banner-thank-you">
  20. <div class="popup-content agreed 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="hide-popup-button eu-cookie-compliance-hide-button">{{ hide_button }}</button>
  26. {% if find_more_button %}
  27. <button type="button" class="find-more-button eu-cookie-compliance-more-button-thank-you" >{{ find_more_button }}</button>
  28. {% endif %}
  29. </div>
  30. </div>
  31. </div>