diff --git c/andromeda_slideshow.module w/andromeda_slideshow.module index a62b0ab..493b402 100644 --- c/andromeda_slideshow.module +++ w/andromeda_slideshow.module @@ -202,14 +202,13 @@ function andromeda_slideshow_block_view($delta = '') { $theme = 'andromeda_slideshow_' . $type_name; $type = andromeda_slideshow_build_type($type_name); - //build image style + //build image style, tag and links $style_name = $slideshow->settings['image_style']; foreach ($images as $key => $image) { + $tag = theme('image_style', array('style_name' => $style_name, 'path' => $image->uri, 'title' => $image->caption)); + $images[$key]->image_tag = $image->settings['link'] ? l($tag, $image->settings['link'], array('html' => true)) : $tag; + $images[$key]->image = image_style_url($style_name, $image->uri); - } - - //build image links - foreach ($images as $key => $image) { if ($image->settings['link']) { $images[$key]->settings['link'] = url($image->settings['link']); } diff --git c/modules/andromeda_slideshow_nivo_slider/nivo-slider.tpl.php w/modules/andromeda_slideshow_nivo_slider/nivo-slider.tpl.php index 330859d..f9fca77 100644 --- c/modules/andromeda_slideshow_nivo_slider/nivo-slider.tpl.php +++ w/modules/andromeda_slideshow_nivo_slider/nivo-slider.tpl.php @@ -1,9 +1,7 @@
- - - + image_tag; ?>
\ No newline at end of file