'; $c .= '
'; $c .= ''; $c .= '
'; $ids = array(); $user_guid = get_loggedin_user()->getGUID(); $sort_vals = array('created', 'title'); $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']; } $pon = true; if ( $filter == 'published' || !$filter ) { $ids = getUserPublishedResources($user_guid, $sort_val); $sort_vals = array('created', 'download', 'favorites', 'title'); } else if ( $filter == 'pending' ) { $ids = getUserPendingResources($user_guid, $sort_val); $pon = false; } else if ( $filter == 'rejected' ) { $ids = getUserRejectedResources($user_guid, $sort_val); $pon = false; } else if ( $filter == 'private' ) { $ids = getUserPrivateResources($user_guid, $sort_val); $pon = false; } $c .= "
"; $c .= elgg_view('object/listing_header', array('ids'=>$ids, 'sort_val'=>$sort_val, 'sort_vals'=>$sort_vals, 'show_count'=>1, 'show_koolielu'=>$pon )); $c .= "
"; $c .= ""; // contentWrapper } else { forward("pg/waramu/index"); } $body = elgg_view_layout('two_column_left_sidebar', "", $c); page_draw($title, $body); ?>