highlight any messages on page newer than 12 hours
This commit is contained in:
parent
f3e8b55a7a
commit
e59377d96b
|
@ -235,6 +235,12 @@ function display_content(&$a) {
|
||||||
$location = '<span class="smalltext">' . $coord . '</span>';
|
$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(
|
$o .= replace_macros($template,array(
|
||||||
'$id' => $item['item_id'],
|
'$id' => $item['item_id'],
|
||||||
'$profile_url' => $profile_link,
|
'$profile_url' => $profile_link,
|
||||||
|
@ -247,7 +253,7 @@ function display_content(&$a) {
|
||||||
'$ago' => relative_date($item['created']),
|
'$ago' => relative_date($item['created']),
|
||||||
'$lock' => $lock,
|
'$lock' => $lock,
|
||||||
'$location' => $location,
|
'$location' => $location,
|
||||||
'$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''),
|
'$indent' => $indent,
|
||||||
'$owner_url' => $owner_url,
|
'$owner_url' => $owner_url,
|
||||||
'$owner_photo' => $owner_photo,
|
'$owner_photo' => $owner_photo,
|
||||||
'$owner_name' => $owner_name,
|
'$owner_name' => $owner_name,
|
||||||
|
|
|
@ -274,6 +274,12 @@ function network_content(&$a, $update = 0) {
|
||||||
$location = '<span class="smalltext">' . $coord . '</span>';
|
$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
|
// Build the HTML
|
||||||
|
|
||||||
$o .= replace_macros($template,array(
|
$o .= replace_macros($template,array(
|
||||||
|
@ -288,7 +294,7 @@ function network_content(&$a, $update = 0) {
|
||||||
'$ago' => relative_date($item['created']),
|
'$ago' => relative_date($item['created']),
|
||||||
'$lock' => $lock,
|
'$lock' => $lock,
|
||||||
'$location' => $location,
|
'$location' => $location,
|
||||||
'$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''),
|
'$indent' => $indent,
|
||||||
'$owner_url' => $owner_url,
|
'$owner_url' => $owner_url,
|
||||||
'$owner_photo' => $owner_photo,
|
'$owner_photo' => $owner_photo,
|
||||||
'$owner_name' => $owner_name,
|
'$owner_name' => $owner_name,
|
||||||
|
|
|
@ -376,6 +376,11 @@ function profile_content(&$a, $update = 0) {
|
||||||
$location = '<span class="smalltext">' . $coord . '</span>';
|
$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(
|
$o .= replace_macros($template,array(
|
||||||
'$id' => $item['item_id'],
|
'$id' => $item['item_id'],
|
||||||
'$profile_url' => $profile_link,
|
'$profile_url' => $profile_link,
|
||||||
|
@ -387,7 +392,7 @@ function profile_content(&$a, $update = 0) {
|
||||||
'$ago' => relative_date($item['created']),
|
'$ago' => relative_date($item['created']),
|
||||||
'$lock' => $lock,
|
'$lock' => $lock,
|
||||||
'$location' => $location,
|
'$location' => $location,
|
||||||
'$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''),
|
'$indent' => $indent,
|
||||||
'$drop' => $drop,
|
'$drop' => $drop,
|
||||||
'$like' => $like,
|
'$like' => $like,
|
||||||
'$vote' => $likebuttons,
|
'$vote' => $likebuttons,
|
||||||
|
|
|
@ -71,6 +71,11 @@ code {
|
||||||
blockquote:before {
|
blockquote:before {
|
||||||
content: '>> ';
|
content: '>> ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.shiny {
|
||||||
|
border-color: orange !important;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-login-link {
|
.nav-login-link {
|
||||||
float: right;
|
float: right;
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
|
|
Loading…
Reference in a new issue