From 4a108fa6f8181d565b6e8c525b299e90ae80ffe5 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 26 Jun 2010 16:40:25 +0000 Subject: The wire can now have comments and likes via the activity stream. git-svn-id: http://code.elgg.org/elgg/trunk@6571 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/river/object/thewire/create.php | 27 +++++++++++----------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'mod/thewire/views/default') diff --git a/mod/thewire/views/default/river/object/thewire/create.php b/mod/thewire/views/default/river/object/thewire/create.php index 2366abc4c..8114e969e 100644 --- a/mod/thewire/views/default/river/object/thewire/create.php +++ b/mod/thewire/views/default/river/object/thewire/create.php @@ -1,17 +1,16 @@ subject_guid); // $statement->getSubject(); - $object = get_entity($vars['item']->object_guid); - $url = $object->getURL(); +$performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject(); +$object = get_entity($vars['item']->object_guid); +$url = $object->getURL(); - $string = "getURL()}\">{$performed_by->name}: "; - $desc = $object->description; - //$desc = preg_replace('/\@([A-Za-z0-9\_\.\-]*)/i','@$1',$desc); - $string .= parse_urls($desc); - - $string .= " " . friendly_time($object->time_created) . " getOwnerEntity()->username}\" class='reply_link'>" . elgg_echo('thewire:reply') . ""; -?> - - \ No newline at end of file +$string = "getURL()}\">{$performed_by->name}: "; +$desc = $object->description; +//$desc = preg_replace('/\@([A-Za-z0-9\_\.\-]*)/i','@$1',$desc); +$string .= parse_urls($desc); +$string .= " " . friendly_time($object->time_created) . ""; + if (isloggedin()){ + $string .= "Comment"; + $string .= elgg_view('likes/forms/link', array('entity' => $object)); + } +echo $string; \ No newline at end of file -- cgit v1.2.3