]> git.wh0rd.org Git - tt-rss.git/commitdiff
outputFeedList: fix markup problems
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 11 May 2007 07:49:50 +0000 (08:49 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 11 May 2007 07:49:50 +0000 (08:49 +0100)
functions.php

index 059ca524d15789ab1b1e9d0def8fe269a46d65b6..6d3a2cacc0529c826db3f922affbc02d27853652 100644 (file)
 
        function outputFeedList($link, $tags = false) {
 
-               print "<ul class=\"feedList\" id=\"feedList\">\n";
+               print "<ul class=\"feedList\" id=\"feedList\">";
 
                $owner_uid = $_SESSION["uid"];
 
                /* virtual feeds */
 
                if (get_pref($link, 'ENABLE_FEED_CATS')) {
-                       print "<li class=\"feedCat\">".__('Special')."</li>\n";
-                       print "<li id=\"feedCatHolder\" class=\"feedCatHolder\"><ul class=\"feedCatList\">\n";
+                       print "<li class=\"feedCat\">".__('Special')."</li>";
+                       print "<li id=\"feedCatHolder\" class=\"feedCatHolder\"><ul class=\"feedCatList\">";
                }
 
                $num_starred = getFeedUnread($link, -1);
                        "images/mark_set.png", $link);
 
                if (get_pref($link, 'ENABLE_FEED_CATS')) {
-                       print "</ul>\n";
+                       print "</ul>";
                }
 
                if (!$tags) {
                
                                if (db_num_rows($result) > 0) {
                                        if (get_pref($link, 'ENABLE_FEED_CATS')) {
-                                               print "<li class=\"feedCat\">".__('Labels')."</li>\n";
-                                               print "<li id=\"feedCatHolder\" class=\"feedCatHolder\"><ul class=\"feedCatList\">\n";
+                                               print "<li class=\"feedCat\">".__('Labels')."</li>";
+                                               print "<li id=\"feedCatHolder\" class=\"feedCatHolder\"><ul class=\"feedCatList\">";
                                        } else {
-                                               print "<li><hr></li>\n";
+                                               print "<li><hr></li>";
                                        }
                                }
                
                        }
 
                        if (!get_pref($link, 'ENABLE_FEED_CATS')) {
-                               print "<li><hr></li>\n";
+                               print "<li><hr></li>";
                        }
 
                        if (get_pref($link, 'ENABLE_FEED_CATS')) {
 
                                        $catctr_class = ($cat_unread > 0) ? "catCtrHasUnread" : "catCtrNoUnread";
 
-                                       print "<li class=\"feedCat\" id=\"FCAT-$cat_id\">\n
+                                       print "<li class=\"feedCat\" id=\"FCAT-$cat_id\">
                                                <a id=\"FCATN-$cat_id\" href=\"javascript:toggleCollapseCat($cat_id)\">$tmp_category</a>
                                                        <a href=\"#\" onclick=\"javascript:viewCategory($cat_id)\" id=\"FCAP-$cat_id\">
                                                        <span id=\"FCATCTR-$cat_id\" title=\"Click to browse category\" 
                                                        class=\"$catctr_class\">($cat_unread)</span> $ellipsis
-                                                       </a></li>\n";
+                                                       </a></li>";
 
                                        // !!! NO SPACE before <ul...feedCatList - breaks firstChild DOM function
                                        // -> keyboard navigation, etc.
-                                       print "<li id=\"feedCatHolder\" class=\"$holder_class\"><ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\">\n";
+                                       print "<li id=\"feedCatHolder\" class=\"$holder_class\"><ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\">";
                                }
        
                                printFeedEntry($feed_id, $class, $feed, $unread, 
                        }
 
                        if (db_num_rows($result) == 0) {
-                               print "<li>".__('No feeds to display.')."</li>\n";
+                               print "<li>".__('No feeds to display.')."</li>";
                        }
 
                } else {
                        }
 
                        if (get_pref($link, 'ENABLE_FEED_CATS')) {
-                               print "</ul>\n";
+                               print "</ul>";
                        }
 
                }