function gallery_assist_prepare_prev in Gallery Assist 6
Render the image item acording needed.
Parameters
$item: An associative array containing the gallery item data.
$conf: An associative array the gallery settings data.
File
- ./
gallery_assist.module, line 4386 - Drupal content type with gallery functionality.
Code
function gallery_assist_prepare_prev($item = array(), $conf = array()) {
$title = $item->ptitle;
$title .= $item->copyright ? ' | © ' . $item->copyright : '';
if (function_exists('imagecache_preset') && $conf['use_imagecache'] == 1) {
$my_img = theme('imagecache', $conf['prev_presetname'], $item->opath, $item->palt, $title, $item->my_img_attr, FALSE);
}
else {
$my_img = theme('image', file_create_url($item->ppath), $item->palt, $title, $item->my_img_attr, FALSE);
}
return $my_img;
}