Changeset 6259


Ignore:
Timestamp:
May 20, 2010, 10:21:29 PM (14 years ago)
Author:
EXFTB
Message:

2.1.b fix minor bug

Location:
extensions/LLGBO2
Files:
12 edited

Legend:

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

    r6241 r6259  
    3434include(LLGBO_PATH.'defaultvalues.php');
    3535
    36 
     36/* ****************************************************** */
     37/* Plugin template initialisation for admin panel display */
     38/* ****************************************************** */
     39global $template , $conf,$lang;
     40{$template->assign( 'LLGBO_VERSION' , LLGBO_INFO_VERSION);}
     41$me = get_plugin_data($plugin_id);
     42$template->assign('LLGBOINFO','');
     43// 
     44$query =" SELECT ID FROM  piwigo_themes where id like '%gally%' " ;
     45$result = pwg_query($query);
     46 while ($row = pwg_db_fetch_assoc($result))
     47 {      $template->assign( 'GALLY', 'Msg');     }
     48//
    3749// +-----------------------------------------------------------------------+
    3850// |                            Tabssheet
     
    5062$disptabframe = 'false';
    5163$disptabheader = 'false';       
    52                            
     64$tabsheet->select($page['tab']);
    5365if (!isset($_POST['llgbo_frame'])   )
    5466        {$disptabframe = $conf['LLGBO_SETTINGS'][0] ;} 
     
    97109{$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_adminheader.tpl') );}
    98110$tabsheet->select($page['tab']);
    99 /* ****************************************************** */
    100 /* Plugin template initialisation for admin panel display */
    101 /* ****************************************************** */
    102 global $template , $conf,$lang;
    103 {$template->assign( 'LLGBO_VERSION' , LLGBO_INFO_VERSION);}
    104 $me = get_plugin_data($plugin_id);
    105 $template->assign('LLGBOINFO','');
    106 // Load configuration settings from database
    107 
    108111
    109112$template->append('head_elements',
  • extensions/LLGBO2/admin/llgbo_adminframe.tpl

    r6234 r6259  
    11
    22{if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if}
    3  <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2>
     3 <h2> {'Title'|@translate} -> {$LLGBO_VERSION}</h2>
    44 <h3>{'Step3_Title'|@translate}</h3>
    55<form method="post" action="" class="properties">
  • extensions/LLGBO2/admin/llgbo_adminheader.tpl

    r6234 r6259  
    11{if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if}
    2 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2>
     2<h2> {'Title'|@translate} -> {$LLGBO_VERSION}</h2>
    33<h3>{'Step4_Title'|@translate}</h3>
    44<form method="post" action="{$llgbo_F_ACTION}" class="properties">
  • extensions/LLGBO2/admin/llgbo_adminsettings.tpl

    r6241 r6259  
    11
    22{if !empty($LLGBOINFO)}<div class="infos" style="text-align:left;padding-left:50px;" >{$LLGBOINFO|@translate}</div>{/if}
    3  <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2>
     3 <h2> {'Title'|@translate} -> {$LLGBO_VERSION}</h2>
    44<h3>{'Howto'|@translate}</h3>
    5 {if !empty($GALLY)}
    6 <span>{'llgo_warning_setting'|@translate} </span>{/if}
    75<form method="post" action="" class="properties">
    86<fieldset>
    9 
    107<table id="llgbotable">
    118        <tr>
     
    4542                <td class="llgboinput">{html_radios name='llgbo_header' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER}</td>   
    4643        </tr>   
    47         <tr>
     44        <tr><td class="llgbolabel"><HR WIDTH=80% ALIGN=LEFT></td> <td></td>
    4845        </tr>
    4946        <tr>
     
    5451
    5552<div align="center"><br><br><input class="submit" type="submit" value="{'Reset_To_Default'|@translate}" name="reset"/> <input class="submit" type="submit" value="{'submit'|@translate}" name="submit" /></div>
     53<br>
     54{if !empty($GALLY)}
     55<span>{'llgo_warning_setting'|@translate} </span>{/if}
    5656</fieldset>
    5757</form>
  • extensions/LLGBO2/css/look_like_gbo2_admin.css

    r6234 r6259  
    2121}
    2222.llgboinput{
    23         text-align:left;
     23        text-align:right;
    2424        margin :0;
     25        width:100px;
    2526
    2627}
     
    3334#llgbotable{
    3435        margin:1em;
    35         width:550px;
     36        width:600px;
    3637margin:auto}
    3738#llgboHeadertable{
  • extensions/LLGBO2/language/en_UK/plugin.lang.php

    r6241 r6259  
    8383$lang['llgbo_always_displayexif'] = 'Always display METADATA:' ;
    8484$lang['Reset_To_Default'] = 'Reset to default values';
    85 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally';
     85/*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally themes';
    8686/*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

    r6241 r6259  
    8989$lang['llgbo_always_displayexif'] = 'Siempre fijar el METADATA:' ;
    9090/* TODO */$lang['Reset_To_Default'] = 'Restaurar los valores por defecto';
    91 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally';
     91/*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally themes';
    9292/*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

    r6241 r6259  
    8383$lang['llgbo_always_displayexif'] = 'Toujours afficher les Metadata:' ;
    8484$lang['Reset_To_Default'] = 'Rétablir les valeurs par défaut';
    85 $lang['llgo_warning_setting'] = 'Le cadre et la navigation sur image ne sont pas disponibles avec Gally';
     85$lang['llgo_warning_setting'] = 'Le cadre et la navigation sur image ne sont pas disponibles avec les thémes Gally';
    8686$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

    r6241 r6259  
    8282$lang['previewsamples']= 'Minta megtekintése';
    8383$lang['llgbo_always_displayexif'] = 'Mindig megjelenő METAADATOK (EXIF):' ;
    84 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally';
     84/*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally themes';
    8585/*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

    r6241 r6259  
    8383$lang['llgbo_always_displayexif'] = 'Zawsze wyświetlaj metadane:' ;
    8484/* TODO */$lang['Reset_To_Default'] = 'Przywróć wartości domyślne';
    85 /*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally';
     85/*TODO*/$lang['llgo_warning_setting'] = 'Frame around picture and navigation on picture are not available with Gally themes';
    8686/*TODO*/$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture';
    8787?>
  • extensions/LLGBO2/main.inc.php

    r6241 r6259  
    88Description:  Display thumbnail under button. Add navigation on picture look like GBo Gallery
    99Add a border around  picture ......
    10   2.1.a compliant 2.1 Piwigo */
     10  2.1.a compliant 2.1 Piwigo
     11  2.1.b fix minor bugs in administration  */
    1112
    1213if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    2324 $conf['LLGBO_FRAME'] = explode (",",$conf['LLGBOFRAME']);
    2425 $conf['LLGBO_HEADER'] = explode (",",$conf['LLGBOHEADER']);   
     26 
    2527/////////////////////////////////////////////////////
    2628/*  PLUGIN CLASS  */
     
    194196
    195197if (( strpos(strtoupper($tpl_name) , 'GALLY') === 0) )
    196  {                                              return $content;  ; }   // Not compliant with Gally
     198        {       return $content;  ; }   // Not compliant with Gally
    197199/////////////////////////////////////////////////////////////////       
    198200If (($conf['LLGBO_SETTINGS'] [1]  == 'true' )/*  tooltip display  */  or ($conf['LLGBO_SETTINGS'] [0] == 'true') /*  frame  */  )
     
    263265                        </script>'  );}
    264266           else
    265            {$template->assign('HDHREF','href="javascript:phpWGOpenWindow('."'".$ThePicture['high_url']."','".$uuid."','"."scrollbars=yes,toolbar=no,status=no,resizable=yes'".')"');}             
     267           {$template->assign('HDHREF','title="'.$lang['Click on the picture to see it in high definition'].'" href="javascript:phpWGOpenWindow('."'".$ThePicture['high_url']."','".$uuid."','"."scrollbars=yes,toolbar=no,status=no,resizable=yes'".')"');}               
    266268                       
    267269}
  • extensions/LLGBO2/maintain.inc.php

    r6234 r6259  
    7171 or  (!isset($conf['LLGBOTOOLTIP'])) or (substr_count($conf['LLGBOTOOLTIP'], ',')  != 5)
    7272 or  (!isset($conf['LLGBOFRAME'])) or (substr_count($conf['LLGBOFRAME'], ',')  != 32)
    73  or  (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',')  != 21)) 
    74         {         plugin_install(); }
     73 or  (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',')  != 20)) 
     74        {       
     75echo '1-'.substr_count($conf['LLGBO'], ',');
     76echo '2-'.substr_count($conf['LLGBOTOOLTIP'], ',');
     77echo '3-'.substr_count($conf['LLGBOFRAME'], ',');
     78echo '4-'.substr_count($conf['LLGBOHEADER'], ',');
     79        plugin_install(); }
    7580}
    7681
Note: See TracChangeset for help on using the changeset viewer.