diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
commit | 4766f36a4d74924f21ff329c4318ce4e069ffa04 (patch) | |
tree | 969b84632f2a8b0db79788a8a6db8e41d63e5cb4 /mod/thewire/views/default/thewire/profile_status.php | |
parent | 57a217fd6b708844407486046a1faa23b46cac08 (diff) | |
download | elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.gz elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.bz2 |
Pulled in the interface changes.
git-svn-id: http://code.elgg.org/elgg/trunk@5257 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.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mod/thewire/views/default/thewire/profile_status.php b/mod/thewire/views/default/thewire/profile_status.php new file mode 100644 index 000000000..890b8b9c3 --- /dev/null +++ b/mod/thewire/views/default/thewire/profile_status.php @@ -0,0 +1,28 @@ +<?php + + /** + * New wire post view for the activity stream + */ + + $owner = $vars['entity']->guid; + $url_to_wire = $vars['url'] . "pg/thewire/" . $vars['entity']->username; + + //grab the users latest from the wire + $latest_wire = elgg_get_entities(array('types' => 'object', 'subtypes' => 'thewire', 'owner_guid' => $owner, 'limit' => 1)); + + if($latest_wire){ + foreach($latest_wire as $lw){ + $content = $lw->description; + $time = "<span> (" . friendly_time($lw->time_created) . ")</span>"; + } + } + + if($latest_wire){ + echo "<div class=\"profile_status\">"; + echo $content; + if($owner == $_SESSION['user']->guid) + echo " <a class=\"status_update\" href=\"{$url_to_wire}\">update</a>"; + echo $time; + echo "</div>"; + } +?>
\ No newline at end of file |