From 44fedcf732370708395227b3fd89cb336389ec8e Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 20 Jun 2008 15:11:42 +0000 Subject: Closes #20: Plugin management and config panel http://trac.elgg.org/elgg/ticket/20 git-svn-id: https://code.elgg.org/elgg/trunk@1027 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/plugins.php | 30 ++++++++++++++++--- views/default/admin/plugins_opt/plugin.php | 46 ++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 views/default/admin/plugins_opt/plugin.php (limited to 'views/default/admin') diff --git a/views/default/admin/plugins.php b/views/default/admin/plugins.php index f5de338fc..5c8f7d1dd 100644 --- a/views/default/admin/plugins.php +++ b/views/default/admin/plugins.php @@ -14,9 +14,31 @@ // Description of what's going on echo "

" . nl2br(elgg_echo("admin:plugins:description")) . "

"; + $limit = get_input('limit', 10); + $offset = get_input('offset', 0); -?> - TODO: Writeme - add automatic plugin config - Enable/disable is system level thing. - Config is a link to a config/PLUGINNAME/view ...? with the plugin registering a config action? + // Get the installed plugins + $installed_plugins = $vars['installed_plugins']; + $count = count($installed_plugins); + + // 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)); + + $n++; + } + + // Diplay nav + if ($count) + { + elgg_view('navigation/pagination',array( + 'baseurl' => $_SERVER['REQUEST_URI'], + 'offset' => $offset, + 'count' => $count, + )); + } +?> \ No newline at end of file diff --git a/views/default/admin/plugins_opt/plugin.php b/views/default/admin/plugins_opt/plugin.php new file mode 100644 index 000000000..58bde4d67 --- /dev/null +++ b/views/default/admin/plugins_opt/plugin.php @@ -0,0 +1,46 @@ + +
"> +

+ + +
+
+
+
+ + + +
+ $plugin_object)) ?> +
+ + +
+ + + + + +
+
\ No newline at end of file -- cgit v1.2.3