You are here

elevatezoomplus.html.twig in ElevateZoom Plus 8

Default theme implementation for the ElevateZoomPlus template.

Available variables:

  • element: The original theme elements.
  • attributes: The array of attributes to hold the main container classes.
  • content: The content can be Slick asNavFor, Blazy Grid, GridStack, etc.
  • settings: HTML related settings.
  • stage: The static main preview image if not using Slick with asNavFor.

Debug: Use Kint: {{ kint(variable) }} Dump all available variables and their contents: {{ dump() }} Dump only the available variable keys: {{ dump(_context|keys) }}

File

templates/elevatezoomplus.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the ElevateZoomPlus template.
  5. *
  6. * Available variables:
  7. * - element: The original theme elements.
  8. * - attributes: The array of attributes to hold the main container classes.
  9. * - content: The content can be Slick asNavFor, Blazy Grid, GridStack, etc.
  10. * - settings: HTML related settings.
  11. * - stage: The static main preview image if not using Slick with asNavFor.
  12. *
  13. * Debug:
  14. * @see https://www.drupal.org/node/1906780
  15. * @see https://www.drupal.org/node/1903374
  16. * Use Kint: {{ kint(variable) }}
  17. * Dump all available variables and their contents: {{ dump() }}
  18. * Dump only the available variable keys: {{ dump(_context|keys) }}
  19. */
  20. #}
  21. {%
  22. set classes = [
  23. 'elevatezoomplus-wrapper',
  24. ]
  25. %}
  26. {%
  27. set content_classes = [
  28. 'elevatezoomplus-stage',
  29. 'blazy',
  30. ]
  31. %}
  32. <div{{ attributes.addClass(classes) }}>
  33. {% if stage %}
  34. <div{{ content_attributes.addClass(content_classes) }}>
  35. {{ stage }}
  36. </div>
  37. {% endif %}
  38. {{ content }}
  39. </div>