summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-08-29 09:05:24 +0100
committerAndrew Dolgov <[email protected]>2008-08-29 09:05:24 +0100
commit364e391e82ccd02e4e50ddd8ed7944f358d9025e (patch)
tree318032f5121faf738e1ce00e35b543509526a3a9 /functions.php
parent9d393c84da965ebdcdaba26491ad0649c273af18 (diff)
add separate class for virtual cats to prevent resorting
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index f097e1910..8d8f25421 100644
--- a/functions.php
+++ b/functions.php
@@ -4095,7 +4095,13 @@
$inner_title_class = "catTitleNL";
}
- print "<li class=\"feedCat\" id=\"FCAT-$cat_id\">
+ if ($cat_id > 0) {
+ $cat_class = "feedCat";
+ } else {
+ $cat_class = "virtCat";
+ }
+
+ print "<li class=\"$cat_class\" id=\"FCAT-$cat_id\">
<img onclick=\"toggleCollapseCat($cat_id)\" class=\"catCollapse\"
title=\"".__('Click to collapse category')."\"
src=\"images/cat-collapse.png\"><span class=\"$inner_title_class\"