', $txt['members'], ': ', $context['common_stats']['total_members'], '  •  ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], '  •  ', $txt['topics_made'], ': ', $context['common_stats']['total_topics'], '
', ($settings['show_latest_member'] ? ' ' . $txt['welcome_member'] . ' ' . $context['common_stats']['latest_member']['link'] . '' . $txt['newest_member'] : '') , ' '; // Show the news fader? (assuming there are things to show...) if ($settings['show_newsfader'] && !empty($context['fader_news_lines'])) { echo '

', $txt['news'], '

'; } echo '
'; /* Each category in categories is made up of: id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?), new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image), and boards. (see below.) */ foreach ($context['categories'] as $category) { // If theres no parent boards we can see, avoid showing an empty category (unless its collapsed) if (empty($category['boards']) && !$category['is_collapsed']) continue; echo ' '; // Assuming the category hasn't been collapsed... if (!$category['is_collapsed']) { echo ' '; /* Each board in each category's boards has: new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.), children (see below.), link_children (easier to use.), children_new (are they new?), topics (# of), posts (# of), link, href, and last_post. (see below.) */ foreach ($category['boards'] as $board) { echo ' '; // 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['new'] . '' : '') . ''; 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 ' '; } } echo ' '; } echo ' '; } echo '

'; // If this category even can collapse, show a link to collapse it. if ($category['can_collapse']) echo ' ', $category['collapse_image'], ''; echo ' ', $category['link'], '

'; // If the board or children is new, show an indicator. if ($board['new'] || $board['children_new']) echo ' ', $txt['new_posts'], ''; // Is it a redirection board? elseif ($board['is_redirect']) echo ' *'; // No new posts at all! The agony!! else echo ' ', $txt['old_posts'], ''; 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 some basic information about the number of posts, etc. echo '

', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' ', $board['is_redirect'] ? '' : '
'.comma_format($board['topics']) . ' ' . $txt['board_topics'], '

'; if (!empty($board['last_post']['id'])) echo '

', $board['last_post']['last_post_message'], '

'; echo '

', $txt['parent_boards'], ': ', implode(', ', $children), '

'; // Show the mark all as read button? if ($settings['show_mark_read'] && !empty($context['categories'])) echo '
', template_button_strip($context['mark_read_button'], 'right'), '
'; template_info_center(); } function template_info_center() { global $context, $settings, $options, $txt, $scripturl, $modSettings; // Here's where the "Info Center" starts... echo '

', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '

'; // Info center collapse object. echo ' '; } ?>