aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/views/default/thewire/profile_status.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 22:41:25 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 22:41:25 +0000
commitda90ff55725a9118ce6111ab2b6371650bf78ade (patch)
tree937da734d50c8147ca8f2cc52791dabf430464c6 /mod/thewire/views/default/thewire/profile_status.php
parentcc6b7d1d223241e397e0d41354924e74606eeffc (diff)
downloadelgg-da90ff55725a9118ce6111ab2b6371650bf78ade.tar.gz
elgg-da90ff55725a9118ce6111ab2b6371650bf78ade.tar.bz2
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
Diffstat (limited to 'mod/thewire/views/default/thewire/profile_status.php')
-rw-r--r--mod/thewire/views/default/thewire/profile_status.php16
1 files changed, 7 insertions, 9 deletions
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 @@
<?php
-
/**
- * Latest wire post on profile activity page
+ * Latest wire post on profile page
*/
$owner = $vars['entity']->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 = "<p class='entity-subtext'> (" . elgg_view_friendly_time($lw->time_created) . ")</p>";
- }
+if ($latest_wire && count($latest_wire) > 0) {
+ $latest_wire = $latest_wire[0];
+ $content = thewire_filter($latest_wire->description);
+ $time = "<p class='entity-subtext'> (" . elgg_view_friendly_time($latest_wire->time_created) . ")</p>";
echo "<div class='wire_post'><div class='wire_post_contents clearfix radius8'>";
echo $content;