Ignore:
Timestamp:
Jun 19, 2011, 2:03:07 PM (13 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix bugs on height

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r10913 r11429  
    4343        {
    4444                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
    4650    if ('kardon' == $user['theme'] and isset($_GET['slideshow'])) return ;
    4751     
     
    5458    else
    5559      $file =AUTOSIZE_PATH_ABS.'template/header_2_2.tpl' ;
     60   
     61;
     62
    5663    $template->set_filenames(array('autosize_init_header'=> $file ));
    5764    $template->set_filenames(array('autosize_init'=>AUTOSIZE_PATH_ABS. "template/conflit.tpl" ) );
     
    8895 {
    8996           global  $template,$user,$conf,$picture ,$page, $cl_plugin,$known_script ;
    90      if ('kardon' == $user['theme'] and isset($_GET['slideshow'])) return ;
    91 
    92                         $my_path = dirname(__FILE__).'/';
     97   if ('kardon' == $user['theme'] and isset($_GET['slideshow'])) return ;
     98
     99                        $AUTOSIZE_PATH = dirname(__FILE__).'/';
    93100//=================================================================================================
    94101$DEBUG_autosize = isset($_POST['cl_debug_conflit']) ? $_POST['cl_debug_conflit'] : "false" ;
     
    152159                global $infos_message,$erreur_message;
    153160                global  $conf,$lang ,$user,$userdata;
    154     if ('kardon' == $user['theme'] and isset($_GET['slideshow'])) return ;
     161 if ('kardon' == $user['theme'] and isset($_GET['slideshow'])) return ;
    155162                load_language('plugin.lang', AUTOSIZE_PATH);
    156                 $my_path = dirname(__FILE__).'/';
     163                $AUTOSIZE_PATH = dirname(__FILE__).'/';
    157164                 if (isset( $page['body_id']) && $page['body_id']=='thePicturePage'  ) {
    158165                        if ( isset($picture['current'])){       
     
    182189
    183190                                                        );
    184                                         $template->set_filenames(array('cl_bp' => $my_path. 'template/picture.tpl'));
     191                                        $template->set_filenames(array('cl_bp' => $AUTOSIZE_PATH. 'template/picture.tpl'));
    185192                                        $template->concat('PLUGIN_PICTURE_ACTIONS', $template->parse('cl_bp', true));
    186193                                }
    187194                                 $template->set_filenames(
    188                                                 array('autosize_content'=> $my_path.'template/autosize.tpl')
     195                                                array('autosize_content'=> $AUTOSIZE_PATH.'template/autosize.tpl')
    189196                                        );
    190197                        $template->concat('autosize_content', $template->parse('autosize_content_header', true));                                                                               
     
    233240        static public function cl_ajuste_data($content){
    234241                global  $template,$user,$conf,$picture ;
    235                 $my_path = realpath(AUTOSIZE_PATH .'/');
     242                $AUTOSIZE_PATH = realpath(AUTOSIZE_PATH .'/');
    236243                $userdata=$user;
    237244                $fields = array( 'maxwidth', 'maxheight' );
Note: See TracChangeset for help on using the changeset viewer.