]> git.mxchange.org Git - friendica.git/blob - mod/apps.php
Cleanup /format pre-move
[friendica.git] / mod / apps.php
1 <?php
2
3
4 function apps_content(App $a) {
5         $privateaddons = get_config('config', 'private_addons');
6         if ($privateaddons === "1") {
7                 if ((!(local_user()))) {
8                         info(t("You must be logged in to use addons. "));
9                         return;
10                 };
11         }
12
13         $title = t('Applications');
14
15         if (count($a->apps) == 0) {
16                 notice(t('No installed applications.') . EOL);
17         }
18
19         $tpl = get_markup_template("apps.tpl");
20         return replace_macros($tpl, array(
21                 '$title' => $title,
22                 '$apps' => $a->apps,
23         ));
24 }