aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/groupforumtopic/river.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/object/groupforumtopic/river.php')
-rw-r--r--views/default/object/groupforumtopic/river.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/default/object/groupforumtopic/river.php b/views/default/object/groupforumtopic/river.php
new file mode 100644
index 000000000..f062793ec
--- /dev/null
+++ b/views/default/object/groupforumtopic/river.php
@@ -0,0 +1,17 @@
+<?php
+
+$groupforumtopic = $vars['entity'];
+
+$title = elgg_view('output/url', array(
+ 'text' => $groupforumtopic->title,
+ 'href' => $groupforumtopic->getURL(),
+ 'encode_text' => true,
+));
+
+$description = elgg_get_excerpt($groupforumtopic->description, 350);
+
+echo elgg_view('river/elements/attachment', array(
+ 'image' => elgg_view_entity_icon($groupforumtopic->getOwnerEntity(), 'tiny'),
+ 'title' => $title,
+ 'description' => $description,
+)); \ No newline at end of file