Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 84 → Rev 85

/_taios.php
115,13 → 115,13
function drawBlogPostTree($id)
{
$post = $this->getBlogPost($id);
write('<a href="' . $this->url . 'blog/post.php?id=' . $id . '"><h3>' . $post->title. '</h3></a>');
write('<a href="' . $this->url . post.php?id=' . $id . '"><h3>' . $post->title. '</h3></a>');
write('<h5 style="color: #666666;">Posted On ' . date('l j F Y', $post->datePosted) . ' by ' . $post->user->name . ' (' . $post->user->username . ')</h5>');
write('<p>' . $post->content . '</p>');
write('<br />');
if ($this->isUserNormal($this->getLoggedInUser()))
{
write('<p class="bold"><a href="blog/add-post.php?id="' . $id . '">Add Comment</a></p>');
write('<p class="bold"><a href="add-post.php?id="' . $id . '">Add Comment</a></p>');
write('<br />');
}