diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 16:27:05 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 16:27:05 +0000 |
commit | 737394eb15a2ef0c1f5a085d7f5958d2f3e66b89 (patch) | |
tree | d3d3d9f880e9ffd63b73d9f3ab83c1ce0fda825f /views/default/usersettings/plugins.php | |
parent | dc28ff0bed2216d97e24b1286c68190c843cb684 (diff) | |
download | elgg-737394eb15a2ef0c1f5a085d7f5958d2f3e66b89.tar.gz elgg-737394eb15a2ef0c1f5a085d7f5958d2f3e66b89.tar.bz2 |
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
Diffstat (limited to 'views/default/usersettings/plugins.php')
-rw-r--r-- | views/default/usersettings/plugins.php | 43 |
1 files changed, 43 insertions, 0 deletions
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 @@ +<?php + /** + * Elgg plugin specific user settings. + * + * @package Elgg + * @subpackage Core + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Marcus Povey + * @copyright Curverider Ltd 2008 + * @link http://elgg.org/ + */ + + // Description of what's going on + echo "<p>" . nl2br(elgg_echo("usersettings:plugins:description")) . "</p>"; + + $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 |