aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/display.php8
-rw-r--r--mod/network.php8
-rw-r--r--mod/profile.php7
-rw-r--r--view/theme/default/style.css5
4 files changed, 25 insertions, 3 deletions
diff --git a/mod/display.php b/mod/display.php
index aa9455361..92034d9ae 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -235,6 +235,12 @@ function display_content(&$a) {
$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,
@@ -247,7 +253,7 @@ function display_content(&$a) {
'$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,
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,
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,
diff --git a/view/theme/default/style.css b/view/theme/default/style.css
index ad3e1c7c1..c5f535527 100644
--- a/view/theme/default/style.css
+++ b/view/theme/default/style.css
@@ -71,6 +71,11 @@ code {
blockquote:before {
content: '>> ';
}
+
+.shiny {
+ border-color: orange !important;
+}
+
.nav-login-link {
float: right;
margin-left: 0px;