', $context['description'], '
'; if (!empty($context['moderators'])) echo '', count($context['moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $context['link_moderators']), '.
'; if (!empty($settings['display_who_viewing'])) { echo ''; // Show just numbers...? if ($settings['display_who_viewing'] == 1) echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt['members']; // Or show the actual people viewing the topic? else echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')'); // Now show how many guests are here too. echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '
'; } echo '', count($board['link_moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '
'; } /** * Outputs the board stats for a standard board. * * @param array $board Current board information. */ function template_bi_board_stats($board) { global $txt; echo '', $txt['redirects'], ': ', comma_format($board['posts']), '
'; } /** * Outputs the board lastposts for a standard board or a redirect. * When on a mobile device, this may be hidden if no last post exists. * * @param array $board Current board information. */ function template_bi_board_lastpost($board) { if (!empty($board['last_post']['id'])) echo '', $board['last_post']['last_post_message'], '
'; } /** * Outputs the board children for a standard board. * * @param array $board Current board information. */ function template_bi_board_children($board) { global $txt, $scripturl, $context; // 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['new'] ? '' . $txt['new'] . ' ' : '') . '' . $child['name'] . ''; else $child['link'] = '' . $child['name'] . ''; // Has it posts awaiting approval? if ($child['can_approve_posts'] && ($child['unapproved_posts'] || $child['unapproved_topics'])) $child['link'] .= ' !'; $children[] = $child['new'] ? '' . $child['link'] . '' : '' . $child['link'] . ''; } echo '', $txt['sub_boards'], '', implode(' ', $children), '