summaryrefslogtreecommitdiffstats
path: root/templates/part.items.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-10-14 21:15:16 +0200
committerBart Visscher <bartv@thisnet.nl>2012-10-14 21:15:47 +0200
commit1e37bc139bb28e6fe9b0dd0d477e2dbef5a2cab9 (patch)
treefa56b07316b914f39e2dd02b70a61b05b016b967 /templates/part.items.php
parent365cecd2ec1bf2552ae0d8e064680ed36b0bf04e (diff)
Whitespace cleanup
Diffstat (limited to 'templates/part.items.php')
-rw-r--r--templates/part.items.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/part.items.php b/templates/part.items.php
index e318a8466..174a96e5e 100644
--- a/templates/part.items.php
+++ b/templates/part.items.php
@@ -4,13 +4,13 @@ $items = isset($_['items']) ? $_['items'] : '';
echo '<ul>';
foreach($items as $item) {
-
+
if($item->isRead()) {
$newsItemClass = "read";
} else {
$newsItemClass = "";
}
-
+
if($item->isImportant()) {
$starClass = 'important';
$startTitle = $l->t('Mark as unimportant');
@@ -21,7 +21,7 @@ foreach($items as $item) {
echo '<li class="feed_item ' . $newsItemClass .'" data-id="' . $item->getId() . '" data-feedid="' . $item->getFeedId() . '">';
echo '<span class="timestamp">' . $item->getDate() . '</span>';
- echo '<h2 class="item_date"><time class="timeago" datetime="' .
+ echo '<h2 class="item_date"><time class="timeago" datetime="' .
date('c', $item->getDate()) . '">' . date('F j, Y, g:i a', $item->getDate()) . '</time>' . '</h2>';
echo '<div class="utils">';
@@ -30,12 +30,12 @@ foreach($items as $item) {
echo '</ul>';
echo '</div>';
- echo '<h1 class="item_title"><a target="_blank" href="' . $item->getUrl() . '">' . htmlspecialchars($item->getTitle(), ENT_QUOTES, 'UTF-8') . '</a></h1>';
-
+ echo '<h1 class="item_title"><a target="_blank" href="' . $item->getUrl() . '">' . htmlspecialchars($item->getTitle(), ENT_QUOTES, 'UTF-8') . '</a></h1>';
+
if(($item->getAuthor() !== null) && (trim($item->getAuthor()) != '')) {
echo '<h2 class="item_author">'. $l->t('by') . ' ' . htmlspecialchars($item->getAuthor(), ENT_QUOTES, 'UTF-8') . '</h2>';
}
-
+
echo '<div class="body">' . $item->getBody() . '</div>';
echo '<div class="bottom_utils">';