diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-05-05 16:32:20 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-05-05 16:32:20 +0200 |
commit | 00b19ccee0db5fd628c4959ac665234395a92989 (patch) | |
tree | 0542c60499024e6b8a8d0f53f7a7062960506c16 /include | |
parent | 54d55fb62fd9a69c77ce9313ccec432faa8395e7 (diff) | |
download | volse-hubzilla-00b19ccee0db5fd628c4959ac665234395a92989.tar.gz volse-hubzilla-00b19ccee0db5fd628c4959ac665234395a92989.tar.bz2 volse-hubzilla-00b19ccee0db5fd628c4959ac665234395a92989.zip |
collapse sysapps if viewing a remote channel
Diffstat (limited to 'include')
-rw-r--r-- | include/nav.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/nav.php b/include/nav.php index fecf28548..849e19d9a 100644 --- a/include/nav.php +++ b/include/nav.php @@ -43,7 +43,7 @@ EOT; require_once('include/conversation.php'); $is_owner = (((local_channel()) && (App::$profile['profile_uid'] == local_channel())) ? true : false); - $navapps[] = channel_apps($is_owner, App::$profile['channel_address']); + $channel_apps[] = channel_apps($is_owner, App::$profile['channel_address']); $myident = (($channel) ? $channel['xchan_addr'] : ''); @@ -258,7 +258,7 @@ EOT; usort($syslist,'Zotlabs\\Lib\\Apps::app_name_compare'); foreach($syslist as $app) { - $navapps[] = Zlib\Apps::app_render($app,'nav'); + $nav_apps[] = Zlib\Apps::app_render($app,'nav'); } $tpl = get_markup_template('nav.tpl'); @@ -276,8 +276,10 @@ EOT; '$powered_by' => $powered_by, '$help' => t('@name, #tag, ?doc, content'), '$pleasewait' => t('Please wait...'), - '$navapps' => $navapps, - '$addapps' => t('Add Apps') + '$nav_apps' => $nav_apps, + '$channel_apps' => $channel_apps, + '$addapps' => t('Add Apps'), + '$sysapps_toggle' => t('Toggle System Apps') )); if(x($_SESSION, 'reload_avatar') && $observer) { @@ -480,4 +482,4 @@ function channel_apps($is_owner = false, $nickname = null) { '$thumb' => App::$profile['thumb'] ] ); -}
\ No newline at end of file +} |