]> git.mxchange.org Git - friendica.git/blob - mod/apps.php
Merge pull request #2314 from rabuzarus/0302_datetime_cleanup
[friendica.git] / mod / apps.php
1 <?php
2 if(! function_exists('apps_content')) {
3 function apps_content(&$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   $tpl = get_markup_template("apps.tpl");
18   return replace_macros($tpl, array(
19     '$title' => $title,
20     '$apps' => $a->apps,
21   ));
22 }
23 }