', $txt['members'], ': ', $context['common_stats']['total_members'], ' • ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' • ', $txt['topics'], ': ', $context['common_stats']['total_topics'], ' ', ($settings['show_latest_member'] ? ' ' . $txt['welcome_member'] . ' ' . $context['common_stats']['latest_member']['link'] . '' . $txt['newest_member'] : '') , ' '; // This is the "Recent Posts" bar. if (!empty($settings['number_recent_posts'])) { echo '
![]() |
', $post['replies'], ' ', $txt['replies'], '
', $post['views'], ' ', $txt['views'], ' |
', $txt['new_post'], ' ', $txt['by'], ' ', $post['poster']['link'], ' ', $txt['in'], ' ', $post['board']['link'], ' ', $txt['on'], ' ', $post['time'],' | ';
}
}
echo '
|
';
// If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
![]() ![]() ![]() |
', $board['name'], '';
// Has it outstanding posts for approval?
if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
echo '
(!)';
echo '
', $board['description'] , ' '; // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.) if (!empty($board['moderators'])) echo '', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), ' '; // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...) if (!empty($board['children'])) { // Sort the links into an array with new boards bold so it can be imploded. $children = array(); // Each child in each board's children has: id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. foreach ($board['children'] as $child) { if (!$child['is_redirect']) $child['link'] = '' . $child['name'] . ($child['new'] ? '![]() ', $txt['parent_boards'], ': ', implode(', ', $children), ' '; } // Show some basic information about the number of posts, etc. echo ' |
', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' |
';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
', $txt['last_post'], ' ', $txt['by'], ' ', $board['last_post']['member']['link'] , ' |