summaryrefslogtreecommitdiffstats
path: root/templates/part.items.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-07 19:03:35 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-07 19:03:35 -0400
commit5754af967cb92c49ae90c544725eb5a9ed33fc59 (patch)
treec2f11c11d669e970eb0e14a224e07908c40b9f80 /templates/part.items.php
parente4b145726f00dc57b04998a28153fb0ff887ad13 (diff)
starts implementing updateitem
Diffstat (limited to 'templates/part.items.php')
-rw-r--r--templates/part.items.php9
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>';