You are here

function template_preprocess_gallery_cover_view in Node Gallery 6

Same name and namespace in other branches
  1. 6.2 theme/theme.inc \template_preprocess_gallery_cover_view()

File

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

Code

function template_preprocess_gallery_cover_view(&$vars) {
  $gallery = $vars['gallery'];
  $config = $vars['config'];
  if (empty($gallery->cover)) {
    $gallery->cover->filepath = $config->default_cover;
  }
  $gallery->cover->title = $gallery->title;
  $vars['cover_image'] = theme('image_view', $config->image_size['cover'], $gallery->cover);
  $vars['meta_data'] = theme('item_list', theme('gallery_meta', $gallery));
  $vars['cover_operations'] = node_gallery_operations('cover', $gallery);
}