diff options
Diffstat (limited to 'templates/part.items.php')
-rw-r--r-- | templates/part.items.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/part.items.php b/templates/part.items.php index d109d6d34..d1336b838 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -8,7 +8,14 @@ $items = $itemmapper->findAll($feedid); echo '<ul class="accordion">'; foreach($items as $item) { - echo '<li><div class="title">' . $item->getTitle() . '</div>'; + $title = $item->getTitle(); + echo '<li>'; + if ($item->isRead()) { + echo '<div class="title_read">' . $title . '</div>'; + } + else { + echo '<div class="title_unread" onClick="News.Feed.markItem(' . $item->getId() . ')">' . $title . '</div>'; + } echo '<div class="body">' . $item->getBody() . '</div></li>'; } echo '</ul>'; |