aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/comments/add.php
blob: 74ee5ba4b7f9a179b5e9f90765c0b44a25cbb022 (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
/**
 * Elgg comments add form
 *
 * @package Elgg
 *
 * @uses $vars['entity']
 */

if (isset($vars['entity']) && isloggedin()) {
?>
<p class="mbn">
	<label><?php echo elgg_echo("generic_comments:text"); ?></label>
	<?php echo elgg_view('input/longtext', array('internalname' => 'generic_comment')); ?>
</p>
<?php

	echo elgg_view('input/hidden', array(
		'internalname' => 'entity_guid',
		'value' => $vars['entity']->getGUID()
	));
	echo elgg_view('input/submit', array('value' => elgg_echo("generic_comments:post")));
}