'topic_guid', 'value' => $vars['topic']->getGUID(), )); } $inline = elgg_extract('inline', $vars, false); $reply = elgg_extract('entity', $vars); $value = ''; $reply_guid_input = ''; if ($reply && $reply->canEdit()) { $value = $reply->description; $reply_guid_input = elgg_view('input/hidden', array( 'name' => 'guid', 'value' => $reply->guid )); $reply_label = elgg_echo("discussion:reply:edit"); $submit_text = elgg_echo('save'); } else { $reply_label = elgg_echo("reply:this"); $submit_text = elgg_echo('reply'); } $cancel_button = ''; if ($reply) { $cancel_button = elgg_view('input/button', array( 'value' => elgg_echo('cancel'), 'class' => 'elgg-button-cancel mlm', 'href' => $entity ? $entity->getURL() : '#', )); } $submit_input = elgg_view('input/submit', array('value' => $submit_text)); if ($inline) { $description_input = elgg_view('input/text', array( 'name' => 'description', 'value' => $value )); echo <<
'description', 'value' => $value )); echo << $description_input
$reply_guid_input $topic_guid_input $submit_input $cancel_button
FORM; }