From 737394eb15a2ef0c1f5a085d7f5958d2f3e66b89 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 23 Jun 2008 16:27:05 +0000 Subject: Refs #76: User settings page (to Elgg Classic standard). Committing some work before shutting down for the day. git-svn-id: https://code.elgg.org/elgg/trunk@1068 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/usersettings/plugins.php | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 views/default/usersettings/plugins.php (limited to 'views/default/usersettings/plugins.php') diff --git a/views/default/usersettings/plugins.php b/views/default/usersettings/plugins.php new file mode 100644 index 000000000..730950178 --- /dev/null +++ b/views/default/usersettings/plugins.php @@ -0,0 +1,43 @@ +" . nl2br(elgg_echo("usersettings:plugins:description")) . "

"; + + $limit = get_input('limit', 10); + $offset = get_input('offset', 0); + + + // 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("usersettings/plugins_opt/plugin", array('plugin' => $plugin, 'details' => $data)); + + $n++; + } + + // Diplay nav + if ($count) + { + echo elgg_view('navigation/pagination',array( + 'baseurl' => $_SERVER['REQUEST_URI'], + 'offset' => $offset, + 'count' => $count, + )); + } +?> \ No newline at end of file -- cgit v1.2.3