* Propagate a 'article_count' smarty variable for each category
in the category sidebar plugin, when article counting is enabled. (garvinhicking)
This commit is contained in:
parent
62fb2d243a
commit
4c3abd2dfc
@ -3,6 +3,10 @@
|
||||
Version 1.4 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Propagate a 'article_count' smarty variable for each category
|
||||
in the category sidebar plugin, when article counting is
|
||||
enabled. (garvinhicking)
|
||||
|
||||
* Trackbacks are no longer sent when an entry shall be published
|
||||
in the future. You can force them by editing and re-saving an
|
||||
entry, once it is published. TODO: A plugin/cronjob to automatically
|
||||
|
@ -1374,7 +1374,7 @@ class serendipity_categories_plugin extends serendipity_plugin {
|
||||
$propbag->add('description', CATEGORY_PLUGIN_DESC);
|
||||
$propbag->add('stackable', true);
|
||||
$propbag->add('author', 'Serendipity Team');
|
||||
$propbag->add('version', '2.02');
|
||||
$propbag->add('version', '2.03');
|
||||
$propbag->add('configuration', array('title', 'authorid', 'parent_base', 'hide_parent', 'image', 'sort_order', 'sort_method', 'allow_select', 'hide_parallel', 'show_count', 'smarty'));
|
||||
$propbag->add('groups', array('FRONTEND_VIEWS'));
|
||||
}
|
||||
@ -1612,6 +1612,7 @@ class serendipity_categories_plugin extends serendipity_plugin {
|
||||
if (!empty($cat_count[$cat['categoryid']])) {
|
||||
$categories[$cid]['true_category_name'] = $cat['category_name'];
|
||||
$categories[$cid]['category_name'] .= ' (' . $cat_count[$cat['categoryid']] . ')';
|
||||
$categories[$cid]['article_count'] = $cat_count[$cat['categoryid']];
|
||||
}
|
||||
|
||||
if (!$smarty) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user