]> git.wh0rd.org - tt-rss.git/blobdiff - classes/feeds.php
use css nth-child instead of old even/odd class hacks for normal mode
[tt-rss.git] / classes / feeds.php
index 1a17981515789667db241b4daafc8c7117bbac39..f499fe9a67826d39a0449ff120f9c74b477ae339 100644 (file)
@@ -288,8 +288,6 @@ class Feeds extends Handler_Protected {
                        $expand_cdm = get_pref('CDM_EXPANDED');
 
                        while ($line = $this->dbh->fetch_assoc($result)) {
-                               $class = ($lnum % 2) ? "even" : "odd";
-
                                $id = $line["id"];
                                $feed_id = $line["feed_id"];
                                $label_cache = $line["label_cache"];
@@ -316,6 +314,8 @@ class Feeds extends Handler_Protected {
                                        array_push($topmost_article_ids, $id);
                                }
 
+                               $class = "";
+
                                if (sql_bool_to_bool($line["unread"])) {
                                        $class .= " Unread";
                                        ++$num_unread;