From 88bcc7728c74ce93b4dd7dbb3cb5946fd5c66abc Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 13 Apr 2011 16:43:28 -0700 Subject: [PATCH] Add "create a new group" button to group directory --- plugins/Directory/actions/groupdirectory.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/plugins/Directory/actions/groupdirectory.php b/plugins/Directory/actions/groupdirectory.php index 9fee9ef59b..84819ad763 100644 --- a/plugins/Directory/actions/groupdirectory.php +++ b/plugins/Directory/actions/groupdirectory.php @@ -201,12 +201,30 @@ END_OF_INSTRUCTIONS; /** * Content area * - * Shows the list of popular notices + * Shows the groups * * @return void */ function showContent() { + if (common_logged_in()) { + $this->elementStart( + 'p', + array( + 'id' => 'new_group' + ) + ); + $this->element( + 'a', + array( + 'href' => common_local_url('newgroup'), + 'class' => 'more'), + // TRANS: Link to create a new group on the group list page. + _('Create a new group') + ); + $this->elementEnd('p'); + } + $this->showForm(); $this->elementStart('div', array('id' => 'profile_directory')); -- 2.39.5