blob: 16dea70a3934ebdc730ebe6f5e2e4356244a4a67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
/**
* New wire post view for the activity stream
*/
$owner = $vars['entity']->guid;
//grab the users latest from the wire
$latest_wire = get_entities("object", "thewire", $owner, "", 1, 0, false, 0, null);
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 . " " . $time;
echo "</div>";
}
?>
|