aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-07 16:27:30 -0800
committerFriendika <info@friendika.com>2010-12-07 16:27:30 -0800
commite59377d96b09c8d7bc0090ce2cea0e99517c7d9b (patch)
tree83578228ba2d6eccf2274d4e81bf2319594c9aaf /mod/network.php
parentf3e8b55a7a72ee35fb62211bc9b545b382f962fb (diff)
downloadvolse-hubzilla-e59377d96b09c8d7bc0090ce2cea0e99517c7d9b.tar.gz
volse-hubzilla-e59377d96b09c8d7bc0090ce2cea0e99517c7d9b.tar.bz2
volse-hubzilla-e59377d96b09c8d7bc0090ce2cea0e99517c7d9b.zip
highlight any messages on page newer than 12 hours
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php
index dd4ec63a3..7a81fd1a2 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -274,6 +274,12 @@ function network_content(&$a, $update = 0) {
$location = '<span class="smalltext">' . $coord . '</span>';
}
+ $indent = (($item['parent'] != $item['item_id']) ? ' comment' : '');
+
+ if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0)
+ $indent .= ' shiny';
+
+
// Build the HTML
$o .= replace_macros($template,array(
@@ -288,7 +294,7 @@ function network_content(&$a, $update = 0) {
'$ago' => relative_date($item['created']),
'$lock' => $lock,
'$location' => $location,
- '$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''),
+ '$indent' => $indent,
'$owner_url' => $owner_url,
'$owner_photo' => $owner_photo,
'$owner_name' => $owner_name,