diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-17 21:09:31 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-17 21:09:31 +0000 |
commit | 785290e6c228d484adb8812d243700e65692867d (patch) | |
tree | 08f03604342740e52988ef01f678a27bf594826b /views/default/river/annotation/likes/create.php | |
parent | 4b66f1cb6218f80fb4b2272837070efe44618c53 (diff) | |
download | elgg-785290e6c228d484adb8812d243700e65692867d.tar.gz elgg-785290e6c228d484adb8812d243700e65692867d.tar.bz2 |
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
Diffstat (limited to 'views/default/river/annotation/likes/create.php')
-rw-r--r-- | views/default/river/annotation/likes/create.php | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ +<?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)); |