5 use Friendica\Content\Nav;
6 use Friendica\Core\Config;
7 use Friendica\Core\L10n;
8 use Friendica\Core\Renderer;
10 function apps_content()
12 $privateaddons = Config::get('config', 'private_addons');
13 if ($privateaddons === "1") {
15 info(L10n::t('You must be logged in to use addons. '));
20 $title = L10n::t('Applications');
22 $apps = Nav::getAppMenu();
24 if (count($apps) == 0) {
25 notice(L10n::t('No installed applications.') . EOL);
28 $tpl = Renderer::getMarkupTemplate('apps.tpl');
29 return Renderer::replaceMacros($tpl, [