aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-29 10:54:55 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-29 10:54:55 +0000
commit6bc7f1598dcb73d9140dda024713a3ea5b3e53ec (patch)
tree517925c74bdf81fb412c05073ae108d2046f41aa /mod/profile/views/default
parent429e9ff0b20c0a591fdda40c84b76189289892e9 (diff)
downloadelgg-6bc7f1598dcb73d9140dda024713a3ea5b3e53ec.tar.gz
elgg-6bc7f1598dcb73d9140dda024713a3ea5b3e53ec.tar.bz2
changed the friends list view order
git-svn-id: https://code.elgg.org/elgg/trunk@1202 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default')
-rw-r--r--mod/profile/views/default/profile/listing.php21
1 files changed, 11 insertions, 10 deletions
diff --git a/mod/profile/views/default/profile/listing.php b/mod/profile/views/default/profile/listing.php
index 6ec180051..09a944acf 100644
--- a/mod/profile/views/default/profile/listing.php
+++ b/mod/profile/views/default/profile/listing.php
@@ -11,6 +11,16 @@
*
* @uses $vars['entity'] The user entity
*/
+
+ //grab the users status message with metadata 'state' set to current if it 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));
+ }
+
+ }
+
$icon = elgg_view(
"profile/icon", array(
@@ -19,22 +29,13 @@
)
);
- $info = "<p><b><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->name . "</a></b></p>";
+ $info .= "<p><b><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->name . "</a></b></p>";
$location = $vars['entity']->location;
if (!empty($location)) {
$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