mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
items: new property 'shiny'.
separate 'indent' (''|'comment') from 'shiny' (''|'shiny')
This commit is contained in:
parent
b01ca0e345
commit
41dfc7f29e
2 changed files with 8 additions and 3 deletions
|
@ -784,8 +784,9 @@ function render_content(&$a, $items, $mode, $update, $preview = false) {
|
|||
|
||||
$indent = (($toplevelpost) ? '' : ' comment');
|
||||
|
||||
$shiny = "";
|
||||
if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0)
|
||||
$indent .= ' shiny';
|
||||
$shiny = 'shiny';
|
||||
|
||||
//
|
||||
localize_item($item);
|
||||
|
@ -829,6 +830,7 @@ function render_content(&$a, $items, $mode, $update, $preview = false) {
|
|||
'lock' => $lock,
|
||||
'location' => template_escape($location),
|
||||
'indent' => $indent,
|
||||
'shiny' => $shiny,
|
||||
'owner_url' => $owner_url,
|
||||
'owner_photo' => $owner_photo,
|
||||
'owner_name' => template_escape($owner_name),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue