<?php 
    mb_dropdown_forums(array('child_type' => mb_get_topic_post_type(), 'name' => 'mb_forum_id', 'id' => 'mb_forum_id', 'selected' => mb_get_topic_forum_id()));
    ?>
			</p><!-- .mb-form-parent -->

		<?php 
}
?>

		<p class="mb-form-type">
			<label for="mb_topic_type"><?php 
mb_topic_label('mb_form_type');
?>
</label>
			<?php 
mb_dropdown_topic_type();
?>
		</p><!-- .mb-form-type -->

		<p class="mb-form-status">
			<label for="mb_post_status"><?php 
mb_topic_label('mb_form_status');
?>
</label>
			<?php 
mb_dropdown_topic_status(array('name' => 'mb_post_status', 'id' => 'mb_post_status', 'selected' => mb_get_topic_status()));
?>
		</p><!-- .mb-form-status -->

		<div class="mb-form-content">
			<label class="screen-reader-text" for="mb_topic_content"><?php 
/**
 * Topic attributes meta box.  This handles whether the topic is sticky and the parent forum. It also 
 * has the hidden input to save the proper `menu_order` field for the post.
 *
 * @since  1.0.0
 * @access public
 * @param  object  $post
 * @return void
 */
function mb_topic_attributes_meta_box($post)
{
    wp_nonce_field('_mb_topic_attr_nonce', 'mb_topic_attr_nonce');
    $topic_type_object = get_post_type_object(mb_get_topic_post_type());
    ?>

	<p>
		<label for="mb_topic_type">
			<strong><?php 
    _e('Topic Type:', 'message-board');
    ?>
</strong>
		</label>
	</p>
	<p>
		<?php 
    mb_dropdown_topic_type(array('selected' => mb_get_topic_type($post->ID)));
    ?>
	</p>

	<p>
		<label for="mb_parent_forum">
			<strong><?php 
    echo $topic_type_object->labels->parent_item_colon;
    ?>
</strong>
		</label>
	</p>
	<p>
		<?php 
    mb_dropdown_forums(array('child_type' => mb_get_topic_post_type(), 'name' => 'parent_id', 'id' => 'mb_parent_forum', 'selected' => !empty($post->post_parent) ? $post->post_parent : mb_get_default_forum_id()));
    ?>
	</p>

	<?php 
    $order = 0 != $post->ID ? $post->post_date : current_time('mysql');
    ?>
	<input type="hidden" name="menu_order" value="<?php 
    echo esc_attr(mysql2date('U', $order));
    ?>
" />
<?php 
}