From d2e9a0c7fae9d0c57dd8646aa6ef277f2e14b7fe Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 11 Sep 2011 08:30:04 -0400 Subject: Fixes #3340 adds group activity widget for the user dashboard --- .../views/default/widgets/group_activity/edit.php | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 mod/dashboard/views/default/widgets/group_activity/edit.php (limited to 'mod/dashboard/views/default/widgets/group_activity/edit.php') diff --git a/mod/dashboard/views/default/widgets/group_activity/edit.php b/mod/dashboard/views/default/widgets/group_activity/edit.php new file mode 100644 index 000000000..4e10f6ad4 --- /dev/null +++ b/mod/dashboard/views/default/widgets/group_activity/edit.php @@ -0,0 +1,45 @@ +getGroups("", 0); +$mygroups = array(); +if (!$vars['entity']->group_guid) { + $mygroups[0] = ''; +} +foreach ($groups as $group) { + $mygroups[$group->guid] = $group->name; +} +$params = array( + 'name' => 'params[group_guid]', + 'value' => $vars['entity']->group_guid, + 'options_values' => $mygroups, +); +$group_dropdown = elgg_view('input/dropdown', $params); +?> +
+ : + +
+num_display)) { + $vars['entity']->num_display = 8; +} + +$params = array( + 'name' => 'params[num_display]', + 'value' => $vars['entity']->num_display, + 'options' => array(5, 8, 10, 12, 15, 20), +); +$num_dropdown = elgg_view('input/dropdown', $params); + +?> +
+ : + +
+ -- cgit v1.2.3