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.
2 theme calls to imagezoom_image.tpl.php
- imagezoom_field_formatter_view in ./
imagezoom.module - Implements hook_field_formatter_view().
- template_preprocess_imagezoom_gallery in modules/
imagezoom_gallery/ imagezoom_gallery.module - Preprocess function for imagezoom_gallery.
File
theme/imagezoom_image.tpl.phpView 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
}
?> />