Changeset 10913 for extensions/Autosize
- Timestamp:
- May 17, 2011, 6:43:15 PM (13 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r10845 r10913 70 70 'cl_version' => $cl_plugin['version'] , 71 71 'name' => $cl_plugin['name'] , 72 72 'pamoorama' => isset($PAMOORAMICS_PATH)?"true":"false", 73 73 'theme' => $theme , 74 74 'DEBUG_autosize' => $DEBUG_autosize , … … 168 168 169 169 $template->set_filenames(array('autosize_content_header'=> $file )); 170 171 172 if (PHPWG_VERSION < 2.2 ) 173 $file =AUTOSIZE_PATH_ABS.'template/header_2_1.tpl' ; 174 else 175 $file =AUTOSIZE_PATH_ABS.'template/header_2_2.tpl' ; 176 177 $template->set_filenames(array('autosize_content_header2'=> $file )); 178 $template->concat('autosize_content', $template->parse('autosize_content_header2', true)); 170 $template->concat('autosize_content', $template->parse('autosize_content_header', true)); 179 171 180 172 $template->set_filenames(array('autosize_init_header'=> $file )); -
extensions/Autosize/css/autosize.css
r10845 r10913 60 60 } 61 61 .navThumbNextBg{ 62 right:0px;62 63 63 } 64 #navThumbNextContainer { 65 right:90px; 66 } 64 65 -
extensions/Autosize/js/Affiche_script.js
r10846 r10913 18 18 19 19 } 20 nu_img = 0; 21 tempo=0; 20 22 21 23 function Wait_pamoorama() { … … 23 25 mypanorama = window.myPamoorama; 24 26 if (!mypanorama) { 27 tempo = tempo + 1; 28 if (tempo > 10) 29 return true; 30 25 31 setTimeout("Wait_pamoorama()", 500); 26 32 return false; … … 43 49 } 44 50 } 45 nu_img = 0; 51 46 52 47 53 //========================================================================== … … 253 259 function (event, ui) { 254 260 List_autosize_resize(event, ui); 255 261 jQuery().newResize(); 256 262 }); 257 263 … … 491 497 switch (Type_Img) { 492 498 case "map": 493 img_reelle.height = info_img.height;499 img_reelle.height = winheight; // info_img.height; 494 500 info_map = jQuery("#mapPicture").infos(); 495 501 jQuery("#map").css("left", info_map.width + "px"); … … 1030 1036 jQuery("#navThumbNext").css({ display: 'none' }); 1031 1037 jQuery("#navThumbPrev").css({ display: 'none' }); 1038 jQuery("#theImage").css({ marginTop: info_ToolBar.height+"px", marginLeft: "0px", 1039 width: winwidth+"px", 1040 height: winheight + "px" 1041 }); 1042 //mapPicture 1032 1043 } 1033 1044 try { … … 1041 1052 gallyPP = new GallyPP(); 1042 1053 1043 iph= jQuery("#imageHeaderBar").infos();1044 jQuery("#imageToolBar").css({ top: iph.bottom + "px", position: "absolute" });1045 jQuery("#theImage").width(winwidth);1054 iph = jQuery("#imageHeaderBar").infos(); 1055 jQuery("#imageToolBar").css({ top: iph.bottom + "px", position: "absolute" }); 1056 jQuery("#theImage").width(winwidth); 1046 1057 } 1047 1058 //=========================================================================== 1048 /*1049 1059 if (jQuery("#navThumbPrev").length > 0) { 1050 jQuery("#navThumbPrev").css({ left: 20 + "px", 1051 overflow: "hidden" 1052 }); 1053 1060 jQuery("#navThumbPrevContainer").css({ left: "0px" 1061 }); 1054 1062 } 1055 1063 if (jQuery("#navThumbNext").length > 0) { 1056 jQuery("#navThumbNext").css({ right: 20 + "px", 1057 overflow: "hidden" 1058 }); 1059 1060 } 1061 */ 1062 1064 jQuery("#navThumbNextContainer").css({ left: "0px" 1065 }); 1066 } 1063 1067 //============================================================================= 1064 1065 1066 1068 if (!theme.match(RegExp("lapis", "gi"))) { 1067 1069 if (typeof initializeImageMode == "function") { … … 1536 1538 jQuery(function () { 1537 1539 //'gallyInterfaceReady' 1538 jQuery(Document).live('gallyInterfaceReady',function () { 1539 alert("Clic sur a#test1."); 1540 }); 1540 1541 1541 jQuery('#pamoorama').live('ON', function (e) { 1542 1542 jQuery(jQuery('.debug').get(1)).trigger('ON'); -
extensions/Autosize/js/conflit.js
r10845 r10913 64 64 nbpa = 0; 65 65 var Fn; 66 if (typeof MooTools == "undefined" && typeof Prototype == "undefined") { 67 68 } else { 69 $mootools = $; 70 } 71 //==================================================== 66 72 function conflit(element, nc) { 67 73 //--- cl_conflit … … 227 233 return a; 228 234 }, 229 235 removeListener: function (B, A) { 236 if (this.removeEventListener) { this.removeEventListener(B, A, false); } else { 237 this.detachEvent("on" + B, A); 238 } return this; 239 } , 230 240 //---------------- luciano ------------------------------- 231 241 $Luciano: function (el, nc) { … … 558 568 $ = my$; 559 569 } 570 571 572 560 573 }); 561 574 562 575 })(jQuery); 563 576 564 if (typeof MooTools == "undefined" && typeof Prototype == "undefined") { 565 566 } else {} 577 567 578 //-------------------------------------------------------------- 568 579 $_0 = $; -
extensions/Autosize/main.inc.php
r10347 r10913 24 24 add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin') ); 25 25 26 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL ); 26 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script_1'), EVENT_HANDLER_PRIORITY_NEUTRAL+20 , 2); 27 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL+21 ); 27 28 28 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script_1'), EVENT_HANDLER_PRIORITY_NEUTRAL+20 , 2);29 29 add_event_handler('loc_end_page_tail',array(&$autosize_controler, 'cl_autosize_script_2'), EVENT_HANDLER_PRIORITY_NEUTRAL ); 30 30 ?> -
extensions/Autosize/template/header_2_2.tpl
r10845 r10913 1 {combine_script id="jquery" load="header" path = "themes/default/js/jquery.min.js"} 1 {if not empty($pamoorama)} 2 3 <script id="pamoorama0.3" src="plugins/paMOOramics/js/pamoorama0.3.js" type="text/jscript"></script> 4 <script id="mootools" src="plugins/paMOOramics/js/mootools.js" type="text/jscript"></script> 5 6 7 {else}{/if}{combine_script id="conflit_script0" load="header" path = $AUTOSIZE_PATH|@cat:"js/conflit_2.js" 8 require="jquery" } 9 {combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery" } 2 10 {combine_script id="jquery.cluetip" path = "themes/default/js/plugins/jquery.cluetip.js" require="jquery" } 3 {combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery"}4 11 {combine_script id="autosize.dimensions" path = $AUTOSIZE_PATH|@cat:"js/autosize.dimensions.js" require="jquery"} 5 12 {combine_script id="autosize.cookie" path = $AUTOSIZE_PATH|@cat:"js/autosize.cookie.js" require="jquery"} 13 14 15 {combine_script id="conflit_script2" load="async" path = $AUTOSIZE_PATH|@cat:"js/conflit_2.js" require="jquery" } 16 17 -
extensions/Autosize/template/picture_2_2.tpl
r10845 r10913 1 {combine_script id="Affiche_script" path= $AUTOSIZE_PATH|@cat:"js/Affiche_script.js" require='jquery,autosize.cookie ' }1 {combine_script id="Affiche_script" path= $AUTOSIZE_PATH|@cat:"js/Affiche_script.js" require='jquery,autosize.cookie,conflit_script' }
Note: See TracChangeset
for help on using the changeset viewer.