diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-09 14:13:16 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-09 14:13:16 -0400 |
commit | 202195c30527a879915d414869c46a0d04522adf (patch) | |
tree | 834fd845a2958e15d0e54f8a21226dabad06f320 /templates | |
parent | 2944bc645a9875e6eadcab7b21df0a97643d82fa (diff) |
shows feeds with unread items in bold
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.listfeed.php | 3 |
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>'; } |