function theme_imagefield_gallery_lightbox2
($images =
array(),
$node) {
$output = '';
if ($count) {
$i = 0;
'use_alt_layout' => false,
'disable_zoom' => false,
'force_show_nav' => false,
'group_images' => TRUE,
'disable_for_gallery_lists' => TRUE,
'image_count' =>
check_plain(t('Image !current of !total')),
'lite_press_x_close' =>
t('press !x to close',
array('!x' =>
'<a href="#" onclick="hideLightbox(); return false;"><kbd>x</kbd></a>')),
);
}
$output .= '<span class="gallery_text">'. t('Click the images below for bigger versions:') .'</span>';
$output .= '<div class="'. $node->type .'_gallery_box">';
while ($i < $count) {
$thumbnail = $var[$node->type]['images']['thumbnail'];
$preview = $var[$node->type]['images']['preview'];
if ($images[$i]['filepath']) {
$file['filepath'] = $images[$i]['filepath'];
$output .= '<div class="'. $node->type .'_image_field_thumbnail">';
$output .= '<a href="'. $imagecache_path .'" rel="lightbox['. $node->nid .']">';
$output .=
theme('imagecache',
$thumbnail,
$file['filepath']);
$output .= '</a>';
$output .= '</div>';
}
$i++;
}
$output .= '<div class="clear_both"></div>';
$output .= '</div>';
}
return $output;
}