Ignore:
Timestamp:
Jun 20, 2011, 1:26:40 PM (13 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with charlies

File:
1 edited

Legend:

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

    r11429 r11442  
    2727if (!defined('ROOT_URL'))
    2828define(  'ROOT_URL',  get_root_url().'/' );
    29 
    30 $AUTOSIZE_PATH_ABS=str_replace('\\','/',dirname(__FILE__) );
     29 
    3130if (!defined('AUTOSIZE_PATH_ABS'))
    3231define(
    33   'AUTOSIZE_PATH_ABS',   $AUTOSIZE_PATH_ABS."/"
     32  'AUTOSIZE_PATH_ABS',  realpath(AUTOSIZE_PATH)."/"
    3433);
    3534
     
    195194                                                array('autosize_content'=> $AUTOSIZE_PATH.'template/autosize.tpl')
    196195                                        );
    197                         $template->concat('autosize_content', $template->parse('autosize_content_header', true));                                                                               
    198                                 return $template->parse( 'autosize_content', false);
     196                        $template->concat('autosize_content', $template->parse('autosize_content_header', true));               
     197      if(isset($conf['go_up_down']) && ($conf['go_up_down']==true) ){
     198        $template->set_filenames(array('mes_script' => realpath(AUTOSIZE_PATH).'/template/mes_scripts.tpl') );
     199        $template->func_combine_script(array('id'=>'my_script_2',
     200        'path'=> AUTOSIZE_PATH.'/js/JScript.js',
     201        'require' => 'jquery'),
     202        $template->smarty);
     203        $template->assign(array(
     204                          'MY_FOOTER_PATH' =>AUTOSIZE_PATH
     205                          ));
     206                                       
     207        $template->parse('mes_script');
     208      }     
     209       
     210       
     211       
     212        return $template->parse( 'autosize_content', false);
    199213                                  }
    200214                }
Note: See TracChangeset for help on using the changeset viewer.