getPrivateSetting("group_tools:cleanup:my_status") != "yes") { // membership status $is_member = $group->isMember($user); $is_owner = $group->getOwnerEntity() == $user; if ($is_owner) { elgg_register_menu_item("groups:my_status", array( "name" => "membership_status", "text" => elgg_echo("groups:my_status:group_owner"), "href" => "#" )); } elseif ($is_member) { elgg_register_menu_item("groups:my_status", array( "name" => "membership_status", "text" => elgg_echo("groups:my_status:group_member"), "href" => "#" )); } else { if ($group->getPrivateSetting("group_tools:cleanup:actions") != "yes") { elgg_register_menu_item("groups:my_status", array( "name" => "membership_status", "text" => elgg_echo("groups:join"), "href" => "action/groups/join?group_guid=" . $group->getGUID(), "is_action" => true )); } } // notification info if (elgg_is_active_plugin("notifications") && $is_member) { if ($subscribed) { elgg_register_menu_item("groups:my_status", array( "name" => "subscription_status", "text" => elgg_echo("groups:subscribed"), "href" => "notifications/group/$user->username", )); } else { elgg_register_menu_item("groups:my_status", array( "name" => "subscription_status", "text" => elgg_echo("groups:unsubscribed"), "href" => "notifications/group/$user->username" )); } } $body = elgg_view_menu("groups:my_status"); if (!empty($body)) { echo elgg_view_module("aside", elgg_echo("groups:my_status"), $body); } } }