aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Widget/Appstore.php
blob: 2377077331b098e0e0d056876a4f9d0af09d7053 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 ]
			]
		]);
	}
}