From e663d523186a12a41aca0541c996a6a0022912d8 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 16 Oct 2008 16:57:39 +0000 Subject: You can now reorder plugins. git-svn-id: https://code.elgg.org/elgg/trunk@2274 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/plugins.php | 7 ++++++- views/default/admin/plugins_opt/plugin.php | 20 +++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) (limited to 'views/default') diff --git a/views/default/admin/plugins.php b/views/default/admin/plugins.php index 449c86d11..cc96b40f8 100644 --- a/views/default/admin/plugins.php +++ b/views/default/admin/plugins.php @@ -21,13 +21,18 @@ // Get the installed plugins $installed_plugins = $vars['installed_plugins']; $count = count($installed_plugins); + + $plugin_list = get_plugin_list(); + $max = 0; + foreach($plugin_list as $key => $foo) + if ($key > $max) $max = $key; // Display list of plugins $n = 0; foreach ($installed_plugins as $plugin => $data) { //if (($n>=$offset) && ($n < $offset+$limit)) - echo elgg_view("admin/plugins_opt/plugin", array('plugin' => $plugin, 'details' => $data)); + echo elgg_view("admin/plugins_opt/plugin", array('plugin' => $plugin, 'details' => $data, 'maxorder' => $max, 'order' => array_search($plugin, $plugin_list))); $n++; } diff --git a/views/default/admin/plugins_opt/plugin.php b/views/default/admin/plugins_opt/plugin.php index 21032b33d..b74d9bc25 100644 --- a/views/default/admin/plugins_opt/plugin.php +++ b/views/default/admin/plugins_opt/plugin.php @@ -23,7 +23,25 @@ $ts = time(); $token = generate_action_token($ts); ?> -
"> +
"> +
+ 10) { +?> + + + + + + + +
-- cgit v1.2.3