Ignore:
Timestamp:
Jun 28, 2012, 6:23:28 PM (12 years ago)
Author:
gbo
Message:

Fix: Tooltip not displayed according the option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/main.inc.php

    r15107 r16145  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.4.B
     4Version:  2.4.D
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: GBo
     
    88Description:  Display thumbnail under button. Add navigation on picture look like GBo Gallery
    99Add a border around  picture ......
    10         2.4.A Compliance Piwigo 2.4 + jquery
    11         2.4.B Compliance with Theme Stripped and plugin Piwishak 
     10        2.4.A Beta1 Compliance Piwigo 2.4 + jquery
     11        2.4.B beta 2 Compliance with Theme Stripped and plugin Piwishak 
     12        2.4.C First version for official Piwigo 2.4
     13        2.4.D Compliance with Theme Simple
    1214 */
    1315if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1416
    1517global $conf;
    16 define ('LLGBO_INFO_VERSION','2.4.B');
     18define ('LLGBO_INFO_VERSION','2.4.D');
    1719if (!defined('LLGBO_PATH'))
    1820{define('LLGBO_PATH' ,get_root_url().'plugins/'.basename(dirname(__FILE__)) . '/');}
     
    117119// -----------  add CSS tooltip in footer --------------------
    118120//-----------------------------------------------------------------
    119  If (($conf['LLGBO'][1]  == 'true' ) /*  tooltip  */ 
     121 If ((($conf['LLGBO_SETTINGS'][1]  == 'true' ) /*  tooltip  */ 
    120122 or  ($conf['LLGBO_SETTINGS'] [2]  == 'true' )  /* exif under bt */ )   
    121123        {       $template->append('footer_elements',$sweetcss);
     
    143145// ------------------------
    144146  //  End frame 
    145   $search = '{$ALT_IMG}{/if}">';
     147  $search = '{foreach from=$current.unique_derivatives';
     148  $replacement =  "\n".'{$llgbo.FRAME_END}'."\n"."</div> <!-- end GBO frame -->"."\n".$search;
    146149 if (( strpos(strtoupper($themeconf['name']) , 'STRIPPED') === 0) )
    147         {$search = 'class="hideTabs">';}
    148   $replacement =  $search."\n".'{$llgbo.FRAME_END}'."\n"."</div> <!-- end GBO frame -->";
     150        {$search = 'class="hideTabs">';
     151  $replacement =  $search."\n".'{$llgbo.FRAME_END}'."\n"."</div> <!-- end GBO frame -->";}
    149152  return str_replace($search, $replacement, $content);
    150153}
Note: See TracChangeset for help on using the changeset viewer.