aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/views/default/riverdashboard/rivercomment.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/riverdashboard/views/default/riverdashboard/rivercomment.php')
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/rivercomment.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/riverdashboard/views/default/riverdashboard/rivercomment.php b/mod/riverdashboard/views/default/riverdashboard/rivercomment.php
new file mode 100644
index 000000000..b0e76148a
--- /dev/null
+++ b/mod/riverdashboard/views/default/riverdashboard/rivercomment.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Elgg comments add on river form
+ * @uses $vars['entity']
+ */
+
+if (isset($vars['entity']) && isloggedin()) {
+ $form_body = elgg_view('input/text',array('internalname' => 'generic_comment', 'value' => 'Add a comment...'));
+ $form_body .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
+ $form_body .= elgg_view('input/submit', array('value' => elgg_echo("post")));
+ echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/comments/add"));
+} \ No newline at end of file