', $txt['boards_edit'], '

'; 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['cat_modify'], '

'; // Boards table header. echo '
'; } echo '
'; } /** * Template for editing/adding a category on the forum. */ function template_modify_category() { global $context, $scripturl, $txt; // Print table header. echo '

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

'; // 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'], '
', str_replace('{allowed_tags}', implode(', ', $context['description_allowed_tags']), $txt['mboards_cat_description_desc']), '
', $txt['collapse_enable'], '
', $txt['collapse_desc'], '
'; // Show any category settings added by mods using the 'integrate_edit_category' hook. if (!empty($context['custom_category_settings']) && is_array($context['custom_category_settings'])) { foreach ($context['custom_category_settings'] as $catset_id => $catset) { if (!empty($catset['dt']) && !empty($catset['dd'])) echo '
', $catset['dt'], '
', $catset['dd'], ' '; } } // Table footer. echo '
'; 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, $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 a board on the forum. */ function template_modify_board() { global $context, $scripturl, $txt, $modSettings; // The main table header. echo '

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

'; // 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'], ':
', str_replace('{allowed_tags}', implode(', ', $context['description_allowed_tags']), $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, specify 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'], '
'; // Show any board settings added by mods using the 'integrate_edit_board' hook. if (!empty($context['custom_board_settings']) && is_array($context['custom_board_settings'])) { echo '
'; foreach ($context['custom_board_settings'] as $cbs_id => $cbs) { if (!empty($cbs['dt']) && !empty($cbs['dd'])) echo '
', $cbs['dt'], '
', $cbs['dd'], ' '; } echo '
'; } 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, $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'], '


:

'; } ?>