X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fgroups.php;h=39dc2232bc5d82574b658b22883d8e831f11c531;hb=f87ef9b72b8e054296a3fd37c74f07af5f6a6c38;hp=154976f212b35321f14f4d48044ea9b922b337c6;hpb=8942e3a445d6e4965fc46e08cb90bbfed17cd56a;p=quix0rs-gnu-social.git diff --git a/actions/groups.php b/actions/groups.php index 154976f212..39dc2232bc 100644 --- a/actions/groups.php +++ b/actions/groups.php @@ -51,6 +51,11 @@ class GroupsAction extends Action var $page = null; var $profile = null; + function isReadOnly() + { + return true; + } + function title() { if ($this->page == 1) { @@ -95,9 +100,11 @@ class GroupsAction extends Action function showContent() { + $this->elementStart('p', array('id' => 'new_group')); $this->element('a', array('href' => common_local_url('newgroup'), - 'id' => 'new_group'), + 'class' => 'more'), _('Create a new group')); + $this->elementEnd('p'); $offset = ($this->page-1) * GROUPS_PER_PAGE; $limit = GROUPS_PER_PAGE + 1; @@ -114,4 +121,12 @@ class GroupsAction extends Action $this->pagination($this->page > 1, $cnt > GROUPS_PER_PAGE, $this->page, 'groups'); } + + function showSections() + { + $gbp = new GroupsByPostsSection($this); + $gbp->show(); + $gbm = new GroupsByMembersSection($this); + $gbm->show(); + } }