From 5a6ecf982492cee7b01729295d1598caa921b95b Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 17 Feb 2009 16:39:20 +0000 Subject: new all groups view git-svn-id: https://code.elgg.org/elgg/trunk@2788 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/groups/featured.php | 9 +++++++ mod/groups/views/default/groups/find.php | 21 ++++++++++++++++ .../views/default/groups/group_sort_menu.php | 28 ++++++++++++++++++++++ mod/groups/views/default/groups/grouplisting.php | 12 ++++++++-- 4 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 mod/groups/views/default/groups/featured.php create mode 100644 mod/groups/views/default/groups/find.php create mode 100644 mod/groups/views/default/groups/group_sort_menu.php (limited to 'mod/groups/views/default') diff --git a/mod/groups/views/default/groups/featured.php b/mod/groups/views/default/groups/featured.php new file mode 100644 index 000000000..ab7691a0b --- /dev/null +++ b/mod/groups/views/default/groups/featured.php @@ -0,0 +1,9 @@ + + +

Featured groups

\ No newline at end of file diff --git a/mod/groups/views/default/groups/find.php b/mod/groups/views/default/groups/find.php new file mode 100644 index 000000000..3dc37dac0 --- /dev/null +++ b/mod/groups/views/default/groups/find.php @@ -0,0 +1,21 @@ + + + \ No newline at end of file diff --git a/mod/groups/views/default/groups/group_sort_menu.php b/mod/groups/views/default/groups/group_sort_menu.php new file mode 100644 index 000000000..957094ee6 --- /dev/null +++ b/mod/groups/views/default/groups/group_sort_menu.php @@ -0,0 +1,28 @@ + +
+ +
+
+ +
\ No newline at end of file diff --git a/mod/groups/views/default/groups/grouplisting.php b/mod/groups/views/default/groups/grouplisting.php index 3d0e1ce34..8d7e3c6d8 100644 --- a/mod/groups/views/default/groups/grouplisting.php +++ b/mod/groups/views/default/groups/grouplisting.php @@ -17,9 +17,17 @@ 'size' => 'small', ) ); - + + //get the membership type + $membership = $vars['entity']->membership; + if($membership == 2) + $mem = elgg_echo("groups:open"); + else + $mem = elgg_echo("groups:closed"); + + $info .= "
" . $mem . " / " . elgg_echo("groups:member") . " (" . get_group_members($vars['entity']->guid, 10, 0, 0, true) . ")
"; $info .= "

getUrl() . "\">" . $vars['entity']->name . "

"; - $info .= "

" . $vars['entity']->briefdescription . "

"; + $info .= "

" . $vars['entity']->description . "

"; // num users, last activity, owner etc -- cgit v1.2.3