3 namespace Friendica\Module;
5 use Friendica\BaseModule;
6 use Friendica\Content\Nav;
7 use Friendica\Core\Config;
8 use Friendica\Core\L10n;
9 use Friendica\Core\Renderer;
14 class Apps extends BaseModule
16 public static function init()
18 $privateaddons = Config::get('config', 'private_addons');
19 if ($privateaddons === "1" && !local_user()) {
20 self::getApp()->internalRedirect();
24 public static function content()
26 $apps = Nav::getAppMenu();
28 if (count($apps) == 0) {
29 notice(L10n::t('No installed applications.') . EOL);
32 $tpl = Renderer::getMarkupTemplate('apps.tpl');
33 return Renderer::replaceMacros($tpl, [
34 '$title' => L10n::t('Applications'),