', theme_linktree(), ' '; if (!$settings['show_sp1_info']) echo ' ', $txt[19], ': ', $context['common_stats']['total_members'], '  •  ', $txt[95], ': ', $context['common_stats']['total_posts'], '  •  ', $txt[64], ': ', $context['common_stats']['total_topics'], ' ', ($settings['show_latest_member'] ? '
' . $txt[201] . ' ' . $context['common_stats']['latest_member']['link'] . '' . $txt[581] : ''); echo ' '; // Show the news fader? (assuming there are things to show...) if ($settings['show_newsfader'] && !empty($context['fader_news_lines'])) { echo '
 ', $txt[102], '
'; // Prepare all the javascript settings. echo '
', $context['news_lines'][0], '
'; } /* 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.) */ $first = true; foreach ($context['categories'] as $category) { echo '
'; $first = false; // If this category even can collapse, show a link to collapse it. if ($category['can_collapse']) echo ' ', $category['collapse_image'], ''; echo ' ', $category['link'], '
'; // 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) { $child['link'] = '' . $child['name'] . ''; $children[] = $child['new'] ? '' . $child['link'] . '' : $child['link']; } echo ' '; } } echo '
'; // If the board is new, show a strong indicator. if ($board['new']) echo '', $txt[333], ''; // This board doesn't have new posts, but its children do. elseif ($board['children_new']) echo '', $txt[333], ''; // No new posts at all! The agony!! else echo '', $txt[334], ''; echo ' ', $board['name'], '
', $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[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '
'; // Show some basic information about the number of posts, etc. echo '
', $board['posts'], ' ', $txt[21], '
', $board['topics'],' ', $txt[330], '
'; /* 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[22], ' ', $txt[525], ' ', $board['last_post']['member']['link'] , '
', $txt['smf88'], ' ', $board['last_post']['link'], '
', $txt[30], ' ', $board['last_post']['time']; echo '
', $txt['parent_boards'], ': ', implode(', ', $children), '
'; } echo '
'; } if ($context['user']['is_logged']) { echo '
', $txt[333], ' ', $txt[334], ' '; // Mark read button. $mark_read_button = array('markread' => array('text' => 452, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id'])); // Show the mark all as read button? if ($settings['show_mark_read'] && !empty($context['categories'])) echo ' ', template_button_strip($mark_read_button, 'top'), '
'; echo '
'; } // Here's where the "Info Center" starts... echo '
* ', $txt[685], '
'; } ?>