diff options
author | Friendika <info@friendika.com> | 2010-12-07 16:27:30 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-12-07 16:27:30 -0800 |
commit | e59377d96b09c8d7bc0090ce2cea0e99517c7d9b (patch) | |
tree | 83578228ba2d6eccf2274d4e81bf2319594c9aaf /mod/profile.php | |
parent | f3e8b55a7a72ee35fb62211bc9b545b382f962fb (diff) | |
download | volse-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/profile.php')
-rw-r--r-- | mod/profile.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php index c18c7d196..9bd56044e 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -376,6 +376,11 @@ function profile_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'; + $o .= replace_macros($template,array( '$id' => $item['item_id'], '$profile_url' => $profile_link, @@ -387,7 +392,7 @@ function profile_content(&$a, $update = 0) { '$ago' => relative_date($item['created']), '$lock' => $lock, '$location' => $location, - '$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''), + '$indent' => $indent, '$drop' => $drop, '$like' => $like, '$vote' => $likebuttons, |