<div class="c38r"> <div class="subcr"> <?php if (!APP_user::isBWLoggedIn('NeedMore,Pending')) { // not logged in users cannot join groups echo $words->get('GroupsJoinLoginFirst'); } else { $model = new GroupsModel(); if ($this->member) { $memberId = $this->member->id; } else { $memberId = null; } switch ($model->getMembershipStatus($this->group, $memberId)) { case 'Kicked': // tell user he got banned echo $words->getSilent('GroupsBanned'); break; case 'WantToBeIn': // tell user he already applied but still needs to wait confirmation echo $words->getSilent('GroupsAlreadyApplied'); break; default: if (!$this->isGroupMember() and $this->group->Type == 'NeedAcceptance') { // tell user that application will be moderated echo $words->getSilent('GroupsJoinNeedAccept'); } if (!$this->isGroupMember()) { ?>