aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/add.php
blob: 9687c5bea91f20321f196b0170f84454aa4748cc (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
<?php

$widgets = $vars['widgets'];
$widget_types = get_widget_types();

$context = $vars['context'];

?>
<div class="widgets_add hidden">
	<p>
		<?php echo elgg_echo('widgets:add:description'); ?>
	</p>
	<ul>
<?php
		foreach ($widget_types as $handler => $widget_type) {
			$options = array(
				'text' => $widget_type->name,
				'href' => '#',
				'internalid' => $handler,
			);
			$link = elgg_view('output/url', $options);
			echo "<li>$link</li>";
		}
?>
	</ul>
<?php
	$params = array(
		'internalname' => 'widget_context',
		'value' => $context
	);
	echo elgg_view('input/hidden', $params);
?>
	<div class="clearfloat"></div>
</div>