From 5260a05075a15e1a0a02fa1f261fe38370498ff2 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 1 Mar 2011 01:29:43 +0000 Subject: cleaned up the messageboard plugin further git-svn-id: http://code.elgg.org/elgg/trunk@8516 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../default/river/object/messageboard/create.php | 24 +++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'mod/messageboard/views/default/river/object') diff --git a/mod/messageboard/views/default/river/object/messageboard/create.php b/mod/messageboard/views/default/river/object/messageboard/create.php index 3bdf595d1..0268930bf 100644 --- a/mod/messageboard/views/default/river/object/messageboard/create.php +++ b/mod/messageboard/views/default/river/object/messageboard/create.php @@ -1,10 +1,24 @@ subject_guid); -$performed_on = get_entity($vars['item']->object_guid); +$performed_by = $vars['item']->getSubjectEntity(); +$performed_on = $vars['item']->getObjectEntity(); -$url = "getURL()}\">{$performed_by->name}"; -$string = elgg_echo("messageboard:river:added", array($url)) . " getURL()}\">" . $performed_on->name . "'s " . elgg_echo("messageboard:river:messageboard"); +$comment = $vars['item']->getAnnotation(); +$link = elgg_view('output/url', array( + 'href' => $performed_on->getURL(), + 'text' => elgg_echo('messageboard:river:user', array($performed_on->name)), +)); -echo $string; +echo elgg_echo("messageboard:river:added"); +echo " $link "; +echo elgg_echo("messageboard:river:messageboard"); + +if ($comment) { + echo '
'; + echo elgg_get_excerpt($comment->value); + echo '
'; +} -- cgit v1.2.3