You are here

function theme_imagezoom_thumbs in Image Zoom 7

Returns the HTML code for a set of thumbnails.

1 theme call to theme_imagezoom_thumbs()
theme_imagezoom_image_multiple in ./imagezoom.module
Returns the HTML code for an image with a zoomed version on mouseover.

File

./imagezoom.module, line 398
Provides an Image Zoom field formatter for Image fields.

Code

function theme_imagezoom_thumbs($variables) {
  $items = $variables['items'];
  $class = $variables['class'];
  if (isset($variables['jcarousel'])) {
    $output = '<div class="imagezoom-thumb-wrapper"><ul class="imagezoom-thumbs jcarousel-skin-default">';
    jcarousel_add('imagezoom-thumbs', array());
  }
  else {
    $output = '<div class="imagezoom-thumb-wrapper"><ul class="imagezoom-thumbs">';
  }
  foreach ($items as $key => $item) {
    $output .= '<li class="' . $class[$key] . '">' . $item . '</li>';
  }
  $output .= '</ul></div>';
  return $output;
}