aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/comments/add.php
blob: 8a2b89f2dd7370bdcde7ef5ef8d8db6337f5dabe (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']) && elgg_is_logged_in()) {
?>
<div class="mbn">
	<label><?php echo elgg_echo("generic_comments:text"); ?></label>
	<?php echo elgg_view('input/longtext', array('name' => 'generic_comment')); ?>
</div>
<?php

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