Changeset 11442 for extensions/Autosize/autosize.inc.php
- Timestamp:
- Jun 20, 2011, 1:26:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r11429 r11442 27 27 if (!defined('ROOT_URL')) 28 28 define( 'ROOT_URL', get_root_url().'/' ); 29 30 $AUTOSIZE_PATH_ABS=str_replace('\\','/',dirname(__FILE__) ); 29 31 30 if (!defined('AUTOSIZE_PATH_ABS')) 32 31 define( 33 'AUTOSIZE_PATH_ABS', $AUTOSIZE_PATH_ABS."/"32 'AUTOSIZE_PATH_ABS', realpath(AUTOSIZE_PATH)."/" 34 33 ); 35 34 … … 195 194 array('autosize_content'=> $AUTOSIZE_PATH.'template/autosize.tpl') 196 195 ); 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); 199 213 } 200 214 }
Note: See TracChangeset
for help on using the changeset viewer.