diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-15 18:07:38 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-15 18:07:38 +0000 |
commit | 451b29b0f5fef1f41b209c51b57d6362c13696a1 (patch) | |
tree | 28e45d071a26d0306dd845e9b5085149aed00f6b /mod/file/friends.php | |
parent | aa55192c5e2347e31a905d4e218477dd1e0ff333 (diff) | |
download | elgg-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/friends.php')
-rw-r--r-- | mod/file/friends.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/mod/file/friends.php b/mod/file/friends.php index 71dd2b10a..eff4a4aa0 100644 --- a/mod/file/friends.php +++ b/mod/file/friends.php @@ -17,23 +17,21 @@ $owner = page_owner_entity(); $title = sprintf(elgg_echo("file:friends"),$owner->name); - - $area2 = elgg_view_title($title); - + $area1 = elgg_view('page_elements/content_header', array('context' => "friends", 'type' => 'file')); set_context('search'); // offset is grabbed in list_user_friends_objects $content = list_user_friends_objects($owner->guid, 'file', 10, false); set_context('file'); - $area1 = get_filetype_cloud($owner->guid, true); + $area1 .= get_filetype_cloud($owner->guid, true); // handle case where friends don't have any files if (empty($content)) { - $area2 .= elgg_view('page_elements/contentwrapper',array('body' => elgg_echo("file:none"))); + $area2 .= "<p class='margin_top'>".elgg_echo("file:none")."</p>"; } else { $area2 .= $content; } - - $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 |