aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-20 17:24:48 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-20 17:24:48 +0100
commitca14ab3d555476861cf60063208249676aae8954 (patch)
tree46031dd8332adcfedc8ca97672aa1aefd87255be /include
parentcfdf1def2a24a7796ef86ab84d30fdbe734f3119 (diff)
downloadvolse-hubzilla-ca14ab3d555476861cf60063208249676aae8954.tar.gz
volse-hubzilla-ca14ab3d555476861cf60063208249676aae8954.tar.bz2
volse-hubzilla-ca14ab3d555476861cf60063208249676aae8954.zip
move profile tabs to app-tray
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php2
-rw-r--r--include/nav.php5
2 files changed, 5 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index a8887a428..99604f942 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1917,7 +1917,7 @@ function profile_tabs($a, $is_owner = false, $nickname = null){
$arr = array('is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => (($tab) ? $tab : false), 'tabs' => $tabs);
call_hooks('profile_tabs', $arr);
- $tpl = get_markup_template('common_tabs.tpl');
+ $tpl = get_markup_template('profile_tabs.tpl');
return replace_macros($tpl,array('$tabs' => $arr['tabs']));
}
diff --git a/include/nav.php b/include/nav.php
index 07d679aa8..2d12f2950 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -36,7 +36,10 @@ EOT;
}
elseif(remote_channel())
$observer = App::get_observer();
-
+
+ require_once('include/conversation.php');
+ $is_owner = (((local_channel()) && (\App::$profile['profile_uid'] == local_channel())) ? true : false);
+ $navapps[] = profile_tabs($a, $is_owner, \App::$profile['channel_address']);
$myident = (($channel) ? $channel['xchan_addr'] : '');