aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-25 15:14:57 -0800
committerredmatrix <git@macgirvin.com>2016-02-25 15:14:57 -0800
commit6892ba4cd8668ec48d036876d999ed9685165256 (patch)
tree413576d1912df0fe6a9b5197d851659affca52ab /include/identity.php
parent7972de13caf21647c8cc2e82c499a344f7191a22 (diff)
parent5ad9b48f1d916425e41f475319c7237293d055b9 (diff)
downloadvolse-hubzilla-6892ba4cd8668ec48d036876d999ed9685165256.tar.gz
volse-hubzilla-6892ba4cd8668ec48d036876d999ed9685165256.tar.bz2
volse-hubzilla-6892ba4cd8668ec48d036876d999ed9685165256.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/identity.php b/include/identity.php
index a389a613e..0a88ed208 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -1237,10 +1237,6 @@ function advanced_profile(&$a) {
if(! perm_is_allowed($a->profile['profile_uid'],get_observer_hash(),'view_profile'))
return '';
- $o = '';
-
- $o .= '<h2>' . t('Profile') . '</h2>';
-
if($a->profile['name']) {
$tpl = get_markup_template('profile_advanced.tpl');
@@ -1351,6 +1347,10 @@ function advanced_profile(&$a) {
$profile['extra_fields'] = $a->profile['extra_fields'];
}
+
+ $is_owner = (($a->profile['profile_uid'] == local_channel()) ? true : false);
+ $edit = (($is_owner) ? array('link' => $a->get_baseurl() . '/profiles/' . $a->profile['profile_uid'], 'label' => t('Edit')) : '');
+
$things = get_things($a->profile['profile_guid'],$a->profile['profile_uid']);
// logger('mod_profile: things: ' . print_r($things,true), LOGGER_DATA);
@@ -1360,6 +1360,7 @@ function advanced_profile(&$a) {
'$canlike' => (($profile['canlike'])? true : false),
'$likethis' => t('Like this thing'),
'$profile' => $profile,
+ '$edit' => $edit,
'$things' => $things
));
}