diff options
author | Evan Winslow <evan@elgg.org> | 2011-06-08 02:31:30 -0700 |
---|---|---|
committer | Evan Winslow <evan@elgg.org> | 2011-06-08 02:31:30 -0700 |
commit | 1fd8bd6e296e2b1fc960fde1dd204b6c4e3e8aec (patch) | |
tree | 36da4522942dd749e82e9f33c0213cbedbb3d5f2 /mod/likes/views/default/river | |
parent | 8ddeb1f6e37dc1647e9bee4f3cfe35adcb2ca004 (diff) | |
download | elgg-1fd8bd6e296e2b1fc960fde1dd204b6c4e3e8aec.tar.gz elgg-1fd8bd6e296e2b1fc960fde1dd204b6c4e3e8aec.tar.bz2 |
River revamp for 1.8
Diffstat (limited to 'mod/likes/views/default/river')
-rw-r--r-- | mod/likes/views/default/river/annotation/likes/create.php | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/mod/likes/views/default/river/annotation/likes/create.php b/mod/likes/views/default/river/annotation/likes/create.php index 463fe5049..0160bcc0b 100644 --- a/mod/likes/views/default/river/annotation/likes/create.php +++ b/mod/likes/views/default/river/annotation/likes/create.php @@ -5,22 +5,6 @@ * @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)); +echo elgg_view('river/item', array( + 'item' => $vars['item'], +)); |