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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/simpleMenu/_public.php

    r683 r945  
    4242          global $core, $_ctx; 
    4343           
    44           if ($w->homeonly && $core->url->type != 'default') { 
     44          if (($w->homeonly == 1 && $core->url->type != 'default') || 
     45               ($w->homeonly == 2 && $core->url->type == 'default')) { 
    4546               return; 
    4647          } 
     
    5152          } 
    5253 
    53           return '<div class="simple-menu">'.($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : '').$menu.'</div>'; 
     54          return '<div class="simple-menu'. 
     55               ($w->class ? ' '.html::escapeHTML($w->class) : '').'">'. 
     56               ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : '').$menu.'</div>'; 
    5457     } 
    5558      
Note: See TracChangeset for help on using the changeset viewer.

Sites map