('.$image['width'].'x'.$image['height'].')'; } $template->set_filenames( array('ai_jquery_content' => dirname(__FILE__) . '/content.tpl') ); $uuid = uniqid(rand()); if (isset($image['high_url'])) { $img_url = "javascript:phpWGOpenWindow('" . $image['high_url'] . "','". $uuid . "','scrollbars=yes,toolbar=no,status=no,resizable=yes')"; $img_url = $image['high_url']; $target = '_blank'; } else { $img_url = '#' ; $target = '_self'; } if ( !isset($page['slideshow']) and isset($image['high_url']) ) $template->assign( 'high', array( 'U_HIGH' => $image['high_url'], 'UUID' => $uuid,)); $template->assign( array( 'AI_JQUERY_PATH' => AI_JQUERY_PATH, 'SRC_IMG' => $image['element_url'], 'ALT_IMG' => $image['file'], 'WIDTH_IMG' => $image['width'], 'HEIGHT_IMG' => $image['height'], 'WIDTH_FRM' => $conf['AI jQuery containerwidth'], 'COMMENT_IMG' => $title, 'U_HIGH' => $img_url, 'U_TRGT' => $target, 'speed' => $conf['AI jQuery speed'], 'timeout' => $conf['AI jQuery timeout'], 'containerwidth' => $conf['AI jQuery containerwidth'], 'animationSpeed' => $conf['AI jQuery animationSpeed'], 'controlBox' => $conf['AI jQuery controlBox'], 'displayTitle' => $conf['AI jQuery displayTitle'], 'speed' => $conf['AI jQuery speed'], 'height' => $image['height'], ) ); return $template->parse('ai_jquery_content', true); } ?>