', $context['name'], '

'; if (isset($context['description']) && $context['description'] != '') echo '

', $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 ' '; if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0)) { // The child board TODO echo '
'; // Like collapse icon, but don't collapse because I don't know how. TODO ! echo'

', $txt['sub_boards'], '

', $txt['last_post'], '
'; foreach ($context['boards'] as $board) { echo '
', function_exists('template_bi_' . $board['type'] . '_icon') ? call_user_func('template_bi_' . $board['type'] . '_icon', $board) : template_bi_board_icon($board), '
', function_exists('template_bi_' . $board['type'] . '_info') ? call_user_func('template_bi_' . $board['type'] . '_info', $board) : template_bi_board_info($board), '
'; // Show the last post if there is one. echo '
', function_exists('template_bi_' . $board['type'] . '_lastpost') ? call_user_func('template_bi_' . $board['type'] . '_lastpost', $board) : template_bi_board_lastpost($board), '
'; // Won't somebody think of the children! if (function_exists('template_bi_' . $board['type'] . '_children')) call_user_func('template_bi_' . $board['type'] . '_children', $board); else template_bi_board_children($board); echo '
'; } echo ' '; } // Let them know why their message became unapproved. if ($context['becomesUnapproved']) echo '
', $txt['post_becomes_unapproved'], '
'; // If this person can approve items and we have some awaiting approval tell them. if (!empty($context['unapproved_posts_message'])) echo '
', $context['unapproved_posts_message'], '
'; if (!$context['no_topic_listing']) { echo '
', template_button_strip($context['normal_buttons'], ), ' ', $context['menu_separator'], ' '; // Mobile action buttons (top) if (!empty($context['normal_buttons'])) echo '
', $txt['mobile_action'], '
'; echo '
'; // If Quick Moderation is enabled start the form. if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] > 0 && !empty($context['topics'])) echo '
'; echo '
'; echo '
'; // Are there actually any topics to show? if (!empty($context['topics'])) { echo '
', $context['topics_headers']['subject'], ' / ', $context['topics_headers']['starter'], '
', $context['topics_headers']['last_post'], '
'; // Show a "select all" box for quick moderation? if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1) echo '
'; // If it's on in "image" mode, don't show anything but the column. elseif (!empty($context['can_quick_mod'])) echo '
'; } // No topics... just say, "sorry bub". else echo '

', $txt['topic_alert_none'], '

'; echo '
'; // Contain the topic list echo '
'; foreach ($context['topics'] as $topic) { echo '
', $topic['is_posted_in'] ? '' : '', ' '; // Now we handle the icons if ($topic['is_watched']) echo ' '; if ($topic['is_locked']) echo ' '; if ($topic['is_sticky']) echo ' '; if ($topic['is_redirect']) echo ' '; if ($topic['is_poll']) echo ' '; echo '
'; // End icon about topic echo '
'; echo '
', $topic['new'] && $context['user']['is_logged'] ? '' . $txt['new'] . '' : '', '

', $topic['first_post']['link'], (!$topic['approved'] ? ' (' . $txt['awaiting_approval'] . ')' : ''), '

', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '

', !empty($topic['pages']) ? '' . $topic['pages'] . '' : '', '

', sprintf($txt['last_post_topic'], '' . $topic['last_post']['time'] . '', $topic['last_post']['member']['link']), '

'; // Show the quick moderation options? if (!empty($context['can_quick_mod'])) { echo '
'; 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 ''; if ($topic['quick_mod']['lock']) echo ''; if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove']) echo '
'; if ($topic['quick_mod']['sticky']) echo ''; if ($topic['quick_mod']['move']) echo ''; } echo '
'; } echo '
'; } echo '
'; echo '
'; function message_index_jump_to() { global $context, $settings, $txt, $modSettings; // Sauter à... echo '

'; if (!empty($context['jump_to'])) echo ' '; } message_index_jump_to(); if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics'])) { // Action de modération et de manipulation des sujets en masse echo ''; // Show a list of boards they can move the topic to. if ($context['can_move']) echo ' '; echo ' '; } echo '
'; echo '
'; // Finish off the form - again. if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] > 0 && !empty($context['topics'])) echo '
'; echo '
', template_button_strip($context['normal_buttons'], ), ' ', $context['menu_separator'], ' '; // Mobile action buttons (bottom) if (!empty($context['normal_buttons'])) echo '
', $txt['mobile_action'], '
'; echo '
'; } if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']) && $context['can_move']) echo ' '; // Javascript for inline editing. echo ' '; template_topic_legend(); // Lets pop the... echo ' '; } /** * Outputs the board icon for a standard board. * * @param array $board Current board information. */ function template_bi_board_icon($board) { global $context, $scripturl; echo ' '; } /** * Outputs the board icon for a redirect. * * @param array $board Current board information. */ function template_bi_redirect_icon($board) { global $context, $scripturl; echo ' '; } /** * Outputs the board info for a standard board or redirect. * * @param array $board Current board information. */ function template_bi_board_info($board) { global $context, $scripturl, $txt; 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']) || !empty($board['moderator_groups'])) echo '

', count($board['link_moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '

'; } /** * Outputs the board stats for a redirect. * * @param array $board Current board information. */ function template_bi_redirect_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), '

'; } } /** * Shows a legend for topic icons. */ function template_topic_legend() { global $context, $settings, $txt, $modSettings; echo '
'; if (empty($context['no_topic_listing'])) echo '

' . $txt['khbb_caption'] . '

'; echo '
'; } ?>