aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/widget/elements/settings.php
blob: 25cda58c9952f28491b59d769cfafa454d4a0093 (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
<?php
/**
 * Elgg widget edit settings
 *
 * @uses $vars['widget']
 */

$widget = elgg_extract('widget', $vars);

// not using elgg_view_form() so that we can detect if the form is empty
$form_body = elgg_view('forms/widgets/save', $vars);
if (!$form_body) {
	return true;
}

$form = elgg_view('input/form', array(
	'action' => 'action/widgets/save',
	'body' => $form_body,
	'class' => 'elgg-form-widgets-save',
));
?>

<div class="elgg-widget-edit" id="widget-edit-<?php echo $widget->guid; ?>">
	<?php echo $form; ?>
</div>