* @copyright Curverider Ltd 2008 * @link http://elgg.com/ * * @uses $vars['entity'] */ if (isset($vars['entity']) && isloggedin()) { //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")); } ?>