summaryrefslogtreecommitdiffstats
path: root/templates/part.listfeed.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-08-09 14:13:16 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-08-09 14:13:16 -0400
commit202195c30527a879915d414869c46a0d04522adf (patch)
tree834fd845a2958e15d0e54f8a21226dabad06f320 /templates/part.listfeed.php
parent2944bc645a9875e6eadcab7b21df0a97643d82fa (diff)
shows feeds with unread items in bold
Diffstat (limited to 'templates/part.listfeed.php')
-rw-r--r--templates/part.listfeed.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php
index 6e988f4df..530ab3ba8 100644
--- a/templates/part.listfeed.php
+++ b/templates/part.listfeed.php
@@ -10,7 +10,8 @@ if ($favicon == null) {
}
echo '<li class="feed" data-id="' . $child->getId() . '">';
-echo '<a href="#" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;">' . $child->getTitle() .'</a>';
+echo '<a href="#" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;" class="' .
+ (($unreadItems > 0) ? 'nonzero' : 'zero') . '">' . $child->getTitle() .'</a>';
if ($unreadItems > 0) {
echo '<span class="unreaditemcounter nonzero">' . $unreadItems . '</span>';
}