function gallery_assist_prepare_thms 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.
3 calls to gallery_assist_prepare_thms()
- gallery_assist_image_box in ./
gallery_assist_display.inc - Build and return the image box.
- gallery_assist_image_box_list in ./
gallery_assist_list_display.inc - Build and return the image box.
- gallery_assist_ui_sorting_items in modules/
gallery_assist_ui/ gallery_assist_ui.module - Prepare the images for sorting through jquery.ui sorteable functionality.
File
- ./
gallery_assist.module, line 4360 - Drupal content type with gallery functionality.
Code
function gallery_assist_prepare_thms($item = array(), $conf = array()) {
$title = '';
if ($conf['opt'] == 'teaset' && $conf['t_thm_link_format'] == 'none') {
$title .= "Click the title or the Read more to see all images of this gallery | image: ";
}
$title .= $item->ptitle;
$title .= $item->copyright ? ' | © ' . $item->copyright : '';
if (function_exists('imagecache_preset') && $conf['use_imagecache'] == 1) {
$my_img = theme('imagecache', $conf['thm_presetname'], $item->opath, $item->palt, $title, $item->my_img_attr, FALSE);
}
else {
$my_img = theme('image', file_create_url($item->tpath), $item->palt, $title, $item->my_img_attr, FALSE);
}
return $my_img;
}