From 8f7a86ebae5f6fd3f64f976a83cfc6712e083c2a Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 29 Dec 2010 13:35:16 +0000 Subject: starting to update the file plugin to use the new html/css git-svn-id: http://code.elgg.org/elgg/trunk@7737 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/world.php | 61 ++++++++++++++++++++++-------------------------------- 1 file changed, 25 insertions(+), 36 deletions(-) (limited to 'mod/file/world.php') diff --git a/mod/file/world.php b/mod/file/world.php index 3bacaad00..1b8f5f828 100644 --- a/mod/file/world.php +++ b/mod/file/world.php @@ -1,40 +1,29 @@ "everyone", 'type' => 'file')); - $area1 .= get_filetype_cloud(); // the filter - elgg_push_context('search'); - $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'limit' => $limit, 'offset' => $offset, 'full_view' => FALSE)); - elgg_pop_context(); +elgg_push_breadcrumb(elgg_echo('file')); - //get the latest comments on all files - $comments = get_annotations(0, "object", "file", "generic_comment", "", 0, 4, 0, "desc"); - $area3 = elgg_view('comments/latest', array('comments' => $comments)); - - $content = "
".$area1.$area2."
"; - $params = array( - 'content' => $content, - 'sidebar' => $area3 - ); - $body = elgg_view_layout('one_column_with_sidebar', $params); +$limit = get_input("limit", 10); - echo elgg_view_page($title, $body); +$title = elgg_echo('file:all'); + +elgg_push_context('search'); +$content = elgg_list_entities(array( + 'types' => 'object', + 'subtypes' => 'file', + 'limit' => $limit, + 'full_view' => FALSE +)); +elgg_pop_context(); + +$body = elgg_view_layout('content', array( + 'filter_context' => 'all', + 'content' => $content, + 'title' => $title, +)); + +echo elgg_view_page($title, $body); -- cgit v1.2.3