forked from GNUsocial/gnu-social
Event hooks for before and after site_notice
This commit is contained in:
parent
d4fcc8777f
commit
373206ac00
@ -150,6 +150,12 @@ StartAddressData: Allows the site owner to provide additional information about
|
|||||||
EndAddressData: At the end of <address>
|
EndAddressData: At the end of <address>
|
||||||
- $action: the current action
|
- $action: the current action
|
||||||
|
|
||||||
|
StartShowSiteNotice: Before showing site notice
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
|
EndShowSiteNotice: After showing site notice
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
StartLoginGroupNav: Before showing the login and register navigation menu
|
StartLoginGroupNav: Before showing the login and register navigation menu
|
||||||
- $action: the current action
|
- $action: the current action
|
||||||
|
|
||||||
|
@ -369,7 +369,11 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
$this->elementStart('div', array('id' => 'header'));
|
$this->elementStart('div', array('id' => 'header'));
|
||||||
$this->showLogo();
|
$this->showLogo();
|
||||||
$this->showPrimaryNav();
|
$this->showPrimaryNav();
|
||||||
|
if (Event::handle('StartShowSiteNotice', array($this))) {
|
||||||
$this->showSiteNotice();
|
$this->showSiteNotice();
|
||||||
|
|
||||||
|
Event::handle('EndShowSiteNotice', array($this));
|
||||||
|
}
|
||||||
if (common_logged_in()) {
|
if (common_logged_in()) {
|
||||||
$this->showNoticeForm();
|
$this->showNoticeForm();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user