aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/videolist/edit.php
blob: a2865848edaef7e364226e20baca6b7cf31a9464 (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
<?php
/**
 * Elgg video list widget edit
 *
 * @package ElggVideolist
 */

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

$params = array(
	'name' => 'params[videos_num]',
	'value' => $vars['entity']->videos_num,
	'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
);
$dropdown = elgg_view('input/dropdown', $params);

?>
<div>
	<?php echo elgg_echo('videolist:num_videos'); ?>:
	<?php echo $dropdown; ?>
</div>