diff options
author | Andrew Dolgov <[email protected]> | 2006-12-06 10:11:59 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-12-06 10:11:59 +0100 |
commit | 67dabe1a86fbe7ef5bc157eb3096e1d64f1538f8 (patch) | |
tree | 8a8326797a22c29b4160ced1493ad1a89f981a75 /functions.php | |
parent | 3ac2f3c76716e93de91b9f17786fe235905b2c1d (diff) |
tweak category counter display, new styles: .catCtrNoUnread, .catCtrHasUnread
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 10 |
1 files changed, 6 insertions, 4 deletions
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 "<li class=\"feedCat\" id=\"FCAT-$cat_id\"> - <a id=\"FCATN-$cat_id\" href=\"#\" onclick=\"javascript:toggleCollapseCat($cat_id)\">$tmp_category</a> + <a id=\"FCATN-$cat_id\" href=\"#\"onclick=\"javascript:toggleCollapseCat($cat_id)\">$tmp_category</a> <a href=\"#\" onclick=\"javascript:viewCategory($cat_id)\" id=\"FCAP-$cat_id\"> - <span id=\"FCATCTR-$cat_id\" - class=\"$catctr_class\">($cat_unread unread)</span> $ellipsis + <span id=\"FCATCTR-$cat_id\" title=\"Click to browse category\" + class=\"$catctr_class\">($cat_unread)</span> $ellipsis </a></li>"; // !!! NO SPACE before <ul...feedCatList - breaks firstChild DOM function |