]> git.mxchange.org Git - friendica.git/commitdiff
highlight any messages on page newer than 12 hours
authorFriendika <info@friendika.com>
Wed, 8 Dec 2010 00:27:30 +0000 (16:27 -0800)
committerFriendika <info@friendika.com>
Wed, 8 Dec 2010 00:27:30 +0000 (16:27 -0800)
mod/display.php
mod/network.php
mod/profile.php
view/theme/default/style.css

index aa945536172c7741c9bef2c608cdb00bd4849209..92034d9ae9a91e243fbb0a3e858a1e22074e59e7 100644 (file)
@@ -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,
index dd4ec63a3aee7adaa269c213c25812a254a3d7c1..7a81fd1a2c419c7bb297317d1f6dbed6b48943ce 100644 (file)
@@ -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,
index c18c7d1964fc82ada548bee363715876e1e4d730..9bd56044e340784d41fac543c135b948fe877cc0 100644 (file)
@@ -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,
index ad3e1c7c156cd2092dd1d6f2ce9b2b19617059b7..c5f5355276bdac3a00a8d0e49093b4e42aa9d24e 100644 (file)
@@ -71,6 +71,11 @@ code {
 blockquote:before {
        content: '>> ';
 }
+
+.shiny {
+       border-color: orange !important;
+}
+
 .nav-login-link {
        float: right;
        margin-left: 0px;