forked from GNUsocial/gnu-social
Add some more events to aside profile blocks and rework a bit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user