[gtk-web] index.php: News Feed header was mistakenly forgotten
- From: Devin Samarin <dsamarin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-web] index.php: News Feed header was mistakenly forgotten
- Date: Thu, 16 Jun 2011 14:40:41 +0000 (UTC)
commit a57ebe74168a20c75c03053e452b73d477b5c620
Author: Devin Samarin <eboyjr14 gmail com>
Date: Thu Jun 16 07:37:55 2011 -0700
index.php: News Feed header was mistakenly forgotten
index.php | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/index.php b/index.php
index da4837c..4afb37c 100755
--- a/index.php
+++ b/index.php
@@ -5,15 +5,21 @@ ob_start();
?>
<div class="sidebar" id="NewsFeed">
+
+ <h2>News Feed</h2>
<ul class="newsfeed">
-<?php
+ <?php
$newsfeed = new GTKNewsFeedLoader(IDENTICA);
$newsfeed->usecaching = true;
$items = $newsfeed->load( array( 'count' => 6 ) );
$first = true;
-if( $newsfeed->iscached ) echo '<!-- This content is cached -->';
+if( $newsfeed->iscached ) {
+ echo '<!-- This content is cached and was last updated '.$newsfeed->reltime(filemtime($newsfeed->cachefile)).' -->';
+} else {
+ echo '<!-- This content was updated just now. -->';
+}
foreach( $items as $item ) {
?>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]