Changeset 1610:2d5ebb2fcdfd for plugins/widgets
- Timestamp:
- 08/29/13 09:38:58 (12 years ago)
- Branch:
- default
- Location:
- plugins/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/_default_widgets.php
r1179 r1610 47 47 $__widgets->langs->setting('class',__('CSS class:'),''); 48 48 49 $__widgets->create('categories',__('Categories list'),array('defaultWidgets','categories'),null,'List of categories');49 $__widgets->create('categories',__('Categories'),array('defaultWidgets','categories'),null,'List of categories'); 50 50 $__widgets->categories->setting('title',__('Title:'),__('Categories')); 51 51 $__widgets->categories->setting('postcount',__('With entries counts'),0,'check'); 52 $__widgets->categories->setting('with_empty',__('Include empty categories'),0,'check'); 52 53 $__widgets->categories->setting('homeonly',__('Display on:'),0,'combo', 53 54 array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); -
plugins/widgets/_widgets_functions.php
r1280 r1610 77 77 } 78 78 79 $rs = $core->blog->getCategories(array('post_type'=>'post' ));79 $rs = $core->blog->getCategories(array('post_type'=>'post','without_empty'=> !$w->with_empty)); 80 80 if ($rs->isEmpty()) { 81 81 return;
Note: See TracChangeset
for help on using the changeset viewer.