* @copyright Curverider Ltd 2008-2010 * @link http://elgg.com/ * * @uses $vars['entity'] The posted comment to view */ ?>
" . $post_owner->name . "
"; } else { echo ""; echo "" . elgg_echo('profile:deleteduser') . "
"; } //display the date of the comment echo "" . friendly_time($vars['entity']->time_created) . "
"; //display the actual message posted echo parse_urls(elgg_view("output/longtext",array("value" => $vars['entity']->value))); // if comment owner, group owner, or site admin - display edit-form if (groups_can_edit_discussion($vars['entity'], page_owner_entity()->owner_guid)) { //get the edit form and details $submit_input = elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save'))); $text_textarea = elgg_view('input/longtext', array('internalname' => 'postComment'.$vars['entity']->id, 'value' => $vars['entity']->value)); $post = elgg_view('input/hidden', array('internalname' => 'post', 'value' => $vars['entity']->id)); $field = elgg_view('input/hidden', array('internalname' => 'field_num', 'value' => $vars['entity']->id)); $topic = elgg_view('input/hidden', array('internalname' => 'topic', 'value' => get_input('topic'))); $group = elgg_view('input/hidden', array('internalname' => 'group', 'value' => get_input('group_guid'))); $form_body = <<