Changeset 10347
- Timestamp:
- Apr 13, 2011, 9:45:43 AM (14 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/admin/template/admin.tpl
r10202 r10347 1 {if PHPWG_VERSION < 2.2 } 2 {include file=$AUTOSIZE_PATH_ABS|@cat:'admin/template/header_2_1.tpl'} 3 {else} 4 {include file= $AUTOSIZE_PATH_ABS|@cat:'admin/template/header_2_2.tpl'} 5 {/if} 1 6 {html_head} 2 7 <script type="text/javascript"> … … 35 40 </script> 36 41 37 {if PHPWG_VERSION < 2.2 } 38 {include file=$AUTOSIZE_PATH_ABS|@cat:'admin/template/header_2_1.tpl'} 39 {else} 40 {include file= $AUTOSIZE_PATH_ABS|@cat:'admin/template/header_2_2.tpl'} 41 {/if} 42 42 43 43 44 -
extensions/Autosize/admin/template/header_2_2.tpl
r9948 r10347 1 1 {get_combined_scripts load='header'} 2 {combine_script id="jquery" load="header" path = $ROOT_URL|@cat:"themes/default/js/jquery.min.js"}3 {combine_script id="jquery.cluetip" path = $ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.js" require="jquery" }2 {combine_script id="jquery" load="header" path = "themes/default/js/jquery.min.js"} 3 {combine_script id="jquery.cluetip" path = "themes/default/js/plugins/jquery.cluetip.js" require="jquery" } 4 4 {combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery"} 5 5 {combine_script id="dimensions" path = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" require="jquery"} -
extensions/Autosize/autosize.inc.php
r10308 r10347 46 46 if ('kardon' == $user['theme'] and isset($_GET['slideshow'])) return ; 47 47 48 $ma_page=isset($page['body_id'])?$page['body_id']:"" ; 49 if ($ma_page=='thePiwiShackControllerPage') return ; 50 51 if (PHPWG_VERSION < 2.2 ) 52 $file =AUTOSIZE_PATH_ABS.'template/header_2_1.tpl' ; 53 else 54 $file =AUTOSIZE_PATH_ABS.'template/header_2_2.tpl' ; 55 56 $template->set_filenames(array('autosize_init_header'=> $file )); 57 $template->set_filenames(array('autosize_init'=>AUTOSIZE_PATH_ABS. "template/conflit.tpl" ) ); 58 $DEBUG = isset($conf['cl_debug_conflit']) ? $conf['cl_debug_conflit'] : "false" ; 59 $autosize_parametres = cl_autosize_Get_Options() ; 60 $theme=$user['theme']; 61 $template->assign( 62 array( 63 'autosize_parametres' => $autosize_parametres , 64 'cl_plugins' => $cl_plugin , 65 'cl_version' => $cl_plugin['version'] , 66 'name' => $cl_plugin['name'] , 48 $ma_page=isset($page['body_id'])?$page['body_id']:"" ; 49 if ($ma_page=='thePiwiShackControllerPage') return ; 50 51 52 if (PHPWG_VERSION < 2.2 ) 53 $file =AUTOSIZE_PATH_ABS.'template/header_2_1.tpl' ; 54 else 55 $file =AUTOSIZE_PATH_ABS.'template/header_2_2.tpl' ; 56 $template->set_filenames(array('autosize_init_header'=> $file )); 57 $template->set_filenames(array('autosize_init'=>AUTOSIZE_PATH_ABS. "template/conflit.tpl" ) ); 58 59 $DEBUG = isset($conf['cl_debug_conflit']) ? $conf['cl_debug_conflit'] : "false" ; 60 $autosize_parametres = cl_autosize_Get_Options() ; 61 $theme=$user['theme']; 62 $template->assign( 63 array( 64 'autosize_parametres' => $autosize_parametres , 65 'cl_plugins' => $cl_plugin , 66 'cl_version' => $cl_plugin['version'] , 67 'name' => $cl_plugin['name'] , 67 68 68 69 70 'AUTOSIZE_PATH' => AUTOSIZE_PATH,71 72 73 69 'theme' => $theme , 70 'DEBUG' => $DEBUG , 71 'AUTOSIZE_PATH' => str_replace("../","",AUTOSIZE_PATH) , 72 'AUTOSIZE_PATH_ABS' => AUTOSIZE_PATH_ABS, 73 ) 74 ); 74 75 $template->concat('cl_conflit_init', $template->parse('autosize_init_header', true)); 75 76 return $template->parse( 'autosize_init', false); -
extensions/Autosize/main.inc.php
r10308 r10347 12 12 if (!defined('AUTOSIZE_PATH')) 13 13 define( 'AUTOSIZE_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' ); 14 if (!defined('ROOT_URL')) 15 define( 'ROOT_URL', get_root_url().'/' ); 14 16 15 //================================================================== 17 16 include(AUTOSIZE_PATH."include/constants.php"); … … 20 19 global $page; 21 20 if (!isset( $page['start'])) { 22 23 21 $page['start']=0; 24 22 } -
extensions/Autosize/template/header_2_2.tpl
r9990 r10347 1 {combine_script id="jquery" load="header" path = $ROOT_URL|@cat:"themes/default/js/jquery.min.js"}2 {combine_script id="jquery.cluetip" path = $ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.js" require="jquery" }1 {combine_script id="jquery" load="header" path = "themes/default/js/jquery.min.js"} 2 {combine_script id="jquery.cluetip" path = "themes/default/js/plugins/jquery.cluetip.js" require="jquery" } 3 3 {combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery"} 4 4 {combine_script id="dimensions" path = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" require="jquery"}
Note: See TracChangeset
for help on using the changeset viewer.