<?php
/**
 * Provide an admin view for Category creation
 *
 * @since      1.0.0
 *
 * @package    PersonalizeWP
 * @subpackage PersonalizeWP/Admin/Partials
 */

namespace PersonalizeWP\Admin\Partials;

use PersonalizeWP\Admin\PageCategories;

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

?>

<main class="flow">
	<h2 class="section-title"><?php esc_html_e( 'Add New Category', 'personalizewp' ); ?></h2>
	<div class="section-description">
		<p><?php esc_html_e( 'Create a new category using the options below.', 'personalizewp' ); ?></p>
	</div>

	<form action="<?php echo esc_url( admin_url( PageCategories::$create_url ) ); ?>" method="post" accept-charset="UTF-8" class="pwp-form flow">
		<?php
		wp_nonce_field( 'category-create' );
		$modal_mode = false;
		require_once __DIR__ . '/_form.php';
		?>
	</form>
</main>
