From fe72097d752e1e4ff5332730bf89f0ce9e984bde Mon Sep 17 00:00:00 2001 From: GamerClassN7 Date: Thu, 17 Dec 2020 19:41:59 +0100 Subject: [PATCH] Show Plugin Settings --- app/views/Setting.php | 2 ++ app/views/templates/setting.phtml | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app/views/Setting.php b/app/views/Setting.php index 547a016..6133b4b 100644 --- a/app/views/Setting.php +++ b/app/views/Setting.php @@ -70,6 +70,8 @@ class Setting extends Template $result = $settingsManager->getSettingGroup($plugins[$key]['slug']); if (count ($result) > 0) { $plugins[$key]['settings'] = $result; + } else { + unset($plugins[$key]); } } } diff --git a/app/views/templates/setting.phtml b/app/views/templates/setting.phtml index 23a58c7..3f093b1 100644 --- a/app/views/templates/setting.phtml +++ b/app/views/templates/setting.phtml @@ -203,7 +203,22 @@ $partial = new Partial('head'); - + $pluginSeting) { ?> +
+

+
+ $pluginSetingField) { ?> +
+
:
+ +
+ +
+ +
+
+
+