1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class ThreadedNoticeListMoreItem extends NoticeListItem
- {
- protected $cnt;
- function __construct(Notice $notice, Action $out, $cnt)
- {
- parent::__construct($notice, $out);
- $this->cnt = $cnt;
- }
-
- function show()
- {
- $this->showStart();
- $this->showMiniForm();
- $this->showEnd();
- }
-
- function showStart()
- {
- $this->out->elementStart('li', array('class' => 'notice-reply-comments'));
- }
- function showEnd()
- {
- $this->out->elementEnd('li');
- }
- function showMiniForm()
- {
- $id = $this->notice->conversation;
- $url = common_local_url('conversation', array('id' => $id));
- $n = Conversation::noticeCount($id) - 1;
-
-
- $msg = sprintf(_m('Show reply', 'Show all %d replies', $n), $n);
- $this->out->element('a', array('href' => $url), $msg);
- }
- }
|