aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/views/default/river
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 01:29:43 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 01:29:43 +0000
commit5260a05075a15e1a0a02fa1f261fe38370498ff2 (patch)
tree8f2c59953045abed9dd6110170fdd384dc4b3f23 /mod/messageboard/views/default/river
parentf8c113e05d030e727d6feab47f0d5959404e225f (diff)
downloadelgg-5260a05075a15e1a0a02fa1f261fe38370498ff2.tar.gz
elgg-5260a05075a15e1a0a02fa1f261fe38370498ff2.tar.bz2
cleaned up the messageboard plugin further
git-svn-id: http://code.elgg.org/elgg/trunk@8516 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messageboard/views/default/river')
-rw-r--r--mod/messageboard/views/default/river/object/messageboard/create.php24
1 files changed, 19 insertions, 5 deletions
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 @@
<?php
+/**
+ * Messageboard river view
+ */
-$performed_by = get_entity($vars['item']->subject_guid);
-$performed_on = get_entity($vars['item']->object_guid);
+$performed_by = $vars['item']->getSubjectEntity();
+$performed_on = $vars['item']->getObjectEntity();
-$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
-$string = elgg_echo("messageboard:river:added", array($url)) . " <a href=\"{$performed_on->getURL()}\">" . $performed_on->name . "'s</a> " . 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 '<div class="elgg-river-content">';
+ echo elgg_get_excerpt($comment->value);
+ echo '</div>';
+}