diff options
author | Mario <mario@mariovavti.com> | 2021-08-25 10:19:20 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-08-25 10:19:20 +0000 |
commit | 2e7a915ee8d99970a32e02bf3ac5bb5834f7fa1a (patch) | |
tree | 63bced3dd0d77c31215b4b46228a46c74d2d5441 /Zotlabs/Widget | |
parent | 0081bafab2898074a8293b0ab691add4f7f02544 (diff) | |
download | volse-hubzilla-2e7a915ee8d99970a32e02bf3ac5bb5834f7fa1a.tar.gz volse-hubzilla-2e7a915ee8d99970a32e02bf3ac5bb5834f7fa1a.tar.bz2 volse-hubzilla-2e7a915ee8d99970a32e02bf3ac5bb5834f7fa1a.zip |
add appstore widget to appman
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r-- | Zotlabs/Widget/Appcategories.php | 2 | ||||
-rw-r--r-- | Zotlabs/Widget/Appstore.php | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/Zotlabs/Widget/Appcategories.php b/Zotlabs/Widget/Appcategories.php index aebd144d0..e916f095f 100644 --- a/Zotlabs/Widget/Appcategories.php +++ b/Zotlabs/Widget/Appcategories.php @@ -40,7 +40,7 @@ class Appcategories { $terms[] = array('name' => $rr['term'], 'selected' => (($selected == $rr['term']) ? 'selected' : '')); return replace_macros(get_markup_template('categories_widget.tpl'),array( - '$title' => t('Categories'), + '$title' => t('App Categories'), '$desc' => '', '$sel_all' => (($selected == '') ? 'selected' : ''), '$all' => t('Everything'), diff --git a/Zotlabs/Widget/Appstore.php b/Zotlabs/Widget/Appstore.php index 6a00ac06a..da05c0b62 100644 --- a/Zotlabs/Widget/Appstore.php +++ b/Zotlabs/Widget/Appstore.php @@ -6,12 +6,11 @@ namespace Zotlabs\Widget; class Appstore { function widget($arr) { - $store = ((argc() > 1 && argv(1) === 'available') ? 1 : 0); - return replace_macros(get_markup_template('appstore.tpl'), [ + return replace_macros(get_markup_template('appstore.tpl'), [ '$title' => t('App Collections'), '$options' => [ - [ z_root() . '/apps', t('Installed apps'), 1 - $store ], - [ z_root() . '/apps/available', t('Available Apps'), $store ] + [z_root() . '/apps', t('Installed apps'), ((argc() == 1 && argv(0) === 'apps') ? 1 : 0)], + [z_root() . '/apps/available', t('Available Apps'), ((argc() > 1 && argv(1) === 'available') ? 1 : 0)] ] ]); } |