Changeset 3874:ab8368569446 for plugins/pages/_widgets.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pages/_widgets.php
r3731 r3874 12 12 if (!defined('DC_RC_PATH')) {return;} 13 13 14 $core->addBehavior('initWidgets', array('pagesWidgets', 'initWidgets'));15 $core->addBehavior('initDefaultWidgets', array('pagesWidgets', 'initDefaultWidgets'));14 $core->addBehavior('initWidgets', ['pagesWidgets', 'initWidgets']); 15 $core->addBehavior('initDefaultWidgets', ['pagesWidgets', 'initDefaultWidgets']); 16 16 17 17 class pagesWidgets … … 19 19 public static function initWidgets($w) 20 20 { 21 $w->create('pages', __('Pages'), array('tplPages', 'pagesWidget'), null, 'List of published pages');21 $w->create('pages', __('Pages'), ['tplPages', 'pagesWidget'], null, 'List of published pages'); 22 22 $w->pages->setting('title', __('Title (optional)') . ' :', __('Pages')); 23 23 $w->pages->setting('homeonly', __('Display on:'), 1, 'combo', 24 array(24 [ 25 25 __('All pages') => 0, 26 26 __('Home page only') => 1, 27 27 __('Except on home page') => 2 28 )28 ] 29 29 ); 30 30 $w->pages->setting('sortby', __('Order by:'), 'post_title', 'combo', 31 array(31 [ 32 32 __('Page title') => 'post_title', 33 33 __('Page position') => 'post_position', 34 34 __('Publication date') => 'post_dt' 35 )35 ] 36 36 ); 37 37 $w->pages->setting('orderby', __('Sort:'), 'asc', 'combo', 38 array(__('Ascending') => 'asc', __('Descending') => 'desc')38 [__('Ascending') => 'asc', __('Descending') => 'desc'] 39 39 ); 40 40 $w->pages->setting('content_only', __('Content only'), 0, 'check');
Note: See TracChangeset
for help on using the changeset viewer.