From da90ff55725a9118ce6111ab2b6371650bf78ade Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 12 Feb 2011 22:41:25 +0000 Subject: a mostly completed port of JHU/APL wire plugin to 1.8 git-svn-id: http://code.elgg.org/elgg/trunk@8183 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/thewire/views/default/thewire/profile_status.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'mod/thewire/views/default/thewire/profile_status.php') diff --git a/mod/thewire/views/default/thewire/profile_status.php b/mod/thewire/views/default/thewire/profile_status.php index 29dc69329..9ff0c4d59 100644 --- a/mod/thewire/views/default/thewire/profile_status.php +++ b/mod/thewire/views/default/thewire/profile_status.php @@ -1,12 +1,11 @@ guid; -$url_to_wire = elgg_get_site_url() . "pg/thewire/" . $vars['entity']->username; - +$url_to_wire = elgg_get_site_url() . "pg/thewire/owner/" . $vars['entity']->username; + //grab the user's latest from the wire $params = array( 'types' => 'object', @@ -16,11 +15,10 @@ $params = array( ); $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) . ")

"; - } +if ($latest_wire && count($latest_wire) > 0) { + $latest_wire = $latest_wire[0]; + $content = thewire_filter($latest_wire->description); + $time = "

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

"; echo "
"; echo $content; -- cgit v1.2.3