You are here

imagezoom-image.html.twig in Image Zoom 8.2

Same filename and directory in other branches
  1. 8.3 templates/imagezoom-image.html.twig

Template for an Image Zoom image.

Available variables:

  • image: The path to the display image.
  • zoom: The path to the zoom image.
  • width: The width of the thumbnail.
  • height: The height of the thumbnail.
  • alt: The alt text of the thumbnail.
  • title: The title of the thumbnail.

File

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