<?php if (!defined('ABSPATH')) exit; ?>

<div id="posttype-simple_ajax_product_search_toggle" class="posttypediv">

    <p><?php esc_html_e('Add the simple AJAX product search toggle to your menu.', 'simple-ajax-product-search-for-woocommerce'); ?></p>

    <div id="tabs-panel-simple_ajax_product_search_toggle" class="tabs-panel tabs-panel-active">
        <ul id="simple_ajax_product_search_toggle-checklist" class="categorychecklist form-no-clear">
            <li>
                <label class="menu-item-title">
                    <input type="checkbox" class="menu-item-checkbox" name="menu-item[-1][menu-item-object-id]"
                           value="-1">
                    <?php esc_html_e('Simple AJAX Product Search Toggle', 'simple-ajax-product-search-for-woocommerce'); ?>
                </label>

                <input type="hidden" class="menu-item-type" name="menu-item[-1][menu-item-type]" value="custom">
                <input type="hidden" class="menu-item-title" name="menu-item[-1][menu-item-title]"
                       value="<?php echo esc_attr(__('Simple AJAX Product Search Toggle', 'simple-ajax-product-search-for-woocommerce')); ?>">
                <input type="hidden" class="menu-item-url" name="menu-item[-1][menu-item-url]"
                       value="<?php echo esc_attr('#sapsfwc-toggle'); ?>">
                <input type="hidden" class="menu-item-classes" name="menu-item[-1][menu-item-classes]" value="">
                <input type="hidden" class="menu-item-status" name="menu-item[-1][menu-item-status]" value="publish">
            </li>
        </ul>
    </div>

    <p class="button-controls">
        <span class="add-to-menu">
            <input type="submit"
                   class="button-secondary submit-add-to-menu right"
                   name="add-post-type-menu-item"
                   id="submit-posttype-simple_ajax_product_search_toggle"
                   value="<?php esc_attr_e('Add to Menu', 'simple-ajax-product-search-for-woocommerce'); ?>">
            <span class="spinner"></span>
        </span>
    </p>

</div>