put edited meta info in item object to give theme developers the chance to display this in a fancy way
This commit is contained in:
parent
583e82aeb5
commit
0b925899d4
1 changed files with 11 additions and 3 deletions
|
@ -86,7 +86,14 @@ class Item extends BaseObject {
|
||||||
$a = $this->get_app();
|
$a = $this->get_app();
|
||||||
|
|
||||||
$item = $this->get_data();
|
$item = $this->get_data();
|
||||||
|
$edited = false;
|
||||||
|
if (strcmp($item['created'], $item['edited'])<>0) {
|
||||||
|
$edited = array(
|
||||||
|
'label' => t('This entry was edited'),
|
||||||
|
'date' => datetime_convert('UTC', date_default_timezone_get(), $item['edited'], 'r'),,
|
||||||
|
'relative' => relative_date($item['edited'])
|
||||||
|
);
|
||||||
|
}
|
||||||
$commentww = '';
|
$commentww = '';
|
||||||
$sparkle = '';
|
$sparkle = '';
|
||||||
$buttons = '';
|
$buttons = '';
|
||||||
|
@ -331,7 +338,8 @@ class Item extends BaseObject {
|
||||||
'previewing' => ($conv->is_preview() ? ' preview ' : ''),
|
'previewing' => ($conv->is_preview() ? ' preview ' : ''),
|
||||||
'wait' => t('Please wait'),
|
'wait' => t('Please wait'),
|
||||||
'thread_level' => $thread_level,
|
'thread_level' => $thread_level,
|
||||||
'postopts' => $langstr
|
'postopts' => $langstr,
|
||||||
|
'edited' => $edited
|
||||||
);
|
);
|
||||||
|
|
||||||
$arr = array('item' => $item, 'output' => $tmp_item);
|
$arr = array('item' => $item, 'output' => $tmp_item);
|
||||||
|
|
Loading…
Reference in a new issue