' . $txt['boardsEdit'] . ' '; if (!empty($context['move_board'])) echo ' ', $context['move_title'], ' [', $txt['mboards_cancel_moving'], '] '; // Loop through every categories, 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 ' '; $alternate = false; // List through every board in the category, printing its name and link to modify the board. foreach ($category['boards'] as $board) { $alternate = !$alternate; echo ' '; if (!empty($board['move_links'])) { $alternate = !$alternate; echo ' '; } } // Button to add a new board. echo '
', $txt['mboards_name'], '
', $category['move_link']['label'], '
', $board['name'], !empty($modSettings['recycle_board']) && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board['id'] ? '   ' . $txt['recycle_board'] . '' : '', ' ', !empty($modSettings['permission_enable_by_board']) && $context['can_manage_permissions'] ? '' . $txt['mboards_permissions'] . '' : '', ' ', $txt['mboards_move'], ' ', $txt['mboards_modify'], '
'; foreach ($board['move_links'] as $link) echo '', $link['label'], ''; 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 ' '; } // Allow the user to edit the category name and/or choose whether you can collapse the category. echo ' '; // Table footer. echo '
', $txt[43], '


', $txt[44], ':
', $txt[672], '

' . $txt['collapse_enable'] . '
' . $txt['collapse_desc'] . '


'; if (isset($context['category']['is_new'])) echo ' '; else echo ' '; 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 ' '; // 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 ' '; } // Options for board name and description. echo ' '; if (empty($modSettings['permission_enable_by_board'])) { echo ' '; } // Options to choose moderators, specifiy as announcement board and choose whether to count posts here. echo ' '; // Here the user can choose to force this board to use a theme other than the default theme for the forum. echo ' '; // Finish off the table. echo '
', $txt['mboards_category'], '


', $txt[43], '


'; // 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 '
', $txt[44], ':
', $txt[672], '

', $txt['mboards_description'], '
', $txt['mboards_description_desc'], '

', $txt['mboards_groups'], '
', $txt['mboards_groups_desc'], '

'; // List all the membergroups so the user can choose who may access this board. foreach ($context['groups'] as $group) echo '
'; echo ' ', $txt[737], '

', $txt['mboards_permissions_title'], '
', $txt['mboards_permissions_desc'], '
', $txt['permission_mode_normal'], '
', $txt['permission_mode_no_polls'], '
', $txt['permission_mode_reply_only'], '
', $txt['permission_mode_read_only'], '

', $txt['mboards_moderators'], '
', $txt['mboards_moderators_desc'], '

', $txt['find_members'], '
', $txt['mboards_count_posts'], '
', $txt['mboards_count_posts_desc'], '

', $txt['mboards_theme'], '
', $txt['mboards_theme_desc'], '

', $txt['mboards_override_theme'], '
', $txt['mboards_override_theme_desc'], '


'; if (isset($context['board']['is_new'])) echo ' '; else echo ' '; echo '
'; // If this board has no children don't bother with the next confirmation screen. if ($context['board']['no_children']) echo ' '; 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'], ':

:
'; } function template_modify_general_settings() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
'; if ($context['can_change_permissions']) { echo ' '; } echo '
', $txt['settings'], '
', $txt['groups_manage_boards'], ': '; theme_inline_permissions('manage_boards'); echo '

(?):
(?):
', $txt['recycle_board'], ':
'; } ?>