From 67dabe1a86fbe7ef5bc157eb3096e1d64f1538f8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 6 Dec 2006 10:11:59 +0100 Subject: tweak category counter display, new styles: .catCtrNoUnread, .catCtrHasUnread --- functions.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index c07f95b22..83f37b619 100644 --- a/functions.php +++ b/functions.php @@ -2926,12 +2926,14 @@ $cat_id = sprintf("%d", $cat_id); $cat_unread = getCategoryUnread($link, $cat_id); - + + $catctr_class = ($cat_unread > 0) ? "catCtrHasUnread" : "catCtrNoUnread"; + print "
  • - $tmp_category + $tmp_category - ($cat_unread unread) $ellipsis + ($cat_unread) $ellipsis
  • "; // !!! NO SPACE before