Rev | Line | |
---|
[587] | 1 | <?php |
---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
| 3 | # |
---|
| 4 | # This file is part of Dotclear 2. |
---|
| 5 | # |
---|
[1179] | 6 | # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear |
---|
[587] | 7 | # Licensed under the GPL version 2.0 license. |
---|
| 8 | # See LICENSE file or |
---|
| 9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
| 10 | # |
---|
| 11 | # -- END LICENSE BLOCK ----------------------------------------- |
---|
| 12 | if (!defined('DC_RC_PATH')) { return; } |
---|
| 13 | |
---|
| 14 | $core->addBehavior('initWidgets',array('simpleMenuWidgets','initWidgets')); |
---|
| 15 | |
---|
| 16 | class simpleMenuWidgets |
---|
| 17 | { |
---|
| 18 | public static function initWidgets($w) |
---|
| 19 | { |
---|
[954] | 20 | $w->create('simplemenu',__('Simple menu'),array('tplSimpleMenu','simpleMenuWidget'),null,'List of simple menu items'); |
---|
[587] | 21 | $w->simplemenu->setting('title',__('Title:'),__('Menu')); |
---|
[945] | 22 | $w->simplemenu->setting('homeonly',__('Display on:'),0,'combo', |
---|
| 23 | array( |
---|
| 24 | __('All pages') => 0, |
---|
| 25 | __('Home page only') => 1, |
---|
| 26 | __('Except on home page') => 2 |
---|
| 27 | ) |
---|
| 28 | ); |
---|
[1063] | 29 | $w->simplemenu->setting('content_only',__('Content only'),0,'check'); |
---|
[945] | 30 | $w->simplemenu->setting('class',__('CSS class:'),''); |
---|
[587] | 31 | } |
---|
| 32 | } |
---|
| 33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.