aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/widgets/filerepo/edit.php
blob: 695d16afc6aacbbcc2a8a15fa7c9d54c45ecfa14 (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 file widget edit view
 *
 * @package ElggFile
 */


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

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

?>
<p>
	<?php echo elgg_echo('file:num_files'); ?>:
	<?php echo $dropdown; ?>
</p>