Changeset 2198:e9f1e3b6a3ad
- Timestamp:
- 10/02/13 09:43:49 (12 years ago)
- Branch:
- default
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_pref.php
r2189 r2198 235 235 $blog_settings->system->put('nb_post_per_page',$nb_post_per_page); 236 236 $blog_settings->system->put('use_smilies',!empty($_POST['use_smilies'])); 237 $blog_settings->system->put('inc_subcats',!empty($_POST['inc_subcats'])); 237 238 $blog_settings->system->put('media_img_t_size',$media_img_t_size); 238 239 $blog_settings->system->put('media_img_s_size',$media_img_s_size); … … 528 529 form::checkbox('short_feed_items','1',$blog_settings->system->short_feed_items). 529 530 __('Truncate feeds').'</label></p>'. 531 532 '<p><label for="inc_subcats" class="classic">'. 533 form::checkbox('inc_subcats','1',$blog_settings->system->inc_subcats). 534 __('Include sub-categories in category page and category posts feed').'</label></p>'. 530 535 '</div>'. 531 536 '</div>'. -
inc/core/class.dc.core.php
r1743 r2198 1342 1342 array('use_smilies','boolean',false, 1343 1343 'Show smilies on entries and comments'), 1344 array('inc_subcats','boolean',false, 1345 'Include sub-categories in category page and category posts feed'), 1344 1346 array('wiki_comments','boolean',false, 1345 1347 'Allow commenters to use a subset of wiki syntax') -
inc/public/class.dc.template.php
r1674 r2198 1211 1211 $p .= 1212 1212 'if ($_ctx->exists("categories")) { '. 1213 "\$params['cat_id'] = \$_ctx->categories->cat_id ;".1213 "\$params['cat_id'] = \$_ctx->categories->cat_id.(\$core->blog->settings->system->inc_subcats?' ?sub':'');". 1214 1214 "}\n"; 1215 1215 } -
plugins/widgets/_default_widgets.php
r1610 r2198 50 50 $__widgets->categories->setting('title',__('Title:'),__('Categories')); 51 51 $__widgets->categories->setting('postcount',__('With entries counts'),0,'check'); 52 $__widgets->categories->setting('subcatscount', __('Include sub cats in count'), false, 'check'); 52 53 $__widgets->categories->setting('with_empty',__('Include empty categories'),0,'check'); 53 54 $__widgets->categories->setting('homeonly',__('Display on:'),0,'combo', -
plugins/widgets/_widgets_functions.php
r1610 r2198 108 108 '<a href="'.$core->blog->url.$core->url->getURLFor('category', $rs->cat_url).'">'. 109 109 html::escapeHTML($rs->cat_title).'</a>'. 110 ($w->postcount ? ' <span>('. $rs->nb_post.')</span>' : '');110 ($w->postcount ? ' <span>('.($w->subcatscount ? $rs->nb_total : $rs->nb_post).')</span>' : ''); 111 111 112 112
Note: See TracChangeset
for help on using the changeset viewer.