]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added hook for Aside container
authorSarven Capadisli <csarven@status.net>
Thu, 1 Oct 2009 12:27:02 +0000 (12:27 +0000)
committerSarven Capadisli <csarven@status.net>
Thu, 1 Oct 2009 12:27:02 +0000 (12:27 +0000)
EVENTS.txt
lib/action.php

index 74923dcc0a8301132a34c09e4a0542ce215885ae..e0d4bbd06107d591dd2d66c286ba73ba6f8d9395 100644 (file)
@@ -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)
 
index 02793f0694ed05e5e123a64fca2d122afe541678..71ceffe20dbf9a5d2b033814567e99a188547c64 100644 (file)
@@ -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');
     }