Changeset 8070

Show
Ignore:
Timestamp:
12/10/10 12:02:59 (2 years ago)
Author:
cljosse
Message:

[Autosize][beta] fix bug whith pamooramic


Location:
extensions/Autosize
Files:
5 modified

Legend:

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

    r8057 r8070  
    4040                load_language('lang', AUTOSIZE_PATH); 
    4141                $my_path = dirname(__FILE__).'/'; 
     42 
     43 
     44 
     45                 if (isset( $page['body_id']) && $page['body_id']=='thePicturePage'  ) { 
     46                        if ( isset($picture['current'])){        
     47                                         
     48                         
    4249         
    43                  if (isset( $page['body_id']) && $page['body_id']=='thePicturePage'  ) { 
    44                         if ( isset($picture['current'])){                                
     50                                 
    4551                                $autosize_parametres = cl_autosize_Get_Options(); 
    4652                                include (AUTOSIZE_PATH."include/affiche.php");   
     
    6672                                                                                                         
    6773                                return $template->parse( 'autosize_content', false); 
    68       
    69                   } 
     74                                  } 
    7075                } 
     76 
    7177        } //public function cl_autosize_affiche 
    7278        /* 
     
    137143                /* cl_autosize_script_3 */ 
    138144                var DEBUG=\"".$DEBUG."\" ; 
    139                 if (fade_in !=0) jQuery('#theImage').css({opacity:'0.0'}); 
     145                if (fade_in !=0) jQuery('#theImage').css({opacity:'0.0'}); 
     146                if (fade_in !=0) jQuery('#theImage').css({opacity:'1.0'}); 
     147          
    140148</script>"; 
    141149 
    142                 $template->append('footer_elements',"\n".$autocss); 
    143  
     150        //      $template->append('footer_elements',"\n".$autocss); 
     151  
    144152                if ( !empty($content) )   {  return $content;  }         
    145153                if ($ThePicture['is_picture'] <> 1 )    {  
  • extensions/Autosize/js/Affiche_script.js

    r8057 r8070  
    44    // jQuery est charg� 
    55} 
     6 
     7//http: //maps.gstatic.com/cat_js/intl/fr_ALL/mapfiles/api-3/3/3a/{common,map,util,marker}.js 
    68 
    79function Toggle_bp() { 
     
    5961             fade_in = parseInt(fade_in); 
    6062             if (fade_in == 0) { 
     63                 if (msie) 
     64                     jQuery(Parent).css({opacity:"1",filter: "alpha(opacity=100)"}); 
     65             else 
    6166                 jQuery(Parent).css("opacity","1"); 
    6267             } else { 
     
    8287     function (jQuery) { 
    8388         jQuery(window).load(function () { 
    84  
     89             if (fade_in != 0) { 
     90                 if (msie) 
     91                     jQuery("#theImage").css({ opacity: "0"  }); 
     92                 else 
     93                     jQuery("#theImage").css({ opacity: "0" }); 
     94             } 
    8595             //======= cl_conflit ====== 
    8696             img_top = "0"; 
     
    576586                 img_finale.width = Image_width; 
    577587                 if (theme.match(RegExp("stripped", "gi"))) { 
    578                      img_finale.width  -= llgboframe.top; 
    579                      img_finale.height = img_finale.width/rapport; 
     588                     img_finale.width -= llgboframe.top; 
     589                     img_finale.height = img_finale.width / rapport; 
    580590                 } 
    581591                 zoom = echelle; 
     
    589599 
    590600 
    591                          wingbo = img_finale.width;   
    592                          heightgbo = img_finale.height;   
    593                          img_finale.width -= marges_llgbo ; 
     601                         wingbo = img_finale.width; 
     602                         heightgbo = img_finale.height; 
     603                         img_finale.width -= marges_llgbo; 
    594604                         img_finale.height -= marges_llgbo; 
    595605 
     
    750760 
    751761 
    752                      jQuery("#pamoorama_inner ").css({ zoom: zoom }); 
     762                     //  if(msie || safari) jQuery("#pamoorama_inner ").css({ zoom: zoom }); 
    753763                     //==================================================== 
    754764                     jQuery("#pamoorama").css({ 
     
    13111321 
    13121322 
    1313 $(function () { 
     1323     jQuery(function () { 
    13141324         jQuery('#pamoorama').live('ON', function (e) { 
    13151325             jQuery(jQuery('.debug').get(1)).trigger('ON'); 
     
    13231333         // Custom Event, ON to turn on a debug.  
    13241334         jQuery('.debug').live('ON', function (e) { 
    1325              
     1335 
    13261336             jQuery('.debug').trigger('OFF'); 
    13271337             jQuery(this).addClass('debugOn'); 
     
    13301340         // On Click = debugs On 
    13311341         jQuery('.debug').live('click', function (e) { 
    1332              
     1342 
    13331343             jQuery(this).trigger('ON'); 
    13341344         }); 
     
    13361346         // Custom Event, Turn off a debug 
    13371347         jQuery('.debug').live('OFF', function (e) { 
    1338               
     1348 
    13391349             jQuery(this).removeClass('debugOn'); 
    13401350         }); 
     
    13421352         // on Double Click, remove the debug from the DOM 
    13431353         jQuery('.debug').live('dblclick', function () { 
    1344             
     1354 
    13451355             jQuery(this).fadeOut(function () { $(this).remove() }); 
    13461356         }); 
     
    13551365         // Add 10 testing debugs to start with 
    13561366         jQuery(window).load(function () { 
    1357          if (DEBUG == "true") { 
    1358              for (var i = 0; i < 10; i++) { 
    1359                  jQuery('#adddebugs').click(); 
     1367             if (DEBUG == "true") { 
     1368                 for (var i = 0; i < 10; i++) { 
     1369                     jQuery('#adddebugs').click(); 
     1370                 } 
     1371                 jQuery(jQuery('.debug').get(8)).click(); 
     1372 
    13601373             } 
    1361              jQuery(jQuery('.debug').get(8)).click(); 
    1362  
    1363          } 
    1364         }); //on load 
     1374         }); //on load 
    13651375     });  
  • extensions/Autosize/js/conflit.js

    r8057 r8070  
    7272function conflit(element, nc) { 
    7373    //--- cl_conflit     
     74    if (typeof (element) == "string") { 
     75        if (element.match("^#|.ui", "gi")) { 
     76            ret_element = jQuery(element); 
     77            return ret_element; 
     78        } 
     79    } 
    7480    var retour = (getStackTrace()); 
    7581    Fn = retour.fn; 
     
    503509$_ = $; 
    504510function save_framework(page) { 
     511 
    505512    try { 
    506513        Conflit = { version: cl_version, name: cl_plugin }; 
     
    513520 
    514521} 
     522  
  • extensions/Autosize/main.inc.php

    r8057 r8070  
    1717//================================================================== 
    1818$autosize_controler = new autosize_controler(); 
     19add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin')  ); 
    1920 
    2021 
    21 add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin')  ); 
    22 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), 40 ); 
    23  
    24 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'),  EVENT_HANDLER_PRIORITY_NEUTRAL+20 ,  2);  
     22add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL  ); 
     23add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'),  EVENT_HANDLER_PRIORITY_NEUTRAL  ,  2);    
    2524 
    2625 add_event_handler('loc_end_page_tail',array(&$autosize_controler, 'cl_autosize_script_2'),  EVENT_HANDLER_PRIORITY_NEUTRAL ); 
    27  
    2826 add_event_handler('render_element_content', 
    29   array(&$autosize_controler, 'cl_autosize_script_3'),  EVENT_HANDLER_PRIORITY_NEUTRAL-1,  2  ); 
     27 array(&$autosize_controler, 'cl_autosize_script_3'),  EVENT_HANDLER_PRIORITY_NEUTRAL-1,  2  ); 
    3028 
    3129 
  • extensions/Autosize/template/autosize.tpl

    r8057 r8070  
    4646     </script> 
    4747 
    48 {known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"} 
     48 
    4949<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" /> 
    5050 <!--  << autosize/template/autosize.tpl   -->  
    51 {/html_head}   
     51{/html_head}  
     52 
     53  
     54{known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"} 
    5255<script type="text/javascript"> 
    5356    var DEBUG = '{$DEBUG}';