From 8b5793e629baaf2084909d310d967abda277ae81 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 27 Jan 2017 17:51:49 +0100 Subject: more work on app-bin --- Zotlabs/Module/Apps.php | 1 - include/nav.php | 5 +++-- view/tpl/nav.tpl | 10 +++++++--- view/tpl/navapps.tpl | 7 ++++--- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Zotlabs/Module/Apps.php b/Zotlabs/Module/Apps.php index 9186848df..1ccd792eb 100644 --- a/Zotlabs/Module/Apps.php +++ b/Zotlabs/Module/Apps.php @@ -17,7 +17,6 @@ class Apps extends \Zotlabs\Web\Controller { $apps = array(); - if(local_channel()) { Zlib\Apps::import_system_apps(); $syslist = array(); diff --git a/include/nav.php b/include/nav.php index ce259255e..d7b006c6d 100644 --- a/include/nav.php +++ b/include/nav.php @@ -249,7 +249,7 @@ EOT; if(local_channel()) { //Zlib\Apps::import_system_apps(); $syslist = array(); - $list = Zlib\Apps::app_list(local_channel(), false, $_GET['cat']); + $list = Zlib\Apps::app_list(local_channel(), false, 'featured'); if($list) { foreach($list as $li) { $syslist[] = Zlib\Apps::app_encode($li); @@ -262,7 +262,8 @@ EOT; } $navapps = replace_macros(get_markup_template('navapps.tpl'), array( - '$apps' => $syslist + '$apps' => $syslist, + '$localuser' => local_channel(), )); } diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index e80772102..16cd9deca 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -163,13 +163,13 @@ + {{/foreach}} --> +--> {{/if}} {{if $nav.register}} @@ -194,7 +194,7 @@ {{if $powered_by}}
{{$powered_by}}
{{/if}} - +{{if ! $navapps}} {{if $nav.directory}}
  • @@ -212,6 +212,7 @@ {{if $nav.help.6}}{{else}}{{/if}}
  • {{/if}} +{{/if}} {{if $navapps}}