Changeset 4574 for extensions/LLGBO2


Ignore:
Timestamp:
12/27/09 21:59:11 (10 years ago)
Author:
EXFTB
Message:

LLGBO improve Header management

Location:
extensions/LLGBO2
Files:
1 added
12 edited

Legend:

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

    r4524 r4574  
    4747               l10n('llgbo_M_tooltip'), 
    4848               $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                            
     52if (!isset($_POST['llgbo_frame'])   )  
     53        {$disptabframe = $conf['LLGBO_SETTINGS'][0] ;}   
     54        else 
     55        {$disptabframe = $_POST['llgbo_frame'];} 
     56if (!isset($_POST['llgbo_header'])   )  
     57        {$disptabheader = $conf['LLGBO_SETTINGS'][6] ;}          
     58        else 
     59        {$disptabheader = $_POST['llgbo_header'];}  
    5460                    
    55 if ($conf['LLGBO_SETTINGS'][0] == 'true') 
     61if (($disptabframe == 'true')) 
    5662{$tabsheet->add('frame', 
    5763               l10n('llgbo_M_frame'), 
    5864               $my_base_url.'&tab=frame');} 
    59  
    60  
     65                            
     66if (($disptabheader == 'true')) 
     67{$tabsheet->add('header', 
     68               l10n('llgbo_M_header'), 
     69               $my_base_url.'&tab=header');}                    
    6170 
    6271$tabsheet->assign(); 
     
    6776if ($page['tab'] == 'frame' ) 
    6877{$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_adminframe.tpl') );} 
     78if ($page['tab'] == 'header' ) 
     79{$template->set_filenames( array('llgbo_admin_content' => dirname(__FILE__).'/llgbo_adminheader.tpl') );} 
    6980$tabsheet->select($page['tab']); 
    7081/* ****************************************************** */ 
     
    241252  Draw_frame(); 
    242253} 
     254/////////////////////////////////////////////// 
     255/////            HEADER 
     256///////////////////////////////////////////////// 
     257if ($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 } 
    243330 
    244331$template->assign_var_from_handle( 'ADMIN_CONTENT', 'llgbo_admin_content'); 
  • extensions/LLGBO2/admin/llgbo_adminframe.tpl

    r4524 r4574  
     1 
    12<div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 
    23 <h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2> 
     4 <h3>{'Step3_Title'|@translate}</h3> 
    35<form method="post" action="{$llgbo_F_ACTION}" class="properties"> 
    46<fieldset> 
    5 <legend>{'Step3_Title'|@translate}</legend> 
    67        <div id="framepicker" align="center" > </div> 
    78        <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> 
    89        {$FRAME_BEGIN} 
    910        <table align="center" style ="position: relative; top:-2.5em;" > 
    10         <th id="llgbotitle">{'llgo_frame_setting'|@translate}   </th> 
     11        <th id="llgbotitle">    </th> 
    1112        <tr><br> 
    1213                <td   class="llgbolabel" >{'llgbo_title_frame_color'|@translate} </td> 
  • extensions/LLGBO2/admin/llgbo_adminsettings.tpl

    r4524 r4574  
    11<div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 
    22 <h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2> 
    3 {'Howto'|@translate} 
     3<h3>{'Howto'|@translate}</h3> 
     4 
    45<form method="post" action="{$llgbo_F_ACTION}" class="properties"> 
    56<fieldset> 
    6 <legend>{'Step1_Title'|@translate}</legend> 
     7 
    78<table id="llgbotable" style="{$LLGBODISPMANAGE}"> 
    89        <tr> 
     
    4243        </tr>    
    4344</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 
    5546<div align="center"><br><br><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" /></div> 
    5647</fieldset> 
  • extensions/LLGBO2/admin/llgbo_admintooltip.tpl

    r4524 r4574  
    11<div class="infos" style="text-align:left;padding-left:45px;" >{$LLGBOINFO|@translate}</div> 
    22 <h2> {'Title'|@translate} <br>  {$LLGBO_VERSION}</h2> 
    3 {'Howto'|@translate} 
     3<h3>{'Step2_Title'|@translate}</h3> 
    44<form method="post" action="{$llgbo_F_ACTION}" class="properties"> 
    55<fieldset> 
    6 <legend>{'Step2_Title'|@translate}</legend> 
     6 
    77<div id="picker"style="{$LLGBODISPTOOLTIP}"></div> 
    88<!--           T O O L T I P  --> 
  • extensions/LLGBO2/css/look_like_gbo2_admin.css

    r4525 r4574  
    1919.llgbolabel{ 
    2020        text-align:left; 
    21         padding-left:1px; 
    22         margin:0; 
     21        padding-left:85px; 
     22        margin :0 ; 
    2323} 
    24  
     24.llgboinput{ 
     25        text-align:left; 
     26        padding-left:10px; 
     27        margin :0 ; 
     28} 
    2529.llgbofield , .colorwell ,.colorwellf{ 
    2630        width:65px;text-align:left; 
     
    3034} 
    3135#llgbotable{ 
    32         margin-right:25%; 
     36        margin-right:0%; 
     37        margin-left:0%; 
    3338}  
    3439#tooltip{ 
    35      margin-right:25%; 
     40    margin-right:25%; 
    3641        margin-left:15%; 
    3742        padding:5px; 
    3843        -moz-border-radius:10px; 
    3944} 
    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} 
    4146textarea {overflow:hidden;} 
    4247 
    4348.submit{margin:10px;} 
     49 
     50TABLE.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  
    77$lang['submit'] = 'Submit'; 
    88$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   '; 
    1010$lang['Step1_Title'] = 'Plugin settings'; 
    1111$lang['Step2_Title'] = 'Tooltip settings'; 
     
    1313$lang['llgbo_tooltip']='Display tooltip (thumbnail under button) on mouseover :'; 
    1414$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 :'; 
    1815$lang['llgbo_allinfo']='Display all the phpwebgallery data picture :'; 
    1916$lang['llgbo_usemap']='Add navigation on picture :'; 
     
    3128$lang['llgbo_tooltip_color']= 'Define tooltip text color'; 
    3229$lang['llgo_global_setting']= 'Piwigo Picture page global settings'; 
    33 $lang['llgo_tooltip_setting']= 'Tooltip settings'; 
    3430$lang['llgo_frame_setting']= 'Frame settings :' ; 
    3531$lang['llgbo_title_frame_color']= 'Title frame color'; 
     
    5551$lang['llgbo_M_manage'] = 'Global settings'; 
    5652$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'; 
    6182?> 
  • extensions/LLGBO2/language/es_ES/plugin.lang.php

    r4526 r4574  
    88$lang['submit'] = 'Validar'; 
    99$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.'; 
    1111$lang['Step1_Title'] = 'Parametraje de Plugin '; 
    1212$lang['llgbo_tooltip']='Infobulles específico (miniaturas de las fotos) al sobrevuelo de los botones:'; 
     
    5656$lang['llgbo_M_manage'] = 'Global settings'; 
    5757$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  
    99$lang['preview'] = 'Visualiser'; 
    1010$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.'; 
    1212$lang['Step1_Title'] = 'Paramétrage du Plugin '; 
    1313$lang['Step2_Title'] = 'Paramétrage de l\'infobulle'; 
    1414$lang['Step3_Title'] = 'Paramétrage du cadre '; 
     15$lang['Step4_Title']= 'Paramètres de l\'infobulle :' ; 
    1516$lang['llgbo_tooltip']='Infobulles spécifiques (miniatures des photos) au survol des boutons :'; 
    1617$lang['llgbo_exifunderbt']='Infobulles spécifiques pour les EXIFS au survol du bouton :'; 
     
    3132$lang['llgbo_tooltip_color']= 'Couleur du texte de l\'infobulle :' ; 
    3233$lang['llgo_global_setting']= 'Parmètres généraux de la page picture de piwigo:'; 
    33 $lang['llgo_tooltip_setting']= 'Paramètres de l\'infobulle :' ; 
     34$lang['llgo_tooltip_setting']= 'Titre de l\'infobulle :' ; 
    3435$lang['llgo_frame_setting']= 'Paramètres du cadre :' ; 
    3536$lang['llgbo_title_frame_color']= 'Couleur du titre affiché sur le cadre'; 
     
    5556$lang['llgbo_M_manage'] = 'Paramétres généraux'; 
    5657$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'; 
    6087 
    6188 
  • extensions/LLGBO2/language/hu_HU/plugin.lang.php

    r4526 r4574  
    99$lang['submit'] = 'Küldés'; 
    1010$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.'; 
    1212$lang['Step1_Title'] = 'Bővítmény beállítások'; 
    1313$lang['llgbo_tooltip']='Legyen kibővített buboréksúgó a gomb alatt? (bélyegkép + szöveg):'; 
     
    2525 
    2626// must be translate 19/12/2009 
     27  
    2728$lang['save'] = 'Save'; 
    2829$lang['preview'] = 'Preview'; 
     
    5859$lang['llgbo_M_manage'] = 'Global settings'; 
    5960$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'; 
    6490?> 
  • extensions/LLGBO2/language/pl_PL/plugin.lang.php

    r4526 r4574  
    77$lang['submit'] = 'Zatwierdź'; 
    88$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.'; 
    1010$lang['Step1_Title'] = 'Ustawienia wtyczki'; 
    1111$lang['llgbo_tooltip']='Wyświetlaj okienko skrótu (miniatury dostępne na przycisku) przy ruchu myszką :'; 
     
    2121$lang['llgbo_title_frame'] = 'Wyświetl tytuł zdjęcia w ramce'; 
    2222$lang['llgbo_default_navthumb'] = 'Ukryj standardowe wyświetlanie poprzedniej/następnej miniatury:'; 
    23  
    2423// must be translate 19/12/2009 
    2524$lang['save'] = 'Save'; 
     
    5655$lang['llgbo_M_manage'] = 'Global settings'; 
    5756$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'; 
    6186 
    6287?> 
  • extensions/LLGBO2/main.inc.php

    r4523 r4574  
    1818$obj = new look_like_gbo(); /* class loading */ 
    1919global $conf,$ttvalues,$plugvalues,$frvalues;  
    20 define ('LLGBO_INFO_VERSION','2.0.I'); 
     20define ('LLGBO_INFO_VERSION','2.0.Ia'); 
    2121define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 
    2222          
    2323 $conf['LLGBO_SETTINGS'] =  explode("," , $conf['LLGBO']); 
    2424 $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']);    
    2627///////////////////////////////////////////////////// 
    2728/*  plugin Class  */ 
     
    4546function MyBeginheader() 
    4647{ global $page,$conf; 
    47         // echo '-10-'.$conf['LLGBO_SETTINGS',10]; 
     48         
    4849         If ($conf['LLGBO_SETTINGS'][2]  == 'true' ) // reset nofollow, noindex 
    4950        { unset ($page['meta_robots']);} 
     
    5253function Myheader() 
    5354{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(); 
     56if ($conf['LLGBO_SETTINGS'] [6] = 'true' )  
     57{$no_header = false; 
     58if (  $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// 
     95If ($conf['LLGBO_SETTINGS'] [9]  == 'true' ) 
     96{$template->append('head_elements',"\n".' <STYLE type="text/css">.navThumb{display: none} </STYLE>');} 
     97  
    6998}  // end header  
    7099 
     
    100129</style>'; 
    101130// -----------  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  */) 
    103133            {  $javacss = '<script type="text/javascript" charset="utf-8"  src="'.LLGBO_PATH;    
    104134                  $linkcss = '<link rel="stylesheet" type="text/css" href="'.LLGBO_PATH; 
  • extensions/LLGBO2/maintain.inc.php

    r4523 r4574  
    3030if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    3131function plugin_install() 
    32 {  global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues;  
     32{  global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues,$headvalues;  
    3333  plugin_uninstall(); // en cas de mauvaise deinstallation anterieure 
    3434        $q = ' 
     
    4747        ("LLGBOFRAME","'.$frvalues.'","look like gbo frame settings");'; 
    4848  pwg_query($q); 
     49        $q = ' 
     50INSERT INTO '.CONFIG_TABLE.' (param,value,comment) 
     51        VALUES   
     52        ("LLGBOHEADER","'.$headvalues.'","look like gbo header settings");'; 
     53  pwg_query($q); 
    4954   
    5055$conf['LLGBO_SETTINGS'] =  explode("," , $plugvalues); 
    5156$conf['LLGBO_TOOLTIP'] = explode(",",$ttvalues); 
    5257$conf['LLGBO_FRAME'] = explode (",", $frvalues);  
     58$conf['LLGBO_HEADER'] = explode (",", $headvalues); 
    5359  
    5460} 
    5561function plugin_activate() 
    56 { global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues;  
     62{ global $prefixeTable,$conf,$ttvalues,$plugvalues,$frvalues,$headvalues;  
    5763 /////////////////////////////////////////////////// 
    5864// Vérification de la config, si pas bon -> reinstallation 
     
    6066$ttvalues = "150,2,#fff,#000,#c92,#dadada"; 
    6167$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 
    6270// 
    6371 if ( (!isset($conf['LLGBO'])) or (substr_count($conf['LLGBO'], ',')  != 9)   
    6472 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))   
    6675        {         plugin_install(); } 
    6776} 
     
    7079{ global $prefixeTable; 
    7180  $q = ' 
    72 DELETE FROM '.CONFIG_TABLE.' WHERE param like "LLGBO%" LIMIT 4;'; 
     81DELETE FROM '.CONFIG_TABLE.' WHERE param like "LLGBO%" LIMIT 5;'; 
    7382  pwg_query( $q ); 
    7483} 
Note: See TracChangeset for help on using the changeset viewer.