You are here

imagezoom-thumb.html.twig in Image Zoom 8.3

Template for an Image Zoom thumbnail image.

Available variables:

  • image: The path to the display image.
  • zoom: The path to the zoom image.
  • thumb: The path to the thumbnail image.
  • width: The width of the thumbnail.
  • height: The height of the thumbnail.

File

templates/imagezoom-thumb.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for an Image Zoom thumbnail image.
  5. *
  6. * Available variables:
  7. * - image: The path to the display image.
  8. * - zoom: The path to the zoom image.
  9. * - thumb: The path to the thumbnail image.
  10. * - width: The width of the thumbnail.
  11. * - height: The height of the thumbnail.
  12. */
  13. #}
  14. <a href="#" data-image="{{ image }}" data-zoom-image="{{ zoom }}">
  15. <img src="{{ thumb }}" {% if width %} width="{{ width }}" {% endif %} {% if height %} height="{{ height }}" {% endif %} />
  16. </a>