Ignore:
Timestamp:
May 18, 2010, 10:15:25 PM (14 years ago)
Author:
EXFTB
Message:

2.1.a compliant hdshadowbox

File:
1 edited

Legend:

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

    r4713 r6234  
    135135        if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';}
    136136        if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';}
    137         if (!isset($_POST['llgbo_default_navthumb'])) {$_POST['llgbo_default_navthumb'] = 'false';}
     137    $_POST['llgbo_hdlightbox'] = 'false';
     138        // compliance HD Shadowbox
     139        $query =" SELECT ID FROM  piwigo_plugins where id ="."'HDShadowbox'"."and state ='active'" ;
     140   $result = pwg_query($query);
     141   while ($row = pwg_db_fetch_assoc($result))
     142                { $_POST['llgbo_hdlightbox'] = 'true';} 
    138143        if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10   
    139144         $param_llgbo = array($_POST['llgbo_frame'],
     
    142147                                $_POST['llgbo_title_frame'],                    $_POST['llgbo_header'],
    143148                                $_POST['llgbo_maintain_header'],                        $_POST['llgbo_allinfo'],
    144                                 $_POST['llgbo_default_navthumb']        ,$_POST['llgbo_always_displayexif']
     149                                $_POST['llgbo_hdlightbox']      ,$_POST['llgbo_always_displayexif']
    145150                        );               
    146151        $llgbo_new_value = implode ("," , $param_llgbo);
     
    176181          {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));}  else {  $template->assign( array( 'LLGBO_ALLINFO' => "false"));}
    177182        if ($conf['LLGBO_SETTINGS'][9] == 'true')
    178           {$template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => 'true'));}  else  { $template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => "false"));}
     183          {$template->assign(array( 'LLGBO_HDLIGHTBOX' => 'true'));}  else  { $template->assign(array( 'LLGBO_HDLIGHTBOX' => "false"));}
    179184        if ($conf['LLGBO_SETTINGS'][10] == 'true')
    180185          {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));}  else  { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));}
Note: See TracChangeset for help on using the changeset viewer.