canEdit()) { // breadcrumb trail elgg_push_breadcrumb(elgg_echo('groups:yours'), "{$vars['url']}pg/groups/member/{$user->username}"); // edit and invite $actions["mod/groups/edit.php?group_guid={$vars['entity']->getGUID()}"] = elgg_echo('groups:edit'); $actions["mod/groups/invite.php?group_guid={$vars['entity']->getGUID()}"] = elgg_echo('groups:invite'); } if ($vars['entity']->isMember($user)) { // breadcrumb trail elgg_push_breadcrumb(elgg_echo('groups:yours'), "{$vars['url']}pg/groups/member/{$user->username}"); // leave $url = elgg_add_action_tokens_to_url("action/groups/leave?group_guid={$vars['entity']->getGUID()}"); $actions[$url] = elgg_echo('groups:leave'); } else { // join // admins can always join. if ($vars['entity']->isPublicMembership() || $vars['entity']->canEdit()) { $url = elgg_add_action_tokens_to_url("action/groups/join?group_guid={$vars['entity']->getGUID()}"); $actions[$url] = elgg_echo('groups:join'); } else { // request membership $url = elgg_add_action_tokens_to_url("action/groups/joinrequest?group_guid={$vars['entity']->getGUID()}"); $actions[$url] = elgg_echo('groups:joinrequest'); } } /* */ // build action buttons $action_buttons = ''; if (!empty($actions)) { $action_buttons = '
'; } // display breadcrumb elgg_push_breadcrumb($vars['entity']->name); echo elgg_view('navigation/breadcrumbs'); // build and display header echo <<<__HTMLgetMembers(0, 0, TRUE); echo elgg_echo('groups:members') . ": " . $count; ?>
"; echo ""; echo elgg_echo("groups:{$shortname}"); echo ": "; $options = array( 'value' => $vars['entity']->$shortname ); if ($valtype == 'tags') { $options['tag_names'] = $shortname; } echo elgg_view("output/{$valtype}", $options); echo "
"; } } } } ?>