blob: 0ee794dca0cd0f0c4574bd3e57d880b5d8eebbfd (
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
35
36
|
<?php
/**
* Elgg file widget edit view
*
* @package ElggFile
*/
// set default value
if (!isset($vars['entity']->num_display)) {
$vars['entity']->num_display = 4;
}
?>
<p>
<?php echo elgg_echo("file:num_files"); ?>:
<select name="params[num_display]">
<?php
$options = array(1,2,3,4,5,6,7,8,9,10,15,20);
foreach ($options as $option) {
$selected = '';
if ($vars['entity']->num_display == $option) {
$selected = "selected='selected'";
}
echo " <option value='{$option}' $selected >{$option}</option>\n";
}
?>
</select>
</p>
<p>
<?php echo elgg_echo("file:gallery_list"); ?>?
<select name="params[gallery_list]">
<option value="1" <?php if($vars['entity']->gallery_list == 1) echo "SELECTED"; ?>><?php echo elgg_echo("file:list"); ?></option>
<option value="2" <?php if($vars['entity']->gallery_list == 2) echo "SELECTED"; ?>><?php echo elgg_echo("file:gallery"); ?></option>
</select>
</p>
|