From 2cb66660c5d810aac843eb079515e12afa921373 Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 21 Dec 2024 22:42:34 -0800 Subject: [PATCH] Create modal install-user-plugin dialog, update template text --- ajax/plugins/get_manifest.php | 32 ------------------- templates/system.php | 59 +++++++++++++++++++++++++++++++++++ templates/system/plugins.php | 6 ++-- 3 files changed, 61 insertions(+), 36 deletions(-) delete mode 100755 ajax/plugins/get_manifest.php diff --git a/ajax/plugins/get_manifest.php b/ajax/plugins/get_manifest.php deleted file mode 100755 index 70b18c9f..00000000 --- a/ajax/plugins/get_manifest.php +++ /dev/null @@ -1,32 +0,0 @@ -getPluginManifest($manifestUrl); - if ($manifest) { - echo json_encode($manifest); - } else { - http_response_code(404); - echo json_encode(['error' => 'Plugin manifest not found']); - } - } catch (Exception $e) { - http_response_code(500); - echo json_encode(['error' => 'An unexpected error occurred']); - } -} else { - http_response_code(400); - echo json_encode(['error' => 'Plugin URI is required']); - exit; -} - diff --git a/templates/system.php b/templates/system.php index 4c17bcf2..dcc4679d 100755 --- a/templates/system.php +++ b/templates/system.php @@ -107,3 +107,62 @@ + + + diff --git a/templates/system/plugins.php b/templates/system/plugins.php index 2595198d..71677d19 100644 --- a/templates/system/plugins.php +++ b/templates/system/plugins.php @@ -3,19 +3,17 @@

-
-
- Install to download and activate a plugin from the list. Uninstall removes an existing plugin."); ?> +
+ Details for more information and to install a plugin. Uninstall removes an existing plugin."); ?>
-