From ad6e04d0bbf812dfe048f1fdbde7aa5c787b6d1a Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 1 Dec 2010 00:57:18 +0000 Subject: 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 --- .../default/widgets/a_users_groups/content.php | 54 ++++++++++++++++++++++ .../views/default/widgets/a_users_groups/view.php | 54 ---------------------- 2 files changed, 54 insertions(+), 54 deletions(-) create mode 100644 mod/groups/views/default/widgets/a_users_groups/content.php delete mode 100644 mod/groups/views/default/widgets/a_users_groups/view.php (limited to 'mod/groups/views/default/widgets/a_users_groups') diff --git a/mod/groups/views/default/widgets/a_users_groups/content.php b/mod/groups/views/default/widgets/a_users_groups/content.php new file mode 100644 index 000000000..462ac419c --- /dev/null +++ b/mod/groups/views/default/widgets/a_users_groups/content.php @@ -0,0 +1,54 @@ +num_display; +if (!$number) { + $number = 4; +} + +//the page owner +$owner = $vars['entity']->owner_guid; + +$groups = elgg_get_entities_from_relationship(array( + 'relationship' => 'member', + 'relationship_guid' => $owner, + 'types' => 'group', + 'limit' => $number, +)); + + +if ($groups) { + + echo "
"; + + foreach ($groups as $group) { + $icon = elgg_view( + "groups/icon", array( + 'entity' => $group, + 'size' => 'small', + ) + ); + + $group_link = $group->getURL(); + + echo <<<___END + +
+ $icon +
+

+ $group->name
+ $group->briefdescription +

+
+
+
+___END; + + } + echo "
"; +} diff --git a/mod/groups/views/default/widgets/a_users_groups/view.php b/mod/groups/views/default/widgets/a_users_groups/view.php deleted file mode 100644 index 462ac419c..000000000 --- a/mod/groups/views/default/widgets/a_users_groups/view.php +++ /dev/null @@ -1,54 +0,0 @@ -num_display; -if (!$number) { - $number = 4; -} - -//the page owner -$owner = $vars['entity']->owner_guid; - -$groups = elgg_get_entities_from_relationship(array( - 'relationship' => 'member', - 'relationship_guid' => $owner, - 'types' => 'group', - 'limit' => $number, -)); - - -if ($groups) { - - echo "
"; - - foreach ($groups as $group) { - $icon = elgg_view( - "groups/icon", array( - 'entity' => $group, - 'size' => 'small', - ) - ); - - $group_link = $group->getURL(); - - echo <<<___END - -
- $icon -
-

- $group->name
- $group->briefdescription -

-
-
-
-___END; - - } - echo "
"; -} -- cgit v1.2.3