streams/Zotlabs/Widget/Appstore.php

19 lines
413 B
PHP
Raw Normal View History

2018-07-05 06:20:35 +00:00
<?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' => [
2021-07-31 11:13:51 +00:00
[ z_root() . '/apps', t('Installed Apps'), 1 - $store ],
2018-09-12 09:08:53 +00:00
[ z_root() . '/apps/available', t('Available Apps'), $store ]
2018-07-05 06:20:35 +00:00
]
]);
}
2018-09-12 09:08:53 +00:00
}