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/blogroll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/blogroll/_public.php

    r904 r945  
    140140          global $core; 
    141141           
    142           if ($w->homeonly && $core->url->type != 'default') { 
     142          if (($w->homeonly == 1 && $core->url->type != 'default') || 
     143               ($w->homeonly == 2 && $core->url->type == 'default')) { 
    143144               return; 
    144145          } 
  • plugins/blogroll/_widgets.php

    r904 r945  
    3434          $w->links->setting('category',__('Category'),'','combo',$categories); 
    3535           
    36           $w->links->setting('homeonly',__('Home page only'),1,'check'); 
     36          $w->links->setting('homeonly',__('Display on:'),1,'combo', 
     37               array( 
     38                    __('All pages') => 0, 
     39                    __('Home page only') => 1, 
     40                    __('Except on home page') => 2 
     41                    ) 
     42          ); 
    3743          $w->links->setting('class',__('CSS class:'),''); 
    3844     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map