diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-19 17:39:19 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-19 17:39:19 -0800 |
commit | 4cd0b745cbc24a035a5e9ba488917ec7beeda888 (patch) | |
tree | faad8cf0e7ef2a720ce002e6b280ae31a77971d0 /include/nav.php | |
parent | cf4588f16fbe6dc55eabdb590480bc88d560dad3 (diff) | |
parent | 88d0bf94d89ac739469528bdab7905d0c00cf8a9 (diff) | |
download | volse-hubzilla-4cd0b745cbc24a035a5e9ba488917ec7beeda888.tar.gz volse-hubzilla-4cd0b745cbc24a035a5e9ba488917ec7beeda888.tar.bz2 volse-hubzilla-4cd0b745cbc24a035a5e9ba488917ec7beeda888.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/nav.php b/include/nav.php index 9df50c9fe..2dcf68bc8 100644 --- a/include/nav.php +++ b/include/nav.php @@ -253,7 +253,7 @@ EOT; } $syslist = array(); - $list = Zlib\Apps::app_list(local_channel(), false, 'nav_featured_app'); + $list = Zlib\Apps::app_list(local_channel(), false, ['nav_featured_app', 'nav_pinned_app']); if($list) { foreach($list as $li) { $syslist[] = Zlib\Apps::app_encode($li); @@ -274,16 +274,20 @@ EOT; $app['active'] = true; if($is_owner) { - $nav_apps[] = Zlib\Apps::app_render($app,'nav'); - if(strpos($app['categories'],'navbar_' . $template)) { + if(strpos($app['categories'],'nav_pinned_app') !== false) { $navbar_apps[] = Zlib\Apps::app_render($app,'navbar'); } + else { + $nav_apps[] = Zlib\Apps::app_render($app,'nav'); + } } elseif(! $is_owner && strpos($app['requires'], 'local_channel') === false) { - $nav_apps[] = Zlib\Apps::app_render($app,'nav'); - if(strpos($app['categories'],'navbar_' . $template)) { + if(strpos($app['categories'],'nav_pinned_app') !== false) { $navbar_apps[] = Zlib\Apps::app_render($app,'navbar'); } + else { + $nav_apps[] = Zlib\Apps::app_render($app,'nav'); + } } } |