diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-07 19:03:35 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-07 19:03:35 -0400 |
commit | 5754af967cb92c49ae90c544725eb5a9ed33fc59 (patch) | |
tree | c2f11c11d669e970eb0e14a224e07908c40b9f80 /templates/part.items.php | |
parent | e4b145726f00dc57b04998a28153fb0ff887ad13 (diff) |
starts implementing updateitem
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>'; |