aboutsummaryrefslogtreecommitdiff
path: root/mod/file/index.php
diff options
context:
space:
mode:
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