]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
added a few Laconica events
authorBrian <brian@megapump.com>
Fri, 20 Mar 2009 12:59:03 +0000 (05:59 -0700)
committerBrian <brian@megapump.com>
Tue, 24 Mar 2009 04:48:04 +0000 (21:48 -0700)
lib/action.php

index 975c2bfcb8a23adb01c4ec7dbeb479119547479c..79985417703aeca94cbda57f0a147cf2a193f4c6 100644 (file)
@@ -97,9 +97,18 @@ class Action extends HTMLOutputter // lawsuit
             $this->startHTML();
             Event::handle('EndShowHTML', array($this));
         }
+        if (Event::handle('StartShowHead', array($this))) {
         $this->showHead();
+            Event::handle('EndShowHead', array($this));
+        }
+        if (Event::handle('StartShowBody', array($this))) {
         $this->showBody();
+            Event::handle('EndShowBody', array($this));
+        }
+        if (Event::handle('StartEndHTML', array($this))) {
         $this->endHTML();
+            Event::handle('EndEndHTML', array($this));
+        }
     }
 
     /**
@@ -577,7 +586,10 @@ class Action extends HTMLOutputter // lawsuit
     {
         $this->elementStart('div', array('id' => 'aside_primary',
                                          'class' => 'aside'));
+        if (Event::handle('StartShowExportData', array($this))) {
         $this->showExportData();
+            Event::handle('EndShowExportData', array($this));
+        }
         if (Event::handle('StartShowSections', array($this))) {
             $this->showSections();
             Event::handle('EndShowSections', array($this));