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") {
21 self::getApp()->internalRedirect();
26 public static function content()
28 $apps = Nav::getAppMenu();
30 if (count($apps) == 0) {
31 notice(L10n::t('No installed applications.') . EOL);
34 $tpl = Renderer::getMarkupTemplate('apps.tpl');
35 return Renderer::replaceMacros($tpl, [
36 '$title' => L10n::t('Applications'),