From: Philipp Holzer Date: Sun, 24 Feb 2019 16:34:39 +0000 (+0100) Subject: moving mod/apps to src/Module/Apps X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=25a7086fc57b79c5246c8a8bab6c49b4e5c54b60;p=friendica.git moving mod/apps to src/Module/Apps --- diff --git a/mod/apps.php b/mod/apps.php deleted file mode 100644 index d497ce93a2..0000000000 --- a/mod/apps.php +++ /dev/null @@ -1,33 +0,0 @@ - $title, - '$apps' => $apps, - ]); -} diff --git a/src/Module/Apps.php b/src/Module/Apps.php new file mode 100644 index 0000000000..a23ac0a77b --- /dev/null +++ b/src/Module/Apps.php @@ -0,0 +1,40 @@ +internalRedirect(); + }; + } + } + + public static function content() + { + $apps = Nav::getAppMenu(); + + if (count($apps) == 0) { + notice(L10n::t('No installed applications.') . EOL); + } + + $tpl = Renderer::getMarkupTemplate('apps.tpl'); + return Renderer::replaceMacros($tpl, [ + '$title' => L10n::t('Applications'), + '$apps' => $apps, + ]); + } +}