You are here

imagezoom_image.tpl.php in Image Zoom 7.2

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

theme/imagezoom_image.tpl.php
View source
<?php

/**
 * @file
 * 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.
 */
?>

<img src="<?php

print $image;
?>" data-zoom-image="<?php

print $zoom;
?>" class="imagezoom-image" <?php

if ($width) {
  ?>width="<?php

  print $width;
  ?>" <?php

}
?> <?php

if ($height) {
  ?>height="<?php

  print $height;
  ?>" <?php

}
?> <?php

if ($alt) {
  ?>alt="<?php

  print $alt;
  ?>" <?php

}
?> <?php

if ($title) {
  ?>title="<?php

  print $title;
  ?>" <?php

}
?> />