From 25a7086fc57b79c5246c8a8bab6c49b4e5c54b60 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sun, 24 Feb 2019 17:34:39 +0100 Subject: [PATCH] moving mod/apps to src/Module/Apps --- mod/apps.php | 33 --------------------------------- src/Module/Apps.php | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 33 deletions(-) delete mode 100644 mod/apps.php create mode 100644 src/Module/Apps.php diff --git a/mod/apps.php b/mod/apps.php deleted file mode 100644 index d497ce93a..000000000 --- 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 000000000..a23ac0a77 --- /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, + ]); + } +}