aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/settings/tools/plugin.php
blob: 50cc55b50a1b62e6d4f0ca25e48b4d78ffb11b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?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
 */


$plugin = $vars['plugin'];
$details = $vars['details'];

$active = $details['active'];
$manifest = $details['manifest'];

$user_guid = $details['user_guid'];
if ($user_guid) {
	$user_guid = get_loggedin_userid();
}

if (elgg_view("usersettings/{$plugin}/edit")) {
?>
<div class="elgg-module elgg-module-info">
	<div class="elgg-head">
		<h3><?php echo elgg_echo($plugin); ?></h3>
	</div>
	<div class="elgg-body">
		<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>
	</div>
</div>	
<?php
}