Changeset 1610:2d5ebb2fcdfd
- Timestamp:
- 08/29/13 09:38:58 (10 years ago)
- Branch:
- default
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.blog.php
r1532 r1610 311 311 $counter = $this->getCategoriesCounter($c_params); 312 312 313 $without_empty = $this->core->auth->userID() == false; # For public display 313 if (isset($params['without_empty']) && ($params['without_empty'] == false)) { 314 $without_empty = false; 315 } else { 316 $without_empty = $this->core->auth->userID() == false; # Get all categories if in admin display 317 } 314 318 315 319 $start = isset($params['start']) ? (integer) $params['start'] : 0; -
inc/public/class.dc.template.php
r1280 r1610 955 955 $p .= "\$params['level'] = ".(integer) $attr['level'].";\n"; 956 956 } 957 958 if (isset($attr['without_empty']) && ((boolean) $attr['without_empty'] == false)) { 959 $p .= '$params[\'without_empty\'] = false;'; 960 } 957 961 958 962 $res = "<?php\n"; -
inc/public/lib.urlhandlers.php
r1179 r1610 263 263 $params = new ArrayObject(array( 264 264 'cat_url' => $args, 265 'post_type' => 'post')); 265 'post_type' => 'post', 266 'without_empty' => false)); 266 267 267 268 $core->callBehavior('publicCategoryBeforeGetCategories',$params,$args); -
locales/fr/plugins.po
r1609 r1610 1675 1675 msgstr "Avec le nombre de billets" 1676 1676 1677 msgid "Include empty categories" 1678 msgstr "Inclure les catégories vides" 1679 1677 1680 msgid "Subscribe links" 1678 1681 msgstr "Liens de souscription" -
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.