aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-06 01:48:53 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-06 01:48:53 +0000
commiteb306be905c9fd78600841070d0796bd99ae7f73 (patch)
tree4ad84690c3500dbcc9b7ca9feaddc0a2c9cd3f8c /views/default/forms
parent835c5685e386216e016212f589cdef047b027ac4 (diff)
downloadelgg-eb306be905c9fd78600841070d0796bd99ae7f73.tar.gz
elgg-eb306be905c9fd78600841070d0796bd99ae7f73.tar.bz2
comments use the media view now
git-svn-id: http://code.elgg.org/elgg/trunk@7544 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms')
-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")));
+}