diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-11 21:57:33 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-11 21:57:33 +0000 |
commit | e7b9401e4e918ec7c4a442e2acb3fb48926e90a9 (patch) | |
tree | 3450eca9500facc192da0fd1373898962ae6fe8f /mod/profile/views/default/profile/profile_contents/friends.php | |
parent | 9cff8b2cbf16d11fe0861229347edf5e62dac2b5 (diff) | |
download | elgg-e7b9401e4e918ec7c4a442e2acb3fb48926e90a9.tar.gz elgg-e7b9401e4e918ec7c4a442e2acb3fb48926e90a9.tar.bz2 |
Some code cleanup on profile plugin.
Added wrapper view for profile content.
Added ECML for profile content.
Moved profile/profile_content/sidebar to profile/sidebar
git-svn-id: http://code.elgg.org/elgg/trunk@6464 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default/profile/profile_contents/friends.php')
-rwxr-xr-x | mod/profile/views/default/profile/profile_contents/friends.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/mod/profile/views/default/profile/profile_contents/friends.php b/mod/profile/views/default/profile/profile_contents/friends.php index a097f3830..9195629e5 100755 --- a/mod/profile/views/default/profile/profile_contents/friends.php +++ b/mod/profile/views/default/profile/profile_contents/friends.php @@ -3,13 +3,10 @@ * Profile friends **/ -$friends = list_entities_from_relationship('friend',$vars['entity']->getGUID(),false,'user','',0,10,false); -if(!$friends) - $friends = "<p>This user has not made any friends yet.</p>"; +$friends = list_entities_from_relationship('friend', $vars['entity']->getGUID(), FALSE, 'user', '', 0, 10, FALSE); -?> -<div id="profile_content"> - <?php - echo $friends; - ?> -</div>
\ No newline at end of file +if(!$friends) { + $friends = '<p>' . elgg_echo('profile:no_friends') . '</p>'; +} + +echo $friends;
\ No newline at end of file |