diff options
Diffstat (limited to 'mod/likes/views/default/river')
-rw-r--r-- | mod/likes/views/default/river/annotation/likes/create.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mod/likes/views/default/river/annotation/likes/create.php b/mod/likes/views/default/river/annotation/likes/create.php new file mode 100644 index 000000000..463fe5049 --- /dev/null +++ b/mod/likes/views/default/river/annotation/likes/create.php @@ -0,0 +1,26 @@ +<?php +/** + * Likes river view + * + * @todo not finished + */ + +$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)); |