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