From 28d9fe85d1c5549c333c04821d0c539c2c2d1fbd Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 28 Jun 2008 13:58:50 +0000 Subject: added user status to the friends view git-svn-id: https://code.elgg.org/elgg/trunk@1198 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/profile/listing.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mod/profile') diff --git a/mod/profile/views/default/profile/listing.php b/mod/profile/views/default/profile/listing.php index 3b322f799..6ec180051 100644 --- a/mod/profile/views/default/profile/listing.php +++ b/mod/profile/views/default/profile/listing.php @@ -26,6 +26,15 @@ $info .= "

" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "

"; } + //grab the users status message with metadata 'state' set to current if one exists + if($get_status = get_entities_from_metadata("state", "current", "object", "status", $vars['entity']->guid)){ + + foreach($get_status as $s) { + $info .= elgg_view("status/friends_view", array('entity' => $s)); + } + + } + echo elgg_view_listing($icon, $info); ?> \ No newline at end of file -- cgit v1.2.3