[21579] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
[26857] | 3 | include_once(PHPWG_ROOT_PATH.'include/functions_plugins.inc.php'); |
---|
[21579] | 4 | |
---|
[26857] | 5 | global $conf, $template,$smarty, $repeat, $user, $page; |
---|
[21579] | 6 | $params = array_merge(unserialize($conf['Slide'])); |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | if ($params['color_theme'] == 2 ) |
---|
| 12 | { |
---|
| 13 | $template->block_html_head('', ' |
---|
| 14 | <link rel="stylesheet" type="text/css" href="themes/Slide/white.css"> |
---|
| 15 | |
---|
| 16 | ',$smarty, $repeat); |
---|
| 17 | }; |
---|
[26857] | 18 | |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | $plug_act = array(); |
---|
| 22 | $withlightbox = get_db_plugins('active' , 'lightbox'); |
---|
| 23 | if($withlightbox) |
---|
| 24 | { |
---|
| 25 | include_once(LIGHTBOX_PATH.'functions.inc.php'); |
---|
| 26 | $params = unserialize($conf['lightbox']); |
---|
| 27 | $template->func_combine_css(array('path'=>'plugins/lightbox/theme/'.$params['theme'].'/colorbox.css')); |
---|
| 28 | |
---|
| 29 | $conf['lightbox_rel'] = isset($conf['lightbox_rel']) ? ++$conf['lightbox_rel'] : 0; |
---|
| 30 | |
---|
| 31 | $lightbox_data = array( |
---|
| 32 | "transition" => $params['transition'], |
---|
| 33 | "speed" => $params['transition_speed'], |
---|
| 34 | "initialWidth" => (!empty($params['initial_width']) ? $params['initial_width'] : $config_default['initial_width']), |
---|
| 35 | "initialHeight" => (!empty($params['initial_height']) ? $params['initial_height'] : $config_default['initial_height']), |
---|
| 36 | "width" => (!empty($params['fixed_width']) ? '"'.$params['fixed_width'].'"' : 'false'), |
---|
| 37 | "height" => (!empty($params['fixed_height']) ? '"'.$params['fixed_height'].'"' : 'false'), |
---|
| 38 | "catid" => @$page['category']['id'], |
---|
| 39 | "section" => @$page['section'], |
---|
| 40 | "tagids" => @implode(',', @$page['tag_ids']) |
---|
| 41 | ); |
---|
| 42 | |
---|
| 43 | $lightbox_data = json_encode( $lightbox_data ); |
---|
| 44 | $template->assign('lightbox_data', $lightbox_data); |
---|
[21579] | 45 | |
---|
[26857] | 46 | array_push($plug_act, 'lightbox'); |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | $withGthumb = get_db_plugins('active' , 'GThumb'); |
---|
| 50 | if($withGthumb) |
---|
| 51 | { |
---|
| 52 | $template->func_combine_css(array('path'=>'plugins/GThumb/template/gthumb.css')); |
---|
| 53 | $params = $conf['GThumb']; |
---|
| 54 | $GThumb_data = json_encode($params); |
---|
| 55 | $template->assign('slideGThumb', $GThumb_data); |
---|
| 56 | $template->assign('GThumb_derivative_params', ImageStdParams::get_custom(9999, $conf['GThumb']['height'])); |
---|
| 57 | array_push($plug_act, 'GThumb'); |
---|
| 58 | }; |
---|
[21579] | 59 | |
---|
[26857] | 60 | $withEC = get_db_plugins('active' , 'EasyCaptcha'); |
---|
| 61 | if($withEC) |
---|
| 62 | { |
---|
[26889] | 63 | $template->func_combine_css(array('path'=>'plugins/EasyCaptcha/template/drag.css')); |
---|
| 64 | $template->func_combine_css(array('path'=>'plugins/EasyCaptcha/template/tictac.css')); |
---|
[26857] | 65 | $params = $conf['EasyCaptcha']; |
---|
[26889] | 66 | $EasyCaptcha_data = array( |
---|
| 67 | "bd1" => $params['drag']['bd1'], |
---|
| 68 | "bd2" => $params['drag']['bd2'], |
---|
| 69 | "bg1" => $params['drag']['bg1'], |
---|
| 70 | "bg2" => $params['drag']['bg2'], |
---|
| 71 | "size" => $params['drag']['size'], |
---|
| 72 | "obj" => $params['drag']['obj'], |
---|
| 73 | "nb" => $params['drag']['nb'], |
---|
| 74 | "txt" => $params['drag']['txt'], |
---|
| 75 | "sel" => $params['drag']['sel'], |
---|
| 76 | "tictacsize" => $params['tictac']['size'], |
---|
| 77 | ); |
---|
| 78 | |
---|
| 79 | $EasyCaptcha_data = json_encode($EasyCaptcha_data); |
---|
[26857] | 80 | $template->assign('slideEasyCaptcha', $EasyCaptcha_data); |
---|
[26889] | 81 | |
---|
[26857] | 82 | array_push($plug_act, 'EasyCaptcha'); |
---|
| 83 | }; |
---|
[21579] | 84 | |
---|
[26857] | 85 | $template->assign('pluginActive' , $plug_act); |
---|
| 86 | |
---|
[21579] | 87 | ?> |
---|