postView.inc 694 B

12345678910111213
  1. <?php
  2. $humanReadableTime = new HumanReadableTime();
  3. ?>
  4. <ul>
  5. <?php
  6. foreach ($posts as $post) {
  7. ?>
  8. <li><a class="<?=($post['new_content'] ? "newPost" : "")?>" href="/?a=post&id=<?=$post['post_id']?>&t=<?=$post['topic_id']?>"><?=$post['post_name']?></a>
  9. <div class="postByline">submitted <?=$humanReadableTime->formatString($post['timestamp'])?> by <a href="/?a=user&id=<?=$post['user_id']?>"><?=$post['user_display_name']?></a> to <a
  10. href="?a=topic&id=<?=$post['topic_id']?>"><?=$post['topic_display_name']?></a> <span class="commentCount"><a href="/?a=post&id=<?=$post['post_id']?>&t=<?=$post['topic_id']?>">comments (<?=$post['comment_count']?>)</a></span>
  11. </div></li>
  12. <?php } ?>
  13. </ul>