aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/annotation/likes/create.php
blob: 374f4a381ed56a3cc0ed8d5348e17de43fac22aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * Likes 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:likes', array($type_string, $object_link));