You are here

cookiebot-blocked-element-placeholder.html.twig in Cookiebot - Cookie consent, Cookie monitoring and Cookie control 8

Cookiebot blocked message placeholder for elements like iframes which are disabled via data-src by cookiebot until consent is given.

Available variables:

  • content: The message content.
  • attributes: Wrapper attributes.
  • inner_attributes: Inner wrapper attributes.

File

templates/cookiebot-blocked-element-placeholder.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Cookiebot blocked message placeholder for elements like iframes
  5. * which are disabled via data-src by cookiebot until consent is given.
  6. *
  7. * Available variables:
  8. * - content: The message content.
  9. * - attributes: Wrapper attributes.
  10. * - inner_attributes: Inner wrapper attributes.
  11. */
  12. #}
  13. {%
  14. set classes = [
  15. 'cookiebot',
  16. 'cookieconsent-optout-marketing'
  17. ]
  18. %}
  19. {%
  20. set inner_classes = [
  21. 'cookieconsent-optout-marketing__inner'
  22. ]
  23. %}
  24. <div{{attributes.addClass(classes)}}>
  25. <div{{inner_attributes.addClass(inner_classes)}}>
  26. {{ content }}
  27. </div>
  28. </div>