blob: 032046063ab9d3451d441f4182c0b76807c95aff (
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
31
32
33
34
35
|
<?php
/**
* Page river view.
*/
$object = $vars['item']->getObjectEntity();
$excerpt = strip_tags($object->description);
$excerpt = elgg_get_excerpt($excerpt);
$params = array(
'href' => $object->getURL(),
'text' => $object->title,
);
$link = elgg_view('output/url', $params);
$group_string = '';
$container = $object->getContainerEntity();
if ($container instanceof ElggGroup) {
$params = array(
'href' => $container->getURL(),
'text' => $container->name,
);
$group_link = elgg_view('output/url', $params);
$group_string = elgg_echo('river:ingroup', array($group_link));
}
echo elgg_echo('pages:river:create');
echo " $link $group_string";
if ($excerpt) {
echo '<div class="elgg-river-content">';
echo $excerpt;
echo '</div>';
}
|