edit profile quick link
This commit is contained in:
parent
2d22a58324
commit
2f3e39ba15
5 changed files with 30 additions and 0 deletions
7
boot.php
7
boot.php
|
@ -823,6 +823,13 @@ function profile_load(&$a, $nickname, $profile = 0) {
|
|||
if(! (x($a->page,'aside')))
|
||||
$a->page['aside'] = '';
|
||||
|
||||
if(local_user() && local_user() == $a->profile['uid']) {
|
||||
$a->page['aside'] .= replace_macros(get_markup_template('profile_edlink.tpl'),array(
|
||||
'$editprofile' => t('Edit profile'),
|
||||
'$profid' => $a->profile['id']
|
||||
));
|
||||
}
|
||||
|
||||
$block = (((get_config('system','block_public')) && (! local_user()) && (! remote_user())) ? true : false);
|
||||
|
||||
$a->page['aside'] .= profile_sidebar($a->profile, $block);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue