From c677114e089de8ab6b605e398f4b0392188bf179 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Sun, 3 Oct 2021 10:57:00 +0200 Subject: [PATCH] feat(Modules): add modules list module --- config.example.php | 1 + modules/modules/modules.php | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 modules/modules/modules.php diff --git a/config.example.php b/config.example.php index 84ab178..d3d4a6f 100644 --- a/config.example.php +++ b/config.example.php @@ -3,6 +3,7 @@ return [ 'domain' => 'lefuturiste.fr', 'modules' => [ + 'modules' => [], 'random' => [], 'date' => [ 'alias' => ['printdate'] diff --git a/modules/modules/modules.php b/modules/modules/modules.php new file mode 100644 index 0000000..5a15785 --- /dev/null +++ b/modules/modules/modules.php @@ -0,0 +1,25 @@ +

List of modules

+ +\n"; +foreach ($config['modules'] as $name => $moduleConf) { + if ($name == 'modules') { continue; } + ?> +
  • + + + + , + +
  • + ";