';
// 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 '
';
// Boards table header.
echo '
';
}
echo '
';
}
// Template for editing/adding a category on the forum.
function template_modify_category()
{
global $context, $options, $scripturl, $txt;
// Print table header.
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, $options, $scripturl, $txt;
// Print table header.
echo '
';
}
// 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 '
';
// 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, $options, $scripturl, $txt;
// Print table header.
echo '