Changeset 3874:ab8368569446 for plugins/simpleMenu/_widgets.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/simpleMenu/_widgets.php
r3731 r3874 12 12 if (!defined('DC_RC_PATH')) {return;} 13 13 14 $core->addBehavior('initWidgets', array('simpleMenuWidgets', 'initWidgets'));14 $core->addBehavior('initWidgets', ['simpleMenuWidgets', 'initWidgets']); 15 15 16 16 class simpleMenuWidgets … … 18 18 public static function initWidgets($w) 19 19 { 20 $w->create('simplemenu', __('Simple menu'), array('tplSimpleMenu', 'simpleMenuWidget'), null, 'List of simple menu items');20 $w->create('simplemenu', __('Simple menu'), ['tplSimpleMenu', 'simpleMenuWidget'], null, 'List of simple menu items'); 21 21 $w->simplemenu->setting('title', __('Title (optional)') . ' :', __('Menu')); 22 22 $w->simplemenu->setting('description', __('Item description'), 0, 'combo', 23 array(23 [ 24 24 __('Displayed in link') => 0, // span 25 25 __('Used as link title') => 1, // title 26 26 __('Displayed in link and used as title') => 2, // both 27 27 __('Not displayed nor used') => 3 // none 28 )28 ] 29 29 ); 30 30 $w->simplemenu->setting('homeonly', __('Display on:'), 0, 'combo', 31 array(31 [ 32 32 __('All pages') => 0, 33 33 __('Home page only') => 1, 34 34 __('Except on home page') => 2 35 )35 ] 36 36 ); 37 37 $w->simplemenu->setting('content_only', __('Content only'), 0, 'check');
Note: See TracChangeset
for help on using the changeset viewer.