diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-30 10:02:10 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-30 10:02:10 +0000 |
commit | f898a155f28c40936139930fc2bac87fae6763b5 (patch) | |
tree | 6d0d8cdf46e90eb289d4fc27ac0227bd0b5ecebc /views/default/comments | |
parent | 6311a56fc4d8ff33c5b39bba3bfdedb261cf3594 (diff) | |
download | elgg-f898a155f28c40936139930fc2bac87fae6763b5.tar.gz elgg-f898a155f28c40936139930fc2bac87fae6763b5.tar.bz2 |
ratings hook added to comments block
git-svn-id: https://code.elgg.org/elgg/trunk@2148 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/comments')
-rw-r--r-- | views/default/comments/forms/edit.php | 13 |
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"));
}
|