streams/Zotlabs/Widget/Appstore.php

20 lines
483 B
PHP
Raw Normal View History

2018-07-05 06:20:35 +00:00
<?php
namespace Zotlabs\Widget;
2021-12-02 23:02:31 +00:00
class Appstore
{
2018-07-05 06:20:35 +00:00
2021-12-02 23:02:31 +00:00
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]
]
]);
}
2018-09-12 09:08:53 +00:00
}