diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-03 01:41:18 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-03 01:41:18 +0000 |
commit | 608647dcf59c60e55d86a69e39e2626e6f1eb6bc (patch) | |
tree | 0902b73d513ac13a3a57d69c73d7d55477d7471b /mod/groups/views/default/river | |
parent | 8f484535ba505b12d2d4ccdaf30686c375035108 (diff) | |
download | elgg-608647dcf59c60e55d86a69e39e2626e6f1eb6bc.tar.gz elgg-608647dcf59c60e55d86a69e39e2626e6f1eb6bc.tar.bz2 |
Refs #2679 - returning to a separate annotation for discussion forum replies. For those using the latest out of svn you can update with this script: https://gist.github.com/852092
git-svn-id: http://code.elgg.org/elgg/trunk@8570 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/river')
-rw-r--r-- | mod/groups/views/default/river/annotation/group_topic_post/reply.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mod/groups/views/default/river/annotation/group_topic_post/reply.php b/mod/groups/views/default/river/annotation/group_topic_post/reply.php new file mode 100644 index 000000000..f0b7d03b8 --- /dev/null +++ b/mod/groups/views/default/river/annotation/group_topic_post/reply.php @@ -0,0 +1,28 @@ +<?php +/** + * Reply river view + */ +$object = $vars['item']->getObjectEntity(); +$reply = $vars['item']->getAnnotation(); + +$url = $object->getURL(); +$title = $object->title; +$params = array( + 'href' => $object->getURL(), + 'text' => $title, +); +$object_link = elgg_view('output/url', $params); + +$type = $object->getType(); +$subtype = $object->getSubtype(); + +echo elgg_echo('groups:river:reply') . ' '; +echo $object_link; + +if ($reply) { + $excerpt = elgg_get_excerpt($reply->value); + echo '<div class="elgg-river-content">'; + echo $excerpt; + echo '</div>'; +} + |