aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/latest_photos/edit.php
blob: ac870c9f821909ef3249dc90687be492affb21aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Widget settings for latest photos
 */

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

$params = array(
	'name' => 'params[num_display]',
	'value' => $vars['entity']->num_display,
	'options' => array(3, 6, 9, 12),
);
$dropdown = elgg_view('input/dropdown', $params);

?>
<div>
	<?php echo elgg_echo('tidypics:widget:num_latest'); ?>:
	<?php echo $dropdown; ?>
</div>