aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/event_calendar/edit.php
blob: 716920c8ab50812f8239b3cb3e3703603123dc04 (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
<?php

/**
 * Elgg event_calendar group widget
 *
 * @package event_calendar
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
 * @author Kevin Jardine <kevin@radagast.biz>
 * @copyright Radagast Solutions 2008
 * @link http://radagast.biz/
 *
 */

if (!$vars['entity']->num_display) {
	$num_display = 5;
} else {
	$num_display = $vars['entity']->num_display;
}
?>

<p>
		<?php echo elgg_echo("event_calendar:num_display"); ?>:
		<select name="params[num_display]">
			<option value="1" <?php if($num_display == 1) echo "SELECTED"; ?>>1</option>
			<option value="2" <?php if($num_display == 2) echo "SELECTED"; ?>>2</option>
			<option value="3" <?php if($num_display == 3) echo "SELECTED"; ?>>3</option>
			<option value="4" <?php if($num_display == 4) echo "SELECTED"; ?>>4</option>
			<option value="5" <?php if($num_display == 5) echo "SELECTED"; ?>>5</option>
			<option value="6" <?php if($num_display == 6) echo "SELECTED"; ?>>6</option>
			<option value="7" <?php if($num_display == 7) echo "SELECTED"; ?>>7</option>
			<option value="8" <?php if($num_display == 8) echo "SELECTED"; ?>>8</option>
			<option value="9" <?php if($num_display == 9) echo "SELECTED"; ?>>9</option>
			<option value="10" <?php if($num_display == 10) echo "SELECTED"; ?>>10</option>
		</select>
</p>