diff options
-rw-r--r-- | Zotlabs/Lib/Apps.php | 2 | ||||
-rwxr-xr-x | view/tpl/nav.tpl | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php index ee1458aba..6f23b83ee 100644 --- a/Zotlabs/Lib/Apps.php +++ b/Zotlabs/Lib/Apps.php @@ -358,7 +358,7 @@ class Apps { '$undelete' => ((local_channel() && $installed && $mode == 'edit') ? t('Undelete') : ''), '$deleted' => $papp['deleted'], '$featured' => ((strpos($papp['categories'], 'nav_featured_app') === false) ? false : true), - '$navapps' => ((local_channel() && $installed && $mode == 'nav') ? true : false) + '$navapps' => (($mode == 'nav') ? true : false) )); } diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 236cde230..f101393a4 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -183,7 +183,13 @@ </div> <div class="collapse navbar-collapse" id="navbar-collapse-2"> <ul class="nav navbar-nav navbar-left hidden-sm hidden-md hidden-lg"> - {{$navapps}} + {{foreach $navapps as $navapp}} + {{$navapp}} + {{/foreach}} + {{if $localuser}} + <li class="divider"></li> + <li><a href="/apps"><i class="generic-icons-nav fa fa-fw fa-plus-circle"></i>Add Apps</a></li> + {{/if}} </ul> </div> |