aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/comments/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/forms/comments/add.php')
-rw-r--r--views/default/forms/comments/add.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/views/default/forms/comments/add.php b/views/default/forms/comments/add.php
new file mode 100644
index 000000000..74ee5ba4b
--- /dev/null
+++ b/views/default/forms/comments/add.php
@@ -0,0 +1,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")));
+}