diff options
Diffstat (limited to 'templates/part.items.php')
-rw-r--r-- | templates/part.items.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/part.items.php b/templates/part.items.php index 33bffc8ee..24ca958e9 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -10,12 +10,14 @@ echo '<ul class="accordion">'; foreach($items as $item) { $title = $item->getTitle(); echo '<li>'; + echo '<div data-id="' . $item->getId() . '"'; if ($item->isRead()) { - echo '<div class="title_read">' . $title . '</div>'; + echo ' class="title_read">'; } else { - echo '<div class="title_unread" onClick="News.Feed.markItem(' . $item->getId() . ')">' . $title . '</div>'; + echo ' class="title_unread" onClick="News.Feed.markItem(' . $item->getId() . ')">'; } - echo '<div class="body">' . $item->getBody() . '</div></li>'; + echo $title . '</div><div class="body">' . $item->getBody() . '</div>'; + echo '</li>'; } echo '</ul>'; |