aboutsummaryrefslogtreecommitdiff
path: root/views/default/usersettings/plugins_opt/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/usersettings/plugins_opt/plugin.php')
-rw-r--r--views/default/usersettings/plugins_opt/plugin.php38
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