summaryrefslogtreecommitdiffstats
path: root/templates/part.items.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-08-16 01:13:16 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-08-16 01:13:16 -0400
commit9132f6a27d8f26bfbf333a3d6d36361d1e0a2fa3 (patch)
treedafa0bd36324ebc801cf87780ea1efe8939f300e /templates/part.items.php
parent93ee15c1891aa52ebee8b46ca16f58d5dc7679ce (diff)
saves and shows datetime of items
Diffstat (limited to 'templates/part.items.php')
-rw-r--r--templates/part.items.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/part.items.php b/templates/part.items.php
index 399274e30..16b7d5b67 100644
--- a/templates/part.items.php
+++ b/templates/part.items.php
@@ -43,6 +43,9 @@ foreach($items as $item) {
echo '<h1 class="item_title"><a target="_blank" href="' . $item->getUrl() . '">' . $item->getTitle() . '</a></h1>';
echo '<h2 class="item_author">' . $l->t('from') . ' ' . parse_url($item->getUrl(), PHP_URL_HOST) . '</h2>';
+
+ 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="body">' . $item->getBody() . '</div>';