* 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:
Garvin Hicking 2008-08-05 07:40:51 +00:00
parent 62fb2d243a
commit 4c3abd2dfc
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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) {