Changeset 7536 for extensions/Autosize/autosize.inc.php
- Timestamp:
- Nov 1, 2010, 10:25:51 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r7394 r7536 20 20 // | USA. | 21 21 // +-----------------------------------------------------------------------+ 22 if (!defined('AUTOSIZE_PATH')) 23 define('AUTOSIZE_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 22 if (!defined('AUTOSIZE_PATH')) 23 define( 24 'AUTOSIZE_PATH', 25 PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' 26 ); 24 27 25 28 class autosize_controler { … … 36 39 load_language('lang', AUTOSIZE_PATH); 37 40 $my_path = dirname(__FILE__).'/'; 41 38 42 if (isset( $page['body_id']) ) { 39 43 if ( $page['body_id']=='thePicturePage' ) { … … 41 45 42 46 $autosize_parametres = cl_autosize_Get_Options(); 43 include (AUTOSIZE_PATH."include/affiche.php"); 47 include (AUTOSIZE_PATH."include/affiche.php"); 48 $debug = isset($conf['debug']) ? $conf['debug'] : false ; 49 $cl_visible=isset($conf['cl_auto']) ? $conf['cl_auto'] : 'true' ; 50 44 51 if($autosize_parametres->check_icon_v == 'on'){ 52 45 53 $template->assign('cl_autosize_button', 46 array( 54 array( 47 55 'cl_autosize_info' => 'cl_autosize_info' , 48 56 'cl_autosize_info_2' => 'cl_autosize_info_2' , … … 51 59 'ICON' => AUTOSIZE_PATH . 'icons/button-minimize.png' 52 60 ) 61 53 62 ); 54 63 … … 56 65 $template->concat('PLUGIN_PICTURE_ACTIONS', $template->parse('cl_bp', true)); 57 66 } 67 68 58 69 $template->set_filenames( 59 70 array('autosize_content'=> $my_path.'template/autosize.tpl') 60 71 ); 61 72 $template->assign( 73 array('DEBUG' => $debug , 74 'cl_visible' => $cl_visible 75 ) 76 ); 77 62 78 return $template->parse( 'autosize_content', false); 63 79 } … … 117 133 { 118 134 global $template,$user,$conf ; 119 120 121 $my_path = dirname(__FILE__).'/'; 135 136 137 138 $my_path = basename(dirname(__FILE__)).'/' ; 139 $my_path = dirname(__FILE__).'/'; 122 140 $template->set_filenames( 123 array('autosize_ cl_init'=> $my_path.'template/cl_conflit.tpl')124 );125 141 array('autosize_init'=>$my_path. "template/conflit.tpl" 142 ) 143 ); 126 144 $template->assign( 127 array( 128 'AUTOSIZE_PATH' => $my_path, 129 130 ) 145 array('AUTOSIZE_ROOT' => AUTOSIZE_PATH) 131 146 ); 132 147 133 return $template->parse( 'autosize_ cl_init', false);148 return $template->parse( 'autosize_init', false); 134 149 135 150 … … 141 156 142 157 global $template,$user,$conf ; 143 $my_path = dirname(__FILE__).'/'; 158 $my_path = realpath(AUTOSIZE_PATH .'/'); 159 144 160 $template->set_filenames( 145 array('autosize_cl_init'=> $my_path.'template/c l_conflit.tpl')161 array('autosize_cl_init'=> $my_path.'template/conflit.tpl') 146 162 ); 147 163 /*
Note: See TracChangeset
for help on using the changeset viewer.