getMembers(9999); $usernames = array(); foreach ($group_members as $key => $group_member) { $usernames[] = $group_member->guid; } $sort_val = "created"; //default sort term if ( get_input('sortValue') ) { $sort_val = get_input('sortValue'); $_SESSION['sortTerm'] = $sort_val; } else if ( $_SESSION['sortTerm'] ) { $sort_val = $_SESSION['sortTerm']; } $ids = getCommunityResources($usernames, $sort_val); /*translation:Group members materials*/ $title = elgg_echo("koolielu:title_group_members_materials"); $area2 = "

" . $title . "

"; //$area2 .= waramu_list_resources($ids); $sort_vals = array('created', 'download', 'favorites', 'title'); $area2 .= elgg_view('object/listing_header',array('ids'=>$ids, 'sort_val'=>$sort_val, 'sort_vals'=>$sort_vals, 'show_count'=>1)); $body = elgg_view_layout('two_column_left_sidebar',$area1, $area2); // Finally draw the page page_draw($title, $body); ?>