diff options
author | Andrew Dolgov <[email protected]> | 2007-08-12 14:44:41 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-12 14:44:41 +0100 |
commit | 3b08617610056ac0674304fa61e43405db73ae97 (patch) | |
tree | 76a0f1d04c53f02a1f48b72b314e670c065e83ab /functions.php | |
parent | 051c4d56cac9c3666accd2a2c791824ae2ccdc4e (diff) |
enable collapsing of virtual category
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/functions.php b/functions.php index 115bb3475..04594f9da 100644 --- a/functions.php +++ b/functions.php @@ -3249,8 +3249,24 @@ /* virtual feeds */ if (get_pref($link, 'ENABLE_FEED_CATS')) { - print "<li class=\"feedCat\">".__('Special')."</li>"; - print "<li id=\"feedCatHolder\" class=\"feedCatHolder\"><ul class=\"feedCatList\">"; + + if ($_COOKIE["ttrss_vf_vclps"] == 1) { + $holder_style = "display:none;"; + $ellipsis = "..."; + } else { + $holder_style = ""; + $ellipsis = ""; + } + +# print "<li class=\"feedCat\">".__('Special')."</li>"; +# print "<li id=\"feedCatHolder\" class=\"feedCatHolder\"><ul class=\"feedCatList\">"; + print "<li class=\"feedCat\">". + "<a id=\"FCATN--1\" href=\"javascript:toggleCollapseCat(-1)\">". + __('Special')."</a> <span id='FCAP--1'>$ellipsis</span></li>"; + + print "<li id=\"feedCatHolder\" class=\"feedCatHolder\"> + <ul class=\"feedCatList\" id='FCATLIST--1' style='$holder_style'>"; + } $num_starred = getFeedUnread($link, -1); |