Changeset 945:a373e04f8ac3 for plugins/simpleMenu/_public.php
- Timestamp:
- 10/31/12 10:13:50 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/simpleMenu/_public.php
r683 r945 42 42 global $core, $_ctx; 43 43 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')) { 45 46 return; 46 47 } … … 51 52 } 52 53 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>'; 54 57 } 55 58
Note: See TracChangeset
for help on using the changeset viewer.