diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-28 13:58:50 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-28 13:58:50 +0000 |
commit | 28d9fe85d1c5549c333c04821d0c539c2c2d1fbd (patch) | |
tree | e34ff69ed47d358a2fa5c57276d20d70a6d260f6 /mod/profile/views | |
parent | 7589d09cf808a2f4106ac6aac30dcea079831726 (diff) | |
download | elgg-28d9fe85d1c5549c333c04821d0c539c2c2d1fbd.tar.gz elgg-28d9fe85d1c5549c333c04821d0c539c2c2d1fbd.tar.bz2 |
added user status to the friends view
git-svn-id: https://code.elgg.org/elgg/trunk@1198 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views')
-rw-r--r-- | mod/profile/views/default/profile/listing.php | 9 |
1 files changed, 9 insertions, 0 deletions
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 .= "<p>" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "</p>";
}
+ //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 |