'river_id', 'value' => $river_id )); } $entity_guid_input = ''; if (isset($vars['entity'])) { $entity_guid_input = elgg_view('input/hidden', array( 'name' => 'entity_guid', 'value' => $vars['entity']->guid, )); } $comment_text = ''; $comment_guid_input = ''; if (isset($vars['comment']) && $vars['comment']->canEdit()) { $entity_guid_input = elgg_view('input/hidden', array( 'name' => 'comment_guid', 'value' => $vars['comment']->guid, )); $comment_label = elgg_echo("generic_comments:edit"); $submit_input = elgg_view('input/submit', array('value' => elgg_echo('save'))); $comment_text = $vars['comment']->description; } else { $comment_label = elgg_echo("generic_comments:add"); $submit_input = elgg_view('input/submit', array('value' => elgg_echo('comment'))); } $cancel_link = ''; if (isset($vars['comment'])) { $cancel_link = "" . elgg_echo('cancel') . ""; } $inline = elgg_extract('inline', $vars, false); if ($inline) { $comment_input = elgg_view('input/text', array( 'name' => 'generic_comment', 'value' => $comment_text, )); echo $river_id_input . $comment_input . $entity_guid_input . $comment_guid_input . $submit_input; } else { $comment_input = elgg_view('input/longtext', array( 'name' => 'generic_comment', 'value' => $comment_text, )); echo <<