guid; $url_to_wire = elgg_get_site_url() . "pg/thewire/" . $vars['entity']->username; //grab the user's latest from the wire $params = array( 'types' => 'object', 'subtypes' => 'thewire', 'owner_guid' => $owner, 'limit' => 1, ); $latest_wire = elgg_get_entities($params); if ($latest_wire) { foreach ($latest_wire as $lw) { $content = $lw->description; $time = "

(" . elgg_view_friendly_time($lw->time_created) . ")

"; } echo "
"; echo $content; if ($owner == get_loggedin_userid()) { $text = elgg_echo('thewire:update'); echo "$text"; } echo $time; echo "
"; }