aboutsummaryrefslogtreecommitdiff
path: root/views/default/comments/forms/edit.php
blob: dd0b374e0e261258982c5533c1c754cc822ddf4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Elgg comments add form
 *
 * @package Elgg
 *
 * @uses $vars['entity']
 */
	 
	 if (isset($vars['entity']) && isloggedin()) {
    	 
		 $form_body = "<div class='comment margin_top'><p class='longtext_inputarea'><label>".elgg_echo("generic_comments:text")."</label>" . elgg_view('input/longtext',array('internalname' => 'generic_comment')) . "</p>";
		 $form_body .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
		 $form_body .= elgg_view('input/submit', array('value' => elgg_echo("generic_comments:post"))) . "</div>";
		 
		 echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/comments/add"));

    }
    
?>