aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/views/default/widgets/river_widget/edit.php
blob: 7ec44b38c1f6768de48eee0e1f235ed0a1fea1c2 (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
	/**
	 * Edit the widget
	 * 
	 * @package ElggRiver
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider Ltd
	 * @copyright Curverider Ltd 2008-2009
	 * @link http://elgg.com/
	 */
	 
	if(!$vars['entity']->content_type)
		$content_type = 'mine';
	else
		$content_type = $vars['entity']->content_type;

		
?>
<p>
	<?php echo elgg_echo('river:widget:label:displaynum'); ?>
	
	<select name="params[num_display]">
		<option value="5" <?php if ($vars['entity']->num_display == 5) echo " selected=\"yes\" "; ?>>5</option>
		<option value="8" <?php if (($vars['entity']->num_display == 8)) echo " selected=\"yes\" "; ?>>8</option>
		<option value="12" <?php if ($vars['entity']->num_display == 12) echo " selected=\"yes\" "; ?>>12</option>
		<option value="15" <?php if ($vars['entity']->num_display == 15) echo " selected=\"yes\" "; ?>>15</option>
	</select>
</p>
<p>	
	<?php echo elgg_echo('river:widget:type'); ?>
	
	<select name="params[content_type]">
		<option value="mine" <?php if ($content_type == 'mine') echo " selected=\"yes\" "; ?>><?php echo elgg_echo("river:widgets:mine");?></option>
		<option value="friends" <?php if ($content_type != 'mine') echo " selected=\"yes\" "; ?>><?php echo elgg_echo("river:widgets:friends");?></option>
	</select>
</p>