Changeset 29841 for extensions/LLGBO2


Ignore:
Timestamp:
Sep 30, 2014, 10:36:35 AM (10 years ago)
Author:
gbo
Message:

Fix some notice (when no title on frame) and compatibilty Back2Front

Location:
extensions/LLGBO2
Files:
22 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/include/manage_picture_content.php

    r29810 r29841  
    116116        // --------------------------------------   
    117117                $patern = '/'.'<img(.*)id="theMainImage"(.*)>'.'/';     
    118         $replacement = '{if !empty($llgbo.FRAME_TITLE1)}{$llgbo.FRAME_TITLE1}{$current.TITLE} {$llgbo.FRAME_TITLE3}{/if}{$llgbo.FRAME_SIZE}{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}';
     118        $replacement =  '{if !empty($llgbo.FRAME_TITLE1)}{$llgbo.FRAME_TITLE1}{$current.TITLE} {$llgbo.FRAME_TITLE3}{/if}{$llgbo.FRAME_SIZE}{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}';
    119119                $content = preg_replace($patern, $replacement, $content); 
    120                 return $content;
     120        return $content;
    121121}
    122122?>
  • extensions/LLGBO2/js/jquery_llgboframeresize.js

    r29484 r29841  
    1616                                Elmgbo.width (nImgW + FrLstBdr) ;
    1717                                Elmgbo.height (nImgH + FrLstBdr) ;
    18                         }              
     18                        }       
    1919                }
    20         LlgboFr_Resize();
    21        
    22         jQuery(window).resize(function(){
     20                 
     21                LlgboFr_Resize();
     22         
     23                jQuery(window).resize(function(){
    2324                                LlgboFr_Resize(); });
    2425                       
    25         jQuery("#theMainImage").load(function(){
     26                jQuery("#theMainImage").load(function(){
    2627                                LlgboFr_Resize();});
    2728 });
  • extensions/LLGBO2/main.inc.php

    r29811 r29841  
    1212        -- 10-09-2014   
    1313                2.7.A Compliance Piwigo 2.7rc1  new administration management
    14                 2.7.A fix issue with extended description and improve translation
     14                2.7.B Fix issue with extended description and improve translation
     15                        compatibility with Back2Front           
    1516 */
    1617if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    106107                // Add llgbo requirement to ELEMENT_CONTENT
    107108                // --------------------------------------
     109
    108110                $template->set_filenames( array('llgbo_content'=> dirname(__FILE__).'/template/llgbo_content.tpl') );
    109111                $template->concat('picture', $template->parse('llgbo_content', true));
     
    128130        add_event_handler('loc_begin_picture','llgbo_BeginPicture');
    129131        add_event_handler('loc_end_picture', 'llgbo_EndPicture');
    130         add_event_handler('render_element_content', 'llgbo_RenderContent',  EVENT_HANDLER_PRIORITY_NEUTRAL, +25 ,20 );
     132        add_event_handler('render_element_content', 'llgbo_RenderContent',  EVENT_HANDLER_PRIORITY_NEUTRAL, 20 );
    131133}
    132134?>
  • extensions/LLGBO2/template/llgbo_content.tpl

    r29484 r29841  
    1616{/if}
    1717
     18<!-- LLGBO2  2014-09-29 Verso image must be in block -->
     19{if isset($b2f_switch_mode)}
     20        {if isset($b2f_transition)}
     21                {footer_script require="jquery"}
     22                {if $b2f_switch_mode == "click"}
     23                  jQuery(".reverse").click(function() {ldelim}
     24                {else}
     25                  jQuery(".reverse").hover(function() {ldelim}
     26                {/if}
     27                 var img_verso_block = null;
     28                {if $b2f_transition == "fade"}
     29                        img_verso_block = setTimeout(block_after_delai, 450);
     30                        {else}
     31                         img_verso_block  = setTimeout(block_after_delai, 50);
     32                {/if}
     33                return false;
     34                {rdelim});
     35                function block_after_delai() {ldelim}
     36                        if  (jQuery("img#theMainImage").css("display") == "none")  {ldelim}
     37                                jQuery("img#theVersoImage").css( {ldelim}'display':"block"}); }
     38                                clearTimeout(img_verso_block);
     39                                };
     40         {/footer_script}
     41        {/if}
     42{/if}
    1843
    19 
Note: See TracChangeset for help on using the changeset viewer.