aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/widgets
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-01 00:57:18 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-01 00:57:18 +0000
commitad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a (patch)
tree31318b4d53199abede8b03a47b1ff79add545ea3 /mod/groups/views/default/widgets
parent3bda294ee00663362db778fef320f866bc3a28e5 (diff)
downloadelgg-ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a.tar.gz
elgg-ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a.tar.bz2
Fixes #2555 content.php is the new display view for widgets
git-svn-id: http://code.elgg.org/elgg/trunk@7484 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/widgets')
-rw-r--r--mod/groups/views/default/widgets/a_users_groups/content.php (renamed from mod/groups/views/default/widgets/a_users_groups/view.php)0
-rw-r--r--mod/groups/views/default/widgets/group_entities_widget/edit.php19
-rw-r--r--mod/groups/views/default/widgets/group_entities_widget/view.php31
-rw-r--r--mod/groups/views/default/widgets/group_members_widget/edit.php19
-rw-r--r--mod/groups/views/default/widgets/group_members_widget/view.php31
5 files changed, 0 insertions, 100 deletions
diff --git a/mod/groups/views/default/widgets/a_users_groups/view.php b/mod/groups/views/default/widgets/a_users_groups/content.php
index 462ac419c..462ac419c 100644
--- a/mod/groups/views/default/widgets/a_users_groups/view.php
+++ b/mod/groups/views/default/widgets/a_users_groups/content.php
diff --git a/mod/groups/views/default/widgets/group_entities_widget/edit.php b/mod/groups/views/default/widgets/group_entities_widget/edit.php
deleted file mode 100644
index bd78d2940..000000000
--- a/mod/groups/views/default/widgets/group_entities_widget/edit.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
- /**
- * Edit the widget
- *
- * @package ElggGroups
- */
-?>
-<p>
- <?php echo elgg_echo('groups:widgets:entities:label:displaynum'); ?>
-
- <select name="params[limit]">
- <option value="5" <?php if ($vars['entity']->limit == 5) echo " selected=\"yes\" "; ?>>5</option>
- <option value="8" <?php if ((!$vars['entity']->limit) || ($vars['entity']->limit == 8)) echo " selected=\"yes\" "; ?>>8</option>
- <option value="12" <?php if ($vars['entity']->limit == 12) echo " selected=\"yes\" "; ?>>12</option>
- <option value="15" <?php if ($vars['entity']->limit == 15) echo " selected=\"yes\" "; ?>>15</option>
- </select>
-
- <input type="hidden" name="params[group_guid]" value="<?php echo get_input('group_guid'); ?>" />
-</p> \ No newline at end of file
diff --git a/mod/groups/views/default/widgets/group_entities_widget/view.php b/mod/groups/views/default/widgets/group_entities_widget/view.php
deleted file mode 100644
index 629dee85e..000000000
--- a/mod/groups/views/default/widgets/group_entities_widget/view.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
- /**
- * View the widget
- *
- * @package ElggGroups
- */
-
- $group_guid = get_input('group_guid');
- $limit = get_input('limit', 8);
- $offset = 0;
-
- if ($vars['entity']->limit)
- $limit = $vars['entity']->limit;
-
- $group_guid = $vars['entity']->group_guid;
-
- if ($group_guid)
- {
- $group = get_entity($group_guid);
- $members = $group->getMembers($limit, $offset);
- $count = $group->getMembers($limit, $offset, true);
-
- $result = list_entities_groups("", 0, $group_guid, $limit);
- }
- else
- {
- $result = elgg_echo('groups:widgets:entities:label:pleaseedit');
- }
-
- echo $result;
-?> \ No newline at end of file
diff --git a/mod/groups/views/default/widgets/group_members_widget/edit.php b/mod/groups/views/default/widgets/group_members_widget/edit.php
deleted file mode 100644
index 58f8807d8..000000000
--- a/mod/groups/views/default/widgets/group_members_widget/edit.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
- /**
- * Edit the widget
- *
- * @package ElggGroups
- */
-?>
-<p>
- <?php echo elgg_echo('groups:widgets:members:label:displaynum'); ?>
-
- <select name="params[limit]">
- <option value="5" <?php if ($vars['entity']->limit == 5) echo " selected=\"yes\" "; ?>>5</option>
- <option value="8" <?php if ((!$vars['entity']->limit) || ($vars['entity']->limit == 8)) echo " selected=\"yes\" "; ?>>8</option>
- <option value="12" <?php if ($vars['entity']->limit == 12) echo " selected=\"yes\" "; ?>>12</option>
- <option value="15" <?php if ($vars['entity']->limit == 15) echo " selected=\"yes\" "; ?>>15</option>
- </select>
-
- <input type="hidden" name="params[group_guid]" value="<?php echo get_input('group_guid'); ?>" />
-</p> \ No newline at end of file
diff --git a/mod/groups/views/default/widgets/group_members_widget/view.php b/mod/groups/views/default/widgets/group_members_widget/view.php
deleted file mode 100644
index 6dd99717b..000000000
--- a/mod/groups/views/default/widgets/group_members_widget/view.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
- /**
- * View the widget
- *
- * @package ElggGroups
- */
-
- $group_guid = get_input('group_guid');
- $limit = get_input('limit', 8);
- $offset = 0;
-
- if ($vars['entity']->limit)
- $limit = $vars['entity']->limit;
-
- $group_guid = $vars['entity']->group_guid;
-
- if ($group_guid)
- {
- $group = get_entity($group_guid);
- $members = $group->getMembers($limit, $offset);
- $count = $group->getMembers($limit, $offset, true);
-
- $result = elgg_view_entity_list($members, $count, $offset, $limit, false, false, false);
- }
- else
- {
- $result = elgg_echo('groups:widgets:members:label:pleaseedit');
- }
-
- echo $result;
-?> \ No newline at end of file