'class' => 'h-card p-author',
'title' => $this->profile->getNickname());
- $this->out->elementStart('a', $attrs);
- $this->showAvatar($this->profile);
- $this->out->text($this->profile->getStreamName());
- $this->out->elementEnd('a');
+ if (Event::handle('StartShowNoticeItemAuthor', array($this->profile, $this->out, &$attrs))) {
+ $this->out->elementStart('a', $attrs);
+ $this->showAvatar($this->profile);
+ $this->out->text($this->profile->getStreamName());
+ $this->out->elementEnd('a');
+ Event::handle('EndShowNoticeItemAuthor', array($this->profile, $this->out));
+ }
}
function showAddressees()
$this->out->elementStart('li', array('class' => 'notice-reply-comments'));
}
+ function showEnd()
+ {
+ $this->out->elementEnd('li');
+ }
+
function showMiniForm()
{
$id = $this->notice->conversation;
* @param NoticeListItem $item
* @return boolean hook value
*/
- function onStartShowNoticeItem(NoticeListItem $item)
+ function onEndShowNoticeItemAuthor(Profile $profile, HTMLOutputter $out)
{
- $this->showProfileOptions($item->out, $item->profile);
+ $this->showProfileOptions($out, $profile);
return true;
}