aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/river/controls.php
blob: 7d6feaaddb09fa068bca3e484895bfcbe59e0b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Controls on an river item
 * 
 *
 * @uses $vars['item']
 */

$object = $vars['item']->getObjectEntity();

if (isloggedin()) {
	if ($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('likes/forms/link', array('entity' => $object));
	}
}