';
Chris@76:
Chris@76: // No categories so show a label.
Chris@76: if (empty($context['categories']))
Chris@76: echo '
Chris@76:
Chris@76:
Chris@76:
Chris@76: ', $txt['mboards_no_cats'], '
Chris@76:
Chris@76:
Chris@76:
';
Chris@76:
Chris@76: // Loop through every category, listing the boards in each as we go.
Chris@76: foreach ($context['categories'] as $category)
Chris@76: {
Chris@76: // Link to modify the category.
Chris@76: echo '
Chris@76:
';
Chris@76:
Chris@76: // Boards table header.
Chris@76: echo '
Chris@76: ';
Chris@76: }
Chris@76: echo '
Chris@76:
Chris@76: ';
Chris@76: }
Chris@76:
Chris@76: // Template for editing/adding a category on the forum.
Chris@76: function template_modify_category()
Chris@76: {
Chris@76: global $context, $settings, $options, $scripturl, $txt;
Chris@76:
Chris@76: // Print table header.
Chris@76: echo '
Chris@76:
Chris@76:
Chris@76:
Chris@76: ';
Chris@76: }
Chris@76:
Chris@76: // A template to confirm if a user wishes to delete a category - and whether they want to save the boards.
Chris@76: function template_confirm_category_delete()
Chris@76: {
Chris@76: global $context, $settings, $options, $scripturl, $txt;
Chris@76:
Chris@76: // Print table header.
Chris@76: echo '
Chris@76:
Chris@76:
Chris@76:
Chris@76: ';
Chris@76: }
Chris@76:
Chris@76: // Below is the template for adding/editing an board on the forum.
Chris@76: function template_modify_board()
Chris@76: {
Chris@76: global $context, $settings, $options, $scripturl, $txt, $modSettings;
Chris@76:
Chris@76: // The main table header.
Chris@76: echo '
Chris@76:
Chris@76:
Chris@76:
Chris@76:
Chris@76:
Chris@76: ';
Chris@76:
Chris@76: // Javascript for deciding what to show.
Chris@76: echo '
Chris@76: ';
Chris@76: }
Chris@76:
Chris@76: // A template used when a user is deleting a board with child boards in it - to see what they want to do with them.
Chris@76: function template_confirm_board_delete()
Chris@76: {
Chris@76: global $context, $settings, $options, $scripturl, $txt;
Chris@76:
Chris@76: // Print table header.
Chris@76: echo '
Chris@76: