subject_guid); $object = get_entity($vars['item']->object_guid); $url = $object->getURL(); $contents = strip_tags($object->description); //strip tags from the contents to stop large images etc blowing out the river view $url = "getURL()}\">{$performed_by->name}"; $title = sprintf(elgg_echo('blog:river:create'), $url); $string .= $title . " getURL() . "\">" . $object->title . " " . friendly_time($object->publish_time) . ""; if (get_plugin_setting('activitytype', 'riverdashboard') != 'classic'){ $string .= "Comment"; $string .= elgg_view('likes/forms/link', array('entity' => $object)); } $string .= "
"; $string .= "
"; if(strlen($contents) > 200) { $string .= substr($contents, 0, strpos($contents, ' ', 200)) . "…"; }else{ $string .= $contents; } $string .= "
"; echo $string;