mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-22 10:15:19 +00:00
20 lines
484 B
PHP
20 lines
484 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Widget;
|
|
|
|
|
|
class Appstore
|
|
{
|
|
|
|
public 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', t('Installed Apps'), 1 - $store],
|
|
[z_root() . '/apps/available', t('Available Apps'), $store]
|
|
]
|
|
]);
|
|
}
|
|
}
|