Ignore:
Timestamp:
Sep 11, 2014, 2:03:20 PM (10 years ago)
Author:
gbo
Message:

Compliance Piwigo 2.7rc1

File:
1 edited

Legend:

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

    r29049 r29484  
    8989        if ($conf['LLGBO2']['tooltipdisp'] )//   tooltip 
    9090        {       $prev = $template->get_template_vars('previous');
    91                 $next  = $template->get_template_vars('next');
    92                 $swtimg =   '||<img src=';     
    93                 if (isset($prev)){$template->append('previous',  array('TITLE_ESC' =>  $prev['TITLE_ESC'].$swtimg.$prev['THUMB_SRC'].'>'),TRUE);}
    94                 if (isset($next)){$template->append('next',  array('TITLE_ESC' =>  $next['TITLE_ESC'].$swtimg.$next['THUMB_SRC'].'>'),TRUE);}
     91                $next  = $template->get_template_vars('next');
     92       
     93                if (isset($prev)){
     94                        $prev_thumbimg =  '||<img src='.$prev['derivatives']['thumb']->get_url(); 
     95                        $template->append('previous',  array('TITLE_ESC' =>  $prev['TITLE_ESC'].$prev_thumbimg.'>'),TRUE);
     96                        }
     97                if (isset($next)){
     98                                $next_thumbimg =  '||<img src='.$next['derivatives']['thumb']->get_url();
     99                                $template->append('next',  array('TITLE_ESC' =>  $next['TITLE_ESC'].$next_thumbimg.'>'),TRUE);
     100                        }
    95101                $template->append('llgbo', array('tooltipCSS'  => $sweetcss), true);
    96         }               
    97          // 2.6 paticular case automatic size and modus management
     102        }       
     103 // -----------------------------------------------------------
     104 // 2.6 paticular case automatic size and modus management
     105 // -----------------------------------------------------------
    98106        if ($update_tpl)
    99107                {return $template->parse( 'default_content', true);} 
     
    107115        // --------------------------------------   
    108116                $patern = '/'.'<img(.*)id="theMainImage"(.*)>'.'/';     
    109         $replacement =  $replacement.'{$llgbo.FRAME_TITLE}'.'{$llgbo.FRAME_SIZE}'.'{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2> '.'{$llgbo.FRAME_END}';
     117        $replacement =  $replacement.'{$llgbo.FRAME_TITLE}'.'{$llgbo.FRAME_SIZE}'.'{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}';
    110118                $content = preg_replace($patern, $replacement, $content); 
    111119        return $content;
Note: See TracChangeset for help on using the changeset viewer.