From: Sarven Capadisli Date: Thu, 1 Oct 2009 12:27:02 +0000 (+0000) Subject: Added hook for Aside container X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=acc78972383c2346b5729192ab00c90c48c5b2a6;p=quix0rs-gnu-social.git Added hook for Aside container --- diff --git a/EVENTS.txt b/EVENTS.txt index 74923dcc0a..e0d4bbd061 100644 --- a/EVENTS.txt +++ b/EVENTS.txt @@ -87,6 +87,12 @@ StartShowContentBlock: Showing before the content container EndShowContentBlock: Showing after the content container - $action: the current action +StartShowAside: Showing before the Aside container +- $action: the current action + +EndShowAside: Showing after the Aside container +- $action: the current action + StartNoticeSave: before inserting a notice (good place for content filters) - $notice: notice being saved (no ID or URI) diff --git a/lib/action.php b/lib/action.php index 02793f0694..71ceffe20d 100644 --- a/lib/action.php +++ b/lib/action.php @@ -525,7 +525,10 @@ class Action extends HTMLOutputter // lawsuit $this->showContentBlock(); Event::handle('EndShowContentBlock', array($this)); } - $this->showAside(); + if (Event::handle('StartShowAside', array($this))) { + $this->showAside(); + Event::handle('EndShowAside', array($this)); + } $this->elementEnd('div'); }