fix aside contact block, add edit profiles icon
This commit is contained in:
parent
20ca451200
commit
2c1aca7ffe
3 changed files with 20 additions and 5 deletions
9
boot.php
9
boot.php
|
@ -857,6 +857,14 @@ function profile_sidebar($profile, $block = 0) {
|
|||
if((remote_user()) && ($_SESSION['visitor_visiting'] == $profile['uid']))
|
||||
$connect = False;
|
||||
|
||||
|
||||
// show edit to yourself
|
||||
if ($profile['uid'] == local_user()) {
|
||||
$profile['edit'] = array($a->get_baseurl(). 'profiles', t('Profiles'),"", t('Manage/edit profiles'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if((x($profile,'address') == 1)
|
||||
|| (x($profile,'locality') == 1)
|
||||
|
@ -890,6 +898,7 @@ function profile_sidebar($profile, $block = 0) {
|
|||
$contact_block = contact_block();
|
||||
}
|
||||
|
||||
|
||||
$tpl = get_markup_template('profile_vcard.tpl');
|
||||
|
||||
$o .= replace_macros($tpl, array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue