You are here

function theme_gallery_image_view in Node Gallery 6

File

./node_gallery.themes.inc, line 42
Node gallery themes.

Code

function theme_gallery_image_view($type, $image, $config) {
  if ($type == 'cover') {
    if (empty($image)) {
      $image->filepath = $config->default_cover;
    }
  }
  return theme('imagecache', $config->image_size[$type], $image->filepath, $image->title, $image->title, array(
    'class' => 'gallery-image-' . $type,
  ));
}