Changeset 29810 for extensions/LLGBO2


Ignore:
Timestamp:
Sep 27, 2014, 3:53:30 PM (10 years ago)
Author:
gbo
Message:

improvement for Back2Front

Location:
extensions/LLGBO2
Files:
2 edited

Legend:

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

    r29808 r29810  
    116116        // --------------------------------------   
    117117                $patern = '/'.'<img(.*)id="theMainImage"(.*)>'.'/';     
    118         $replacement =  $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/main.inc.php

    r29808 r29810  
    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                        improvement for back2Front     
    1516 */
    1617if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    128129        add_event_handler('loc_begin_picture','llgbo_BeginPicture');
    129130        add_event_handler('loc_end_picture', 'llgbo_EndPicture');
    130         add_event_handler('render_element_content', 'llgbo_RenderContent',  EVENT_HANDLER_PRIORITY_NEUTRAL, 20 );
     131        add_event_handler('render_element_content', 'llgbo_RenderContent',  EVENT_HANDLER_PRIORITY_NEUTRAL, +25 ,20 );
    131132}
    132133?>
Note: See TracChangeset for help on using the changeset viewer.