From 22afb49f30fc9bcd6be84f734e89a9b644f2fb0f Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 26 Nov 2011 14:08:38 -0500 Subject: updated widgets for 1.8 --- views/default/widgets/latest_photos/edit.php | 29 ++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'views/default/widgets/latest_photos/edit.php') 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 @@ -

-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); + ?> - -

\ No newline at end of file +
+ : + +
-- cgit v1.2.3