Ignore:
Timestamp:
Nov 28, 2010, 11:06:31 AM (13 years ago)
Author:
cljosse
Message:

[cl_conflit] fix conflict with rv_gmaps

File:
1 edited

Legend:

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

    r7872 r7899  
    134134 static public function cl_autosize_script_3($content)
    135135 {
    136            global  $template,$user,$conf,$picture ,$page;
     136           global  $template,$user,$conf,$picture ,$page,$cl_version, $cl_plugin ;
    137137           //userDefManage ??
    138138                $my_path =  basename(dirname(__FILE__)).'/' ;
    139139            $my_path = dirname(__FILE__).'/';
    140                         $debug = isset($conf['debug']) ? $conf['debug'] : false ;
    141                         $cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;
     140                $debug = isset($conf['debug']) ? $conf['debug'] : false ;
     141                $cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;
    142142
    143143$ThePicture = $template->get_template_vars('current');
     
    159159
    160160                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
    181162
    182163 }// function cl_autosize_script_3
     
    184165 static public function cl_autosize_script_2()
    185166 {
    186            global  $template,$user,$conf,$picture ,$page;
     167           global  $template,$user,$conf,$picture ,$page,$cl_version, $cl_plugin ;
    187168           //userDefManage ??
    188169                        $my_path =  basename(dirname(__FILE__)).'/' ;
     
    192173                        $theme=$user['theme'];
    193174                        $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'],
    195179                                        'cl_conflit' => $cl_conflit  ,
    196180                                        'theme' => $theme  ,
     
    198182                                        'AUTOSIZE_PATH' => AUTOSIZE_PATH)
    199183                                                );
    200                                                  
     184                                                 global $cl_plugin;
     185 
    201186$autoscript="<script type='text/javascript'>
    202187if (typeof (save_framework) == 'function')
     
    205190                         $template->append('footer_elements',$autoscript); 
    206191                         return ;
    207 
    208 
    209192                        $template->set_filenames(
    210193                     array('autosize_init'=>$my_path. "template/cl_conflit.tpl" 
    211194                         )
    212195                      );               
    213                          
    214                        
    215                        
    216                          
    217 
    218 
    219196if(     $page['body_id'] == 'theAdminPage' ) return ;
    220197
     
    228205 static public function cl_autosize_script()
    229206        {
    230            global  $template,$user,$conf,$picture ,$page,$cl_version;
     207           global  $template,$user,$conf,$picture ,$page,$cl_version, $cl_plugin ;
    231208                $my_path =  basename(dirname(__FILE__)).'/' ;
    232209            $my_path = dirname(__FILE__).'/';
     
    237214                         
    238215                $template->assign(
    239                                                 array( 'version' => $cl_version['version'] ,
     216                                                array(
     217                                                'cl_plugin' => $cl_version['id'] ,
     218                                                'version' => $cl_version['version'] ,
    240219                                                'cl_conflit' => $cl_conflit  ,
    241220                                                'theme' => $theme  ,
     
    253232static public function cl_ajuste_data($content){
    254233           global  $template,$user,$conf,$picture ;
    255                         $my_path = realpath(AUTOSIZE_PATH .'/');
     234         $my_path = realpath(AUTOSIZE_PATH .'/');
    256235         $userdata=$user;
    257236         $fields = array( 'maxwidth', 'maxheight' );
Note: See TracChangeset for help on using the changeset viewer.