Ignore:
Timestamp:
01/02/10 15:57:12 (10 years ago)
Author:
EXFTB
Message:

LLGBO2 - Version H fix warning since version J

Location:
extensions/LLGBO2/admin
Files:
5 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]));} 
  • extensions/LLGBO2/admin/llgbo_adminframe.tpl

    r4596 r4603  
    8989         </table> 
    9090        {$FRAME_END} 
    91 <div align="center"><br> <input class="submit" type="submit" value="{'preview'|@translate}" name="preview"/> <input class="submit" type="submit" value="{'save'|@translate}" name="save" /> 
     91<div align="center"><br><input class="submit" type="submit" value="{'Reset_To_Default'|@translate}" name="reset"/> <input class="submit" type="submit" value="{'preview'|@translate}" name="preview"/> <input class="submit" type="submit" value="{'save'|@translate}" name="save" /> 
    9292  
    9393</div> 
  • extensions/LLGBO2/admin/llgbo_adminheader.tpl

    r4578 r4603  
    7979</table> 
    8080 
    81 <div align="center"><br><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" /></div> 
     81<div align="center"><br><input class="submit" type="submit" value="{'Reset_To_Default'|@translate}" name="reset"/><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" /></div> 
    8282</fieldset> 
    8383</form> 
  • extensions/LLGBO2/admin/llgbo_adminsettings.tpl

    r4574 r4603  
    1717        <td class="llgbolabel">{'llgbo_tooltip'|@translate}</td>  
    1818        <td class="llgboinput">{html_radios name='llgbo_tooltip_disp' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_TOOLTIP_DISP}</td> 
    19   </tr> 
    20   <tr> 
     19   </tr> 
     20    <tr> 
     21   <td class="llgbolabel">{'llgbo_always_displayexif'|@translate} </td> 
     22   <td class="llgboinput">{html_radios name='llgbo_always_displayexif' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_ALWAYS_DISPLAYEXIF}</td> 
     23   </tr 
     24   <tr> 
    2125                <td class="llgbolabel">{'llgbo_exifunderbt'|@translate}</td> 
    2226                <td class="llgboinput"> {html_radios name='llgbo_exifunderbt' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_EXIFUNDERBT}</td> 
     
    4448</table> 
    4549 
    46 <div align="center"><br><br><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" /></div> 
     50<div align="center"><br><br><input class="submit" type="submit" value="{'Reset_To_Default'|@translate}" name="reset"/> <input class="submit" type="submit" value="{'submit'|@translate}" name="submit" /></div> 
    4751</fieldset> 
    4852</form> 
  • extensions/LLGBO2/admin/llgbo_admintooltip.tpl

    r4578 r4603  
    3838</div> 
    3939 
    40 <div align="center"><br><br><input class="submit" type="submit" value="{'preview'|@translate}" name="preview"/> <input class="submit" type="submit" value="{'save'|@translate}" name="save" /></div> 
     40<div align="center"><br><br><input class="submit" type="submit" value="{'Reset_To_Default'|@translate}" name="reset"/> <input class="submit" type="submit" value="{'preview'|@translate}" name="preview"/> <input class="submit" type="submit" value="{'save'|@translate}" name="save" /></div> 
    4141</fieldset> 
    4242</form> 
Note: See TracChangeset for help on using the changeset viewer.