aboutsummaryrefslogtreecommitdiff
path: root/views/default/comments
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/comments')
-rw-r--r--views/default/comments/forms/edit.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/views/default/comments/forms/edit.php b/views/default/comments/forms/edit.php
index b435d69b9..319f5eca2 100644
--- a/views/default/comments/forms/edit.php
+++ b/views/default/comments/forms/edit.php
@@ -13,11 +13,14 @@
*/
if (isset($vars['entity']) && isloggedin()) {
-
- $form_body = "<p><label>".elgg_echo("generic_comments:text")."<br />" . elgg_view('input/longtext',array('internalname' => 'generic_comment')) . "</label></p>";
- $form_body .= "<p>" . elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
- $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save"))) . "</p>";
-
+
+ //if the ratings plugin has been installed, display here
+ echo elgg_view('ratings/forms/edit',array('entity' => $vars['entity']));
+
+ $form_body = "<p><label>".elgg_echo("generic_comments:text")."<br />" . elgg_view('input/longtext',array('internalname' => 'generic_comment')) . "</label></p>";
+ $form_body .= "<p>" . elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
+ $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save"))) . "</p>";
+
echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/comments/add"));
}