';
echo 'Written by ' . $post['owner'];
if ($can_edit && $post['owner_id'] == $user['id'])
echo ' | edit';
if ($can_delete && $post['owner_id'] == $user['id'])
echo ' | delete';
if ($can_comment)
echo ' | post comment';
echo '';
echo '
published ' . $post['date'] . '
';
if ($post['tags'] != '') {
echo 'tags: ' . $post['tags'] . '
';
}
echo $post['text_html'];
echo '';
$a = array();
if ($can_delcom) $a[] = '
delete';
if ($can_comment && $comment['author_id'] == $user['id'])
$a[] = '
edit';
if (count($a) > 0)
echo '
' . implode(" | ", $a) . '
';
echo '
' . $comment['date'] . ' by ' . $comment['author'] . '
';
echo '
' . $comment['text_html'] . '
';
echo '
';
}
}
echo '