function cloud_zoom_get_img_tag in Cloud Zoom 8
Same name and namespace in other branches
- 7 cloud_zoom.module \cloud_zoom_get_img_tag()
Get rendered img tag.
2 calls to cloud_zoom_get_img_tag()
- theme_cloud_zoom_image in ./
cloud_zoom.module - Theme handler for the cloud_zoom (no gallery)
- theme_cloud_zoom_image_gallery in ./
cloud_zoom.module - Theme handler for the cloud_zoom effect with gallery
File
- ./
cloud_zoom.module, line 524 - This module integrates the Cloud Zoom JQuery library from: http://www.professorcloud.com/mainsite/cloud-zoom.htm
Code
function cloud_zoom_get_img_tag($style_name, $item) {
$image = array(
'path' => $item['uri'],
'alt' => $item['alt'],
'style_name' => $style_name,
);
// Do not output an empty 'title' attribute.
if (!empty($item['title'])) {
$image['title'] = $item['title'];
}
return !empty($style_name) ? theme('image_style', $image) : theme('image', $image);
}