Changeset 6259
- Timestamp:
- May 20, 2010, 10:21:29 PM (14 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r6241 r6259 34 34 include(LLGBO_PATH.'defaultvalues.php'); 35 35 36 36 /* ****************************************************** */ 37 /* Plugin template initialisation for admin panel display */ 38 /* ****************************************************** */ 39 global $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 // 37 49 // +-----------------------------------------------------------------------+ 38 50 // | Tabssheet … … 50 62 $disptabframe = 'false'; 51 63 $disptabheader = 'false'; 52 64 $tabsheet->select($page['tab']); 53 65 if (!isset($_POST['llgbo_frame']) ) 54 66 {$disptabframe = $conf['LLGBO_SETTINGS'][0] ;} … … 97 109 {$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_adminheader.tpl') );} 98 110 $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 database107 108 111 109 112 $template->append('head_elements', -
extensions/LLGBO2/admin/llgbo_adminframe.tpl
r6234 r6259 1 1 2 2 {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> 4 4 <h3>{'Step3_Title'|@translate}</h3> 5 5 <form method="post" action="" class="properties"> -
extensions/LLGBO2/admin/llgbo_adminheader.tpl
r6234 r6259 1 1 {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> 3 3 <h3>{'Step4_Title'|@translate}</h3> 4 4 <form method="post" action="{$llgbo_F_ACTION}" class="properties"> -
extensions/LLGBO2/admin/llgbo_adminsettings.tpl
r6241 r6259 1 1 2 2 {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> 4 4 <h3>{'Howto'|@translate}</h3> 5 {if !empty($GALLY)}6 <span>{'llgo_warning_setting'|@translate} </span>{/if}7 5 <form method="post" action="" class="properties"> 8 6 <fieldset> 9 10 7 <table id="llgbotable"> 11 8 <tr> … … 45 42 <td class="llgboinput">{html_radios name='llgbo_header' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER}</td> 46 43 </tr> 47 <tr> 44 <tr><td class="llgbolabel"><HR WIDTH=80% ALIGN=LEFT></td> <td></td> 48 45 </tr> 49 46 <tr> … … 54 51 55 52 <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} 56 56 </fieldset> 57 57 </form> -
extensions/LLGBO2/css/look_like_gbo2_admin.css
r6234 r6259 21 21 } 22 22 .llgboinput{ 23 text-align: left;23 text-align:right; 24 24 margin :0; 25 width:100px; 25 26 26 27 } … … 33 34 #llgbotable{ 34 35 margin:1em; 35 width: 550px;36 width:600px; 36 37 margin:auto} 37 38 #llgboHeadertable{ -
extensions/LLGBO2/language/en_UK/plugin.lang.php
r6241 r6259 83 83 $lang['llgbo_always_displayexif'] = 'Always display METADATA:' ; 84 84 $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'; 86 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
r6241 r6259 89 89 $lang['llgbo_always_displayexif'] = 'Siempre fijar el METADATA:' ; 90 90 /* 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'; 92 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
r6241 r6259 83 83 $lang['llgbo_always_displayexif'] = 'Toujours afficher les Metadata:' ; 84 84 $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'; 86 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
r6241 r6259 82 82 $lang['previewsamples']= 'Minta megtekintése'; 83 83 $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'; 85 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
r6241 r6259 83 83 $lang['llgbo_always_displayexif'] = 'Zawsze wyświetlaj metadane:' ; 84 84 /* 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'; 86 86 /*TODO*/$lang['llgbo_hdShadowbox'] ='Compliance HD Shadowbox and navigation on picture'; 87 87 ?> -
extensions/LLGBO2/main.inc.php
r6241 r6259 8 8 Description: Display thumbnail under button. Add navigation on picture look like GBo Gallery 9 9 Add 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 */ 11 12 12 13 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 23 24 $conf['LLGBO_FRAME'] = explode (",",$conf['LLGBOFRAME']); 24 25 $conf['LLGBO_HEADER'] = explode (",",$conf['LLGBOHEADER']); 26 25 27 ///////////////////////////////////////////////////// 26 28 /* PLUGIN CLASS */ … … 194 196 195 197 if (( strpos(strtoupper($tpl_name) , 'GALLY') === 0) ) 196 {return $content; ; } // Not compliant with Gally198 { return $content; ; } // Not compliant with Gally 197 199 ///////////////////////////////////////////////////////////////// 198 200 If (($conf['LLGBO_SETTINGS'] [1] == 'true' )/* tooltip display */ or ($conf['LLGBO_SETTINGS'] [0] == 'true') /* frame */ ) … … 263 265 </script>' );} 264 266 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'".')"');} 266 268 267 269 } -
extensions/LLGBO2/maintain.inc.php
r6234 r6259 71 71 or (!isset($conf['LLGBOTOOLTIP'])) or (substr_count($conf['LLGBOTOOLTIP'], ',') != 5) 72 72 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 { 75 echo '1-'.substr_count($conf['LLGBO'], ','); 76 echo '2-'.substr_count($conf['LLGBOTOOLTIP'], ','); 77 echo '3-'.substr_count($conf['LLGBOFRAME'], ','); 78 echo '4-'.substr_count($conf['LLGBOHEADER'], ','); 79 plugin_install(); } 75 80 } 76 81
Note: See TracChangeset
for help on using the changeset viewer.