From e8a817730760c99278348b01a3f64a77776d8f16 Mon Sep 17 00:00:00 2001 From: Jerome Bakker Date: Fri, 11 Nov 2011 14:41:53 +0100 Subject: [PATCH] added: group status (open/closed) in owner_block and group stats --- manifest.xml | 1 + start.php | 5 +++++ views/default/group_tools/css.php | 4 ++++ views/default/group_tools/group_stats.php | 17 +++++++++++++++++ views/default/group_tools/owner_block.php | 17 +++++++++++++++++ 5 files changed, 44 insertions(+) create mode 100644 views/default/group_tools/group_stats.php create mode 100644 views/default/group_tools/owner_block.php diff --git a/manifest.xml b/manifest.xml index 4a8ced84..de94bbce 100644 --- a/manifest.xml +++ b/manifest.xml @@ -64,6 +64,7 @@ Version History x.x: - added: activity filter in group river widget - added: group listing filter: open and closed + - added: group status (open/closed) in owner_block and group stats - changed: group search listing 1.7 (2011-10-17): diff --git a/start.php b/start.php index e2a3e7b4..0e93c8e8 100644 --- a/start.php +++ b/start.php @@ -55,6 +55,11 @@ function group_tools_init(){ // show group edit as tabbed elgg_extend_view("forms/groups/edit", "group_tools/group_edit_tabbed", 1); + + // show group status in owner block + elgg_extend_view("owner_block/extend", "group_tools/owner_block"); + // show group status in stats (on group profile) + elgg_extend_view("groups/groupprofile", "group_tools/group_stats"); } if(isadminloggedin()){ diff --git a/views/default/group_tools/css.php b/views/default/group_tools/css.php index 88c9f621..0c13b324 100644 --- a/views/default/group_tools/css.php +++ b/views/default/group_tools/css.php @@ -83,4 +83,8 @@ #group_tools_mail_member_selection { display: none; +} + +#group_tools_group_status { + font-weight: normal; } \ No newline at end of file diff --git a/views/default/group_tools/group_stats.php b/views/default/group_tools/group_stats.php new file mode 100644 index 00000000..fe54156d --- /dev/null +++ b/views/default/group_tools/group_stats.php @@ -0,0 +1,17 @@ +membership == ACCESS_PUBLIC){ + $status = elgg_echo("groups:open"); + } else { + $status = elgg_echo("groups:closed"); + } + + $status = ucfirst($status); + + ?> + + membership == ACCESS_PUBLIC){ + $status = elgg_echo("groups:open"); + } else { + $status = elgg_echo("groups:closed"); + } + + $status = ucfirst($status); + + ?> + +