aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-01-31 12:53:33 +0100
committerMario Vavti <mario@mariovavti.com>2017-01-31 12:53:33 +0100
commita6cbebe03c4c1ca66b4b55c340ebb1d369d93c3a (patch)
tree4b21a3037de9774c07a43898f97f1913eeb03d74
parente1b54b684383557159cc25839637c35329fce3cd (diff)
downloadvolse-hubzilla-a6cbebe03c4c1ca66b4b55c340ebb1d369d93c3a.tar.gz
volse-hubzilla-a6cbebe03c4c1ca66b4b55c340ebb1d369d93c3a.tar.bz2
volse-hubzilla-a6cbebe03c4c1ca66b4b55c340ebb1d369d93c3a.zip
hide featured app category in the app category widget
-rw-r--r--Zotlabs/Lib/Apps.php4
-rw-r--r--include/nav.php2
-rw-r--r--include/widgets.php1
3 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index 64ac16e5b..4b95a9f5d 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -350,7 +350,7 @@ class Apps {
'$delete' => ((local_channel() && $installed && $mode == 'edit') ? t('Delete') : ''),
'$undelete' => ((local_channel() && $installed && $mode == 'edit') ? t('Undelete') : ''),
'$deleted' => $papp['deleted'],
- '$featured' => ((strpos($papp['categories'], 'featured') === false) ? false : true)
+ '$featured' => ((strpos($papp['categories'], 'nav_featured_app') === false) ? false : true)
));
}
@@ -461,7 +461,7 @@ class Apps {
);
}
else {
- store_item_tag($uid,$r[0]['id'],TERM_OBJ_APP,TERM_CATEGORY,'featured',escape_tags(z_root() . '/apps/?f=&cat=featured'));
+ store_item_tag($uid,$r[0]['id'],TERM_OBJ_APP,TERM_CATEGORY,'nav_featured_app',escape_tags(z_root() . '/apps/?f=&cat=nav_featured_app'));
}
}
diff --git a/include/nav.php b/include/nav.php
index d7b006c6d..25f2a1df4 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, 'featured');
+ $list = Zlib\Apps::app_list(local_channel(), false, 'nav_featured_app');
if($list) {
foreach($list as $li) {
$syslist[] = Zlib\Apps::app_encode($li);
diff --git a/include/widgets.php b/include/widgets.php
index 27eae7d6f..408ba5d24 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -456,6 +456,7 @@ function widget_appcategories($arr) {
where app_channel = %d
and term.uid = app_channel
and term.otype = %d
+ and term.term != 'nav_featured_app'
order by term.term asc",
intval(local_channel()),
intval(TERM_OBJ_APP)