Changeset 10787 for extensions/Autosize
- Timestamp:
- May 6, 2011, 12:16:37 PM (13 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/admin/template/header_2_1.tpl
r9473 r10787 1 {known_script id="jquery" src = $ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=0}2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 1 {known_script id="jquery" src = $ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=0} 2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 3 3 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/minified/ui.core.min.js"} 4 4 5 {known_script id="conflit_script" src = $AUTOSIZE_PATH|@cat:"js/conflit.js" } 6 {known_script id="dimensions" src = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" } 5 {known_script id="conflit_script" src = $AUTOSIZE_PATH|@cat:"js/conflit.js" } 6 {known_script id="dimensions" src = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" } 7 7 8 8 -
extensions/Autosize/admin/template/header_2_2.tpl
r10347 r10787 1 {get_combined_scripts load='header'} 1 {get_combined_scripts load='header'} 2 2 {combine_script id="jquery" load="header" path = "themes/default/js/jquery.min.js"} 3 3 {combine_script id="jquery.cluetip" path = "themes/default/js/plugins/jquery.cluetip.js" require="jquery" } 4 {combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery"} 5 {combine_script id="dimensions" path = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" require="jquery"} 4 {combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery"} 5 {combine_script id="dimensions" path = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" require="jquery"} 6 6 -
extensions/Autosize/admin/template/help.tpl
r8913 r10787 1 {html_head} {if PHPWG_VERSION < 2.2 }1 {html_head} {if PHPWG_VERSION < 2.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'} 3 {else} 4 {include file= $AUTOSIZE_PATH_ABS|@cat:'admin/template/header_2_2.tpl'} 5 5 {/if} 6 6 {/html_head} -
extensions/Autosize/js/Affiche_script.js
r10561 r10787 1 2 3 1 Parent = "#theImage"; 4 5 2 function Toggle_bp() { 6 3 cl_visible = !cl_visible; … … 296 293 297 294 Zone_Affichage = { height: 0, width: 0 }; 298 //============================================================ 295 //============================================================ 299 296 jQuery("#the_page").css({ top: "0px" }); 300 297 Info_the_page = jQuery("#the_page").infos(); … … 304 301 305 302 Zone_Affichage = jQuery(Parent).infos(); 306 // 303 // 307 304 var old_window = { width: 0, height: 0 }; 308 305 Bandeau_bas = Info_Description_f(Parent); … … 316 313 jQuery().newResize(); 317 314 318 //=================================================================== 315 //=================================================================== 319 316 /* 320 317 * window .resize … … 366 363 //==================================================== 367 364 newResize: function () { 368 // 365 // 369 366 //if (options.imageAutosize) return true ;stripped 370 367 if (DEBUG == "true") { … … 440 437 } else if (info_ToolBar.width > 0) { 441 438 marge = (info_the_page.width - info_ToolBar.width) / 2; 442 439 443 440 marge_right = marge + info_the_page.left; 444 441 marge_left = marge; … … 635 632 img_reelle.height = parseInt(img_reelle.height); 636 633 if (img_reelle.height < parseInt(mini_height)) return true; 637 //================================================================================== 634 //================================================================================== 638 635 if (rapport < 0) { 639 636 … … 764 761 Image_width -= (Bandeau_t.borderwidth.left + Bandeau_t.borderwidth.left); 765 762 if (Image_width > widthmin) { 766 // Image_width largeur à atteindre 767 // Calcul du rapport d'agrandissement 763 // Image_width largeur à atteindre 764 // Calcul du rapport d'agrandissement 768 765 var echelle_w = parseFloat((widthmin) / img_reelle.width, 3); 769 766 if (echelle_w > echelle_max) { echelle_w = echelle_max; } … … 884 881 if (jQuery("#slideshow").infos().width > 0) { 885 882 886 883 887 884 } else { 888 885 889 886 } 890 887 //=== cadre = theImage … … 901 898 } 902 899 } 903 //============= flv,mov,mpg ok 900 //============= flv,mov,mpg ok 904 901 /* wmv nok 905 902 * avi nok … … 990 987 jQuery("#pamoorama_outter").css({ width: new_width + "px" }); 991 988 jQuery("#pamoorama_footer").css({ width: new_width + "px" }); 992 // 989 // 993 990 //==================================================== 994 991 info_pamoorama = jQuery("#pamoorama").infos(); … … 1278 1275 } 1279 1276 // jQuery(Parent + " p:not(:contains(' ')) ").remove(); 1280 // jQuery(Parent + " p:(:contains('')) ").remove(); 1277 // jQuery(Parent + " p:(:contains('')) ").remove(); 1281 1278 llgboframe = jQuery("#gbo").infos(); 1282 1279 marges_llgbo = 0; 1283 1280 1284 1281 if (llgboframe.height > 0) { 1285 ll2 = jQuery("#gbo div:last").infos(); 1282 ll2 = jQuery("#gbo div:last").infos(); 1286 1283 ll1 = jQuery("#gbo div:first").infos(); 1287 1284 ll2 ="" ; 1288 1285 jQuery("#gbo div").each(function (i) { 1289 1286 1290 1287 if ( this.id=="") return ; 1291 1288 ll2=this ; 1292 1289 }); 1293 ll2 = jQuery(ll2).infos(); 1290 ll2 = jQuery(ll2).infos(); 1294 1291 ll1 = ll1.width; 1295 1292 ll2 = ll2.width - ll2.borderwidth.left - ll2.borderwidth.right; … … 1303 1300 info_theImgContainer = jQuery("#" + "theImgContainer").infos(); 1304 1301 info_description = jQuery("#" + "description").infos(); 1305 //============================================================================= 1302 //============================================================================= 1306 1303 // jQuery(Parent + " p").css({ padding: "0px", margin: "0px " }); 1307 1304 if (theme.match(RegExp("simple", "gi"))) { … … 1418 1415 info_description.borderwidth.top + 1419 1416 info_description.borderwidth.bottom + 1420 options.imageAutosizeMargin*2 + 1417 options.imageAutosizeMargin*2 + 1421 1418 (marges_llgbo / 2)+4; 1422 1419 1423 1420 } else { 1424 1425 1421 1422 1426 1423 info_description.top = info_theImageBox.bottom + 1427 1424 jQuery("#content").infos().top + … … 1433 1430 if (msie == true) info_description.bottom -= 4; 1434 1431 }; 1435 check_desc_v = true; 1432 check_desc_v = true; 1436 1433 1437 1434 } else { … … 1440 1437 // info_description.bottom -= info_img.top; 1441 1438 } 1442 // 1439 // 1443 1440 1444 1441 info_description.height = info_description.bottom - info_description.top; … … 1493 1490 jQuery("[id ^='Debug']").show(); 1494 1491 /* 1495 Debug2 background-color:yellow 1496 Debug3 background-color:blue 1497 Debug4 background-color:green 1498 Debug5 background-color:red 1492 Debug2 background-color:yellow 1493 Debug3 background-color:blue 1494 Debug4 background-color:green 1495 Debug5 background-color:red 1499 1496 1500 1497 */ … … 1536 1533 }); 1537 1534 1538 // Custom Event, ON to turn on a debug. 1535 // Custom Event, ON to turn on a debug. 1539 1536 jQuery('.debug').live('ON', function (e) { 1540 1537 … … 1561 1558 }); 1562 1559 1563 // Add another debug to the DOM 1560 // Add another debug to the DOM 1564 1561 jQuery('#adddebugs').click(function () { 1565 1562 jQuery('<div></div>') … … 1579 1576 } 1580 1577 }); //on load 1581 }); 1578 }); -
extensions/Autosize/js/conflit.js
r10561 r10787 1 //==== cl_conflit remplace $(... avec jQuery( ====1 //==== cl_conflit remplace $(... avec jQuery( ==== 2 2 //=================================================== 3 3 var detect = navigator.userAgent.toLowerCase(); 4 4 // $_SERVER['HTTP_USER_AGENT'] ; 5 5 var OS, version; 6 7 //============================================================================== 6 //============================================================================== 8 7 browser = detect_browser(); 9 8 function detect_browser() { … … 19 18 msie: false, 20 19 netscape: false, 21 seamonkey: false 20 seamonkey: false 22 21 } 23 22 if (checkIt('konqueror')) { mybrowser.Konqueror = true; lbrowser = "konqueror"; OS = "Linux"; } … … 52 51 53 52 /* 54 55 53 */ 56 54 konqueror = mybrowser.konqueror || false; … … 68 66 function conflit(element, nc) { 69 67 if(typeof DEBUG != "boolean") DEBUG = false ; 70 //--- cl_conflit 68 //--- cl_conflit 71 69 if (typeof MooTools == "undefined" && typeof Prototype == "undefined") { 72 70 ret_element = jQuery(element); … … 181 179 jQuery(".gmapsPopup").css("top", h1 + "px"); 182 180 }) 183 //============================================================= 181 //============================================================= 184 182 // jQuery(window).resize(); 185 183 }); … … 347 345 if (!isCallstackPopulated) { //IE and Safari 348 346 var currentFunction = arguments.callee.caller; 349 //next 347 //next 350 348 callstack = []; 351 349 all_functions = []; … … 391 389 } 392 390 //====================== 393 //? bubble 391 //? bubble 394 392 Expression = new RegExp("\\$", "gi") 395 393 if (fn.match(Expression)) { … … 456 454 state = states.join('\n'); 457 455 if (state == "") { 458 456 459 457 if ( DEBUG == "true") { 460 458 Fn = all_functions.join('\n'); … … 503 501 else initializeImageMode("resize"); 504 502 }; 505 //==== compatibilité Gally/LLGBO === 503 //==== compatibilité Gally/LLGBO === 506 504 jQuery(Parent).css({ position: "static" }); 507 505 } … … 530 528 531 529 } else {} 532 //-------------------------------------------------------------- 530 //-------------------------------------------------------------- 533 531 $_0 = $; 534 532 function $(element, nc0) { -
extensions/Autosize/template/header_2_1.tpl
r9473 r10787 1 {html_head}1 {html_head} 2 2 {known_script id="jquery" src = $ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=0} 3 3 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.js"} -
extensions/Autosize/template/header_2_2.tpl
r10347 r10787 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" } 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 {combine_script id="dimensions" path = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" require="jquery"} 5 {combine_script id="cookie" path = $AUTOSIZE_PATH|@cat:"js/jquery.cookie.js" require="jquery"} 4 {combine_script id="dimensions" path = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" require="jquery"} 5 {combine_script id="cookie" path = $AUTOSIZE_PATH|@cat:"js/jquery.cookie.js" require="jquery"} -
extensions/Autosize/template/picture_2_1.tpl
r8911 r10787 1 {known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"}1 { known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"} -
extensions/Autosize/template/picture_2_2.tpl
r9948 r10787 1 {combine_script id="Affiche_script" path= $AUTOSIZE_PATH|@cat:"js/Affiche_script.js" require='jquery,cookie' }1 {combine_script id="Affiche_script" path= $AUTOSIZE_PATH|@cat:"js/Affiche_script.js" require='jquery,cookie' }
Note: See TracChangeset
for help on using the changeset viewer.