Changeset 6241


Ignore:
Timestamp:
May 19, 2010, 6:53:38 PM (14 years ago)
Author:
EXFTB
Message:

daily correction for 2.1

Location:
extensions/LLGBO2
Files:
8 edited

Legend:

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

    r6234 r6241  
    22// +-----------------------------------------------------------------------+
    33// | Plugin Name : Look_Like_GBO  2                                                              |
    4 // | Plugin Version : 2.0                                                                                    |
     4// | Plugin Version : 2.1.A                                                                                    |
    55// | File Version : 0.1                                                                                       |
    66// | Plugin Version author : Ex-FTB                                                               |
     
    135135        if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';}
    136136        if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';}
    137     $_POST['llgbo_hdlightbox'] = 'false';
     137    if (!isset($_POST['llgbo_hdShadowbox'])) {$_POST['llgbo_hdShadowbox'] = 'false';}
    138138        // 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       
    143150        if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10   
    144151         $param_llgbo = array($_POST['llgbo_frame'],
     
    147154                                $_POST['llgbo_title_frame'],                    $_POST['llgbo_header'],
    148155                                $_POST['llgbo_maintain_header'],                        $_POST['llgbo_allinfo'],
    149                                 $_POST['llgbo_hdlightbox']      ,$_POST['llgbo_always_displayexif']
     156                                $_POST['llgbo_hdShadowbox']     ,$_POST['llgbo_always_displayexif']
    150157                        );               
    151158        $llgbo_new_value = implode ("," , $param_llgbo);
     
    181188          {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));}  else {  $template->assign( array( 'LLGBO_ALLINFO' => "false"));}
    182189        if ($conf['LLGBO_SETTINGS'][9] == 'true')
    183           {$template->assign(array( 'LLGBO_HDLIGHTBOX' => 'true'));}  else  { $template->assign(array( 'LLGBO_HDLIGHTBOX' => "false"));}
     190          {$template->assign(array( 'LLGBO_HDShadowbox' => 'true'));}  else  { $template->assign(array( 'LLGBO_HDShadowbox' => "false"));}
    184191        if ($conf['LLGBO_SETTINGS'][10] == 'true')
    185192          {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));}  else  { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));}
  • extensions/LLGBO2/admin/llgbo_adminsettings.tpl

    r6234 r6241  
    4040                <td class="llgboinput">{html_radios name='llgbo_title_frame' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_TITLE_FRAME}</td> 
    4141        </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   
    4643        <tr>
    4744                <td class="llgbolabel">{'llgbo_header'|@translate}</td>
    4845                <td class="llgboinput">{html_radios name='llgbo_header' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER}</td>   
    4946        </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>   
    5053</table>
    5154
  • extensions/LLGBO2/language/en_UK/plugin.lang.php

    r6234 r6241  
    8484$lang['Reset_To_Default'] = 'Reset to default values';
    8585/*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally';
    86 /*TODO*/$lang['llgbo_hdlightbox'] ='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!';
    8787?>
  • extensions/LLGBO2/language/es_ES/plugin.lang.php

    r6234 r6241  
    9090/* TODO */$lang['Reset_To_Default'] = 'Restaurar los valores por defecto';
    9191/*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally';
    92 /*TODO*/$lang['llgbo_hdlightbox'] ='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 !';
    9393?>
  • extensions/LLGBO2/language/fr_FR/plugin.lang.php

    r6234 r6241  
    8484$lang['Reset_To_Default'] = 'Rétablir les valeurs par défaut';
    8585$lang['llgo_warning_setting'] = 'Le cadre et la navigation sur image ne sont pas disponibles avec Gally';
    86 $lang['llgbo_hdlightbox'] ='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é! ';
    8787?>
  • extensions/LLGBO2/language/hu_HU/plugin.lang.php

    r6234 r6241  
    8383$lang['llgbo_always_displayexif'] = 'Mindig megjelenő METAADATOK (EXIF):' ;
    8484/*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally';
    85 /*TODO*/$lang['llgbo_hdlightbox'] ='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';
    8686?>
  • extensions/LLGBO2/language/pl_PL/plugin.lang.php

    r6234 r6241  
    8484/* TODO */$lang['Reset_To_Default'] = 'Przywróć wartości domyślne';
    8585/*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally';
    86 /*TODO*/$lang['llgbo_hdlightbox'] ='Compliance HD lightbox and navigation on picture';
     86/*TODO*/$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture';
    8787?>
  • extensions/LLGBO2/main.inc.php

    r6234 r6241  
    182182$tpl_name = "";
    183183$currenttheme = $template->get_template_vars('themes');
    184 $tpl_id =  $currenttheme[0]['id'];
     184$tpl_name =  $currenttheme[1]['id'];
    185185/////////////////////////////////////////////
    186186// AN OTHER PLUGIN IS WORKING -> GO BACK
     
    191191/////////////////////////////////////////////////////////////////       
    192192if ($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
     195if (( strpos(strtoupper($tpl_name) , 'GALLY') === 0) )
     196 {                                              return $content;  ; }   // Not compliant with Gally
    199197/////////////////////////////////////////////////////////////////       
    200198If (($conf['LLGBO_SETTINGS'] [1]  == 'true' )/*  tooltip display  */  or ($conf['LLGBO_SETTINGS'] [0] == 'true') /*  frame  */  )
     
    233231$alt = $conf['allow_html_descriptions'] ? $ThePicture['name'] : strip_tags($ThePicture['name']);
    234232
    235 /* */
     233/*
    236234$related_cats =   $template->get_template_vars('related_categories');
    237235if (isset($related_cats))
     
    240238        $related_cat = str_replace($conf['level_separator'],"-",$related_cat);
    241239        }
    242  $alt = $alt.' - ['.$related_cat.']';
     240 $alt = $alt.' - ['.$related_cat.']';*/
    243241//-----------------------------------------------------------------
    244242$template->assign( array(
     
    256254                                'U_HIGH' => $ThePicture['high_url'] ,
    257255                                'UUID'   => $uuid,      ));
    258                 // compliance HD LIGHTBOX       
     256                // compliance HD Shadowbox     
    259257                If ($conf['LLGBO_SETTINGS'] [9]  == 'true' )
    260258                        {$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">
    262260                                window.onload = function() {
    263261                        Shadowbox.setup(document.getElementById("prevnext").getElementsByTagName("area")[3]);
Note: See TracChangeset for help on using the changeset viewer.