From 785290e6c228d484adb8812d243700e65692867d Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 17 Dec 2010 21:09:31 +0000 Subject: last of the river updates I hope - fixes the likes river view git-svn-id: http://code.elgg.org/elgg/trunk@7665 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/river/annotation/likes/create.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 views/default/river/annotation/likes/create.php (limited to 'views/default/river/annotation/likes/create.php') diff --git a/views/default/river/annotation/likes/create.php b/views/default/river/annotation/likes/create.php new file mode 100644 index 000000000..374f4a381 --- /dev/null +++ b/views/default/river/annotation/likes/create.php @@ -0,0 +1,23 @@ +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)); -- cgit v1.2.3