Changeset 851:0993f64c4809 for plugins/widgets/_default_widgets.php
- Timestamp:
- 07/31/12 13:52:11 (13 years ago)
- Branch:
- sexy
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/_default_widgets.php
r665 r851 33 33 $__widgets->langs->setting('homeonly',__('Home page only'),1,'check'); 34 34 35 $__widgets->create('categories',__('Categories list'),array('defaultWidgets','categories'));36 $__widgets->categories->setting('title',__('Title:'),__('Categories'));37 $__widgets->categories->setting('postcount',__('With entries counts'),0,'check');38 39 35 $__widgets->create('subscribe',__('Subscribe links'),array('defaultWidgets','subscribe')); 40 36 $__widgets->subscribe->setting('title',__('Title:'),__('Subscribe')); … … 55 51 $__widgets->create('lastposts',__('Last entries'),array('defaultWidgets','lastposts')); 56 52 $__widgets->lastposts->setting('title',__('Title:'),__('Last entries')); 57 $rs = $core->blog->getCategories(array('post_type'=>'post'));58 $categories = array('' => '', __('Uncategorized') => 'null');59 while ($rs->fetch()) {60 $categories[str_repeat(' ',$rs->level-1).($rs->level-1 == 0 ? '' : '• ').html::escapeHTML($rs->cat_title)] = $rs->cat_id;61 }62 $__widgets->lastposts->setting('category',__('Category:'),'','combo',$categories);63 unset($rs,$categories);64 53 if ($core->plugins->moduleExists('tags')) { 65 54 $__widgets->lastposts->setting('tag',__('Tag:'),''); … … 84 73 $__default_widgets['nav']->append($__widgets->navigation); 85 74 $__default_widgets['nav']->append($__widgets->bestof); 86 $__default_widgets['nav']->append($__widgets->categories);87 75 $__default_widgets['extra']->append($__widgets->subscribe); 88 76
Note: See TracChangeset
for help on using the changeset viewer.