aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-07-04 23:20:35 -0700
committerzotlabs <mike@macgirvin.com>2018-07-04 23:20:35 -0700
commitf6e8ce5516eeaf2e0525f69099d68a55df9501e3 (patch)
tree95567186aa874db9fbb809f10c6d9b5dedd41b34 /Zotlabs/Widget
parent51a2e64a897e5afdb3e607915534a1562a215563 (diff)
downloadvolse-hubzilla-f6e8ce5516eeaf2e0525f69099d68a55df9501e3.tar.gz
volse-hubzilla-f6e8ce5516eeaf2e0525f69099d68a55df9501e3.tar.bz2
volse-hubzilla-f6e8ce5516eeaf2e0525f69099d68a55df9501e3.zip
appstore changes
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Appcategories.php3
-rw-r--r--Zotlabs/Widget/Appstore.php18
2 files changed, 21 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Appcategories.php b/Zotlabs/Widget/Appcategories.php
index 8ff14230f..aebd144d0 100644
--- a/Zotlabs/Widget/Appcategories.php
+++ b/Zotlabs/Widget/Appcategories.php
@@ -17,6 +17,9 @@ class Appcategories {
// Leaving this line which negates the effect of the two invalid lines prior
$srchurl = z_root() . '/apps';
+ if(argc() > 1 && argv(1) === 'available')
+ $srchurl .= '/available';
+
$terms = array();
diff --git a/Zotlabs/Widget/Appstore.php b/Zotlabs/Widget/Appstore.php
new file mode 100644
index 000000000..237707733
--- /dev/null
+++ b/Zotlabs/Widget/Appstore.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Zotlabs\Widget;
+
+
+class Appstore {
+
+ function widget($arr) {
+ $store = ((argc() > 1 && argv(1) === 'available') ? 1 : 0);
+ return replace_macros(get_markup_template('appstore.tpl'), [
+ '$title' => t('App Collections'),
+ '$options' => [
+ [ z_root() . '/apps/available', t('Available Apps'), $store ],
+ [ z_root() . '/apps', t('Installed apps'), 1 - $store ]
+ ]
+ ]);
+ }
+} \ No newline at end of file