', theme_linktree(), ''; if (isset($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0)) { echo '
', $txt['parent_boards'], '
'; foreach ($context['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), '
'; } if (!empty($options['show_board_desc']) && $context['description'] != '') { echo '
', $context['description'], '
'; } // Create the button set... $normal_buttons = array( 'markread' => array('text' => 'mark_read_short', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;sesc=' . $context['session_id']), 'notify' => array('test' => 'can_mark_notify', 'text' => 125, 'image' => 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');"', 'url' => $scripturl . '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';board=' . $context['current_board'] . '.' . $context['start'] . ';sesc=' . $context['session_id']), 'new_topic' => array('test' => 'can_post_new', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0'), 'post_poll' => array('test' => 'can_post_poll', 'text' => 'smf20', 'image' => 'new_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'), ); // They can only mark read if they are logged in and it's enabled! if (!$context['user']['is_logged'] || !$settings['show_mark_read']) unset($normal_buttons['markread']); if (!$context['no_topic_listing']) { echo '
', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '  ' . $txt['topbottom5'] . '' : '', ' '; if ($context['can_post_new']) echo''; if ($context['can_post_poll']) echo''; if ($context['can_mark_notify']) echo''; if ($context['user']['is_logged'] && $settings['show_mark_read']) echo''; echo '
 New Topic New Poll Subscribe Mark Read
'; // If Quick Moderation is enabled start the form. if (!empty($options['display_quick_mod']) && !empty($context['topics'])) echo '
'; echo '
'; // Are there actually any topics to show? if (!empty($context['topics'])) { echo ' '; if (empty($options['display_quick_mod']) || $options['display_quick_mod'] == 0) echo ''; // Show a "select all" box for quick moderation? if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1) echo ' '; // If it's on in "image" mode, don't show anything but the column. elseif (!empty($options['display_quick_mod'])) echo ' '; } // No topics.... just say, "sorry bub". else echo ' '; echo '
', $txt[70], $context['sort_by'] == 'subject' ? ' ' : '', ' ', $txt[109], $context['sort_by'] == 'starter' ? ' ' : '', ' ', $txt[110], $context['sort_by'] == 'replies' ? ' ' : '', ' ', $txt[301], $context['sort_by'] == 'views' ? ' ' : '', ''; else echo ''; echo '', $txt[111], $context['sort_by'] == 'last_post' ? ' ' : '', ' ', $txt[151], '
'; if (!empty($settings['display_who_viewing'])) { echo ' '; } foreach ($context['topics'] as $topic) { // Do we want to seperate the sticky and lock status out? if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false) $topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky')); if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false) $topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked')); if ( !$isSticky && $topic['is_sticky'] ) { echo' '; } if ( $isSticky && !$topic['is_sticky'] ) { echo' '; } echo ' '; // Show the quick moderation options? if (!empty($options['display_quick_mod'])) { echo ' '; } echo ' '; } if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics'])) { echo ' '; } echo '
'; if ($settings['display_who_viewing'] == 1) echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19]; else echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')'); echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '
'; $isSticky = !$isSticky; echo ' Stickies! =o
'; $isSticky = !$isSticky; echo ' Threads
'; if (!empty($settings['seperate_sticky_lock'])) echo ' ' , $topic['is_locked'] ? '' : '' , ' ' , $topic['is_sticky'] ? '' : ''; echo ' ', $topic['is_sticky'] ? '' : '' , '', $topic['first_post']['link'], '', $topic['is_sticky'] ? '' : ''; // Is this topic new? (assuming they are logged in!) if ($topic['new'] && $context['user']['is_logged']) echo ' ', $txt[302], ''; echo ' ', $topic['pages'], ' ', $topic['first_post']['member']['link'], ' ', $topic['replies'], ' ', $topic['views'], ' ', $txt[111], ' ', $topic['last_post']['time'], '
', $txt[525], ' ', $topic['last_post']['member']['link'], '
'; if ($options['display_quick_mod'] == 1) echo ' '; else { // Check permissions on each and show only the ones they are allowed to use. if ($topic['quick_mod']['remove']) echo '', $txt[63], ''; if ($topic['quick_mod']['lock']) echo '', $txt['smf279'], ''; if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove']) echo '
'; if ($topic['quick_mod']['sticky']) echo '', $txt['smf277'], ''; if ($topic['quick_mod']['move']) echo '', $txt[132], ''; } echo '
'; if ($context['can_move']) { echo ' '; } echo '
'; // Finish off the form - again. if (!empty($options['display_quick_mod']) && !empty($context['topics'])) echo '
'; echo '
', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '  ' . $txt['topbottom4'] . '' : '', ' '; if ($context['can_post_new']) echo''; if ($context['can_post_poll']) echo''; if ($context['can_mark_notify']) echo''; if ($context['user']['is_logged'] && $settings['show_mark_read']) echo''; echo '
 New Topic New Poll Subscribe Mark Read
'; } // Show breadcrumbs at the bottom too? echo '
', theme_linktree(), '
'; echo '
'; if (!$context['no_topic_listing']) echo ' '; echo '
', !empty($modSettings['enableParticipation']) ? ' ' . $txt['participation_caption'] . '
' : '', ' ' . $txt[457] . '
' . $txt[454] . '
' . $txt[455] . '
' . $txt[456] . '
' . ($modSettings['enableStickyTopics'] == '1' ? ' ' . $txt['smf96'] . '
' : '') . ($modSettings['pollMode'] == '1' ? ' ' . $txt['smf43'] : '') . '
:  
'; // Javascript for inline editing. echo ' '; } function theme_show_buttons() { global $context, $settings, $options, $txt, $scripturl; $buttonArray = array(); // If they are logged in, and the mark read buttons are enabled.. if ($context['user']['is_logged'] && $settings['show_mark_read']) $buttonArray[] = '' . $txt['mark_read_short'] . ''; // If the user has permission to show the notification button... ask them if they're sure, though. if ($context['can_mark_notify']) $buttonArray[] = '' . $txt[125] . ''; // Are they allowed to post new topics? if ($context['can_post_new']) $buttonArray[] = '' . $txt['smf258'] . ''; // How about new polls, can the user post those? if ($context['can_post_poll']) $buttonArray[] = '' . $txt['smf20'] . ''; return implode('  |  ', $buttonArray); } ?>