Ignore:
Timestamp:
Jul 17, 2009, 7:41:22 PM (15 years ago)
Author:
tiico
Message:

Add compatiblity with tag page (piclens and wall)
Add parameter to avoid double image in the feed

Location:
extensions/piclens/admin
Files:
6 edited

Legend:

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

    r3410 r3619  
    5959  $me->my_config['piclens_bestrated_active'] = isset($_POST['piclens_bestrated_active']);
    6060  $me->my_config['piclens_favorites_active'] = isset($_POST['piclens_favorites_active']);
     61  $me->my_config['piclens_tags_active'] = isset($_POST['piclens_tags_active']);
    6162
    6263  $me->my_config['piclens_recursive_mode'] = $_POST['recursive_mode'];
     
    6768}
    6869
    69 //$template->assign('PICLENS_ACTIVATED', $me->my_config['piclens_active'] ? 'checked="checked"' : '' );
    70 //$template->assign('PICLENS_RECURSIVE_ACTIVATED', $me->my_config['piclens_recursive'] ? 'checked="checked"' : '' );
    71 //$template->assign('PICLENS_GALLERIE_ACTIVATED', $me->my_config['piclens_gallerie_active'] ? 'checked="checked"' : '' );
    72 
    7370// Affichage des coix miniature possibles pour la recursivite de l'option 'Activer gallerie'
    7471$i=1;
     
    7875        $i++;   
    7976}
    80 //$template->assign('PICLENS_GALLERIE_TYPE', $me->my_config['piclens_gallerie_type']);
    81 
    82 //$template->assign('PICLENS_LITE_ACTIVATED', $me->my_config['piclens_lite_active'] ? 'checked="checked"' : '' );
    83 
    84 //$template->assign('PICLENS_SECUREIMAGE', get_db_plugins('active','secureImages'));
    85 //$template->assign('PICLENS_SECUREIMAGE_ACTIVATED', $me->my_config['piclens_secureimage'] ? 'checked="checked"' : '' );
    86 
    87 //$template->assign('PICLENS_EXTENDEDDESC', get_db_plugins('active','ExtendedDescription') );
    88 //$template->assign('PICLENS_EXTENDEDDESC_ACTIVATED', $me->my_config['piclens_extendeddesc'] ? 'checked="checked"' : '' );
    89  
    90 //$template->assign('PICLENS_RECENTPICS_ACTIVATED', $me->my_config['piclens_recentpics_active'] ? 'checked="checked"' : '' );
    91 //$template->assign('PICLENS_RECENTCATS_ACTIVATED', $me->my_config['piclens_recentcats_active'] ? 'checked="checked"' : '' );
    92 //$template->assign('PICLENS_MOSTVISITED_ACTIVATED', $me->my_config['piclens_mostvisited_active'] ? 'checked="checked"' : '' );
    93 //$template->assign('PICLENS_BESTRATED_ACTIVATED', $me->my_config['piclens_bestrated_active'] ? 'checked="checked"' : '' );
    94 //$template->assign('PICLENS_FAVORITES_ACTIVATED', $me->my_config['piclens_favorites_active'] ? 'checked="checked"' : '' );
    9577
    9678$template->assign(array(
     
    10991        'PICLENS_BESTRATED_ACTIVATED'   => ($me->my_config['piclens_bestrated_active'] ? 'checked="checked"' : '' ),
    11092        'PICLENS_FAVORITES_ACTIVATED'   => ($me->my_config['piclens_favorites_active'] ? 'checked="checked"' : '' ),
     93        'PICLENS_TAGS_ACTIVATED'                => ($me->my_config['piclens_tags_active'] ? 'checked="checked"' : '' ),
    11194        $me->my_config['piclens_recursive_mode'].'_CHECKED' => 'checked="checked"',
    11295        'ICON_INFO' => PICLENS_ADMIN_PATH . 'info.png',
  • extensions/piclens/admin/config.tpl

    r3410 r3619  
    102102                        <input type="checkbox" name="piclens_recentcats_active" {$PICLENS_RECENTCATS_ACTIVATED}/> {'piclens_recentcats_label'|@translate}
    103103                    <br/>
     104                        <input type="checkbox" name="piclens_tags_active" {$PICLENS_TAGS_ACTIVATED}/> {'piclens_tags_label'|@translate}
     105                    <br/>
    104106
    105107                </TD>
  • extensions/piclens/admin/piclenswallconfig.php

    r3598 r3619  
    4545  $me->my_config['piclens_wall_spec_bestrated'] = isset($_POST['piclens_wall_spec_bestrated']);
    4646  $me->my_config['piclens_wall_spec_favorites'] = isset($_POST['piclens_wall_spec_favorites']);
     47  $me->my_config['piclens_wall_spec_tags'] = isset($_POST['piclens_wall_spec_tags']);
    4748
    4849  $me->my_config['piclens_wall_swflocal'] = isset($_POST['piclens_wall_swflocal']);
     
    104105        'PICLENS_WALL_SPEC_BESTRATED'                                           => ($me->my_config['piclens_wall_spec_bestrated'] ? 'checked="checked"' : '' ),
    105106        'PICLENS_WALL_SPEC_FAVORITES'                                           => ($me->my_config['piclens_wall_spec_favorites'] ? 'checked="checked"' : '' ),
     107        'PICLENS_WALL_SPEC_TAGS'                                                        => ($me->my_config['piclens_wall_spec_tags'] ? 'checked="checked"' : '' ),
    106108        'PICLENS_WALL_SWFLOCAL'                                                         => ($me->my_config['piclens_wall_swflocal'] ? 'checked="checked"' : '' )
    107109        ));
  • extensions/piclens/admin/piclenswallconfig.tpl

    r3598 r3619  
    139139                    <br/>
    140140                                 <input type="checkbox" name="piclens_wall_spec_recentpics" {$PICLENS_WALL_SPEC_RECENTPICS}/> {'piclens_recentpics_label'|@translate}
     141                    <br/>
     142                                 <input type="checkbox" name="piclens_wall_spec_tags" {$PICLENS_WALL_SPEC_TAGS}/> {'piclens_tags_label'|@translate}
    141143                       
    142144                        </TD>
  • extensions/piclens/admin/rssfeed.php

    r3614 r3619  
    1919$me = get_plugin_data($plugin_id);
    2020
    21 //$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');
    2221$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'));
    23 //$sort_list = array('Defaut Piwigo', 'Croissant', 'Decroissant');
    2422$sort_list = array(l10n('piclens_label_sortPiwigo'), l10n('piclens_label_sortUp'), l10n('piclens_label_sortDown'));
    2523
    26 //$thumb_list = array('Miniature', 'Normal');
    2724$thumb_list = array(l10n('piclens_label_TypeTN'), l10n('piclens_label_TypeNorm'));
    28 //$normal_list = array('Miniature', 'Normal', 'High');
    2925$normal_list = array(l10n('piclens_label_TypeTN'), l10n('piclens_label_TypeNorm'), l10n('piclens_label_TypeHigh'));
    30 //$nameformat_list = array('Nom vignette : taille', 'Nom vignette', 'Nom de l\'image');
     26
    3127//$nameformat_list = array(l10n('piclens_label_Name1'), l10n('piclens_label_Name2'), l10n('piclens_label_Name3'));
    32 //$descformat_list = array('Rien', 'Nom de l\'image', 'Description de l\'image');
    3328//$descformat_list = array(l10n('piclens_label_Desc1'), l10n('piclens_label_Desc2'), l10n('piclens_label_Desc3'));
    3429 
     
    6156  $me->my_config['piclens_rss_name'] = $_POST['piclens_rss_name'];
    6257  $me->my_config['piclens_rss_desc'] = $_POST['piclens_rss_desc'];
     58  $me->my_config['piclens_exclude_double'] = isset($_POST['piclens_exclude_double']);
    6359   
    6460
     
    147143$template->assign('PICLENS_RSS_NAME', $me->my_config['piclens_rss_name']);
    148144$template->assign('PICLENS_RSS_DESC', $me->my_config['piclens_rss_desc']);
     145$template->assign('PICLENS_EXCLUDE_DOUBLE', $me->my_config['piclens_exclude_double'] ? 'checked="checked"' : '' );
    149146
    150147
  • extensions/piclens/admin/rssfeed.tpl

    r3614 r3619  
    134134                </TD>
    135135        </TR>
     136        <TR>
     137                <TD >
     138                     - <input type="checkbox" name="piclens_exclude_double" {$PICLENS_EXCLUDE_DOUBLE}/> {'piclens_rsscfg_exclude_double'|@translate}
     139                </TD >
     140                <TD colspan="2">        &nbsp;
     141                </TD>
     142        </TR>
    136143
    137144</TABLE>
Note: See TracChangeset for help on using the changeset viewer.