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_opt | |
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_opt')
-rw-r--r-- | views/default/usersettings/plugins_opt/plugin.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/views/default/usersettings/plugins_opt/plugin.php b/views/default/usersettings/plugins_opt/plugin.php new file mode 100644 index 000000000..228245efd --- /dev/null +++ b/views/default/usersettings/plugins_opt/plugin.php @@ -0,0 +1,38 @@ +<?php + /** + * Elgg plugin manifest class + * + * This file renders a plugin for the admin screen, including active/deactive, manifest details & display plugin + * 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/ + */ + + + $plugin = $vars['plugin']; + $details = $vars['details']; + + $active = $details['active']; + $manifest = $details['manifest']; + + $user_guid = $details['user_guid']; + if ($user_guid) $user_guid = $_SESSION['user']->guid; +?> +<div id="plugin_details" class="<?php if ($active) echo "active"; else "not-active" ?>"> + <div><h2><?php echo $plugin; ?></h2></div> + + <?php if ($manifest) { ?> + <div><?php echo $manifest['description'] ?></div> + <?php } ?> + + <?php if (elgg_view("usersettings/{$plugin}/edit")) { ?> + <div id="<?php echo $plugin; ?>_settings"> + <?php echo elgg_view("object/plugin", array('plugin' => $plugin, 'entity' => find_plugin_usersettings($plugin, $user_guid), 'prefix' => 'user')) ?> + </div> + <?php } ?> +</div>
\ No newline at end of file |