Changeset 6241 for extensions/LLGBO2
- Timestamp:
- May 19, 2010, 6:53:38 PM (14 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 8 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 -
extensions/LLGBO2/language/en_UK/plugin.lang.php
r6234 r6241 84 84 $lang['Reset_To_Default'] = 'Reset to default values'; 85 85 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 86 /*TODO*/$lang['llgbo_hd lightbox'] ='Compliance HD lightbox and navigation on picture';86 /*TODO*/$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture. <br> HD Shadowbox must be activated!'; 87 87 ?> -
extensions/LLGBO2/language/es_ES/plugin.lang.php
r6234 r6241 90 90 /* TODO */$lang['Reset_To_Default'] = 'Restaurar los valores por defecto'; 91 91 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 92 /*TODO*/$lang['llgbo_hd lightbox'] ='Compliance HD lightbox and navigation on picture';92 /*TODO*/$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture. <br> HD Shadowbox must be activated !'; 93 93 ?> -
extensions/LLGBO2/language/fr_FR/plugin.lang.php
r6234 r6241 84 84 $lang['Reset_To_Default'] = 'Rétablir les valeurs par défaut'; 85 85 $lang['llgo_warning_setting'] = 'Le cadre et la navigation sur image ne sont pas disponibles avec Gally'; 86 $lang['llgbo_hd lightbox'] ='Compatibilité de HD lightbox avec la navigation sur image';86 $lang['llgbo_hdShadowbox'] ='Compatibilité de HD Shadowbox avec la navigation sur image. <br> le plugin HD Shadowbox doit être activé! '; 87 87 ?> -
extensions/LLGBO2/language/hu_HU/plugin.lang.php
r6234 r6241 83 83 $lang['llgbo_always_displayexif'] = 'Mindig megjelenő METAADATOK (EXIF):' ; 84 84 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 85 /*TODO*/$lang['llgbo_hd lightbox'] ='Compliance HD lightbox and navigation on picture';85 /*TODO*/$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture. <br> HD Shadowbox must be activated'; 86 86 ?> -
extensions/LLGBO2/language/pl_PL/plugin.lang.php
r6234 r6241 84 84 /* TODO */$lang['Reset_To_Default'] = 'Przywróć wartości domyślne'; 85 85 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally'; 86 /*TODO*/$lang['llgbo_hd lightbox'] ='Compliance HD lightbox and navigation on picture';86 /*TODO*/$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture'; 87 87 ?> -
extensions/LLGBO2/main.inc.php
r6234 r6241 182 182 $tpl_name = ""; 183 183 $currenttheme = $template->get_template_vars('themes'); 184 $tpl_ id = $currenttheme[0]['id'];184 $tpl_name = $currenttheme[1]['id']; 185 185 ///////////////////////////////////////////// 186 186 // AN OTHER PLUGIN IS WORKING -> GO BACK … … 191 191 ///////////////////////////////////////////////////////////////// 192 192 if ($ThePicture['is_picture'] <> 1 ) { return $content; ; } 193 //echo $tpl_id; 194 195 $template->assign('GALLY',''); 196 if (( strpos(strtoupper($tpl_id) , 'GALLY') === true) ) 197 { $template->assign('GALLY','ok'); 198 return $content; ; } // Not compliant with Gally 193 //echo strpos(strtoupper($tpl_name) , 'GALLY'); 194 195 if (( strpos(strtoupper($tpl_name) , 'GALLY') === 0) ) 196 { return $content; ; } // Not compliant with Gally 199 197 ///////////////////////////////////////////////////////////////// 200 198 If (($conf['LLGBO_SETTINGS'] [1] == 'true' )/* tooltip display */ or ($conf['LLGBO_SETTINGS'] [0] == 'true') /* frame */ ) … … 233 231 $alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']); 234 232 235 /* */233 /* 236 234 $related_cats = $template->get_template_vars('related_categories'); 237 235 if (isset($related_cats)) … … 240 238 $related_cat = str_replace($conf['level_separator'],"-",$related_cat); 241 239 } 242 $alt = $alt.' - ['.$related_cat.']'; 240 $alt = $alt.' - ['.$related_cat.']';*/ 243 241 //----------------------------------------------------------------- 244 242 $template->assign( array( … … 256 254 'U_HIGH' => $ThePicture['high_url'] , 257 255 'UUID' => $uuid, )); 258 // compliance HD LIGHTBOX256 // compliance HD Shadowbox 259 257 If ($conf['LLGBO_SETTINGS'] [9] == 'true' ) 260 258 {$template->assign('HDHREF', ' href="'.$ThePicture['high_url'].'"'.' title= " HD --> '.$ThePicture['name'].'"'); 261 $template->append('head_elements', " /n".'<script type="text/javascript">259 $template->append('head_elements', "\n".'<script type="text/javascript"> 262 260 window.onload = function() { 263 261 Shadowbox.setup(document.getElementById("prevnext").getElementsByTagName("area")[3]);
Note: See TracChangeset
for help on using the changeset viewer.