aboutsummaryrefslogtreecommitdiff
path: root/mod/file/index.php
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-15 18:07:38 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-15 18:07:38 +0000
commit451b29b0f5fef1f41b209c51b57d6362c13696a1 (patch)
tree28e45d071a26d0306dd845e9b5085149aed00f6b /mod/file/index.php
parentaa55192c5e2347e31a905d4e218477dd1e0ff333 (diff)
downloadelgg-451b29b0f5fef1f41b209c51b57d6362c13696a1.tar.gz
elgg-451b29b0f5fef1f41b209c51b57d6362c13696a1.tar.bz2
Updated File mod to new UI.
git-svn-id: http://code.elgg.org/elgg/trunk@5409 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/index.php')
-rw-r--r--mod/file/index.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/file/index.php b/mod/file/index.php
index af3d4c471..e05f98eb2 100644
--- a/mod/file/index.php
+++ b/mod/file/index.php
@@ -20,11 +20,11 @@
//set the title
if (page_owner() == get_loggedin_userid()) {
$title = elgg_echo('file:yours');
+ $area1 = elgg_view('page_elements/content_header', array('context' => "mine", 'type' => 'file'));
} else {
$title = sprintf(elgg_echo("file:user"),page_owner_entity()->name);
+ $area1 = elgg_view('page_elements/content_header', array('context' => "friends", 'type' => 'file'));
}
-
- $area2 = elgg_view_title($title);
// Get objects
set_context('search');
@@ -33,12 +33,12 @@
set_context('file');
$get_filter = get_filetype_cloud(page_owner());
if ($get_filter) {
- $area1 = $get_filter;
+ $area1 .= $get_filter;
} else {
- $area2 .= elgg_view('page_elements/contentwrapper',array('body' => elgg_echo("file:none")));
+ $area2 .= "<p class='margin_top'>".elgg_echo("file:none")."</p>";
}
-
- $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
+ $content = "<div class='files'>".$area1.$area2."</div>";
+ $body = elgg_view_layout('one_column_with_sidebar', $content);
page_draw($title, $body);
?> \ No newline at end of file