Changeset 7899 for extensions/Autosize/autosize.inc.php
- Timestamp:
- Nov 28, 2010, 11:06:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r7872 r7899 134 134 static public function cl_autosize_script_3($content) 135 135 { 136 global $template,$user,$conf,$picture ,$page ;136 global $template,$user,$conf,$picture ,$page,$cl_version, $cl_plugin ; 137 137 //userDefManage ?? 138 138 $my_path = basename(dirname(__FILE__)).'/' ; 139 139 $my_path = dirname(__FILE__).'/'; 140 141 140 $debug = isset($conf['debug']) ? $conf['debug'] : false ; 141 $cl_conflit = isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ; 142 142 143 143 $ThePicture = $template->get_template_vars('current'); … … 159 159 160 160 return $content ; 161 //==================================================================== 162 $template->set_filenames( 163 array('autosize_init'=>$my_path. "template/cl_conflit3.tpl" 164 ) 165 ); 166 167 168 $theme=$user['theme']; 169 170 $template->assign( 171 array( 172 'cl_conflit' => $cl_conflit , 173 'theme' => $theme , 174 'DEBUG' => $debug , 175 'AUTOSIZE_PATH' => AUTOSIZE_PATH) 176 ); 177 178 if( $page['body_id'] == 'theAdminPage' ) return ; 179 180 return $template->parse( 'autosize_init', false); 161 181 162 182 163 }// function cl_autosize_script_3 … … 184 165 static public function cl_autosize_script_2() 185 166 { 186 global $template,$user,$conf,$picture ,$page ;167 global $template,$user,$conf,$picture ,$page,$cl_version, $cl_plugin ; 187 168 //userDefManage ?? 188 169 $my_path = basename(dirname(__FILE__)).'/' ; … … 192 173 $theme=$user['theme']; 193 174 $template->assign( 194 array('ma_page' => $page['body_id'], 175 array( 176 'cl_plugin' => $cl_version['id'] , 177 'version' => $cl_version['version'] , 178 'ma_page' => $page['body_id'], 195 179 'cl_conflit' => $cl_conflit , 196 180 'theme' => $theme , … … 198 182 'AUTOSIZE_PATH' => AUTOSIZE_PATH) 199 183 ); 200 184 global $cl_plugin; 185 201 186 $autoscript="<script type='text/javascript'> 202 187 if (typeof (save_framework) == 'function') … … 205 190 $template->append('footer_elements',$autoscript); 206 191 return ; 207 208 209 192 $template->set_filenames( 210 193 array('autosize_init'=>$my_path. "template/cl_conflit.tpl" 211 194 ) 212 195 ); 213 214 215 216 217 218 219 196 if( $page['body_id'] == 'theAdminPage' ) return ; 220 197 … … 228 205 static public function cl_autosize_script() 229 206 { 230 global $template,$user,$conf,$picture ,$page,$cl_version ;207 global $template,$user,$conf,$picture ,$page,$cl_version, $cl_plugin ; 231 208 $my_path = basename(dirname(__FILE__)).'/' ; 232 209 $my_path = dirname(__FILE__).'/'; … … 237 214 238 215 $template->assign( 239 array( 'version' => $cl_version['version'] , 216 array( 217 'cl_plugin' => $cl_version['id'] , 218 'version' => $cl_version['version'] , 240 219 'cl_conflit' => $cl_conflit , 241 220 'theme' => $theme , … … 253 232 static public function cl_ajuste_data($content){ 254 233 global $template,$user,$conf,$picture ; 255 234 $my_path = realpath(AUTOSIZE_PATH .'/'); 256 235 $userdata=$user; 257 236 $fields = array( 'maxwidth', 'maxheight' );
Note: See TracChangeset
for help on using the changeset viewer.