Add some more events to aside profile blocks and rework a bit

This commit is contained in:
Zach Copley
2011-04-08 15:45:49 -07:00
parent 8335d234f7
commit 3022d711e3
5 changed files with 79 additions and 22 deletions

View 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');
}
}