Changeset 10913


Ignore:
Timestamp:
May 17, 2011, 6:43:15 PM (13 years ago)
Author:
cljosse
Message:

[extensions] autosize compatibility with pamooramics & gmaps

Location:
extensions/Autosize
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r10845 r10913  
    7070        'cl_version' => $cl_plugin['version'] ,
    7171        'name' => $cl_plugin['name'] ,
    72                                                                          
     72        'pamoorama' =>  isset($PAMOORAMICS_PATH)?"true":"false",                                                                 
    7373        'theme' => $theme  ,
    7474        'DEBUG_autosize' =>  $DEBUG_autosize ,
     
    168168
    169169        $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));   
    179171                       
    180172        $template->set_filenames(array('autosize_init_header'=> $file ));
  • extensions/Autosize/css/autosize.css

    r10845 r10913  
    6060}
    6161.navThumbNextBg{
    62    right:0px;
     62 
    6363}
    64  #navThumbNextContainer {
    65   right:90px;
    66 }
     64
     65
  • extensions/Autosize/js/Affiche_script.js

    r10846 r10913  
    1818
    1919}
     20nu_img = 0;
     21tempo=0;
    2022
    2123function Wait_pamoorama() {
     
    2325        mypanorama = window.myPamoorama;
    2426        if (!mypanorama) {
     27          tempo = tempo + 1;
     28          if (tempo > 10)
     29          return true;
     30
    2531            setTimeout("Wait_pamoorama()", 500);
    2632            return false;
     
    4349    }
    4450}
    45 nu_img = 0;
     51
    4652
    4753//==========================================================================
     
    253259               function (event, ui) {
    254260                 List_autosize_resize(event, ui);
    255 
     261                 jQuery().newResize();
    256262               });
    257263
     
    491497           switch (Type_Img) {
    492498             case "map":
    493                img_reelle.height = info_img.height;
     499               img_reelle.height = winheight; // info_img.height;
    494500               info_map = jQuery("#mapPicture").infos();
    495501               jQuery("#map").css("left", info_map.width + "px");
     
    10301036             jQuery("#navThumbNext").css({ display: 'none' });
    10311037             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
    10321043           }
    10331044           try {
     
    10411052                   gallyPP = new GallyPP();
    10421053
    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);
    10461057               }
    10471058               //===========================================================================
    1048                /*   
    10491059               if (jQuery("#navThumbPrev").length > 0) {
    1050                jQuery("#navThumbPrev").css({ left: 20 + "px",
    1051                overflow: "hidden"
    1052                });
    1053 
     1060                 jQuery("#navThumbPrevContainer").css({ left: "0px"
     1061                 });
    10541062               }
    10551063               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               }
    10631067               //=============================================================================
    1064 
    1065 
    10661068               if (!theme.match(RegExp("lapis", "gi"))) {
    10671069                 if (typeof initializeImageMode == "function") {
     
    15361538jQuery(function () {
    15371539  //'gallyInterfaceReady'
    1538             jQuery(Document).live('gallyInterfaceReady',function () {
    1539                alert("Clic sur a#test1.");
    1540             });
     1540
    15411541    jQuery('#pamoorama').live('ON', function (e) {
    15421542        jQuery(jQuery('.debug').get(1)).trigger('ON');
  • extensions/Autosize/js/conflit.js

    r10845 r10913  
    6464nbpa = 0;
    6565var Fn;
     66if (typeof MooTools == "undefined" && typeof Prototype == "undefined") {
     67
     68} else {
     69  $mootools = $;
     70}
     71//====================================================
    6672function conflit(element, nc) {
    6773     //--- cl_conflit
     
    227233        return a;
    228234    },
    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} ,
    230240    //---------------- luciano -------------------------------
    231241    $Luciano: function (el, nc) {
     
    558568            $ = my$;
    559569        }
     570         
     571   
     572
    560573    });
    561574
    562575})(jQuery);
    563576
    564 if (typeof MooTools == "undefined" && typeof Prototype == "undefined") {
    565 
    566 } else {}
     577
    567578    //--------------------------------------------------------------
    568579    $_0 = $;
  • extensions/Autosize/main.inc.php

    r10347 r10913  
    2424add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin')  );
    2525
    26 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL  );
     26add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script_1'),  EVENT_HANDLER_PRIORITY_NEUTRAL+20  ,  2);     
     27add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL+21  );
    2728
    28 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script_1'),  EVENT_HANDLER_PRIORITY_NEUTRAL+20  ,  2);     
    2929add_event_handler('loc_end_page_tail',array(&$autosize_controler, 'cl_autosize_script_2'),  EVENT_HANDLER_PRIORITY_NEUTRAL );
    3030?>
  • 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"
     8require="jquery" }
     9{combine_script id="conflit_script"  path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery" }
    210{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"}
    411{combine_script id="autosize.dimensions" path = $AUTOSIZE_PATH|@cat:"js/autosize.dimensions.js" require="jquery"}
    512{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.