]> git.wh0rd.org Git - tt-rss.git/commitdiff
misc code cleanups
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 20 May 2008 11:14:38 +0000 (12:14 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 20 May 2008 11:14:38 +0000 (12:14 +0100)
functions.php

index 967739241d78f696e8ff716143404aef86fa5fcb..42b21a4655d58b87543610c1a40858d7193c0c24 100644 (file)
                        print "</li>";
 
                        print "<li id=\"feedCatHolder\" class=\"$holder_class\"><ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\" style='$holder_style'>";
+
        }
        
        function outputFeedList($link, $tags = false) {
                                
                                        $category = $tmp_category;
 
-                                       $collapsed = $line["collapsed"];
+                                       $collapsed = sql_bool_to_bool($line["collapsed"]);
 
                                        // workaround for NULL category
                                        if ($category == __("Uncategorized")) {
                                                }
                                        }
 
-                                       if ($collapsed == "t" || $collapsed == "1") {
+/*                                     if ($collapsed == "t" || $collapsed == "1") {
                                                $holder_class = "feedCatHolder";
                                                $holder_style = "display:none;";
                                                $ellipsis = "…";
                                                $holder_class = "feedCatHolder";
                                                $holder_style = "";
                                                $ellipsis = "";
-                                       }
+                                       } */
 
                                        $cat_id = sprintf("%d", $cat_id);
 
-                                       $cat_unread = getCategoryUnread($link, $cat_id);
+                                       printCategoryHeader($link, $cat_id, $collapsed, true);
+
+
+/*                                     $cat_unread = getCategoryUnread($link, $cat_id);
 
                                        $catctr_class = ($cat_unread > 0) ? "catCtrHasUnread" : "catCtrNoUnread";
 
                                                        class=\"$catctr_class\">($cat_unread)</span> $ellipsis
                                                        </a></li>";
 
-                                       print "<li id=\"feedCatHolder\" class=\"$holder_class\"><ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\" style='$holder_style'>";
+                                       print "<li id=\"feedCatHolder\" class=\"$holder_class\"><ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\" style='$holder_style'>"; */
+
+                                       
                                }
        
                                printFeedEntry($feed_id, $class, $feed, $unread,