3 if (!defined('GNUSOCIAL')) { exit(1); }
6 * Placeholder for loading more replies...
8 class ThreadedNoticeListMoreItem extends NoticeListItem
12 function __construct(Notice $notice, Action $out, $cnt)
14 parent::__construct($notice, $out);
19 * recipe function for displaying a single notice.
21 * This uses all the other methods to correctly display a notice. Override
22 * it or one of the others to fine-tune the output.
29 $this->showMiniForm();
34 * start a single notice.
40 $this->out->elementStart('li', array('class' => 'notice-reply-comments'));
45 $this->out->elementEnd('li');
48 function showMiniForm()
50 $id = $this->notice->conversation;
51 $url = common_local_url('conversation', array('id' => $id));
53 $n = Conversation::noticeCount($id) - 1;
55 // TRANS: Link to show replies for a notice.
56 // TRANS: %d is the number of replies to a notice and used for plural.
57 $msg = sprintf(_m('Show reply', 'Show all %d replies', $n), $n);
59 $this->out->element('a', array('href' => $url), $msg);