', 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 iamge), and boards. (see below.) */ foreach ($context['categories'] as $category) { echo '
'; // Assuming the category hasn't been collapsed... if (!$category['is_collapsed']) { /* 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 ' '; } } 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 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 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 '
', $txt['parent_boards'], ': ', implode(', ', $children), '
'; } // Show some basic information about the number of posts, etc. echo '
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '
', $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[30], ' ', $board['last_post']['time'], '
', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link']; echo '

'; } if ($context['user']['is_logged']) { echo '
', $txt[333], ' ', $txt[334], ' '; // Show the mark all as read button? if ($settings['show_mark_read']) echo ' ', ($settings['use_image_buttons'] ? '' . $txt[452] . '' : $txt[452]), ''; echo '
'; } // Here's where the "Info Center" starts... echo '
'; // This is the "Recent Posts" bar. if (!empty($settings['number_recent_posts'])) { echo ' '; } // Show information about events, birthdays, and holidays on the calendar. if ($context['show_calendar']) { echo ' '; } // Show a member bar. Not heavily ornate, but functional at least. if ($settings['show_member_bar']) { echo ' '; } // Show YaBB SP1 style information... if ($settings['show_sp1_info']) { echo ' '; } // "Users online" - in order of activity. echo ' '; // If they are logged in, but SP1 style information is off... show a personal message bar. if ($context['user']['is_logged'] && !$settings['show_sp1_info']) { echo ' '; } // Show the login bar. (it's only true if they are logged out anyway.) if ($context['show_login_bar']) { echo ' '; } echo '
', $txt[685], '
', $txt[214], '
', $txt[214], ' '; // Only show one post. if ($settings['number_recent_posts'] == 1) { // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.) echo ' ', $txt[214], '
', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')
'; } // Show lots of posts. elseif (!empty($context['latest_posts'])) { echo ' '; /* Each post in latest_posts has: board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.), subject, short_subject (shortened with...), time, link, and href. */ foreach ($context['latest_posts'] as $post) echo ' '; echo '
[', $post['board']['link'], '] ', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], ' ', $post['time'], '
'; } echo '
', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '
', $txt['calendar24'], ' '; // Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P. if (!empty($context['calendar_holidays'])) echo ' ', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '
'; // People's birthdays. Like mine. And yours, I guess. Kidding. if (!empty($context['calendar_birthdays'])) { echo ' ', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], ' '; /* Each member in calendar_birthdays has: id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */ foreach ($context['calendar_birthdays'] as $member) echo ' ', $member['is_today'] ? '' : '', $member['name'], $member['is_today'] ? '' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '', $member['is_last'] ? '
' : ', '; } // Events like community get-togethers. if (!empty($context['calendar_events'])) { echo ' ', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], ' '; /* Each event in calendar_events should have: title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */ foreach ($context['calendar_events'] as $event) echo ' ', $event['can_edit'] ? '* ' : '', $event['href'] == '' ? '' : '', $event['is_today'] ? '' . $event['title'] . '' : $event['title'], $event['href'] == '' ? '' : '', $event['is_last'] ? '
' : ', '; // Show a little help text to help them along ;). if ($context['calendar_can_edit']) echo ' (', $txt['calendar_how_edit'], ')'; } echo '
', $txt[331], '
', $context['show_member_list'] ? '' : '', '', $txt[332], '', $context['show_member_list'] ? '' : '', ' ', $context['show_member_list'] ? '' . $txt[332] . '' : $txt[332], '
', $txt[200], '
', $txt[645], '
', $txt[645], '
', $txt[490], ': ', $context['common_stats']['total_topics'], '
', $txt[489], ': ', $context['common_stats']['total_posts'], '
', !empty($context['latest_post']) ? ' ' . $txt[659] . ': "' . $context['latest_post']['link'] . '" (' . $context['latest_post']['time'] . ')
' : '', ' ', $txt[234], '', $context['show_stats'] ? '
' . $txt['smf223'] . '' : '', '
', $txt[488], ': ', $context['common_stats']['total_members'], '
', $txt[656], ': ', $context['common_stats']['latest_member']['link'], '
'; // If they are logged in, show their unread message count, etc.. if ($context['user']['is_logged']) echo ' ', $txt['smf199'], ': ', $context['user']['messages'], ' ', $txt['newmessages3'], ': ', $context['user']['unread_messages'], ''; echo '
', $txt[158], '
', $context['show_who'] ? '' : '', '', $txt[158], '', $context['show_who'] ? '' : '', ' '; if ($context['show_who']) echo ' '; echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users']; // Handle hidden users and buddies. if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies']))) { echo ' ('; // Show the number of buddies online? if ($context['show_buddies']) echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']; // How about hidden users? if (!empty($context['num_users_hidden'])) echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden']; echo ')'; } if ($context['show_who']) echo ''; echo '
'; // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link. if (!empty($context['users_online'])) echo ' ', $txt[140], ':
', implode(', ', $context['list_users_online']); echo '
', $context['show_stats'] && !$settings['show_sp1_info'] ? ' ' . $txt['smf223'] . '' : '', '
', $txt[159], '
', $context['allow_pm'] ? '' : '', '', $txt[159], '', $context['allow_pm'] ? '' : '', ' ', $txt[159], '
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' ', $txt[662], ' ', $txt[663], '
', $txt[34], ' (' . $txt[315] . ')
', $txt[34], '
'; } ?>