function template_preprocess_imagezoom_gallery in Image Zoom 7.2
Same name and namespace in other branches
- 8.3 imagezoom.module \template_preprocess_imagezoom_gallery()
- 8.2 modules/imagezoom_gallery/imagezoom_gallery.module \template_preprocess_imagezoom_gallery()
Preprocess function for imagezoom_gallery.
File
- modules/
imagezoom_gallery/ imagezoom_gallery.module, line 152 - Provides a gallery formatter for the Image Zoom module.
Code
function template_preprocess_imagezoom_gallery(&$variables) {
$items = $variables['items'];
$variables['image'] = theme('imagezoom_image', array(
'item' => $items[0],
'display_style' => $variables['display_style'],
'zoom_style' => $variables['zoom_style'],
'settings' => $variables['settings'],
));
$variables['thumbs'] = array();
foreach ($items as $key => $item) {
$variables['thumbs'][] = theme('imagezoom_thumb', array(
'item' => $item,
'display_style' => $variables['display_style'],
'thumb_style' => $variables['thumb_style'],
'zoom_style' => $variables['zoom_style'],
'settings' => $variables['settings'],
));
}
}