From 43ffa1d95e62f553f7d0d7164c9c1a356abfcf93 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 17 Dec 2010 12:37:21 +0000 Subject: added pages and thewire river entries git-svn-id: http://code.elgg.org/elgg/trunk@7659 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/river/object/thewire/create.php | 35 +++++++++++++--------- 1 file changed, 21 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 0660b47ff..b1142e0f4 100644 --- a/mod/thewire/views/default/river/object/thewire/create.php +++ b/mod/thewire/views/default/river/object/thewire/create.php @@ -1,17 +1,24 @@ subject_guid); // $statement->getSubject(); -$object = get_entity($vars['item']->object_guid); -$url = $object->getURL(); +$object = $vars['item']->getObjectEntity(); +$excerpt = strip_tags($object->description); +$excerpt = elgg_get_excerpt($excerpt); -$string = "getURL()}\">{$performed_by->name}: "; -$desc = $object->description; -//$desc = preg_replace('/\@([A-Za-z0-9\_\.\-]*)/i','@$1',$desc); -$string .= parse_urls($desc); -$string .= " " . elgg_view_friendly_time($object->time_created); - if (isloggedin()){ - $string .= "Comment"; - $string .= elgg_view('forms/likes/link', array('entity' => $object)); - } -$string .= ""; -echo $string; \ No newline at end of file +$params = array( + 'href' => $object->getURL(), + 'text' => $object->title, +); +$link = elgg_view('output/url', $params); + +echo elgg_echo('thewire:river:create'); + +echo " $link"; + +if ($excerpt) { + echo '
'; + echo $excerpt; + echo '
'; +} -- cgit v1.2.3