aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-08 11:29:45 -0800
committerzotlabs <mike@macgirvin.com>2017-02-08 11:29:45 -0800
commit6ee691e0190a7d6488888d2fd5009324e3a88f74 (patch)
treef518ddee1420f2b14abceefbe8088915b2629b6c /Zotlabs
parent28f083323750e3083c5ba07f685d30b44e1d2482 (diff)
parenteb415fd869b03724b7308320b45b1bdfae6e5142 (diff)
downloadvolse-hubzilla-6ee691e0190a7d6488888d2fd5009324e3a88f74.tar.gz
volse-hubzilla-6ee691e0190a7d6488888d2fd5009324e3a88f74.tar.bz2
volse-hubzilla-6ee691e0190a7d6488888d2fd5009324e3a88f74.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Apps.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index 6f23b83ee..1432cbdcf 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -262,6 +262,7 @@ class Apps {
* list: normal mode for viewing an app on the app page
* no buttons are shown
* edit: viewing the app page in editing mode provides a delete button
+ * nav: render apps for app-bin
*/
$installed = false;
@@ -357,6 +358,7 @@ class Apps {
'$delete' => ((local_channel() && $installed && $mode == 'edit') ? t('Delete') : ''),
'$undelete' => ((local_channel() && $installed && $mode == 'edit') ? t('Undelete') : ''),
'$deleted' => $papp['deleted'],
+ '$feature' => (($papp['embed']) ? false : true),
'$featured' => ((strpos($papp['categories'], 'nav_featured_app') === false) ? false : true),
'$navapps' => (($mode == 'nav') ? true : false)
));
@@ -768,6 +770,8 @@ class Apps {
if(! $embed)
return $ret;
+ $ret['embed'] = true;
+
if(array_key_exists('categories',$ret))
unset($ret['categories']);