', $txt['boardsEdit'], '

'; if (!empty($context['move_board'])) echo '

', $context['move_title'], ' [', $txt['mboards_cancel_moving'], ']', '

'; // No categories so show a label. if (empty($context['categories'])) echo '
', $txt['mboards_no_cats'], '
'; // Loop through every category, listing the boards in each as we go. foreach ($context['categories'] as $category) { // Link to modify the category. echo '

', $category['name'], ' ', $txt['catModify'], '

'; // Boards table header. echo '
    '; if (!empty($category['move_link'])) echo '
  • ', $category['move_link']['label'], '
  • '; $alternate = false; $recycle_board = ' ' . $txt['recycle_board'] . ''; $redirect_board = '' . $txt['redirect_board_desc'] . ''; // List through every board in the category, printing its name and link to modify the board. foreach ($category['boards'] as $board) { echo ' ', $board['name'], '', !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? $recycle_board : '', $board['is_redirect'] ? $redirect_board : '', ' ', $context['can_manage_permissions'] ? '' . $txt['mboards_permissions'] . '' : '', ' ', $txt['mboards_move'], ' ', $txt['mboards_modify'], '
    '; if (!empty($board['move_links'])) { $alternate = !$alternate; echo '
  • '; foreach ($board['move_links'] as $link) echo ' ', $link['label'], ''; echo '
  • '; } $alternate = !$alternate; } // Button to add a new board. echo '
'; } echo ' '; } // Template for editing/adding a category on the forum. function template_modify_category() { global $context, $settings, $options, $scripturl, $txt; // Print table header. echo '

', isset($context['category']['is_new']) ? $txt['mboards_new_cat_name'] : $txt['catEdit'], '

'; // If this isn't the only category, let the user choose where this category should be positioned down the board index. if (count($context['category_order']) > 1) { echo '
', $txt['order'], ':
'; } // Allow the user to edit the category name and/or choose whether you can collapse the category. echo '
', $txt['full_name'], ':
', $txt['name_on_display'], '
', $txt['mboards_description'], '
', $txt['mboards_cat_description_desc'], '
', $txt['collapse_enable'], '
', $txt['collapse_desc'], '
'; // Table footer. echo '
'; if (isset($context['category']['is_new'])) echo ' '; else echo ' '; echo ' '; if (!empty($context['token_check'])) echo ' '; // If this category is empty we don't bother with the next confirmation screen. if ($context['category']['is_empty']) echo ' '; echo '
'; } // A template to confirm if a user wishes to delete a category - and whether they want to save the boards. function template_confirm_category_delete() { global $context, $settings, $options, $scripturl, $txt; // Print table header. echo '

', $txt['mboards_delete_cat'], '

', $txt['mboards_delete_cat_contains'], ':

    '; foreach ($context['category']['children'] as $child) echo '
  • ', $child, '
  • '; echo '

', $txt['mboards_delete_what_do'], '


:

'; } // Below is the template for adding/editing an board on the forum. function template_modify_board() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // The main table header. echo '

', isset($context['board']['is_new']) ? $txt['mboards_new_board_name'] : $txt['boardsEdit'], '

'; // Option for choosing the category the board lives in. echo '
', $txt['mboards_category'], ':
'; // If this isn't the only board in this category let the user choose where the board is to live. if ((isset($context['board']['is_new']) && count($context['board_order']) > 0) || count($context['board_order']) > 1) { echo '
', $txt['order'], ':
'; // The first select box gives the user the option to position it before, after or as a child of another board. echo ' '; // The second select box lists all the boards in the category. echo '
'; } // Options for board name and description. echo '
', $txt['full_name'], ':
', $txt['name_on_display'], '
', $txt['mboards_description'], ':
', $txt['mboards_description_desc'], '
', $txt['permission_profile'], ':
', $context['can_manage_permissions'] ? sprintf($txt['permission_profile_desc'], $scripturl . '?action=admin;area=permissions;sa=profiles;' . $context['session_var'] . '=' . $context['session_id']) : strip_tags($txt['permission_profile_desc']), '
', $txt['mboards_groups'], ':
', empty($modSettings['deny_boards_access']) ? $txt['mboards_groups_desc'] : $txt['boardsaccess_option_desc'], ''; echo '
'; if (!empty($modSettings['deny_boards_access'])) echo ' '; // List all the membergroups so the user can choose who may access this board. foreach ($context['groups'] as $group) if (empty($modSettings['deny_boards_access'])) echo '
'; else echo ' '; if (empty($modSettings['deny_boards_access'])) echo ' ', $txt['check_all'], '

'; else echo '
', $txt['permissions_option_on'], ' ', $txt['permissions_option_off'], ' ', $txt['permissions_option_deny'], '
', $txt['check_all'], '
'; // Options to choose moderators, specifiy as announcement board and choose whether to count posts here. echo '
', $txt['mboards_moderators'], ':
', $txt['mboards_moderators_desc'], '
', $txt['mboards_moderator_groups'], ':
', $txt['mboards_moderator_groups_desc'], '

'; if (empty($context['board']['is_recycle']) && empty($context['board']['topics'])) { echo '
', $txt['mboards_redirect'], ':
', $txt['mboards_redirect_desc'], '
', $txt['mboards_redirect_url'], ':
', $txt['mboards_redirect_url_desc'], '
'; if ($context['board']['redirect']) echo '
', $txt['mboards_redirect_reset'], ':
', $txt['mboards_redirect_reset_desc'], '
(', sprintf($txt['mboards_current_redirects'], $context['board']['posts']), ')
'; } echo '
', $txt['mboards_count_posts'], ':
', $txt['mboards_count_posts_desc'], '
'; // Here the user can choose to force this board to use a theme other than the default theme for the forum. echo '
', $txt['mboards_theme'], ':
', $txt['mboards_theme_desc'], '
', $txt['mboards_override_theme'], ':
', $txt['mboards_override_theme_desc'], '
'; if (!empty($context['board']['is_recycle'])) echo '
', $txt['mboards_recycle_disabled_delete'], '
'; echo ' '; // If this board has no children don't bother with the next confirmation screen. if ($context['board']['no_children']) echo ' '; if (isset($context['board']['is_new'])) echo ' '; else echo ' '; if (!isset($context['board']['is_new']) && empty($context['board']['is_recycle'])) echo ' '; echo '
'; // Javascript for deciding what to show. echo ' '; } // A template used when a user is deleting a board with child boards in it - to see what they want to do with them. function template_confirm_board_delete() { global $context, $settings, $options, $scripturl, $txt; // Print table header. echo '

', $txt['mboards_delete_board'], '

', $txt['mboards_delete_board_contains'], '

    '; foreach ($context['children'] as $child) echo '
  • ', $child['node']['name'], '
  • '; echo '

', $txt['mboards_delete_what_do'], '


:

'; } ?>