* @copyright Curverider Ltd 2008-2009 * @link http://elgg.com/ * * @uses $vars['entity'] The posted comment to view */ ?>
owner_guid)) { //display the user icon echo "
" . elgg_view("profile/icon",array('entity' => $post_owner, 'size' => 'small')) . "
"; //display the user name echo "

" . $post_owner->name . "
"; } else { echo "

"; } //display the date of the comment echo "" . friendly_time($vars['entity']->time_created) . "

"; ?>
$vars['entity']->value))); ?>
owner_guid)) { ?>

$vars['url'] . "action/groups/deletepost?post=" . $vars['entity']->id . "&topic=" . get_input('topic') . "&group=" . get_input('group_guid'), 'text' => elgg_echo('delete'), 'confirm' => elgg_echo('deleteconfirm'), )); //display an edit link that will open up an edit area echo " ".elgg_echo('edit').""; echo "

"; //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)); $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 = <<

$text_textarea

$post $topic $group

$submit_input

EOT; ?> "{$vars['url']}action/groups/editpost", 'body' => $form_body, 'internalid' => 'editforumpostForm')); ?>