appstore changes
This commit is contained in:
18
Zotlabs/Widget/Appstore.php
Normal file
18
Zotlabs/Widget/Appstore.php
Normal file
@@ -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 ]
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user