Changeset 11461 for extensions/Autosize
- Timestamp:
- Jun 21, 2011, 10:00:39 AM (13 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r11442 r11461 20 20 // | USA. | 21 21 // +-----------------------------------------------------------------------+ 22 if (!defined('AUTOSIZE_PATH'))23 define(24 'AUTOSIZE_PATH',25 PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'26 );27 if (!defined('ROOT_URL'))28 define( 'ROOT_URL', get_root_url().'/' );29 30 if (!defined('AUTOSIZE_PATH_ABS'))31 define(32 'AUTOSIZE_PATH_ABS', realpath(AUTOSIZE_PATH)."/"33 );34 35 36 22 class autosize_controler { 37 23 //============================================================ … … 57 43 else 58 44 $file =AUTOSIZE_PATH_ABS.'template/header_2_2.tpl' ; 59 60 ;61 62 45 $template->set_filenames(array('autosize_init_header'=> $file )); 63 46 $template->set_filenames(array('autosize_init'=>AUTOSIZE_PATH_ABS. "template/conflit.tpl" ) ); -
extensions/Autosize/include/affiche.php
r11429 r11461 15 15 $DEBUG_autosize = isset($conf['cl_debug_conflit']) ? $conf['cl_debug_conflit'] : $DEBUG_autosize ; 16 16 //================================================================================================= 17 $ AUTOSIZE_PATH= AUTOSIZE_PATH_ABS;17 $my_path = AUTOSIZE_PATH_ABS; 18 18 $theme=$user['theme']; 19 19 $user_status = $user['status'] ; -
extensions/Autosize/js/conflit.js
r11429 r11461 65 65 nbpa = 0; 66 66 var Fn; 67 if (typeof MooTools == "undefined" && typeof Prototype == "undefined") { 68 69 } else { 70 $mootools = $; 71 } 72 //==================================================== 67 73 function conflit(element, nc) { 68 if(typeof DEBUG != "boolean") DEBUG = false ;69 74 //--- cl_conflit 70 75 if (typeof MooTools == "undefined" && typeof Prototype == "undefined") { … … 530 535 jQuery('#browser').val(browser.browser); 531 536 } 532 533 if (typeof (Parent) == "undefined") return; 534 537 if (typeof (Parent) == "undefined") 538 Parent = "#theImage"; 535 539 info_image = jQuery(Parent).infos(); 536 540 p0 = jQuery(Parent); … … 573 577 //-------------------------------------------------------------- 574 578 $_0 = $; 575 579 function $(element, nc0) { 580 if (typeof jQuery.fn.infos != "function") 581 if (typeof myjQuery != "undefined") 582 jQuery = myjQuery; 583 a = conflit(element, nc0); 584 return a; 585 } 576 586 //=== ajout des fonctions jQuery === 577 $ = jQuery.fn.$; 578 579 if (typeof $mootools != "undefined") 580 jQuery.extend($, $mootools); 581 582 jQuery.extend($, $_0); 587 jQuery.extend($, jQuery); -
extensions/Autosize/js/conflit_2.js
r11429 r11461 1 1 2 2 //=== ajout des fonctions jQuery === 3 if (typeof MooTools!= "undefined" && typeof Prototype == "undefined") {3 if (typeof MooTools == "undefined" && typeof Prototype == "undefined") { 4 4 $mootools = window.$; 5 5 } else { … … 17 17 } 18 18 } 19 if (typeof Type_Img ) {} -
extensions/Autosize/main.inc.php
r11278 r11461 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().'/' ); 16 17 if (!defined('AUTOSIZE_PATH_ABS')) 18 define( 19 'AUTOSIZE_PATH_ABS', realpath(AUTOSIZE_PATH)."/" 20 ); 21 22 23 14 24 15 25 //================================================================== -
extensions/Autosize/template/conflit.tpl
r11429 r11461 12 12 {if not empty($cl_plugins )} 13 13 {foreach from=$cl_plugins item=cl_plug } 14 value='{$cl_plug}';cl_plugins.push(value);14 value="{$cl_plug}";cl_plugins.push(value); 15 15 {/foreach} 16 16 {/if} 17 17 {/if} 18 </script>{/html_head} 18 </script> 19 {/html_head} -
extensions/Autosize/template/header_2_2.tpl
r11429 r11461 4 4 {else} 5 5 {/if} 6 {combine_script id="conflit_script0" load="header" path = $AUTOSIZE_PATH|@cat:"js/conflit_2.js" require="jquery" } 6 7 {* au cas ou jquery non défini *} 7 {combine_script id="conflit_script0" load="header" path = $AUTOSIZE_PATH|@cat:"js/conflit_2.js" }8 {combine_script id="jquery" load="header" path = "themes/default/js/jquery.min.js"}9 10 {if $combine_file}11 {combine_script id="cl_dimensions" path = $AUTOSIZE_PATH|@cat:"js/autosize.dimensions.js" require="jquery"}12 {combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery,cl_dimensions" }13 {else}14 {combine_script id="cl_dimensions" path = $AUTOSIZE_PATH|@cat:"js/autosize.dimensions.js" require="jquery"}15 { combine_script id="conflit_script" load="footer" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery,cl_dimensions"}16 17 {/if}18 {combine_script id="jquery.cluetip" path = "themes/default/js/plugins/jquery.cluetip.js" require="jquery" }19 {combine_script id="autosize.cookie" path = $AUTOSIZE_PATH|@cat:"js/autosize.cookie.js" require="jquery,conflit_script0"}20 8 21 9 22 {combine_script id="conflit_script2" load="async" path = $AUTOSIZE_PATH|@cat:"js/conflit_2.js" require="jquery,conflit_script" } 10 11 {combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery" } 12 {combine_script id="jquery.cluetip" path = "themes/default/js/plugins/jquery.cluetip.js" require="jquery" } 13 {combine_script id="autosize.dimensions" path = $AUTOSIZE_PATH|@cat:"js/autosize.dimensions.js" require="jquery"} 14 {combine_script id="autosize.cookie" path = $AUTOSIZE_PATH|@cat:"js/autosize.cookie.js" require="jquery"} 15 16 17 {combine_script id="conflit_script2" load="async" path = $AUTOSIZE_PATH|@cat:"js/conflit_2.js" require="jquery" } 23 18 24 19 -
extensions/Autosize/template/picture.tpl
r11277 r11461 1 2 3 4 1 <style type="text/css"> 5 2 #bp_cla {ldelim}
Note: See TracChangeset
for help on using the changeset viewer.