mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
allow hidden comments phrase to be accessed separately as number and text
This commit is contained in:
parent
cd109b5adf
commit
da7c5b19b1
3 changed files with 6 additions and 0 deletions
|
@ -254,6 +254,8 @@ class Item extends BaseObject {
|
|||
if(($nb_children > 2) || ($thread_level > 1)) {
|
||||
$result['children'][0]['comment_firstcollapsed'] = true;
|
||||
$result['children'][0]['num_comments'] = sprintf( tt('%d comment','%d comments',$total_children),$total_children );
|
||||
$result['children'][0]['hidden_comments_num'] = $total_children;
|
||||
$result['children'][0]['hidden_comments_text'] = tt('comment', 'comments', $total_children);
|
||||
$result['children'][0]['hide_text'] = t('show more');
|
||||
if($thread_level > 1) {
|
||||
$result['children'][$nb_children - 1]['comment_lastcollapsed'] = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue