Changeset 11429 for extensions/Autosize/autosize.inc.php
- Timestamp:
- Jun 19, 2011, 2:03:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r10913 r11429 43 43 { 44 44 global $template,$user,$conf,$picture ,$page, $cl_plugin ; 45 if(isset($page['body_id']) && $page['body_id'] == 'theAdminPage' ) return ; 45 46 header ('X-UA-Compatible: n=7') ; 47 header ('X-UA-Compatible: IE=Edge') ; 48 if(isset($page['body_id']) && $page['body_id'] == 'theAdminPage' ) return ; 49 46 50 if ('kardon' == $user['theme'] and isset($_GET['slideshow'])) return ; 47 51 … … 54 58 else 55 59 $file =AUTOSIZE_PATH_ABS.'template/header_2_2.tpl' ; 60 61 ; 62 56 63 $template->set_filenames(array('autosize_init_header'=> $file )); 57 64 $template->set_filenames(array('autosize_init'=>AUTOSIZE_PATH_ABS. "template/conflit.tpl" ) ); … … 88 95 { 89 96 global $template,$user,$conf,$picture ,$page, $cl_plugin,$known_script ; 90 91 92 $ my_path= dirname(__FILE__).'/';97 if ('kardon' == $user['theme'] and isset($_GET['slideshow'])) return ; 98 99 $AUTOSIZE_PATH = dirname(__FILE__).'/'; 93 100 //================================================================================================= 94 101 $DEBUG_autosize = isset($_POST['cl_debug_conflit']) ? $_POST['cl_debug_conflit'] : "false" ; … … 152 159 global $infos_message,$erreur_message; 153 160 global $conf,$lang ,$user,$userdata; 154 161 if ('kardon' == $user['theme'] and isset($_GET['slideshow'])) return ; 155 162 load_language('plugin.lang', AUTOSIZE_PATH); 156 $ my_path= dirname(__FILE__).'/';163 $AUTOSIZE_PATH = dirname(__FILE__).'/'; 157 164 if (isset( $page['body_id']) && $page['body_id']=='thePicturePage' ) { 158 165 if ( isset($picture['current'])){ … … 182 189 183 190 ); 184 $template->set_filenames(array('cl_bp' => $ my_path. 'template/picture.tpl'));191 $template->set_filenames(array('cl_bp' => $AUTOSIZE_PATH. 'template/picture.tpl')); 185 192 $template->concat('PLUGIN_PICTURE_ACTIONS', $template->parse('cl_bp', true)); 186 193 } 187 194 $template->set_filenames( 188 array('autosize_content'=> $ my_path.'template/autosize.tpl')195 array('autosize_content'=> $AUTOSIZE_PATH.'template/autosize.tpl') 189 196 ); 190 197 $template->concat('autosize_content', $template->parse('autosize_content_header', true)); … … 233 240 static public function cl_ajuste_data($content){ 234 241 global $template,$user,$conf,$picture ; 235 $ my_path= realpath(AUTOSIZE_PATH .'/');242 $AUTOSIZE_PATH = realpath(AUTOSIZE_PATH .'/'); 236 243 $userdata=$user; 237 244 $fields = array( 'maxwidth', 'maxheight' );
Note: See TracChangeset
for help on using the changeset viewer.