Changeset 6241 for extensions/LLGBO2/admin
- Timestamp:
- May 19, 2010, 6:53:38 PM (14 years ago)
- Location:
- extensions/LLGBO2/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r6234 r6241 2 2 // +-----------------------------------------------------------------------+ 3 3 // | Plugin Name : Look_Like_GBO 2 | 4 // | Plugin Version : 2. 0|4 // | Plugin Version : 2.1.A | 5 5 // | File Version : 0.1 | 6 6 // | Plugin Version author : Ex-FTB | … … 135 135 if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';} 136 136 if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';} 137 $_POST['llgbo_hdlightbox'] = 'false';137 if (!isset($_POST['llgbo_hdShadowbox'])) {$_POST['llgbo_hdShadowbox'] = 'false';} 138 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';} 139 $shadowbowactive = 0; 140 $query =" SELECT ID FROM piwigo_plugins where id ="."'HDShadowbox'"."and state ='active'" ; 141 $result = pwg_query($query); 142 while ($row = pwg_db_fetch_assoc($result)) 143 { $shadowbowactive = 1;} 144 if ($shadowbowactive == 0) 145 { if ($_POST['llgbo_hdShadowbox'] != 'false') 146 {$lang['llgbo_hdShadowbox'] = ' * * * * '.$lang['llgbo_hdShadowbox'].' * * * * '; } 147 $_POST['llgbo_hdShadowbox'] = 'false'; 148 } 149 143 150 if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10 144 151 $param_llgbo = array($_POST['llgbo_frame'], … … 147 154 $_POST['llgbo_title_frame'], $_POST['llgbo_header'], 148 155 $_POST['llgbo_maintain_header'], $_POST['llgbo_allinfo'], 149 $_POST['llgbo_hd lightbox'] ,$_POST['llgbo_always_displayexif']156 $_POST['llgbo_hdShadowbox'] ,$_POST['llgbo_always_displayexif'] 150 157 ); 151 158 $llgbo_new_value = implode ("," , $param_llgbo); … … 181 188 {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));} else { $template->assign( array( 'LLGBO_ALLINFO' => "false"));} 182 189 if ($conf['LLGBO_SETTINGS'][9] == 'true') 183 {$template->assign(array( 'LLGBO_HD LIGHTBOX' => 'true'));} else { $template->assign(array( 'LLGBO_HDLIGHTBOX' => "false"));}190 {$template->assign(array( 'LLGBO_HDShadowbox' => 'true'));} else { $template->assign(array( 'LLGBO_HDShadowbox' => "false"));} 184 191 if ($conf['LLGBO_SETTINGS'][10] == 'true') 185 192 {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));} else { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));} -
extensions/LLGBO2/admin/llgbo_adminsettings.tpl
r6234 r6241 40 40 <td class="llgboinput">{html_radios name='llgbo_title_frame' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_TITLE_FRAME}</td> 41 41 </tr> 42 <!-- <tr> 43 <td class="llgbolabel">{'llgbo_hdlightbox'|@translate}</td> 44 <td class="llgboinput">{html_radios name='llgbo_hdlightbox' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HDLIGHTBOX}</td> 45 </tr> --> 42 46 43 <tr> 47 44 <td class="llgbolabel">{'llgbo_header'|@translate}</td> 48 45 <td class="llgboinput">{html_radios name='llgbo_header' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER}</td> 49 46 </tr> 47 <tr> 48 </tr> 49 <tr> 50 <td class="llgbolabel">{'llgbo_hdShadowbox'|@translate}</td> 51 <td class="llgboinput">{html_radios name='llgbo_hdShadowbox' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HDShadowbox}</td> 52 </tr> 50 53 </table> 51 54
Note: See TracChangeset
for help on using the changeset viewer.