Changeset 4574
- Timestamp:
- Dec 27, 2009, 9:59:11 PM (14 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 1 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r4524 r4574 47 47 l10n('llgbo_M_tooltip'), 48 48 $my_base_url.'&tab=tooltip'); 49 If ($page['tab'] == 'manage') 50 {if (!isset($_POST['llgbo_frame']) ) 51 {$conf['LLGBO_SETTINGS'][0] = 'false';} 52 else 53 {$conf['LLGBO_SETTINGS'][0]= $_POST['llgbo_frame'];}} 49 $disptabframe = 'false'; 50 $disptabheader = 'false'; 51 52 if (!isset($_POST['llgbo_frame']) ) 53 {$disptabframe = $conf['LLGBO_SETTINGS'][0] ;} 54 else 55 {$disptabframe = $_POST['llgbo_frame'];} 56 if (!isset($_POST['llgbo_header']) ) 57 {$disptabheader = $conf['LLGBO_SETTINGS'][6] ;} 58 else 59 {$disptabheader = $_POST['llgbo_header'];} 54 60 55 if ( $conf['LLGBO_SETTINGS'][0] == 'true')61 if (($disptabframe == 'true')) 56 62 {$tabsheet->add('frame', 57 63 l10n('llgbo_M_frame'), 58 64 $my_base_url.'&tab=frame');} 59 60 65 66 if (($disptabheader == 'true')) 67 {$tabsheet->add('header', 68 l10n('llgbo_M_header'), 69 $my_base_url.'&tab=header');} 61 70 62 71 $tabsheet->assign(); … … 67 76 if ($page['tab'] == 'frame' ) 68 77 {$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_adminframe.tpl') );} 78 if ($page['tab'] == 'header' ) 79 {$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_adminheader.tpl') );} 69 80 $tabsheet->select($page['tab']); 70 81 /* ****************************************************** */ … … 241 252 Draw_frame(); 242 253 } 254 /////////////////////////////////////////////// 255 ///// HEADER 256 ///////////////////////////////////////////////// 257 if ($page['tab'] == 'header') { 258 if ( isset($_POST['submit'])) 259 { if (!isset($_POST['llgbo_header_home'])) {$_POST['llgbo_header_home'] = 'true';} 260 if (!isset($_POST['llgbo_header_category'])) {$_POST['llgbo_header_category'] = 'true';} 261 if (!isset($_POST['llgbo_header_category_filter_recent'])) {$_POST['llgbo_header_category_filter_recent'] = 'true';} 262 if (!isset($_POST['llgbo_header_category_flat'])) {$_POST['llgbo_header_category_flat'] = 'true';} 263 if (!isset($_POST['llgbo_header_category_posted_monthly'])) {$_POST['llgbo_header_category_posted_monthly'] = 'true';} 264 if (!isset($_POST['llgbo_header_picture'])) {$_POST['llgbo_header_picture'] = 'true';} 265 if (!isset($_POST['llgbo_header_additional_page'])) {$_POST['llgbo_header_additional_page'] = 'true';} 266 if (!isset($_POST['llgbo_header_most_visited'])) {$_POST['llgbo_header_most_visited'] = 'true';} 267 if (!isset($_POST['llgbo_header_best_rated'])) {$_POST['llgbo_header_best_rated'] = 'true';} 268 if (!isset($_POST['llgbo_header_list'])) {$_POST['llgbo_header_list'] = 'true';} 269 if (!isset($_POST['llgbo_header_recent_pics'])) {$_POST['llgbo_header_recent_pics'] = 'true';} 270 if (!isset($_POST['llgbo_header_created_monthly_calendar'])) {$_POST['llgbo_header_created_monthly_calendar'] = 'true';} 271 if (!isset($_POST['llgbo_header_tags'])) {$_POST['llgbo_header_tags'] = 'true';} 272 if (!isset($_POST['llgbo_header_search'])) {$_POST['llgbo_header_search'] = 'true';} 273 if (!isset($_POST['llgbo_header_comments'])) {$_POST['llgbo_header_comments'] = 'true';} 274 if (!isset($_POST['llgbo_header_about'])) {$_POST['llgbo_header_about'] = 'true';} 275 if (!isset($_POST['llgbo_header_notification'])) {$_POST['llgbo_header_notification'] = 'true';} 276 if (!isset($_POST['llgbo_header_register'])) {$_POST['llgbo_header_register'] = 'true';} 277 if (!isset($_POST['llgbo_header_identification'])) {$_POST['llgbo_header_identification'] = 'true';} 278 if (!isset($_POST['llgbo_header_favorites'])) {$_POST['llgbo_header_favorites'] = 'true';} 279 if (!isset($_POST['llgbo_header_recent_cats'])) {$_POST['llgbo_header_recent_cats'] = 'true';} 280 281 282 $param_llgbo_header = array( 283 $_POST['llgbo_header_home'], $_POST['llgbo_header_category'] , 284 $_POST['llgbo_header_category_filter_recent'], $_POST['llgbo_header_category_flat'], 285 $_POST['llgbo_header_category_posted_monthly'], $_POST['llgbo_header_picture'], 286 $_POST['llgbo_header_additional_page'], $_POST['llgbo_header_most_visited'], 287 $_POST['llgbo_header_best_rated'] , $_POST['llgbo_header_list'], 288 $_POST['llgbo_header_recent_pics'], $_POST['llgbo_header_created_monthly_calendar'], 289 $_POST['llgbo_header_tags'], $_POST['llgbo_header_search'], 290 $_POST['llgbo_header_comments'], $_POST['llgbo_header_about'], 291 $_POST['llgbo_header_notification'], $_POST['llgbo_header_register'], 292 $_POST['llgbo_header_identification'], $_POST['llgbo_header_favorites'], 293 $_POST['llgbo_header_recent_cats']); 294 $llgbo_newheader_value = implode ("," , $param_llgbo_header); 295 296 $query = ' 297 UPDATE ' . CONFIG_TABLE . ' 298 SET value="'.$llgbo_newheader_value.'" 299 WHERE param="LLGBOHEADER" 300 LIMIT 1'; 301 pwg_query($query); 302 $template->assign('LLGBOINFO','llgbo_info'); 303 304 $conf['LLGBO_HEADER'] = explode ("," ,$llgbo_newheader_value); 305 } 306 // Reload settings for correct display after update 307 if (isset($conf['LLGBO_HEADER'][0])) {$template->assign(array( 'LLGBO_HEADER_HOME' => $conf['LLGBO_HEADER'][0]));} 308 if (isset($conf['LLGBO_HEADER'][1])) {$template->assign(array( 'LLGBO_HEADER_CATEGORY' => $conf['LLGBO_HEADER'][1]));} 309 if (isset($conf['LLGBO_HEADER'][2])) {$template->assign(array( 'LLGBO_HEADER_CATEGORY_FILTER_RECENT' => $conf['LLGBO_HEADER' ][2]));} 310 if (isset($conf['LLGBO_HEADER'][3])) {$template->assign(array( 'LLGBO_HEADER_CATEGORY_FLAT' => $conf['LLGBO_HEADER'][3]));} 311 if (isset($conf['LLGBO_HEADER'][4])) {$template->assign(array( 'LLGBO_HEADER_CATEGORY_POSTED_MONTHLY' => $conf['LLGBO_HEADER'][4]));} 312 if (isset($conf['LLGBO_HEADER'][5])) {$template->assign(array( 'LLGBO_HEADER_PICTURE' => $conf['LLGBO_HEADER'][5]));} 313 if (isset($conf['LLGBO_HEADER'][6])) {$template->assign(array( 'LLGBO_HEADER_ADDITIONAL_PAGE' => $conf['LLGBO_HEADER'][6]));} 314 if (isset($conf['LLGBO_HEADER'][7])) {$template->assign(array( 'LLGBO_HEADER_MOST_VISITED' => $conf['LLGBO_HEADER'][7]));} 315 if (isset($conf['LLGBO_HEADER'][8])) {$template->assign(array( 'LLGBO_HEADER_BEST_RATED' => $conf['LLGBO_HEADER' ][8]));} 316 if (isset($conf['LLGBO_HEADER'][9])) {$template->assign(array( 'LLGBO_HEADER_LIST' => $conf['LLGBO_HEADER' ][9]));} 317 if (isset($conf['LLGBO_HEADER'][10])) {$template->assign(array( 'LLGBO_HEADER_RECENT_PICS' => $conf['LLGBO_HEADER'][10]));} 318 if (isset($conf['LLGBO_HEADER'][11])) {$template->assign(array( 'LLGBO_HEADER_TAGS' => $conf['LLGBO_HEADER'][11]));} 319 if (isset($conf['LLGBO_HEADER'][12])) {$template->assign(array( 'LLGBO_HEADER_CREATED_MONTHLY_CALENDAR' => $conf['LLGBO_HEADER'][12]));} 320 if (isset($conf['LLGBO_HEADER'][13])) {$template->assign(array( 'LLGBO_HEADER_SEARCH' => $conf['LLGBO_HEADER'][13]));} 321 if (isset($conf['LLGBO_HEADER'][14])) {$template->assign(array( 'LLGBO_HEADER_COMMENTS' => $conf['LLGBO_HEADER'][14]));} 322 if (isset($conf['LLGBO_HEADER'][15])) {$template->assign(array( 'LLGBO_HEADER_ABOUT' => $conf['LLGBO_HEADER'][15]));} 323 if (isset($conf['LLGBO_HEADER'][16])) {$template->assign(array( 'LLGBO_HEADER_NOTIFICATION' => $conf['LLGBO_HEADER' ][16]));} 324 if (isset($conf['LLGBO_HEADER'][17])) {$template->assign(array( 'LLGBO_HEADER_REGISTER' => $conf['LLGBO_HEADER'][17]));} 325 if (isset($conf['LLGBO_HEADER'][18])) {$template->assign(array( 'LLGBO_HEADER_IDENTIFICATION' => $conf['LLGBO_HEADER'][18]));} 326 if (isset($conf['LLGBO_HEADER'][19])) {$template->assign(array( 'LLGBO_HEADER_FAVORITES' => $conf['LLGBO_HEADER'][19]));} 327 if (isset($conf['LLGBO_HEADER'][20])) {$template->assign(array( 'LLGBO_HEADER_RECENT_CATS' => $conf['LLGBO_HEADER'][20]));} 328 329 } 243 330 244 331 $template->assign_var_from_handle( 'ADMIN_CONTENT', 'llgbo_admin_content'); -
extensions/LLGBO2/admin/llgbo_adminframe.tpl
r4524 r4574 1 1 2 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 2 3 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2> 4 <h3>{'Step3_Title'|@translate}</h3> 3 5 <form method="post" action="{$llgbo_F_ACTION}" class="properties"> 4 6 <fieldset> 5 <legend>{'Step3_Title'|@translate}</legend>6 7 <div id="framepicker" align="center" > </div> 7 8 <span id="gboh2" style ="position: relative; top:1.5em;margin-left:40%;background:transparent;z-index:3;color:{$LLGBO_TITLE_FRAME_COLOR}">{'llgbo_title_frame_color'|@translate} </span> 8 9 {$FRAME_BEGIN} 9 10 <table align="center" style ="position: relative; top:-2.5em;" > 10 <th id="llgbotitle"> {'llgo_frame_setting'|@translate}</th>11 <th id="llgbotitle"> </th> 11 12 <tr><br> 12 13 <td class="llgbolabel" >{'llgbo_title_frame_color'|@translate} </td> -
extensions/LLGBO2/admin/llgbo_adminsettings.tpl
r4524 r4574 1 1 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 2 2 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2> 3 {'Howto'|@translate} 3 <h3>{'Howto'|@translate}</h3> 4 4 5 <form method="post" action="{$llgbo_F_ACTION}" class="properties"> 5 6 <fieldset> 6 <legend>{'Step1_Title'|@translate}</legend> 7 7 8 <table id="llgbotable" style="{$LLGBODISPMANAGE}"> 8 9 <tr> … … 42 43 </tr> 43 44 </table> 44 <div align="center"> 45 <br> 46 <span class="llgbotitle"> {'llgbo_maintain_header'|@translate} </span><br> 47 <textarea rows=2 COLS=80 name="llgbo_maintain_header">{$LLGBO_MAINTAIN_HEADER}</TEXTAREA> 48 <br> <br> 49 <table id="llgbotable" 50 <tr class="llgbotitle"> <td class="llgbolabel"> {'llgbo_maintain_header_help'|@translate} </td></tr> 51 <tr class="llgbotitle"> <td class="llgbolabel"> {'llgbo_maintain_header_help1'|@translate} </td></tr> 52 <tr class="llgbotitle"> <td class="llgbolabel"> {'llgbo_maintain_header_help2'|@translate} </td></tr> 53 </table> 54 </div> 45 55 46 <div align="center"><br><br><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" /></div> 56 47 </fieldset> -
extensions/LLGBO2/admin/llgbo_admintooltip.tpl
r4524 r4574 1 1 <div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 2 2 <h2> {'Title'|@translate} <br> {$LLGBO_VERSION}</h2> 3 {'Howto'|@translate} 3 <h3>{'Step2_Title'|@translate}</h3> 4 4 <form method="post" action="{$llgbo_F_ACTION}" class="properties"> 5 5 <fieldset> 6 <legend>{'Step2_Title'|@translate}</legend> 6 7 7 <div id="picker"style="{$LLGBODISPTOOLTIP}"></div> 8 8 <!-- T O O L T I P --> -
extensions/LLGBO2/css/look_like_gbo2_admin.css
r4525 r4574 19 19 .llgbolabel{ 20 20 text-align:left; 21 padding-left: 1px;22 margin :0;21 padding-left:85px; 22 margin :0 ; 23 23 } 24 24 .llgboinput{ 25 text-align:left; 26 padding-left:10px; 27 margin :0 ; 28 } 25 29 .llgbofield , .colorwell ,.colorwellf{ 26 30 width:65px;text-align:left; … … 30 34 } 31 35 #llgbotable{ 32 margin-right:25%; 36 margin-right:0%; 37 margin-left:0%; 33 38 } 34 39 #tooltip{ 35 40 margin-right:25%; 36 41 margin-left:15%; 37 42 padding:5px; 38 43 -moz-border-radius:10px; 39 44 } 40 #llgbotitle {padding:15px 0 5px 0;color:#c92;text-align:center }45 #llgbotitle {padding:15px 0 5px 0;color:#c92;text-align:center;font-weight:700} 41 46 textarea {overflow:hidden;} 42 47 43 48 .submit{margin:10px;} 49 50 TABLE.doubleSelect SELECT.HeaderList { 51 width: 100%; max-width: 90%; max-height: 20em;overflow-x: auto; 52 } 53 54 -
extensions/LLGBO2/language/en_UK/plugin.lang.php
r4526 r4574 7 7 $lang['submit'] = 'Submit'; 8 8 $lang['Title'] = 'Look like GBo'; 9 $lang['Howto'] = 'This plugin permits to change the picture page presentation.<br>Special thanks to all the forum for their precious help ';9 $lang['Howto'] = 'This plugin manage the picture page presentation.<br>Special thanks to all the forum for their precious help '; 10 10 $lang['Step1_Title'] = 'Plugin settings'; 11 11 $lang['Step2_Title'] = 'Tooltip settings'; … … 13 13 $lang['llgbo_tooltip']='Display tooltip (thumbnail under button) on mouseover :'; 14 14 $lang['llgbo_exifunderbt']='Display tooltip (EXIF under button metadata) on mouseover :'; 15 $lang['llgbo_frame']='Manage frame around the picture :';16 $lang['llgbo_header']='Header is only display on the fisrt page :';17 $lang['llgbo_maintain_header']='Maintain header on the following pages :';18 15 $lang['llgbo_allinfo']='Display all the phpwebgallery data picture :'; 19 16 $lang['llgbo_usemap']='Add navigation on picture :'; … … 31 28 $lang['llgbo_tooltip_color']= 'Define tooltip text color'; 32 29 $lang['llgo_global_setting']= 'Piwigo Picture page global settings'; 33 $lang['llgo_tooltip_setting']= 'Tooltip settings';34 30 $lang['llgo_frame_setting']= 'Frame settings :' ; 35 31 $lang['llgbo_title_frame_color']= 'Title frame color'; … … 55 51 $lang['llgbo_M_manage'] = 'Global settings'; 56 52 $lang['llgbo_samples'] = 'Samples : '; 57 $lang['llgbo_maintain_header_help']='1 - To find the body ID value, display the source code Ctrl+U with Firefox '; 58 $lang['llgbo_maintain_header_help1']='2 - Search the value "body id=". Sample --> body id="theAboutPage" '; 59 $lang['llgbo_maintain_header_help2']='3 - Copy the value theAboutPage in the text area. Separate the different ID by ;'; 60 53 // must be translate 54 $lang['Howto'] = 'This plugin manage the picture page presentation.<br>'; 55 $lang['llgbo_frame']='Manage frame around the picture :'; 56 $lang['Step4_Title'] = 'Header settings'; 57 $lang['llgbo_header']='Manage display header '; 58 $lang['llgo_tooltip_setting']= 'Tooltip title'; 59 $lang['llgbo_M_header'] = 'Display Header management'; 60 $lang['Step4_Title'] = 'Header Display/Hide for each page'; 61 $lang['llgbo_header_home'] = 'Header display on Home page'; 62 $lang['llgbo_header_category'] = 'Header display on Category page'; 63 $lang['llgbo_header_category_filter_recent']= 'Header display on Category page :filter by recent'; 64 $lang['llgbo_header_category_flat']= 'Header display on Category page option flat' ; 65 $lang['llgbo_header_category_posted_monthly']= 'Header display on Category page option calendar' ; 66 $lang['llgbo_header_picture']= 'Header display on Picture page' ; 67 $lang['llgbo_header_additional_page'] = 'Header display on Additional page'; 68 $lang['llgbo_header_most_visited'] = 'Header display on Most visited page'; 69 $lang['llgbo_header_best_rated'] = 'Header display on Best rated page'; 70 $lang['llgbo_header_list']= 'Header display on Random pictures page'; 71 $lang['llgbo_header_recent_pics']= 'Header display on Recents pictures page'; 72 $lang['llgbo_header_created_monthly_calendar'] = 'Header display on Calendar page'; 73 $lang['llgbo_header_tags']= 'Header display on Tags page'; 74 $lang['llgbo_header_search']= 'Header display on Search page'; 75 $lang['llgbo_header_comments']= 'Header display on Comments page'; 76 $lang['llgbo_header_about']= 'Header display on About page'; 77 $lang['llgbo_header_notification']= 'Header display on Notification page'; 78 $lang['llgbo_header_register'] = 'Header display on Register page'; 79 $lang['llgbo_header_identification']= 'Header display on identification page'; 80 $lang['llgbo_header_favorites']= 'Header display on My Favorites page'; 81 $lang['llgbo_header_recent_cats']= 'Header display on Recent category page'; 61 82 ?> -
extensions/LLGBO2/language/es_ES/plugin.lang.php
r4526 r4574 8 8 $lang['submit'] = 'Validar'; 9 9 $lang['Title'] = 'Look like GBo'; 10 $lang['Howto'] = 'Este plugin permite modificar la presentación de la página llena de imágenes. Gracias al foro para su ayuda.';10 $lang['Howto'] = 'Este plugin permite modificar la presentación de la página llena de imágenes.'; 11 11 $lang['Step1_Title'] = 'Parametraje de Plugin '; 12 12 $lang['llgbo_tooltip']='Infobulles específico (miniaturas de las fotos) al sobrevuelo de los botones:'; … … 56 56 $lang['llgbo_M_manage'] = 'Global settings'; 57 57 $lang['llgbo_samples'] = 'Samples : '; 58 $lang['llgbo_maintain_header_help']='1 - To find the body ID value, display the source code Ctrl+U with Firefox '; 59 $lang['llgbo_maintain_header_help1']='2 - Search the value "body id=". Sample --> body id="theAboutPage" '; 60 $lang['llgbo_maintain_header_help2']='3 - Copy the value theAboutPage in the text area. Separate the different ID by ;'; 61 ?> 58 $lang['llgbo_frame']='Manage frame around the picture :'; 59 // must be translate 60 $lang['llgbo_frame']='Manage frame around the picture :'; 61 $lang['Step4_Title'] = 'Header settings'; 62 $lang['llgbo_header']='Manage display header '; 63 $lang['llgo_tooltip_setting']= 'Tooltip title'; 64 $lang['llgbo_M_header'] = 'Display Header management'; 65 $lang['Step4_Title'] = 'Header Display/Hide for each page'; 66 $lang['llgbo_header_home'] = 'Header display on Home page'; 67 $lang['llgbo_header_category'] = 'Header display on Category page'; 68 $lang['llgbo_header_category_filter_recent']= 'Header display on Category page :filter by recent'; 69 $lang['llgbo_header_category_flat']= 'Header display on Category page option flat' ; 70 $lang['llgbo_header_category_posted_monthly']= 'Header display on Category page option calendar' ; 71 $lang['llgbo_header_picture']= 'Header display on Picture page' ; 72 $lang['llgbo_header_additional_page'] = 'Header display on Additional page'; 73 $lang['llgbo_header_most_visited'] = 'Header display on Most visited page'; 74 $lang['llgbo_header_best_rated'] = 'Header display on Best rated page'; 75 $lang['llgbo_header_list']= 'Header display on Random pictures page'; 76 $lang['llgbo_header_recent_pics']= 'Header display on Recents pictures page'; 77 $lang['llgbo_header_created_monthly_calendar'] = 'Header display on Calendar page'; 78 $lang['llgbo_header_tags']= 'Header display on Tags page'; 79 $lang['llgbo_header_search']= 'Header display on Search page'; 80 $lang['llgbo_header_comments']= 'Header display on Comments page'; 81 $lang['llgbo_header_about']= 'Header display on About page'; 82 $lang['llgbo_header_notification']= 'Header display on Notification page'; 83 $lang['llgbo_header_register'] = 'Header display on Register page'; 84 $lang['llgbo_header_identification']= 'Header display on identification page'; 85 $lang['llgbo_header_favorites']= 'Header display on My Favorites page'; 86 $lang['llgbo_header_recent_cats']= 'Header display on Recent category page';?> -
extensions/LLGBO2/language/fr_FR/plugin.lang.php
r4526 r4574 9 9 $lang['preview'] = 'Visualiser'; 10 10 $lang['Title'] = 'Look like GBo'; 11 $lang['Howto'] = 'Ce plugin permet de modifier la présentation de la page image. Merci au forum pour son aide';11 $lang['Howto'] = 'Ce plugin permet de modifier la présentation de la page image.'; 12 12 $lang['Step1_Title'] = 'Paramétrage du Plugin '; 13 13 $lang['Step2_Title'] = 'Paramétrage de l\'infobulle'; 14 14 $lang['Step3_Title'] = 'Paramétrage du cadre '; 15 $lang['Step4_Title']= 'Paramètres de l\'infobulle :' ; 15 16 $lang['llgbo_tooltip']='Infobulles spécifiques (miniatures des photos) au survol des boutons :'; 16 17 $lang['llgbo_exifunderbt']='Infobulles spécifiques pour les EXIFS au survol du bouton :'; … … 31 32 $lang['llgbo_tooltip_color']= 'Couleur du texte de l\'infobulle :' ; 32 33 $lang['llgo_global_setting']= 'Parmètres généraux de la page picture de piwigo:'; 33 $lang['llgo_tooltip_setting']= ' Paramètresde l\'infobulle :' ;34 $lang['llgo_tooltip_setting']= 'Titre de l\'infobulle :' ; 34 35 $lang['llgo_frame_setting']= 'Paramètres du cadre :' ; 35 36 $lang['llgbo_title_frame_color']= 'Couleur du titre affiché sur le cadre'; … … 55 56 $lang['llgbo_M_manage'] = 'Paramétres généraux'; 56 57 $lang['llgbo_samples'] = 'Exemples :'; 57 $lang['llgbo_maintain_header_help']='1 - Pour trouver l\'ID de la page, afficher le code source de la page Ctrl+U sous Firefox '; 58 $lang['llgbo_maintain_header_help1']='2 - Rechercher dans le texte la valeur "body id=". Exemple --> body id="theAboutPage" '; 59 $lang['llgbo_maintain_header_help2']='3 - Renseigner la valeur theAboutPage dans la zone de texte. Séparer les différentes valeurs par des ;'; 58 // must be translate 59 $lang['Howto'] = 'Ce plugin gére la présentation de la page Image.<br>'; 60 $lang['llgbo_frame']='Gérer le cadre autour de la photo'; 61 $lang['Step4_Title'] = 'Gestion de l\'affichage de l\'entête'; 62 $lang['llgbo_header']='Gérer l\'affichage de l\'entête'; 63 $lang['llgo_tooltip_setting']= 'titre de l\'infobulle'; 64 $lang['llgbo_M_header'] = 'Gestion de l\'affichage de l\'entête'; 65 $lang['Step4_Title'] = 'Affiche / Masque l\'entête de chaque page'; 66 $lang['llgbo_header_home'] = 'Affichage sur la page d\'Accueil'; 67 $lang['llgbo_header_category'] = 'Affichage sur la page catégorie'; 68 $lang['llgbo_header_category_filter_recent']= 'Affichage sur la page catégorie :filtrée par récent'; 69 $lang['llgbo_header_category_flat']= 'Affichage sur la page catégorie (à plat)' ; 70 $lang['llgbo_header_category_posted_monthly']= 'Affichage sur la page catégorie opion calendrier' ; 71 $lang['llgbo_header_picture']= 'Affichage sur la page Image' ; 72 $lang['llgbo_header_additional_page'] = 'Affichage sur les pages Additonelles'; 73 $lang['llgbo_header_most_visited'] = 'Affichage sur la page Plus visitées'; 74 $lang['llgbo_header_best_rated'] = 'Affichage sur la page Mieux notées'; 75 $lang['llgbo_header_list']= 'Affichage sur la page Images au hasard'; 76 $lang['llgbo_header_recent_pics']= 'Affichage sur la page Images récentes'; 77 $lang['llgbo_header_created_monthly_calendar'] = 'Affichage sur la page Calendrier'; 78 $lang['llgbo_header_tags']= 'Affichage sur la page Nuages de mots'; 79 $lang['llgbo_header_search']= 'Affichage sur la page Recherche'; 80 $lang['llgbo_header_comments']= 'Affichage sur la page Commentaires'; 81 $lang['llgbo_header_about']= 'Affichage sur la page Apropos'; 82 $lang['llgbo_header_notification']= 'Affichage sur la page Notification'; 83 $lang['llgbo_header_register'] = 'Affichage sur la page Inscription'; 84 $lang['llgbo_header_identification']= 'Affichage sur la page Identification'; 85 $lang['llgbo_header_favorites']= 'Affichage sur la page Mes Favoris'; 86 $lang['llgbo_header_recent_cats']= 'Affichage sur la page catégories récentes'; 60 87 61 88 -
extensions/LLGBO2/language/hu_HU/plugin.lang.php
r4526 r4574 9 9 $lang['submit'] = 'Küldés'; 10 10 $lang['Title'] = 'Look like GBo'; 11 $lang['Howto'] = 'Ez a bővítmény lehetővé teszi, hogy módosítsa az oldalon lévő képek megjelenését. <br>Köszönjük, a fórum segítségét';11 $lang['Howto'] = 'Ez a bővítmény lehetővé teszi, hogy módosítsa az oldalon lévő képek megjelenését.'; 12 12 $lang['Step1_Title'] = 'Bővítmény beállítások'; 13 13 $lang['llgbo_tooltip']='Legyen kibővített buboréksúgó a gomb alatt? (bélyegkép + szöveg):'; … … 25 25 26 26 // must be translate 19/12/2009 27 27 28 $lang['save'] = 'Save'; 28 29 $lang['preview'] = 'Preview'; … … 58 59 $lang['llgbo_M_manage'] = 'Global settings'; 59 60 $lang['llgbo_samples'] = 'Samples : '; 60 $lang['llgbo_maintain_header_help']='1 - To find the body ID value, display the source code Ctrl+U with Firefox '; 61 $lang['llgbo_maintain_header_help1']='2 - Search the value "body id=". Sample --> body id="theAboutPage" '; 62 $lang['llgbo_maintain_header_help2']='3 - Copy the value theAboutPage in the text area. Separate the different ID by ;'; 63 61 $lang['llgbo_frame']='Manage frame around the picture :'; 62 $lang['Howto'] = 'This plugin manage the picture page presentation.<br>'; 63 $lang['llgbo_frame']='Manage frame around the picture :'; 64 $lang['Step4_Title'] = 'Header settings'; 65 $lang['llgbo_header']='Manage display header '; 66 $lang['llgo_tooltip_setting']= 'Tooltip title'; 67 $lang['llgbo_M_header'] = 'Display Header management'; 68 $lang['Step4_Title'] = 'Header Display/Hide for each page'; 69 $lang['llgbo_header_home'] = 'Header display on Home page'; 70 $lang['llgbo_header_category'] = 'Header display on Category page'; 71 $lang['llgbo_header_category_filter_recent']= 'Header display on Category page :filter by recent'; 72 $lang['llgbo_header_category_flat']= 'Header display on Category page option flat' ; 73 $lang['llgbo_header_category_posted_monthly']= 'Header display on Category page option calendar' ; 74 $lang['llgbo_header_picture']= 'Header display on Picture page' ; 75 $lang['llgbo_header_additional_page'] = 'Header display on Additional page'; 76 $lang['llgbo_header_most_visited'] = 'Header display on Most visited page'; 77 $lang['llgbo_header_best_rated'] = 'Header display on Best rated page'; 78 $lang['llgbo_header_list']= 'Header display on Random pictures page'; 79 $lang['llgbo_header_recent_pics']= 'Header display on Recents pictures page'; 80 $lang['llgbo_header_created_monthly_calendar'] = 'Header display on Calendar page'; 81 $lang['llgbo_header_tags']= 'Header display on Tags page'; 82 $lang['llgbo_header_search']= 'Header display on Search page'; 83 $lang['llgbo_header_comments']= 'Header display on Comments page'; 84 $lang['llgbo_header_about']= 'Header display on About page'; 85 $lang['llgbo_header_notification']= 'Header display on Notification page'; 86 $lang['llgbo_header_register'] = 'Header display on Register page'; 87 $lang['llgbo_header_identification']= 'Header display on identification page'; 88 $lang['llgbo_header_favorites']= 'Header display on My Favorites page'; 89 $lang['llgbo_header_recent_cats']= 'Header display on Recent category page'; 64 90 ?> -
extensions/LLGBO2/language/pl_PL/plugin.lang.php
r4526 r4574 7 7 $lang['submit'] = 'Zatwierdź'; 8 8 $lang['Title'] = 'Look like GBo'; 9 $lang['Howto'] = 'Ta wtyczka umożliwia zmianę prezentacji strony ze zdjęciami. <br>Szczególne podziękowania dla forumowiczów za ich nieocenioną pomoc';9 $lang['Howto'] = 'Ta wtyczka umożliwia zmianę prezentacji strony ze zdjęciami.'; 10 10 $lang['Step1_Title'] = 'Ustawienia wtyczki'; 11 11 $lang['llgbo_tooltip']='Wyświetlaj okienko skrótu (miniatury dostępne na przycisku) przy ruchu myszką :'; … … 21 21 $lang['llgbo_title_frame'] = 'Wyświetl tytuł zdjęcia w ramce'; 22 22 $lang['llgbo_default_navthumb'] = 'Ukryj standardowe wyświetlanie poprzedniej/następnej miniatury:'; 23 24 23 // must be translate 19/12/2009 25 24 $lang['save'] = 'Save'; … … 56 55 $lang['llgbo_M_manage'] = 'Global settings'; 57 56 $lang['llgbo_samples'] = 'Samples : '; 58 $lang['llgbo_maintain_header_help']='1 - To find the body ID value, display the source code Ctrl+U with Firefox '; 59 $lang['llgbo_maintain_header_help1']='2 - Search the value "body id=". Sample --> body id="theAboutPage" '; 60 $lang['llgbo_maintain_header_help2']='3 - Copy the value theAboutPage in the text area. Separate the different ID by ;'; 57 $lang['llgbo_frame']='Manage frame around the picture :';$lang['Step4_Title'] = 'Header settings'; 58 $lang['Howto'] = 'This plugin manage the picture page presentation.<br>'; 59 $lang['llgbo_frame']='Manage frame around the picture :'; 60 $lang['Step4_Title'] = 'Header settings'; 61 $lang['llgbo_header']='Manage display header '; 62 $lang['llgo_tooltip_setting']= 'Tooltip title'; 63 $lang['llgbo_M_header'] = 'Display Header management'; 64 $lang['Step4_Title'] = 'Header Display/Hide for each page'; 65 $lang['llgbo_header_home'] = 'Header display on Home page'; 66 $lang['llgbo_header_category'] = 'Header display on Category page'; 67 $lang['llgbo_header_category_filter_recent']= 'Header display on Category page :filter by recent'; 68 $lang['llgbo_header_category_flat']= 'Header display on Category page option flat' ; 69 $lang['llgbo_header_category_posted_monthly']= 'Header display on Category page option calendar' ; 70 $lang['llgbo_header_picture']= 'Header display on Picture page' ; 71 $lang['llgbo_header_additional_page'] = 'Header display on Additional page'; 72 $lang['llgbo_header_most_visited'] = 'Header display on Most visited page'; 73 $lang['llgbo_header_best_rated'] = 'Header display on Best rated page'; 74 $lang['llgbo_header_list']= 'Header display on Random pictures page'; 75 $lang['llgbo_header_recent_pics']= 'Header display on Recents pictures page'; 76 $lang['llgbo_header_created_monthly_calendar'] = 'Header display on Calendar page'; 77 $lang['llgbo_header_tags']= 'Header display on Tags page'; 78 $lang['llgbo_header_search']= 'Header display on Search page'; 79 $lang['llgbo_header_comments']= 'Header display on Comments page'; 80 $lang['llgbo_header_about']= 'Header display on About page'; 81 $lang['llgbo_header_notification']= 'Header display on Notification page'; 82 $lang['llgbo_header_register'] = 'Header display on Register page'; 83 $lang['llgbo_header_identification']= 'Header display on identification page'; 84 $lang['llgbo_header_favorites']= 'Header display on My Favorites page'; 85 $lang['llgbo_header_recent_cats']= 'Header display on Recent category page'; 61 86 62 87 ?> -
extensions/LLGBO2/main.inc.php
r4523 r4574 18 18 $obj = new look_like_gbo(); /* class loading */ 19 19 global $conf,$ttvalues,$plugvalues,$frvalues; 20 define ('LLGBO_INFO_VERSION','2.0.I ');20 define ('LLGBO_INFO_VERSION','2.0.Ia'); 21 21 define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 22 22 23 23 $conf['LLGBO_SETTINGS'] = explode("," , $conf['LLGBO']); 24 24 $conf['LLGBO_TOOLTIP'] = explode(",",$conf['LLGBOTOOLTIP']); 25 $conf['LLGBO_FRAME'] = explode (",",$conf['LLGBOFRAME']); 25 $conf['LLGBO_FRAME'] = explode (",",$conf['LLGBOFRAME']); 26 $conf['LLGBO_HEADER'] = explode (",",$conf['LLGBOHEADER']); 26 27 ///////////////////////////////////////////////////// 27 28 /* plugin Class */ … … 45 46 function MyBeginheader() 46 47 { global $page,$conf; 47 // echo '-10-'.$conf['LLGBO_SETTINGS',10];48 48 49 If ($conf['LLGBO_SETTINGS'][2] == 'true' ) // reset nofollow, noindex 49 50 { unset ($page['meta_robots']);} … … 52 53 function Myheader() 53 54 {global $template,$conf; 54 $Page_body = $template->get_template_vars('BODY_ID'); 55 $Categories = $template->get_template_vars('U_MODE_FLAT'); // Home page 56 if ((isset ($Page_body)) )// pb with redirect.tpl 57 {If ($conf['LLGBO_SETTINGS'][6] == 'true' ) //display Header on home page 58 { if (strpos( $Categories ,'categories') === False ) 59 { $exclu = strtoupper($Page_body); /* maintain header on user define page */ 60 if (strpos( strtoupper($conf['LLGBO_SETTINGS'] [7]),$exclu) === False) 61 {$template->append('head_elements',"\n".' <STYLE type="text/css">#theHeader{display: none}</STYLE>');} 62 } 63 } 64 65 // 66 If ($conf['LLGBO_SETTINGS'] [9] == 'true' and $Page_body == 'thePicturePage') 67 {$template->append('head_elements',"\n".' <STYLE type="text/css">.navThumb{display: none} </STYLE>');} 68 } 55 $page_name = script_basename(); 56 if ($conf['LLGBO_SETTINGS'] [6] = 'true' ) 57 {$no_header = false; 58 if ( $page_name == 'index') 59 {// print_r($_GET.'----'.$page_name ); 60 if ((count ($_GET)) == 0 and ($conf['LLGBO_HEADER'][0] == 'false')) {$no_header = true;}// home 61 foreach($_GET as $cle =>$valeur) 62 {//print_r($cle.'_'.$valeur); 63 if ((strpos( $cle ,'categories') == true ) and ($conf['LLGBO_HEADER'][0] == 'false')) {$no_header = true;}// categories 64 if ((strpos( $cle ,'category') == true ) and ($conf['LLGBO_HEADER'][1] == 'false')) {$no_header = true;break;} 65 if ((strpos( $cle ,'filter=') == true ) and ($conf['LLGBO_HEADER'][2] == 'false')) {$no_header = true;break;} 66 if ((strpos( $cle ,'categories/flat') == true ) and ($conf['LLGBO_HEADER'][3] == 'false')) {$no_header = true;break;} 67 if ((strpos( $cle ,'categories/posted-monthly-list') == true ) and ($conf['LLGBO_HEADER'][4] == 'false')) {$no_header = true;break;} 68 if ((strpos( $cle ,'additional_page') == true ) and ($conf['LLGBO_HEADER'][6] == 'false')) {$no_header = true;break;} 69 if ((strpos( $cle ,'most_visited') == true ) and ($conf['LLGBO_HEADER'][7] == 'false')) {$no_header = true;break;} 70 if ((strpos( $cle ,'best_rated') == true ) and ($conf['LLGBO_HEADER'][8] == 'false')) {$no_header = true;break;} 71 if ((strpos( $cle ,'list') == true ) and ($conf['LLGBO_HEADER'][9] == 'false')) {$no_header = true;break;} 72 if ((strpos( $cle ,'recent_pics') == true ) and ($conf['LLGBO_HEADER'][10] == 'false')) {$no_header = true;break;} 73 if ((strpos( $cle ,'tags') == true ) and ($conf['LLGBO_HEADER'][11] == 'false')) {$no_header = true;break;} 74 if ((strpos( $cle ,'created-monthly-list') == true ) and ($conf['LLGBO_HEADER'][12] == 'false')) {$no_header = true;break;} 75 if ((strpos( $cle ,'favorites') == true ) and ($conf['LLGBO_HEADER'][19] == 'false')) {$no_header = true;break;} 76 if ((strpos( $cle ,'recent_cats') == true ) and ($conf['LLGBO_HEADER'][20] == 'false')) {$no_header = true;break;} 77 78 } 79 } 80 //print_r($_GET.'----'.$page_name ); 81 if ( $page_name == 'picture' and $conf['LLGBO_HEADER'][5] == 'false') {$no_header = true;}//picture page 82 if ( $page_name == 'tags' and $conf['LLGBO_HEADER'][11] == 'false') {$no_header = true;}//tags 83 if ( $page_name == 'search' and $conf['LLGBO_HEADER'][13] == 'false') {$no_header = true;}//search 84 if ( $page_name == 'comments' and $conf['LLGBO_HEADER'][14] == 'false') {$no_header = true;}//comments 85 if ( $page_name == 'about' and $conf['LLGBO_HEADER'][15] == 'false') {$no_header = true;}//about 86 if ( $page_name == 'notification' and $conf['LLGBO_HEADER'][16] == 'false') {$no_header = true;}//notification 87 if ( $page_name == 'register' and $conf['LLGBO_HEADER'][17] == 'false') {$no_header = true;} //notification 88 if ( $page_name == 'identification' and $conf['LLGBO_HEADER'][18] == 'false') {$no_header = true;}//about 89 if ($no_header == true) 90 {$template->append('head_elements',"\n".' <STYLE type="text/css">#theHeader{display: none}</STYLE>');} 91 } 92 93 94 // 95 If ($conf['LLGBO_SETTINGS'] [9] == 'true' ) 96 {$template->append('head_elements',"\n".' <STYLE type="text/css">.navThumb{display: none} </STYLE>');} 97 69 98 } // end header 70 99 … … 100 129 </style>'; 101 130 // ----------- add JS tooltip in header ---------------------- 102 If (($conf['LLGBO'][1] == 'true' ) /* tooltip */ or ($conf['LLGBO_SETTINGS'] [2] == 'true' ) /* exif under bt */ ) 131 If (($conf['LLGBO'][1] == 'true' ) /* tooltip */ or ($conf['LLGBO_SETTINGS'] [2] == 'true' ) /* exif under bt */ 132 or ($conf['LLGBO_SETTINGS'] [4] === 'true' ) /* usemap and Display Thumb */) 103 133 { $javacss = '<script type="text/javascript" charset="utf-8" src="'.LLGBO_PATH; 104 134 $linkcss = '<link rel="stylesheet" type="text/css" href="'.LLGBO_PATH; -
extensions/LLGBO2/maintain.inc.php
r4523 r4574 30 30 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 31 31 function plugin_install() 32 { global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues ;32 { global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues,$headvalues; 33 33 plugin_uninstall(); // en cas de mauvaise deinstallation anterieure 34 34 $q = ' … … 47 47 ("LLGBOFRAME","'.$frvalues.'","look like gbo frame settings");'; 48 48 pwg_query($q); 49 $q = ' 50 INSERT INTO '.CONFIG_TABLE.' (param,value,comment) 51 VALUES 52 ("LLGBOHEADER","'.$headvalues.'","look like gbo header settings");'; 53 pwg_query($q); 49 54 50 55 $conf['LLGBO_SETTINGS'] = explode("," , $plugvalues); 51 56 $conf['LLGBO_TOOLTIP'] = explode(",",$ttvalues); 52 57 $conf['LLGBO_FRAME'] = explode (",", $frvalues); 58 $conf['LLGBO_HEADER'] = explode (",", $headvalues); 53 59 54 60 } 55 61 function plugin_activate() 56 { global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues ;62 { global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues,$headvalues; 57 63 /////////////////////////////////////////////////// 58 64 // Vérification de la config, si pas bon -> reinstallation … … 60 66 $ttvalues = "150,2,#fff,#000,#c92,#dadada"; 61 67 $frvalues = "#16195f,#ffffff,3,#040404,1,#ffffff,7,#ffffff,1,#fdfdfd,1,#fcfcfc,1,#fafafa,1,#eaeaea,1,#d3d3d3,1,#bababa,1,#9f9f9f,1,#858585,1,#777777,1,#646464,1,#575757,1,#474747,1"; 68 $headvalues = "true,false,false,false,false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true"; 69 62 70 // 63 71 if ( (!isset($conf['LLGBO'])) or (substr_count($conf['LLGBO'], ',') != 9) 64 72 or (!isset($conf['LLGBOTOOLTIP'])) or (substr_count($conf['LLGBOTOOLTIP'], ',') != 5) 65 or (!isset($conf['LLGBOFRAME'])) or (substr_count($conf['LLGBOFRAME'], ',') != 32)) 73 or (!isset($conf['LLGBOFRAME'])) or (substr_count($conf['LLGBOFRAME'], ',') != 32) 74 or (!isset($conf['LLGBOHEADER'])) or (substr_count($conf['LLGBOHEADER'], ',') != 21)) 66 75 { plugin_install(); } 67 76 } … … 70 79 { global $prefixeTable; 71 80 $q = ' 72 DELETE FROM '.CONFIG_TABLE.' WHERE param like "LLGBO%" LIMIT 4;';81 DELETE FROM '.CONFIG_TABLE.' WHERE param like "LLGBO%" LIMIT 5;'; 73 82 pwg_query( $q ); 74 83 }
Note: See TracChangeset
for help on using the changeset viewer.