aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/forms')
-rw-r--r--views/default/forms/comments/inline.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/default/forms/comments/inline.php b/views/default/forms/comments/inline.php
new file mode 100644
index 000000000..ee5883435
--- /dev/null
+++ b/views/default/forms/comments/inline.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * Inline comment form body
+ *
+ * @uses $vars['entity']
+ */
+
+if (isset($vars['entity']) && isloggedin()) {
+ echo elgg_view('input/text', array('internalname' => 'generic_comment'));
+ echo elgg_view('input/hidden', array(
+ 'internalname' => 'entity_guid',
+ 'value' => $vars['entity']->getGUID()
+ ));
+ echo elgg_view('input/submit', array('value' => elgg_echo('comment')));
+}