blob: aabb6a9c64b96b78412da810d887034cbe4c3b11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
/**
* Post comment river view
*/
$object = $vars['item']->getObjectEntity();
$comment = $vars['item']->getAnnotation();
$url = $object->getURL();
$title = $object->title;
if (!$title) {
$title = elgg_echo('untitled');
}
$params = array(
'href' => $object->getURL(),
'text' => $title,
);
$object_link = elgg_view('output/url', $params);
$type = $object->getType();
$subtype = $object->getSubtype();
$type_string = elgg_echo("river:commented:$type:$subtype");
echo elgg_echo('river:generic_comment', array($type_string, $object_link));
if ($comment) {
$excerpt = elgg_get_excerpt($comment->value);
echo '<div class="elgg-river-content">';
echo $excerpt;
echo '</div>';
}
|