From 7533facf07ae6c441f9e736929fee79f9a77c8fb Mon Sep 17 00:00:00 2001 From: GamerClassN7 Date: Mon, 26 Oct 2020 16:16:42 +0100 Subject: [PATCH] Some Plugin Improvements --- app/views/Plugins.php | 1 - app/views/templates/part/pluginButton.phtml | 21 +++++++++++++++++++++ app/views/templates/plugins.phtml | 14 ++++++++++++-- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 app/views/templates/part/pluginButton.phtml diff --git a/app/views/Plugins.php b/app/views/Plugins.php index 9bdd08e..d3bcf03 100644 --- a/app/views/Plugins.php +++ b/app/views/Plugins.php @@ -6,7 +6,6 @@ class Plugins extends Template $userManager = new UserManager(); $langMng = new LanguageManager('en'); - if (!$userManager->isLogin()){ header('Location: ' . BASEURL . 'login'); } diff --git a/app/views/templates/part/pluginButton.phtml b/app/views/templates/part/pluginButton.phtml new file mode 100644 index 0000000..d840553 --- /dev/null +++ b/app/views/templates/part/pluginButton.phtml @@ -0,0 +1,21 @@ +
+
+
+
+
+
+ +
+
+
+ +
+
+
diff --git a/app/views/templates/plugins.phtml b/app/views/templates/plugins.phtml index 3c938ef..6a59b5d 100644 --- a/app/views/templates/plugins.phtml +++ b/app/views/templates/plugins.phtml @@ -22,11 +22,21 @@
-

get('t_Plugins'); ?>

+

get('t_Plugins'); + ?>

- + prepare('langMng',$LANGMNG); + $partial->prepare('pluginName',$plugin['name']); + $partial->prepare('pluginStatus',$plugin['status']); + $partial->render(); + + ?>