aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/new_users/edit.php
blob: 78c8941ada6ab1890c1f03652c292d9d93d16a9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * New users widget edit view
 */


// set default value
if (!isset($vars['entity']->num_display)) {
	$vars['entity']->num_display = 5;
}

$params = array(
	'internalname' => 'params[num_display]',
	'value' => $vars['entity']->num_display,
	'options' => array(5, 8, 10, 12, 15, 20),
);
$dropdown = elgg_view('input/pulldown', $params);

?>
<p>
	<?php echo elgg_echo('widget:numbertodisplay'); ?>:
	<?php echo $dropdown; ?>
</p>