aboutsummaryrefslogtreecommitdiff
path: root/mod/file/search.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/search.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/search.php')
-rw-r--r--mod/file/search.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/mod/file/search.php b/mod/file/search.php
index ea85e862d..9907b02e3 100644
--- a/mod/file/search.php
+++ b/mod/file/search.php
@@ -50,14 +50,18 @@
if (empty($tag)) {
$title = elgg_echo('file:type:all');
$area2 = elgg_view_title(elgg_echo('file:type:all'));
+ $area2 = elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'file'));
} else {
$title = sprintf(elgg_echo('searchtitle'),$tag);
if (is_array($owner_guid)) {
- $area2 = elgg_view_title(elgg_echo("file:friends:type:" . $tag));
+ //$area2 = elgg_view_title(elgg_echo("file:friends:type:" . $tag));
+ $area2 = elgg_view('page_elements/content_header', array('context' => "friends", 'type' => 'file'));
} else if (page_owner() && page_owner() != $_SESSION['guid']) {
- $area2 = elgg_view_title(sprintf(elgg_echo("file:user:type:" . $tag),page_owner_entity()->name));
+ //$area2 = elgg_view_title(sprintf(elgg_echo("file:user:type:" . $tag),page_owner_entity()->name));
+ $area2 = elgg_view('page_elements/content_header', array('context' => "mine", 'type' => 'file'));
} else{
- $area2 = elgg_view_title(elgg_echo("file:type:" . $tag));
+ //$area2 = elgg_view_title(elgg_echo("file:type:" . $tag));
+ $area2 = elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'file'));
}
}
if ($friends) {
@@ -82,7 +86,9 @@
set_context("file");
- $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);