The Reggae Album
$module_handler= & xoops_gethandler('module');
$eventModule = $module_handler->getByDirname('event');
$config_handler =& xoops_gethandler('config');
$eventConfig =& $config_handler->getConfigsByCat(0, $eventModule->mid());
$block = array();
if (count($pic_datas) > 0) {
foreach ($pic_datas as $key => $row) {
$i++;
//$image_size = compute_img_size($row['pwidth'], $row['pheight'], $xoopsModuleConfig['thumb_width']);
$thumb_list[$i]['pos'] = $key < 0 ? $key : $i - 1 - $options[5];
$thumb_list[$i]['image'] = "<img src="".XOOPS_URL ."/modules/event/".$eventConfig['fullpath'].str_replace("%2F","/",rawurlencode($row['filepath'].$eventConfig['thumb_pfx'].$row['filename']))."" class="image" border="0" alt="{$row['filename']}" />";
$thumb_list[$i]['caption'] = $row['caption_text'];
$thumb_list[$i]['pid'] = $row['pid'];
$thumb_list[$i]['link_tgt']="displayimage.php?pid={$row['pid']}&album={$album}&pos={$key}&cat=";
$thumb_list[$i]['i']= $i;
}
//$xoopsTpl->assign('no_img',0);
//theme_display_thumbnails($thumb_list, $thumb_count, $album_name, $album, $cat, $page, $total_pages, is_numeric($album), $display_tabs);
$block['pics'] = $thumb_list;
$block['position'] = $options[2];
$block['wh'] = $options[3];
}
return $block;
}