block_html_head('', ' ',$smarty, $repeat); }; $plug_act = array(); $plug = get_db_plugins('active'); foreach($plug as $plug){ $plug_act[]=$plug['id']; } $withlightbox = get_db_plugins('active' , 'lightbox'); if($withlightbox) { include_once(LIGHTBOX_PATH.'functions.inc.php'); $params = unserialize($conf['lightbox']); $template->func_combine_css(array('path'=>'plugins/lightbox/theme/'.$params['theme'].'/colorbox.css')); $conf['lightbox_rel'] = isset($conf['lightbox_rel']) ? ++$conf['lightbox_rel'] : 0; $lightbox_data = array( "transition" => $params['transition'], "speed" => $params['transition_speed'], "initialWidth" => (!empty($params['initial_width']) ? $params['initial_width'] : $config_default['initial_width']), "initialHeight" => (!empty($params['initial_height']) ? $params['initial_height'] : $config_default['initial_height']), "width" => (!empty($params['fixed_width']) ? '"'.$params['fixed_width'].'"' : 'false'), "height" => (!empty($params['fixed_height']) ? '"'.$params['fixed_height'].'"' : 'false'), "catid" => @$page['category']['id'], "section" => @$page['section'], "tagids" => @implode(',', @$page['tag_ids']) ); $lightbox_data = json_encode( $lightbox_data ); $template->assign('lightbox_data', $lightbox_data); }; $withGthumb = get_db_plugins('active' , 'GThumb'); if($withGthumb) { $template->func_combine_css(array('path'=>'plugins/GThumb/template/gthumb.css')); $params = $conf['GThumb']; $GThumb_data = json_encode($params); $template->assign('slideGThumb', $GThumb_data); $template->assign('GThumb_derivative_params', ImageStdParams::get_custom(9999, $conf['GThumb']['height'])); }; $withPiwiShop = get_db_plugins('active' , 'MyPiwiShop'); if($withPiwiShop) { $template->func_combine_css(array('path'=>'plugins/MyPiwiShop/template/style.css')); $template->func_combine_css(array('path'=>'plugins/MyPiwiShop/template/elem_form_style.css')); }; $withEC = get_db_plugins('active' , 'EasyCaptcha'); if($withEC) { $template->func_combine_css(array('path'=>'plugins/EasyCaptcha/template/drag.css')); $template->func_combine_css(array('path'=>'plugins/EasyCaptcha/template/tictac.css')); $params = $conf['EasyCaptcha']; $EasyCaptcha_data = array( "bd1" => $params['drag']['bd1'], "bd2" => $params['drag']['bd2'], "bg1" => $params['drag']['bg1'], "bg2" => $params['drag']['bg2'], "size" => $params['drag']['size'], "obj" => $params['drag']['obj'], "nb" => $params['drag']['nb'], "txt" => $params['drag']['txt'], "sel" => $params['drag']['sel'], "tictacsize" => $params['tictac']['size'], ); $EasyCaptcha_data = json_encode($EasyCaptcha_data); $template->assign('slideEasyCaptcha', $EasyCaptcha_data); }; $template->assign('pluginActive' , $plug_act); ?>