Ignore:
Timestamp:
Jan 2, 2010, 3:57:12 PM (14 years ago)
Author:
EXFTB
Message:

LLGBO2 - Version H fix warning since version J

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/admin/llgbo_admin.php

    r4596 r4603  
    3232// Setup plugin Language
    3333load_language('plugin.lang', LLGBO_PATH);
     34include(LLGBO_PATH.'defaultvalues.php');
     35
     36
    3437// +-----------------------------------------------------------------------+
    3538// |                            Tabssheet
     
    4447               l10n('llgbo_M_manage'),
    4548              $my_base_url.'&tab=manage');
    46 $tabsheet->add('tooltip',
    47                l10n('llgbo_M_tooltip'),
    48                $my_base_url.'&tab=tooltip');
     49$disptabtooltip = 'false';
    4950$disptabframe = 'false';
    5051$disptabheader = 'false';       
     
    5455        else
    5556        {$disptabframe = $_POST['llgbo_frame'];}
     57
     58if ((!isset($_POST['llgbo_tooltip_disp'])) or (!isset($_POST['llgbo_exifunderbt']) ) or ( !isset($_POST['llgbo_usemap_thumb']) ))
     59        { if (($conf['LLGBO_SETTINGS'][1]   == 'true' ) or ($conf['LLGBO_SETTINGS'][2]  == 'true')
     60          or ($conf['LLGBO_SETTINGS'][4]   == 'true' ))
     61          {     $disptabtooltip = 'true';}      }
     62        else
     63        {if (($_POST['llgbo_tooltip_disp']  == 'true' ) or ($_POST['llgbo_exifunderbt']  == 'true')
     64          or ($_POST['llgbo_usemap_thumb']  == 'true' ))
     65          {     $disptabtooltip = 'true';}      }
     66       
     67       
    5668if (!isset($_POST['llgbo_header'])   )
    5769        {$disptabheader = $conf['LLGBO_SETTINGS'][6] ;}         
    5870        else
    5971        {$disptabheader = $_POST['llgbo_header'];}
     72                   
     73if ($disptabtooltip == 'true'){
     74$tabsheet->add('tooltip',
     75               l10n('llgbo_M_tooltip'),
     76               $my_base_url.'&tab=tooltip');}                 
     77                   
    6078                   
    6179if (($disptabframe == 'true'))
     
    82100/* Plugin template initialisation for admin panel display */
    83101/* ****************************************************** */
    84 global $template , $conf,$lang;
     102global $template , $conf,$lang; 
    85103{$template->assign( 'LLGBO_VERSION' , LLGBO_INFO_VERSION);}
    86104$me = get_plugin_data($plugin_id);
     
    117135        if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';}
    118136        if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';}
    119         if (!isset($_POST['llgbo_default_navthumb'])) {$_POST['llgbo_default_navthumb'] = 'false';} //9 }
     137        if (!isset($_POST['llgbo_default_navthumb'])) {$_POST['llgbo_default_navthumb'] = 'false';}
     138        if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10   
    120139         $param_llgbo = array($_POST['llgbo_frame'],
    121140                                $_POST['llgbo_tooltip_disp'],             $_POST['llgbo_exifunderbt'],
     
    123142                                $_POST['llgbo_title_frame'],                    $_POST['llgbo_header'],
    124143                                $_POST['llgbo_maintain_header'],                        $_POST['llgbo_allinfo'],
    125                                 $_POST['llgbo_default_navthumb']       
     144                                $_POST['llgbo_default_navthumb']        ,$_POST['llgbo_always_displayexif']
    126145                        );               
    127146        $llgbo_new_value = implode ("," , $param_llgbo);
     
    135154                         $conf['LLGBO_SETTINGS'] = explode ("," ,$llgbo_new_value);
    136155        }
     156        if ( isset($_POST['reset']) ) 
     157        {  $conf['LLGBO_SETTINGS'] = explode ("," ,$plugvalues);}
    137158
    138159 // Reload settings for correct display after update
     
    156177        if ($conf['LLGBO_SETTINGS'][9] == 'true')
    157178          {$template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => 'true'));}  else  { $template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => "false"));}
    158 }
     179        if ($conf['LLGBO_SETTINGS'][10] == 'true')
     180          {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));}  else  { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));}
     181
     182          }
    159183///////////////////////////////////////////////////////////////////////////////////////
    160184//// TOOLTIP           
     
    187211                $conf['LLGBO_TOOLTIP'] = explode ("," ,$llgbo_newtooltip_value);
    188212        }
     213       
     214        if ( isset($_POST['reset']) ) 
     215        {  $conf['LLGBO_TOOLTIP'] = explode ("," ,$ttvalues);}
     216       
    189217 // Reload settings for correct display after update
    190218 if (isset($conf['LLGBO_TOOLTIP'][0])) {$template->assign(array( 'LLGBO_TOOLTIP_WIDTH' => $conf['LLGBO_TOOLTIP'][0]));}
     
    241269                $conf['LLGBO_FRAME'] = explode ("," ,$llgbo_newframe_value );
    242270}
     271if ( isset($_POST['reset']) ) 
     272        {  $conf['LLGBO_FRAME'] = explode ("," ,$frvalues );}
    243273if ( isset($_POST['previewsample']) )
    244274{  if (isset($_POST['sample'])) { //print_r($_POST);
     
    322352                $conf['LLGBO_HEADER'] = explode ("," ,$llgbo_newheader_value);
    323353        }
     354        if ( isset($_POST['reset']) ) 
     355        {  $conf['LLGBO_HEADER'] = explode ("," ,$headvalues);}
    324356 // Reload settings for correct display after update
    325357 if (isset($conf['LLGBO_HEADER'][0])) {$template->assign(array( 'LLGBO_HEADER_HOME' => $conf['LLGBO_HEADER'][0]));}
Note: See TracChangeset for help on using the changeset viewer.