blob: e239a2adb5d378482f3e7c624dfe7aa659042bb5 (
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
/**
* Controls on an river item
*
*
* @uses $vars['item']
*/
$object = $vars['item']->getObjectEntity();
if (isloggedin()) {
// comments and non-objects cannot be commented on
if ($object->getType() == 'object' && $vars['item']->annotation_id == 0) {
$params = array(
'href' => '#',
'text' => elgg_echo('generic_comments:text'),
'class' => 'elgg-toggle',
'internalid' => "elgg-toggler-{$object->getGUID()}",
);
echo elgg_view('output/url', $params);
//echo elgg_view('forms/likes/link', array('entity' => $object));
}
}
|