aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/latest_photos/edit.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-26 14:08:38 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-26 14:08:38 -0500
commit22afb49f30fc9bcd6be84f734e89a9b644f2fb0f (patch)
tree1fba6c9db4b92e5fc9744ec82e8d218720c5de07 /views/default/widgets/latest_photos/edit.php
parent47bd8586910b1df3f29e2425572372e382b26f6a (diff)
downloadelgg-22afb49f30fc9bcd6be84f734e89a9b644f2fb0f.tar.gz
elgg-22afb49f30fc9bcd6be84f734e89a9b644f2fb0f.tar.bz2
updated widgets for 1.8
Diffstat (limited to 'views/default/widgets/latest_photos/edit.php')
-rw-r--r--views/default/widgets/latest_photos/edit.php29
1 files changed, 17 insertions, 12 deletions
diff --git a/views/default/widgets/latest_photos/edit.php b/views/default/widgets/latest_photos/edit.php
index 06693648d..ac870c9f8 100644
--- a/views/default/widgets/latest_photos/edit.php
+++ b/views/default/widgets/latest_photos/edit.php
@@ -1,17 +1,22 @@
-<p>
-<?php
-echo elgg_echo("tidypics:widget:num_latest") . ": ";
+<?php
+/**
+ * Widget settings for latest photos
+ */
-if ($vars['entity']->num_display == '') {
+// set default value
+if (!isset($vars['entity']->num_display)) {
$vars['entity']->num_display = 6;
}
+$params = array(
+ 'name' => 'params[num_display]',
+ 'value' => $vars['entity']->num_display,
+ 'options' => array(3, 6, 9, 12),
+);
+$dropdown = elgg_view('input/dropdown', $params);
+
?>
- <select name="params[num_display]">
- <option value="6" <?php if($vars['entity']->num_display == 6) echo "SELECTED"; ?>>6</option>
- <option value="9" <?php if($vars['entity']->num_display == 9) echo "SELECTED"; ?>>9</option>
- <option value="12" <?php if($vars['entity']->num_display == 12) echo "SELECTED"; ?>>12</option>
- <option value="15" <?php if($vars['entity']->num_display == 15) echo "SELECTED"; ?>>15</option>
- <option value="18" <?php if($vars['entity']->num_display == 18) echo "SELECTED"; ?>>18</option>
- </select>
-</p> \ No newline at end of file
+<div>
+ <?php echo elgg_echo('tidypics:widget:num_latest'); ?>:
+ <?php echo $dropdown; ?>
+</div>