From: Zach Copley Date: Wed, 13 Apr 2011 23:43:28 +0000 (-0700) Subject: Add "create a new group" button to group directory X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=88bcc7728c74ce93b4dd7dbb3cb5946fd5c66abc;p=quix0rs-gnu-social.git Add "create a new group" button to group directory --- 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'));