new event for notice option items
This commit is contained in:
parent
eb6b4628b9
commit
e7d187eb05
@ -1425,3 +1425,8 @@ EndUpgrade: when ending a site upgrade; good place to do your own upgrades
|
|||||||
HaveIMPlugin: is there an IM plugin loaded?
|
HaveIMPlugin: is there an IM plugin loaded?
|
||||||
- &$haveIMPlugin: set me to true if you're loaded!
|
- &$haveIMPlugin: set me to true if you're loaded!
|
||||||
|
|
||||||
|
StartShowNoticeOptionItems: Before showing first controls in a notice list item; inside the div
|
||||||
|
- $nli: NoticeListItem being shown
|
||||||
|
|
||||||
|
EndShowNoticeOptionItems: After showing last controls in a notice list item; inside the div
|
||||||
|
- $nli: NoticeListItem being shown
|
||||||
|
@ -144,10 +144,13 @@ class NoticeListItem extends Widget
|
|||||||
$user = common_current_user();
|
$user = common_current_user();
|
||||||
if ($user) {
|
if ($user) {
|
||||||
$this->out->elementStart('div', 'notice-options');
|
$this->out->elementStart('div', 'notice-options');
|
||||||
$this->showFaveForm();
|
if (Event::handle('StartShowNoticeOptionItems', array($this))) {
|
||||||
$this->showReplyLink();
|
$this->showFaveForm();
|
||||||
$this->showRepeatForm();
|
$this->showReplyLink();
|
||||||
$this->showDeleteLink();
|
$this->showRepeatForm();
|
||||||
|
$this->showDeleteLink();
|
||||||
|
Event::handle('EndShowNoticeOptionItems', array($this));
|
||||||
|
}
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
}
|
}
|
||||||
Event::handle('EndShowNoticeOptions', array($this));
|
Event::handle('EndShowNoticeOptions', array($this));
|
||||||
|
Loading…
Reference in New Issue
Block a user