label $actions = array(); if ($vars['entity']->canEdit()) { // breadcrumb trail elgg_push_breadcrumb(elgg_echo('groups:yours'), elgg_get_site_url()."pg/groups/member/{$user->username}"); // edit and invite $url = elgg_get_site_url() . "mod/groups/edit.php?group_guid={$vars['entity']->getGUID()}"; $actions[$url] = elgg_echo('groups:edit'); $url = elgg_get_site_url() . "mod/groups/invite.php?group_guid={$vars['entity']->getGUID()}"; $actions[$url] = elgg_echo('groups:invite'); } if ($vars['entity']->isMember($user)) { // breadcrumb trail elgg_push_breadcrumb(elgg_echo('groups:yours'), elgg_get_site_url()."pg/groups/member/{$user->username}"); // leave $url = elgg_get_site_url() . "action/groups/leave?group_guid={$vars['entity']->getGUID()}"; $url = elgg_add_action_tokens_to_url($url); $actions[$url] = elgg_echo('groups:leave'); } else { // join // admins can always join. if ($vars['entity']->isPublicMembership() || $vars['entity']->canEdit()) { $url = elgg_get_site_url() . "action/groups/join?group_guid={$vars['entity']->getGUID()}"; $url = elgg_add_action_tokens_to_url($url); $actions[$url] = elgg_echo('groups:join'); } else { // request membership $url = elgg_get_site_url() . "action/groups/joinrequest?group_guid={$vars['entity']->getGUID()}"; $url = elgg_add_action_tokens_to_url($url); $actions[$url] = elgg_echo('groups:joinrequest'); } } // build action buttons $action_buttons = ''; if (!empty($actions)) { $action_buttons = '
'; foreach ($actions as $url => $action) { $action_buttons .= "$action"; } $action_buttons .= '
'; } // display breadcrumb elgg_push_breadcrumb($vars['entity']->name); echo elgg_view('navigation/breadcrumbs'); // build and display header echo <<<__HTML

{$vars['entity']->name}

$action_buttons
__HTML; ?>
$vars['entity'], 'size' => 'large', )); ?>
" . elgg_echo("groups:owner") . ": owner_guid)->getURL() . "\">" . get_user($vars['entity']->owner_guid)->name . "

"; ?>

getMembers(0, 0, TRUE); echo elgg_echo('groups:members') . ": " . $count; ?>

group) && sizeof($vars['config']->group) > 0){ foreach($vars['config']->group as $shortname => $valtype) { if ($shortname != "name") { $value = $vars['entity']->$shortname; if (!empty($value)) { //This function controls the alternating class $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; } echo "

"; 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 "

"; } } } } ?>