forked from GNUsocial/gnu-social
Add a hook for showing sidebar sections
This commit is contained in:
parent
2393fbec60
commit
32744124bc
@ -34,3 +34,8 @@ StartShowLaconicaScripts: Showing Laconica script links (use this to link to a C
|
|||||||
EndShowLaconicaScripts: End showing Laconica script links
|
EndShowLaconicaScripts: End showing Laconica script links
|
||||||
- $action: the current action
|
- $action: the current action
|
||||||
|
|
||||||
|
StartShowSections: Start the list of sections in the sidebar
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
|
EndShowSections: End the list of sections in the sidebar
|
||||||
|
- $action: the current action
|
||||||
|
@ -524,12 +524,16 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
*
|
*
|
||||||
* @return nothing
|
* @return nothing
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function showAside()
|
function showAside()
|
||||||
{
|
{
|
||||||
$this->elementStart('div', array('id' => 'aside_primary',
|
$this->elementStart('div', array('id' => 'aside_primary',
|
||||||
'class' => 'aside'));
|
'class' => 'aside'));
|
||||||
$this->showExportData();
|
$this->showExportData();
|
||||||
|
if (Event::handle('StartShowSections', array($this))) {
|
||||||
$this->showSections();
|
$this->showSections();
|
||||||
|
Event::handle('EndShowSections', array($this));
|
||||||
|
}
|
||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user