diff options
author | Andrew Dolgov <[email protected]> | 2007-08-11 18:44:20 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-11 18:44:20 +0100 |
commit | bd64489f652a769429fb67e137abcaa9d3b2b5de (patch) | |
tree | dfae5fac9290445dd72800d9df46e6d0cf931426 /functions.php | |
parent | 34a01a20786349e8fbdbae3d089e29b400172700 (diff) |
enable collapsing of labels
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/functions.php b/functions.php index 37ea3d5bf..115bb3475 100644 --- a/functions.php +++ b/functions.php @@ -3283,8 +3283,20 @@ if (db_num_rows($result) > 0) { if (get_pref($link, 'ENABLE_FEED_CATS')) { - print "<li class=\"feedCat\">".__('Labels')."</li>"; - print "<li id=\"feedCatHolder\" class=\"feedCatHolder\"><ul class=\"feedCatList\">"; + + if ($_COOKIE["ttrss_vf_lclps"] == 1) { + $holder_style = "display:none;"; + $ellipsis = "..."; + } else { + $holder_style = ""; + $ellipsis = ""; + } + + print "<li class=\"feedCat\">". + "<a id=\"FCATN--2\" href=\"javascript:toggleCollapseCat(-2)\">". + __('Labels')."</a> <span id='FCAP--2'>$ellipsis</span></li>"; + + print "<li id=\"feedCatHolder\" class=\"feedCatHolder\"><ul class=\"feedCatList\" id='FCATLIST--2' style='$holder_style'>"; } else { print "<li><hr></li>"; } |