</div><!-- .mb-forum-content --> </td><!-- .mb-col-title --> <td class="mb-col-count"> <?php printf(__('Topics: %s', 'message-board'), mb_get_forum_topic_count()); ?> <br /> <?php printf(__('Replies: %s', 'message-board'), mb_get_forum_reply_count()); ?> </td><!-- .mb-col-count --> <td class="mb-col-latest"> <?php if (mb_get_forum_last_post_id()) { // Only show if the forum is not empty. ?> <?php mb_forum_last_topic_link(); ?> <br /> <?php mb_forum_last_post_author(); ?> <br /> <a href="<?php mb_forum_last_post_url(); ?> "><?php mb_forum_last_active_time();
/** * Returns a forum's last post URL. * * @since 1.0.0 * @access public * @param int $forum_id * @return string */ function mb_get_forum_last_post_url($forum_id = 0) { $forum_id = mb_get_forum_id($forum_id); $last_id = mb_get_forum_last_post_id($forum_id); $url = ''; if ($last_id) { $url = mb_is_reply($last_id) ? mb_get_reply_url($last_id) : mb_get_topic_url($last_id); } return apply_filters('mb_get_forum_last_post_url', $url, $forum_id); }