if (!reported($topicSel->id)) { echo 'onclick="report(\'topic\',' . $topicSel->id . ',0);"'; } ?> class="upvotes"><?php if (reported($topicSel->id)) { echo 'Reported'; } else { echo 'Report'; } ?> </a></span> <a class="upvotes" ><?php echo replyCount($topicSel->id); if (replyCount($topicSel->id) == 1) { echo ' Answer'; } else { echo ' Answers'; } ?> </a><hr> </div> <?php if (isLoggedIn()) { ?> <div class="form-group">
"><?php echo $topic->name; ?> </a> >> <a href="topics.php?user=<?php echo urlFormat($topic->user_id); ?> "><?php echo $topic->username; ?> </a> >> <?php echo formatDate($topic->create_date); ?> <span class="badge pull-right"><?php echo replyCount($topic->id); ?> </span> </div> </div> </div> </div> </li> <?php } ?> </ul> <?php } else { ?>
?> class="upvotes"><?php if (reported($topic->id)) { echo 'Reported'; } else { echo 'Report'; } ?> </a></span> <a id="answer" href="topic.php?topic=<?php echo urlFormat($topic->id); ?> " class="upvotes">Answer</a> <a class="upvotes" ><?php echo replyCount($topic->id); if (replyCount($topic->id) == 1) { echo ' Answer'; } else { echo ' Answers'; } ?> </a> </div> </div> </div> </div> </div> <?php }