]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/accountprofileblock.php
Add some more events to aside profile blocks and rework a bit
[quix0rs-gnu-social.git] / lib / accountprofileblock.php
index 1c3a8dc536267e757552fae89d6b9eb14d795937..e3e657fb1711f784059c27a9455fc036e0852b0b 100644 (file)
@@ -289,4 +289,15 @@ class AccountProfileBlock extends ProfileBlock
                        // TRANS: Link text for link that will subscribe to a remote profile.
                        _m('BUTTON','Subscribe'));
     }
+
+    function show()
+    {
+        common_debug("show");
+        $this->out->elementStart('div', 'account_profile_block section');
+        if (Event::handle('StartShowAccountProfileBlock', array($this->out, $this->profile))) {
+            parent::show();
+            Event::handle('EndShowAccountProfileBlock', array($this->out, $this->profile));
+        }
+        $this->out->elementEnd('div');
+    }
 }