aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/profile_contents/friends.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views/default/profile/profile_contents/friends.php')
-rwxr-xr-xmod/profile/views/default/profile/profile_contents/friends.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/profile_contents/friends.php b/mod/profile/views/default/profile/profile_contents/friends.php
new file mode 100755
index 000000000..4fa290a7f
--- /dev/null
+++ b/mod/profile/views/default/profile/profile_contents/friends.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * 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>";
+
+?>
+<div id="profile_content">
+ <?php
+ echo $friends;
+ ?>
+</div>
+
+<div id="profile_sidebar">
+<?php
+ echo elgg_view('profile/profile_ownerblock', array('smallicon' => true));
+?>
+</div> \ No newline at end of file