_e('Topic title: (be brief and descriptive)', 'message-board');
?>
</label>
			<input type="text" id="mb_topic_title" name="mb_topic_title" value="<?php 
echo esc_attr(mb_get_topic_title());
?>
" />
		</p>

		<p>
			<label for="mb_topic_forum"><?php 
_e('Select a forum:', 'message-board');
?>
</label>
			<?php 
mb_dropdown_forums(array('child_type' => mb_get_topic_post_type(), 'name' => 'mb_topic_forum', 'id' => 'mb_topic_forum', 'selected' => mb_get_topic_forum_id()));
?>
		</p>

		<p>
			<label for="mb_topic_content"><?php 
_e('Please put code in between <code>`backtick`</code> characters.', 'message-board');
?>
</label>
			<textarea id="mb_topic_content" name="mb_topic_content"><?php 
echo format_to_edit(mb_code_trick_reverse(mb_get_topic_content(mb_get_topic_id(), 'raw')));
?>
</textarea>
		</p>

		<p>
_e('Forum Title:', 'message-board');
?>
</label>
			<input type="text" id="mb_forum_title" name="mb_forum_title" value="<?php 
echo esc_attr(mb_get_forum_title());
?>
" />
		</p>

		<p>
			<label for="mb_post_parent"><?php 
_e('Parent Forum:', 'message-board');
?>
</label>
			<?php 
mb_dropdown_forums(array('name' => 'mb_post_parent', 'id' => 'mb_post_parent', 'show_option_none' => __('(no parent)', 'message-board'), 'option_none_value' => 0, 'selected' => mb_get_forum_parent_id()));
?>
		</p>

		<p>
			<label for="mb_forum_type"><?php 
_e('Forum Type:', 'message-board');
?>
</label>
			<select id="mb_forum_type" name="mb_forum_type">
			<?php 
foreach (mb_get_forum_type_objects() as $forum_type) {
    ?>
				<option value="<?php 
    echo esc_attr($forum_type->name);
    ?>
/**
 * 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 
}