aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-09-05 11:16:08 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-09-05 11:16:08 +0200
commit2c1aca7ffe628ab2a455fc7abf730b6d01d288ea (patch)
treef4994ab39385f7212994532ad82224f794ed836e /boot.php
parent20ca4512000e80386fe6f9b3fd85864bc0e91627 (diff)
downloadvolse-hubzilla-2c1aca7ffe628ab2a455fc7abf730b6d01d288ea.tar.gz
volse-hubzilla-2c1aca7ffe628ab2a455fc7abf730b6d01d288ea.tar.bz2
volse-hubzilla-2c1aca7ffe628ab2a455fc7abf730b6d01d288ea.zip
fix aside contact block, add edit profiles icon
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index d7c00428f..9826b3d8d 100644
--- a/boot.php
+++ b/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(