From f898a155f28c40936139930fc2bac87fae6763b5 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 30 Sep 2008 10:02:10 +0000 Subject: ratings hook added to comments block git-svn-id: https://code.elgg.org/elgg/trunk@2148 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/comments/forms/edit.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'views/default') 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 = "

"; - $form_body .= "

" . elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID())); - $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save"))) . "

"; - + + //if the ratings plugin has been installed, display here + echo elgg_view('ratings/forms/edit',array('entity' => $vars['entity'])); + + $form_body = "

"; + $form_body .= "

" . elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID())); + $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save"))) . "

"; + echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/comments/add")); } -- cgit v1.2.3