Changeset 14421 for extensions/LLGBO2/admin
- Timestamp:
- Apr 25, 2012, 9:11:00 PM (12 years ago)
- Location:
- extensions/LLGBO2/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r10453 r14421 122 122 if (!isset($_POST['llgbo_tooltip_disp'])) {$_POST['llgbo_tooltip_disp'] = 'false';} 123 123 if (!isset($_POST['llgbo_exifunderbt'])) {$_POST['llgbo_exifunderbt'] = 'false';} 124 if (!isset($_POST['llgbo_usemap'])) {$_POST['llgbo_usemap'] = 'false';} 124 if (!isset($_POST['llgbo_jquery'])) {$_POST['llgbo_jquery'] = 'false';} 125 125 126 if (!isset($_POST['llgbo_usemap_thumb'])) {$_POST['llgbo_usemap_thumb'] = 'false';} 126 127 if (!isset($_POST['llgbo_title_frame'])) {$_POST['llgbo_title_frame'] = 'false';} … … 128 129 if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';} 129 130 if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';} 130 if (!isset($_POST['llgbo_hdShadowbox'])) {$_POST['llgbo_hdShadowbox'] = 'false';} 131 // compliance HD Shadowbox 132 $shadowbowactive = 0; 133 $query =" SELECT ID FROM ".$prefixeTable."plugins where id ="."'HDShadowbox'"." and state ='active'" ; 134 $result = pwg_query($query); 135 while ($row = pwg_db_fetch_assoc($result)) 136 { $shadowbowactive = 1;} 137 if ($shadowbowactive == 0) 138 { if ($_POST['llgbo_hdShadowbox'] != 'false') 139 {$lang['llgbo_hdShadowbox'] = ' * * * * '.$lang['llgbo_hdShadowbox'].' * * * * '; } 140 $_POST['llgbo_hdShadowbox'] = 'false'; 141 } 131 if (!isset($_POST['llgbo_free'])) {$_POST['llgbo_free'] = 'false';} 142 132 143 133 if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10 144 134 $param_llgbo = array($_POST['llgbo_frame'], 145 135 $_POST['llgbo_tooltip_disp'], $_POST['llgbo_exifunderbt'], 146 $_POST['llgbo_ usemap'], $_POST['llgbo_usemap_thumb'],136 $_POST['llgbo_jquery'], $_POST['llgbo_usemap_thumb'], 147 137 $_POST['llgbo_title_frame'], $_POST['llgbo_header'], 148 138 $_POST['llgbo_maintain_header'], $_POST['llgbo_allinfo'], 149 $_POST['llgbo_ hdShadowbox'] ,$_POST['llgbo_always_displayexif']139 $_POST['llgbo_free'] ,$_POST['llgbo_always_displayexif'] 150 140 ); 151 141 $llgbo_new_value = implode ("," , $param_llgbo); … … 170 160 {$template->assign('LLGBO_EXIFUNDERBT' , 'true');} else {$template->assign( 'LLGBO_EXIFUNDERBT' , "false");} 171 161 if ($conf['LLGBO_SETTINGS'][3] == 'true') 172 {$template->assign( array( 'LLGBO_ USEMAP' => 'true'));} else { $template->assign( array( 'LLGBO_USEMAP' => "false"));}162 {$template->assign( array( 'LLGBO_JQUERY' => 'true'));} else { $template->assign( array( 'LLGBO_JQUERY' => "false"));} 173 163 if ($conf['LLGBO_SETTINGS'][4] == 'true') 174 164 {$template->assign( array( 'LLGBO_USEMAP_THUMB' => 'true'));} else { $template->assign( array( 'LLGBO_USEMAP_THUMB' => "false"));} … … 181 171 {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));} else { $template->assign( array( 'LLGBO_ALLINFO' => "false"));} 182 172 if ($conf['LLGBO_SETTINGS'][9] == 'true') 183 {$template->assign(array( 'LLGBO_ HDShadowbox' => 'true'));} else { $template->assign(array( 'LLGBO_HDShadowbox' => "false"));}173 {$template->assign(array( 'LLGBO_FREE' => 'true'));} else { $template->assign(array( 'LLGBO_FREE' => "false"));} 184 174 if ($conf['LLGBO_SETTINGS'][10] == 'true') 185 175 {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));} else { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));} -
extensions/LLGBO2/admin/llgbo_adminsettings.tpl
r6259 r14421 25 25 <td class="llgboinput"> {html_radios name='llgbo_exifunderbt' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_EXIFUNDERBT}</td> 26 26 </tr> 27 <tr> 27 <!-- Now in the Piwigo core 28 <tr> 28 29 <td class="llgbolabel">{'llgbo_usemap'|@translate}</td> 29 30 <td class="llgboinput">{html_radios name='llgbo_usemap' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_USEMAP}</td> 30 31 </tr> 32 31 33 <tr> 32 34 <td class="llgbolabel">{'llgbo_usemap_thumb'|@translate}</td> 33 35 <td class="llgboinput"> {html_radios name='llgbo_usemap_thumb' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_USEMAP_THUMB}</td> 34 36 </tr> 37 --> 35 38 <tr> 36 39 <td class="llgbolabel">{'llgbo_title_frame'|@translate}</td> … … 42 45 <td class="llgboinput">{html_radios name='llgbo_header' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER}</td> 43 46 </tr> 44 <tr><td class="llgbolabel"><HR WIDTH=80% ALIGN=LEFT></td> <td></td> 47 <!-- free was removed 48 <tr><td class="llgbolabel"><HR WIDTH=90% ALIGN=LEFT></td> <td></td> 49 <tr> 50 <td class="llgbolabel">{'llgbo_jquery'|@translate}</td> 51 <td class="llgboinput">{html_radios name='llgbo_jquery' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_JQUERY}</td> 52 </tr> 53 54 <tr><td class="llgbolabel"><HR WIDTH=90% ALIGN=LEFT></td> <td></td> 45 55 </tr> 46 56 <tr> 47 <td class="llgbolabel">{'llgbo_hdShadowbox'|@translate}</td> 48 <td class="llgboinput">{html_radios name='llgbo_hdShadowbox' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HDShadowbox}</td> 49 </tr> 57 <td class="llgbolabel">{'llgbo_free'|@translate}</td> 58 <td class="llgboinput">{html_radios name='llgbo_free' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_FREE}</td> 59 </tr> 60 --> 50 61 </table> 51 62
Note: See TracChangeset
for help on using the changeset viewer.