From 4c41e58f53773f9316af1ef23cb643ac4004471d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Aug 2008 06:10:05 +0100 Subject: add new widgets to collapse categories, unify behaviour wnen clicking on category/feed title --- functions.php | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 3c21eda84..b616858b6 100644 --- a/functions.php +++ b/functions.php @@ -4087,23 +4087,27 @@ $catctr_class = ($cat_unread > 0) ? "catCtrHasUnread" : "catCtrNoUnread"; - print "
  • - $tmp_category"; - if ($can_browse) { - print ""; + $browse_cat_link = "onclick=\"javascript:viewCategory($cat_id)\""; + $inner_title_class = "catTitle"; } else { - print ""; + $browse_cat_link = ""; + $inner_title_class = "catTitleNL"; } + print "
  • + $tmp_category"; + + print ""; + print " ($cat_unread) $ellipsis"; - if ($can_browse) { - print ""; - } else { - print ""; - } + print ""; print "
  • "; -- cgit v1.2.3