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

@@ -115,13 +115,12 @@ class ExtendedProfilePlugin extends Plugin
return true;
}
function onStartProfilePageActionsSection(HTMLOutputter $out, Profile $profile) {
function onEndShowAccountProfileBlock(HTMLOutputter $out, Profile $profile) {
$user = User::staticGet('id', $profile->id);
if ($user) {
$url = common_local_url('profiledetail', array('nickname' => $user->nickname));
// TRANS: Link text on user profile page leading to extended profile page.
$out->element('a', array('href' => $url, 'class' => 'profiledetail'), _m('More details...'));
}
return true;
}
}