aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/comments/inline.php
blob: 14b8a086dbe301bb272d4f97fe5a08ff91484edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/**
 * Inline comment form body
 *
 * @uses $vars['entity']
 */

if (isset($vars['entity']) && elgg_is_logged_in()) {
	echo elgg_view('input/text', array('name' => 'generic_comment'));
	echo elgg_view('input/hidden', array(
		'name' => 'entity_guid',
		'value' => $vars['entity']->getGUID()
	));
	echo elgg_view('input/submit', array('value' => elgg_echo('comment')));
}