From 451b29b0f5fef1f41b209c51b57d6362c13696a1 Mon Sep 17 00:00:00 2001 From: pete Date: Mon, 15 Mar 2010 18:07:38 +0000 Subject: Updated File mod to new UI. git-svn-id: http://code.elgg.org/elgg/trunk@5409 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/world.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mod/file/world.php') diff --git a/mod/file/world.php b/mod/file/world.php index 9f2ae5ee4..bd39d2a08 100644 --- a/mod/file/world.php +++ b/mod/file/world.php @@ -24,16 +24,18 @@ $title = elgg_echo('file:all'); // Get objects - $area2 = elgg_view_title($title); - $area1 = get_filetype_cloud(); // the filter + $area1 = elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'file')); + $area1 .= get_filetype_cloud(); // the filter set_context('search'); if ($tag != "") $area2 .= list_entities_from_metadata('tags',$tag,'object','file',0,10,false); else $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'limit' => 10, 'offset' => $offset, 'full_view' => FALSE)); set_context('file'); + + $content = "
".$area1.$area2."
"; - $body = elgg_view_layout('two_column_left_sidebar',$area1, $area2); + $body = elgg_view_layout('one_column_with_sidebar', $content); // Finally draw the page page_draw($title, $body); -- cgit v1.2.3