Dotclear


Ignore:
Timestamp:
10/31/12 10:13:50 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add/complement display modes (all pages, home page only, except on home page) for all widgets, fixes #1345

Location:
plugins/tags
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/tags/_public.php

    r932 r945  
    225225          global $core; 
    226226           
     227          if (($w->homeonly == 1 && $core->url->type != 'default') || 
     228               ($w->homeonly == 2 && $core->url->type == 'default')) { 
     229               return; 
     230          } 
     231 
    227232          $params = array('meta_type' => 'tag'); 
    228233           
  • plugins/tags/_widgets.php

    r904 r945  
    2929          ); 
    3030          $w->tags->setting('alltagslinktitle',__('Link to all tags:'),__('All tags')); 
     31          $w->tags->setting('homeonly',__('Display on:'),0,'combo', 
     32               array( 
     33                    __('All pages') => 0, 
     34                    __('Home page only') => 1, 
     35                    __('Except on home page') => 2 
     36                    ) 
     37          ); 
    3138          $w->tags->setting('class',__('CSS class:'),''); 
    3239     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map