";
$tabbed_nav .= "
";
$tabbed_nav .= "";
$area2 .= $tabbed_nav;
if ($filter == 'time') {
$area2 .= list_entities("object","file",page_owner(),10);
} else if ($filter == 'author') {
$offset = get_input('offset', 0);
$files_count = koolielu_get_entities_by_author("object", "file", page_owner(), "LOWER(u.name) COLLATE utf8_bin asc", 10, $offset, true);
$files = koolielu_get_entities_by_author("object", "file", page_owner(), "LOWER(u.name) COLLATE utf8_bin asc", 10, $offset, false);
$area2 .= elgg_view_entity_list($files, $files_count, $offset, 10, false, false, true);
} else if ($filter == 'title') {
$offset = get_input('offset', 0);
$files_count = koolielu_get_entities("object", "file", page_owner(), "LOWER(title) COLLATE utf8_bin asc", 10, $offset, true);
$files = koolielu_get_entities("object", "file", page_owner(), "LOWER(title) COLLATE utf8_bin asc", 10, $offset, false);
$area2 .= elgg_view_entity_list($files, $files_count, $offset, 10, false, false, true);
}
} else {
$area2 .= list_entities("object","file",page_owner(),10);
}
set_context('file');
$get_filter = get_filetype_cloud(page_owner());
if($get_filter)
$area1 = $get_filter;
else
$area2 .= elgg_view('page_elements/contentwrapper',array('body' => elgg_echo("file:none")));
$body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
// Finally draw the page
page_draw(sprintf(elgg_echo("file:user"),page_owner_entity()->name), $body);
?>