Ignore:
Timestamp:
Jul 16, 2009, 12:37:15 AM (15 years ago)
Author:
tiico
Message:

Correct FR langage
Add a new config tab for news parameters for embeded wall (such as numRows, Transparency...) [to be completed]

Location:
extensions/piclens/admin
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/piclens/admin/piclens_admin.php

    r3410 r3598  
    4040                                l10n('piclens_3dwallconfig_tab'),
    4141               $my_base_url.'&tab=piclenswallconfig');
     42$tabsheet->add('piclenswallconfig2',
     43//               'Configugation PiclensWall',
     44                                l10n('piclens_3dwallconfig2_tab'),
     45               $my_base_url.'&tab=piclenswallconfig2');
    4246$tabsheet->select($page['tab']);
    4347$tabsheet->assign();
  • extensions/piclens/admin/piclenswallconfig.php

    r3536 r3598  
    1717$me = get_plugin_data($plugin_id);
    1818
    19  $template->set_filenames( array('plugin_admin_content' => PICLENS_ROOT.'/admin/piclenswallconfig.tpl') );
     19 $template->set_filenames(
     20                array('plugin_admin_content' => PICLENS_ROOT.'/admin/piclenswallconfig.tpl'               
     21                        ) );
    2022
     23                       
    2124
    2225if (isset($_POST['submit'])) {
    2326  $me->my_config['piclens_wall'] = isset($_POST['piclens_wall']);
    2427  $me->my_config['piclens_wall_title'] = $_POST['piclens_wall_title'];
    25   $me->my_config['piclens_wall_color'] =   $_POST['background_color'];
    2628  $me->my_config['piclens_wall_height'] =   $_POST['piclens_wall_height'];
    2729  $me->my_config['piclens_wall_categories'] = isset($_POST['categories']) ?
    2830                          array_map("mysql_escape_string", $_POST['categories']) :
    2931                          array();
     32
    3033  $me->my_config['piclens_wall_nav'] = isset($_POST['piclens_wall_nav']);
    3134  $me->my_config['piclens_wall_cat_nav_replace'] = isset($_POST['categories_nav']) ?
     
    3538  $me->my_config['piclens_wall_ontop'] = isset($_POST['piclens_wall_ontop']); 
    3639  $me->my_config['piclens_wall_oncat'] = isset($_POST['piclens_wall_oncat']);
    37   $me->my_config['piclens_wall_showembed'] = isset($_POST['piclens_wall_embed']);
    38   $me->my_config['piclens_wall_showfullscreen'] = isset($_POST['piclens_wall_fullscreen']);
    39   $me->my_config['piclens_wall_showsearch'] = isset($_POST['piclens_wall_search']);
    40   $me->my_config['piclens_wall_showsearch'] = isset($_POST['piclens_wall_search']);
    41   $me->my_config['piclens_wall_transparent'] =   isset($_POST['piclens_wall_transparent']);
    4240
    4341  $me->my_config['piclens_wall_spec'] = isset($_POST['piclens_wall_spec']);
     
    4947
    5048  $me->my_config['piclens_wall_swflocal'] = isset($_POST['piclens_wall_swflocal']);
    51   $me->my_config['piclens_wall_nb_ligne'] =   $_POST['piclens_wall_nb_ligne'];
    5249 
    5350  if ($pwgstuff_ok && $me->my_config['piclens_wall'])
     
    7168}
    7269
    73 //$template->assign('PICLENS_COPY_CROSSDOMAIN', file_exists($filename) ? l10n('piclens_label_crossdomain1') : '<input type="checkbox" name="crossdomain_copy" /> '.l10n('piclens_label_crossdomain2'));
    74 
    75 //$template->assign('PICLENS_COPY_CROSSDOMAIN', file_exists($filename));
    76 
    77 //$template->assign('PICLENS_PWGSTUFF', $pwgstuff_ok ? 'disabled="disabled"' : '');
    78 //$template->assign('PICLENS_PWGSTUFF1', $pwgstuff_ok ? l10n('piclens_label_pwgstuff1'): l10n('piclens_label_pwgstuff2'));
    79 
    80 //$template->assign('PICLENS_WALL_ACTIVATED', $me->my_config['piclens_wall'] ? 'checked="checked"' : '' );
    81 
    82 //$template->assign(array($me->my_config['piclens_wall_color'].'_CHECKED' => 'checked="checked"'));
    83 //$template->assign(array($me->my_config['piclens_wall_specif'].'_CHECKED' => 'checked="checked"'));
    84 //$template->assign(array('PICLENS_WALL_HEIGHT' => $me->my_config['piclens_wall_height']));
    85 
    86 //$template->assign('CROSSDOMAIN_LNK', PICLENS_PATH.'crossdomain.xml');
    87 
    8870$query = '
    8971  SELECT id,name,uppercats,global_rank
     
    10082    true);
    10183       
    102 //$template->assign('PICLENS_WALL_ONTOP', $me->my_config['piclens_wall_ontop'] ? 'checked="checked"' : '' );
    103 //$template->assign('PICLENS_WALL_ONCAT', $me->my_config['piclens_wall_oncat'] ? 'checked="checked"' : '' );
    10484
    105 //$template->assign('PICLENS_WALL_EMBED', $me->my_config['piclens_wall_showembed'] ? 'checked="checked"' : '' );
    106 //$template->assign('PICLENS_WALL_FULLSCREEN', $me->my_config['piclens_wall_showfullscreen'] ? 'checked="checked"' : '' );
    107 //$template->assign('PICLENS_WALL_SEARCH', $me->my_config['piclens_wall_showsearch'] ? 'checked="checked"' : '' );
    10885
    109 //$template->assign('PICLENS_WALL_NAV', $me->my_config['piclens_wall_nav'] ? 'checked="checked"' : '' );
    110 //$template->assign('PICLENS_WALL_TITLE', $me->my_config['piclens_wall_title']);
    111 
    112 //$template->assign('PICLENS_WALL_SPEC', $me->my_config['piclens_wall_spec'] ? 'checked="checked"' : '' );
    113 
    114 //$template->assign('PICLENS_WALL_SPEC', $me->my_config['piclens_wall_spec'] ? 'checked="checked"' : '' );
    115 //$template->assign('PICLENS_WALL_SPEC_RECENTPICS', $me->my_config['piclens_wall_spec_recentpics'] ? 'checked="checked"' : '' );
    116 //$template->assign('PICLENS_WALL_SPEC_RECENTCATS', $me->my_config['piclens_wall_spec_recentcats'] ? 'checked="checked"' : '' );
    117 //$template->assign('PICLENS_WALL_SPEC_MOSTVISITED', $me->my_config['piclens_wall_spec_mostvisited'] ? 'checked="checked"' : '' );
    118 //$template->assign('PICLENS_WALL_SPEC_BESTRATED', $me->my_config['piclens_wall_spec_bestrated'] ? 'checked="checked"' : '' );
    119 //$template->assign('PICLENS_WALL_SPEC_FAVORITES', $me->my_config['piclens_wall_spec_favorites'] ? 'checked="checked"' : '' );
    12086
    12187$template->assign(array(
     
    12490        'PICLENS_PWGSTUFF1'                                                                     => ($pwgstuff_ok ? l10n('piclens_label_pwgstuff1'): l10n('piclens_label_pwgstuff2')),
    12591        'PICLENS_WALL_ACTIVATED'                                                        => ($me->my_config['piclens_wall'] ? 'checked="checked"' : '' ),
    126         $me->my_config['piclens_wall_color'].'_CHECKED'         => 'checked="checked"',
    12792        $me->my_config['piclens_wall_specif'].'_CHECKED'        => 'checked="checked"',
    12893        'PICLENS_WALL_HEIGHT'                                                           => $me->my_config['piclens_wall_height'],
     
    13095        'PICLENS_WALL_ONTOP'                                                            => ($me->my_config['piclens_wall_ontop'] ? 'checked="checked"' : '' ),
    13196        'PICLENS_WALL_ONCAT'                                                            => ($me->my_config['piclens_wall_oncat'] ? 'checked="checked"' : '' ),
    132         'PICLENS_WALL_EMBED'                                                            => ($me->my_config['piclens_wall_showembed'] ? 'checked="checked"' : '' ),
    133         'PICLENS_WALL_FULLSCREEN'                                                       => ($me->my_config['piclens_wall_showfullscreen'] ? 'checked="checked"' : '' ),
    134         'PICLENS_WALL_SEARCH'                                                           => ($me->my_config['piclens_wall_showsearch'] ? 'checked="checked"' : '' ),
    135         'PICLENS_WALL_TRANSPARENT'                                                      => ($me->my_config['piclens_wall_transparent'] ? 'checked="checked"' : '' ),
    13697        'PICLENS_WALL_NAV'                                                                      => ($me->my_config['piclens_wall_nav'] ? 'checked="checked"' : '' ),
    13798        'PICLENS_WALL_TITLE'                                                            => $me->my_config['piclens_wall_title'],
     
    143104        'PICLENS_WALL_SPEC_BESTRATED'                                           => ($me->my_config['piclens_wall_spec_bestrated'] ? 'checked="checked"' : '' ),
    144105        'PICLENS_WALL_SPEC_FAVORITES'                                           => ($me->my_config['piclens_wall_spec_favorites'] ? 'checked="checked"' : '' ),
    145         'PICLENS_WALL_SWFLOCAL'                                                         => ($me->my_config['piclens_wall_swflocal'] ? 'checked="checked"' : '' ),
    146     'PICLENS_WALL_NB_LIGNE'                             => $me->my_config['piclens_wall_nb_ligne']
     106        'PICLENS_WALL_SWFLOCAL'                                                         => ($me->my_config['piclens_wall_swflocal'] ? 'checked="checked"' : '' )
    147107        ));
    148 
    149108
    150109$template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
  • extensions/piclens/admin/piclenswallconfig.tpl

    r3536 r3598  
    7979               
    8080                <tr>
    81                     <td align="right">{'piclens_wallcfg_color'|@translate} &nbsp;</td>
    82                     <td><input type="radio" name="background_color" value="dark" {$dark_CHECKED}>&nbsp;{'piclens_wallcfg_colorB'|@translate}</td>
    83                 </tr>
    84                 <tr>
    85                     <td align="right"></td>
    86                     <td><input type="radio" name="background_color" value="white" {$white_CHECKED}>&nbsp;{'piclens_wallcfg_colorW'|@translate}</td>
    87                 </tr>
    88                 <tr>
    8981                        <td align="right">{'piclens_wallcfg_heigh'|@translate} &nbsp;</td>
    9082                        <td><input type="text" size="3" maxlength="3" value="{$PICLENS_WALL_HEIGHT}" name="piclens_wall_height">&nbsp;px</td>
    91                 </tr>
    92                 <br>
    93                 <tr>
    94                         <td align="right"> {'piclens_wallcfg_option'|@translate} &nbsp; </td>
    95                     <td>
    96                                  <input type="checkbox" name="piclens_wall_embed" {$PICLENS_WALL_EMBED}/>&nbsp; {'piclens_wallcfg_option-opt1'|@translate}
    97                                  <br>
    98                                  <input type="checkbox" name="piclens_wall_fullscreen" {$PICLENS_WALL_FULLSCREEN}/>&nbsp; {'piclens_wallcfg_option-opt2'|@translate}
    99                                  <br>
    100                                  <input type="checkbox" name="piclens_wall_search" {$PICLENS_WALL_SEARCH}/>&nbsp; {'piclens_wallcfg_option-opt3'|@translate}
    101                                  <br>
    102                                  <input type="checkbox" name="piclens_wall_transparent" {$PICLENS_WALL_TRANSPARENT}/>&nbsp; {'piclens_wallcfg_transparent'|@translate}
    103                                  <br/>
    104                  {'piclens_wallcfg_nbligne'|@translate} &nbsp;<input type="text" size="2" maxlength="2" value="{$PICLENS_WALL_NB_LIGNE}" name="piclens_wall_nb_ligne">&nbsp;
    105                                  <br/>
    106                         </td>
    10783                </tr>
    10884                <br>
     
    126102                        </td>
    127103                </tr>
     104               
    128105        </TABLE>
    129106</fieldset>
  • extensions/piclens/admin/rssfeed.php

    r3536 r3598  
    2020
    2121//$order_list = array('Defaut Piwigo', 'Date de Creation', 'Date d\'ajout', 'Note Moyenne', 'Plus vues', 'Nom du fichier', 'Id', 'Al&eacute;atoire', 'Cat&eacute;gories');
    22 $order_list = array(l10n('piclens_label_orderPiwigo'), l10n('piclens_label_orderCreDate'), l10n('piclens_label_orderAddDate'), l10n('piclens_label_orderAverage'), l10n('piclens_label_orderBest'), l10n('piclens_label_orderName'), l10n('piclens_label_orderID'), l10n('piclens_label_orderRand'), l10n('piclens_label_orderCat'), l10n('piclens_label_orderRank'));
     22$order_list = array(l10n('piclens_label_orderPiwigo'), l10n('piclens_label_orderCreDate'), l10n('piclens_label_orderAddDate'), l10n('piclens_label_orderRank'), l10n('piclens_label_orderBest'), l10n('piclens_label_orderName'), l10n('piclens_label_orderID'), l10n('piclens_label_orderRand'), l10n('piclens_label_orderCat'));
    2323//$sort_list = array('Defaut Piwigo', 'Croissant', 'Decroissant');
    2424$sort_list = array(l10n('piclens_label_sortPiwigo'), l10n('piclens_label_sortUp'), l10n('piclens_label_sortDown'));
     
    2929$normal_list = array(l10n('piclens_label_TypeTN'), l10n('piclens_label_TypeNorm'), l10n('piclens_label_TypeHigh'));
    3030//$nameformat_list = array('Nom vignette : taille', 'Nom vignette', 'Nom de l\'image');
    31 $nameformat_list = array(l10n('piclens_label_Name1'), l10n('piclens_label_Name2'), l10n('piclens_label_Name3'), l10n('piclens_label_Name4'));
     31$nameformat_list = array(l10n('piclens_label_Name1'), l10n('piclens_label_Name2'), l10n('piclens_label_Name3'));
    3232//$descformat_list = array('Rien', 'Nom de l\'image', 'Description de l\'image');
    3333$descformat_list = array(l10n('piclens_label_Desc1'), l10n('piclens_label_Desc2'), l10n('piclens_label_Desc3'));
Note: See TracChangeset for help on using the changeset viewer.