aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-07 10:43:13 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-07 10:43:13 +0100
commit549866c0900c1ff550e001323c59a74352920770 (patch)
tree145d316103646e7953c4a86bfff49b99411e5278 /include
parentd16bbfb224c218b04676d890c647b6d1c5d92273 (diff)
downloadvolse-hubzilla-549866c0900c1ff550e001323c59a74352920770.tar.gz
volse-hubzilla-549866c0900c1ff550e001323c59a74352920770.tar.bz2
volse-hubzilla-549866c0900c1ff550e001323c59a74352920770.zip
add location info to the navbar
Diffstat (limited to 'include')
-rw-r--r--include/nav.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/nav.php b/include/nav.php
index af0ebbae2..42c42e881 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -27,6 +27,8 @@ function nav($template = 'default') {
</script>
EOT;
+ $is_owner = (((local_channel()) && ((App::$profile_uid == local_channel()) || (App::$profile_uid == 0))) ? true : false);
+
if(local_channel()) {
$channel = App::get_channel();
$observer = App::get_observer();
@@ -39,17 +41,17 @@ EOT;
intval(get_account_id())
);
}
+ $sitelocation = (($is_owner) ? '' : App::$profile['reddress']);
}
- elseif(remote_channel())
+ elseif(remote_channel()) {
$observer = App::get_observer();
+ $sitelocation = ((App::$profile['reddress']) ? App::$profile['reddress'] : '@' . App::get_hostname());
+ }
require_once('include/conversation.php');
- $is_owner = (((local_channel()) && ((App::$profile_uid == local_channel()) || (App::$profile_uid == 0))) ? true : false);
+
$channel_apps[] = channel_apps($is_owner, App::$profile['channel_address']);
- $myident = (($channel) ? $channel['xchan_addr'] : '');
-
- $sitelocation = (($myident) ? $myident : App::get_hostname());
/**
*