';
echo 'Written by ' . $post['owner'];
if ($can_edit && $post['owner_id'] == $user['id'])
echo ' | modifier';
if ($can_delete && $post['owner_id'] == $user['id'])
echo ' | supprimer';
if ($can_comment && !$is_draft)
echo ' | commenter';
if ($is_draft)
echo ' | publier';
echo '';
echo '
publié le ' . $post['date'] . '
';
if ($post['tags'] != '') {
echo 'tags: ' . $post['tags'] . '
';
}
echo $post['text_html'];
if (!$is_draft) {
echo '';
$a = array();
if ($can_delcom) $a[] = '
supprimer';
if ($can_comment && $comment['author_id'] == $user['id'])
$a[] = '
modifier';
if (count($a) > 0)
echo '
' . implode(" | ", $a) . '
';
echo '
' . $comment['date'] . ' par ' . $comment['author'] . '
';
echo '
' . $comment['text_html'] . '
';
echo '
';
}
}
echo '