diff --git a/system/controllers/pluginmanager.php b/system/controllers/pluginmanager.php index 75ff050e..b8634df9 100644 --- a/system/controllers/pluginmanager.php +++ b/system/controllers/pluginmanager.php @@ -329,7 +329,7 @@ switch ($action) { File::copyFolder($folder, $DEVICE_PATH . DIRECTORY_SEPARATOR, ['README.md', 'LICENSE']); File::deleteFolder($folder); unlink($file); - r2(U . "paymentgateway", 's', 'Payment Gateway ' . $plugin . ' has been installed'); + r2(U . "settings/devices", 's', 'Device ' . $plugin . ' has been installed'); break; } } @@ -344,6 +344,7 @@ switch ($action) { $ui->assign('zipExt', $zipExt); $ui->assign('plugins', $json['plugins']); $ui->assign('pgs', $json['payment_gateway']); + $ui->assign('dvcs', $json['devices']); $ui->display('plugin-manager.tpl'); } diff --git a/ui/ui/plugin-manager.tpl b/ui/ui/plugin-manager.tpl index dfbb7125..3a3e20d5 100644 --- a/ui/ui/plugin-manager.tpl +++ b/ui/ui/plugin-manager.tpl @@ -1,5 +1,10 @@ {include file="sections/header.tpl"} +{if empty($_c['github_token'])} +

To download from private/paid repository, Set + your Github Authentication first

+{/if} +
@@ -7,9 +12,11 @@
{Lang::T('Plugin Installer')}
- + target="_blank"> info + refresh
@@ -30,85 +37,129 @@
-

To download from private/paid repository, Set - your Github Authentication first

- -
-
{Lang::T('Plugin')} -
- +
+ + +
+ +
+
+
+ {foreach $plugins as $plugin} +
+
+
+

{$plugin['name']}

+
+
+
{$plugin['description']}
+
+ +
+
+ {/foreach} +
+
+
+
+ {foreach $pgs as $pg} +
+
+
+

{$pg['name']}

+
+
+
{$pg['description']}
+
+ +
+
+ {/foreach} +
+
+
+
+ {foreach $dvcs as $dvc} +
+
+
+

{$dvc['name']}

+
+
+
{$dvc['description']}
+
+ +
+
+ {/foreach} +
-
- {foreach $plugins as $plugin} -
-
-
-

{$plugin['name']}

-
-
-
{$plugin['description']}
-
- -
-
- {/foreach} -
-
-
-
{Lang::T('Payment Gateway')}
-
- {foreach $pgs as $pg} -
-
-
-

{$pg['name']}

-
-
-
{$pg['description']}
-
- -
-
- {/foreach} -
+
{include file="sections/footer.tpl"} \ No newline at end of file