diff options
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 | 
