Changeset 10787


Ignore:
Timestamp:
May 6, 2011, 12:16:37 PM (13 years ago)
Author:
cljosse
Message:

[extensions] autosize compatiblity with gmaps(Version 1.3.0a)

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"}
    33{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/minified/ui.core.min.js"}
    44
    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"  }
    77
    88
  • extensions/Autosize/admin/template/header_2_2.tpl

    r10347 r10787  
    1 {get_combined_scripts load='header'}
     1{get_combined_scripts load='header'}
    22{combine_script id="jquery" load="header" path = "themes/default/js/jquery.min.js"}
    33{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"}
    66
  • extensions/Autosize/admin/template/help.tpl

    r8913 r10787  
    1 {html_head} {if PHPWG_VERSION < 2.2 }
     1{html_head} {if PHPWG_VERSION < 2.2 }
    22 {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'}
    55{/if}
    66{/html_head}
  • extensions/Autosize/js/Affiche_script.js

    r10561 r10787  
    1 
    2 
    31Parent = "#theImage";
    4 
    52function Toggle_bp() {
    63    cl_visible = !cl_visible;
     
    296293
    297294         Zone_Affichage = { height: 0, width: 0 };
    298          //============================================================       
     295         //============================================================
    299296         jQuery("#the_page").css({ top: "0px" });
    300297         Info_the_page = jQuery("#the_page").infos();
     
    304301
    305302         Zone_Affichage = jQuery(Parent).infos();
    306          //   
     303         //
    307304         var old_window = { width: 0, height: 0 };
    308305         Bandeau_bas = Info_Description_f(Parent);
     
    316313         jQuery().newResize();
    317314
    318          //=================================================================== 
     315         //===================================================================
    319316         /*
    320317         * window .resize
     
    366363         //====================================================
    367364         newResize: function () {
    368            // 
     365           //
    369366           //if (options.imageAutosize) return true ;stripped
    370367           if (DEBUG == "true") {
     
    440437             } else if (info_ToolBar.width > 0) {
    441438               marge = (info_the_page.width - info_ToolBar.width) / 2;
    442              
     439
    443440               marge_right = marge + info_the_page.left;
    444441               marge_left = marge;
     
    635632           img_reelle.height = parseInt(img_reelle.height);
    636633           if (img_reelle.height < parseInt(mini_height)) return true;
    637            //==================================================================================   
     634           //==================================================================================
    638635           if (rapport < 0) {
    639636
     
    764761             Image_width -= (Bandeau_t.borderwidth.left + Bandeau_t.borderwidth.left);
    765762             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
    768765               var echelle_w = parseFloat((widthmin) / img_reelle.width, 3);
    769766               if (echelle_w > echelle_max) { echelle_w = echelle_max; }
     
    884881           if (jQuery("#slideshow").infos().width > 0) {
    885882
    886              
     883
    887884           } else {
    888              
     885
    889886           }
    890887           //=== cadre = theImage
     
    901898             }
    902899           }
    903            //============= flv,mov,mpg  ok 
     900           //============= flv,mov,mpg  ok
    904901           /* wmv nok
    905902           * avi nok
     
    990987             jQuery("#pamoorama_outter").css({ width: new_width + "px" });
    991988             jQuery("#pamoorama_footer").css({ width: new_width + "px" });
    992              //     
     989             //
    993990             //====================================================
    994991             info_pamoorama = jQuery("#pamoorama").infos();
     
    12781275    }
    12791276    // jQuery(Parent + " p:not(:contains(' ')) ").remove();
    1280     // jQuery(Parent + " p:(:contains('')) ").remove(); 
     1277    // jQuery(Parent + " p:(:contains('')) ").remove();
    12811278    llgboframe = jQuery("#gbo").infos();
    12821279    marges_llgbo = 0;
    12831280
    12841281    if (llgboframe.height > 0) {
    1285  ll2 = jQuery("#gbo div:last").infos(); 
     1282 ll2 = jQuery("#gbo div:last").infos();
    12861283        ll1 = jQuery("#gbo div:first").infos();
    12871284        ll2 ="" ;
    12881285        jQuery("#gbo div").each(function (i) {
    1289        
     1286
    12901287         if (  this.id=="") return ;
    12911288ll2=this ;
    12921289        });
    1293        ll2 = jQuery(ll2).infos(); 
     1290       ll2 = jQuery(ll2).infos();
    12941291        ll1 = ll1.width;
    12951292        ll2 = ll2.width - ll2.borderwidth.left - ll2.borderwidth.right;
     
    13031300    info_theImgContainer = jQuery("#" + "theImgContainer").infos();
    13041301    info_description = jQuery("#" + "description").infos();
    1305     //=============================================================================         
     1302    //=============================================================================
    13061303    //   jQuery(Parent + " p").css({ padding: "0px", margin: "0px "    });
    13071304    if (theme.match(RegExp("simple", "gi"))) {
     
    14181415                                    info_description.borderwidth.top +
    14191416                                    info_description.borderwidth.bottom +
    1420                                       options.imageAutosizeMargin*2 + 
     1417                                      options.imageAutosizeMargin*2 +
    14211418                                    (marges_llgbo / 2)+4;
    14221419
    14231420        } else {
    1424        
    1425        
     1421
     1422
    14261423            info_description.top = info_theImageBox.bottom +
    14271424                        jQuery("#content").infos().top +
     
    14331430           if (msie == true) info_description.bottom -= 4;
    14341431        };
    1435         check_desc_v = true; 
     1432        check_desc_v = true;
    14361433
    14371434    } else {
     
    14401437        // info_description.bottom -= info_img.top;
    14411438    }
    1442     // 
     1439    //
    14431440
    14441441    info_description.height = info_description.bottom - info_description.top;
     
    14931490        jQuery("[id ^='Debug']").show();
    14941491        /*
    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
    14991496
    15001497        */
     
    15361533    });
    15371534
    1538     // Custom Event, ON to turn on a debug. 
     1535    // Custom Event, ON to turn on a debug.
    15391536    jQuery('.debug').live('ON', function (e) {
    15401537
     
    15611558    });
    15621559
    1563     // Add another debug to the DOM 
     1560    // Add another debug to the DOM
    15641561    jQuery('#adddebugs').click(function () {
    15651562        jQuery('<div></div>')
     
    15791576        }
    15801577    }); //on load
    1581 }); 
     1578});
  • extensions/Autosize/js/conflit.js

    r10561 r10787  
    1 //==== cl_conflit  remplace $(... avec jQuery( ====
     1//==== cl_conflit  remplace $(... avec jQuery( ====
    22//===================================================
    33var detect = navigator.userAgent.toLowerCase();
    44//   $_SERVER['HTTP_USER_AGENT'] ;
    55var OS, version;
    6 
    7 //==============================================================================
     6//==============================================================================
    87browser = detect_browser();
    98function detect_browser() {
     
    1918        msie: false,
    2019        netscape: false,
    21         seamonkey: false 
     20        seamonkey: false
    2221    }
    2322    if (checkIt('konqueror')) { mybrowser.Konqueror = true; lbrowser = "konqueror"; OS = "Linux"; }
     
    5251
    5352/*
    54  
    5553*/
    5654konqueror = mybrowser.konqueror || false;
     
    6866function conflit(element, nc) {
    6967  if(typeof DEBUG != "boolean") DEBUG = false ;
    70     //--- cl_conflit 
     68    //--- cl_conflit
    7169    if (typeof MooTools == "undefined" && typeof Prototype == "undefined") {
    7270        ret_element = jQuery(element);
     
    181179          jQuery(".gmapsPopup").css("top", h1 + "px");
    182180        })
    183         //============================================================= 
     181        //=============================================================
    184182        //   jQuery(window).resize();
    185183      });
     
    347345    if (!isCallstackPopulated) { //IE and Safari
    348346        var currentFunction = arguments.callee.caller;
    349         //next 
     347        //next
    350348        callstack = [];
    351349        all_functions = [];
     
    391389            }
    392390            //======================
    393             //? bubble 
     391            //? bubble
    394392            Expression = new RegExp("\\$", "gi")
    395393            if (fn.match(Expression)) {
     
    456454    state = states.join('\n');
    457455    if (state == "") {
    458      
     456
    459457        if ( DEBUG == "true") {
    460458            Fn = all_functions.join('\n');
     
    503501                        else initializeImageMode("resize");
    504502                    };
    505                     //==== compatibilité Gally/LLGBO ===                 
     503                    //==== compatibilité Gally/LLGBO ===
    506504                    jQuery(Parent).css({ position: "static" });
    507505                }
     
    530528
    531529} else {}
    532     //-------------------------------------------------------------- 
     530    //--------------------------------------------------------------
    533531    $_0 = $;
    534532    function $(element, nc0) {
  • extensions/Autosize/template/header_2_1.tpl

    r9473 r10787  
    1 {html_head}
     1{html_head}
    22{known_script id="jquery" src = $ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=0}
    33{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" }
    33{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.