BookmarkListItem removed in favor of event-driven rendering

This commit is contained in:
Mikael Nordfeldth
2014-10-26 22:07:16 +01:00
parent 9f8761f709
commit 636ad44f0b
4 changed files with 104 additions and 158 deletions

View File

@@ -600,6 +600,26 @@ abstract class ActivityHandlerPlugin extends Plugin
$nli->showNoticeOptions();
}
public function onStartShowNoticeItemNotice(NoticeListItem $nli)
{
if (!$this->isMyNotice($nli->notice)) {
return true;
}
$this->showNoticeItemNotice($nli);
Event::handle('EndShowNoticeItemNotice', array($nli));
return false;
}
protected function showNoticeItemNotice(NoticeListItem $nli)
{
$nli->showNoticeTitle();
$nli->showAuthor();
$nli->showAddressees();
$nli->showContent();
}
public function onStartShowNoticeContent(Notice $stored, HTMLOutputter $out, Profile $scoped=null)
{
if (!$this->isMyNotice($stored)) {