forked from GNUsocial/gnu-social
Add Start/EndShowNoticeInfo events
This commit is contained in:
parent
8fc904e95b
commit
968ec4cb42
@ -263,6 +263,12 @@ StartShowNoticeItem: just before showing the notice item
|
|||||||
EndShowNoticeItem: just after showing the notice item
|
EndShowNoticeItem: just after showing the notice item
|
||||||
- $item: the NoticeListItem object being shown
|
- $item: the NoticeListItem object being shown
|
||||||
|
|
||||||
|
StartShowNoticeInfo: just before showing notice info
|
||||||
|
- $item: The NoticeListItem object being shown
|
||||||
|
|
||||||
|
EndShowNoticeInfo: just after showing notice info
|
||||||
|
- $item: The NoticeListItem object being shown
|
||||||
|
|
||||||
StartShowNoticeOptions: just before showing notice options like fave, repeat, etc.
|
StartShowNoticeOptions: just before showing notice options like fave, repeat, etc.
|
||||||
- $item: the NoticeListItem object being shown
|
- $item: the NoticeListItem object being shown
|
||||||
|
|
||||||
|
@ -226,11 +226,15 @@ class NoticeListItem extends Widget
|
|||||||
function showNoticeInfo()
|
function showNoticeInfo()
|
||||||
{
|
{
|
||||||
$this->out->elementStart('div', 'entry-content');
|
$this->out->elementStart('div', 'entry-content');
|
||||||
$this->showNoticeLink();
|
if (Event::handle('StartShowNoticeInfo', array($this))) {
|
||||||
$this->showNoticeSource();
|
$this->showNoticeLink();
|
||||||
$this->showNoticeLocation();
|
$this->showNoticeSource();
|
||||||
$this->showContext();
|
$this->showNoticeLocation();
|
||||||
$this->showRepeat();
|
$this->showContext();
|
||||||
|
$this->showRepeat();
|
||||||
|
Event::handle('EndShowNoticeInfo', array($this));
|
||||||
|
}
|
||||||
|
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user