Edit page placeholder, link on main profile to details

This commit is contained in:
Brion Vibber
2011-02-02 16:38:01 -08:00
parent 7a97243abf
commit 59f4734985
3 changed files with 43 additions and 3 deletions

View File

@@ -95,4 +95,14 @@ class ExtendedProfilePlugin extends Plugin
$widget->showMenuItem('profiledetailsettings',_m('Details'),$title);
return true;
}
function onEndProfilePageProfileElements(HTMLOutputter $out, Profile $profile) {
$user = User::staticGet('id', $profile->id);
if ($user) {
$url = common_local_url('profiledetail', array('nickname' => $user->nickname));
$out->element('a', array('href' => $url), _m('More details...'));
}
return;
}
}