<?php defined('ABSPATH') || exit; ?>
<div id="dejavo_search" class="dejavo_popup mfp-with-anim mfp-hide">
    <form class="dejavo_search style3" action="<?php echo home_url(); ?>" method="get" id="search-form">
        <input name="s" id="s" value="<?php esc_attr(apply_filters('the_search_query', get_search_query())); ?>" class="form" type="search" placeholder="<?php _e('جستجو در', 'dejavo') . ' ' . bloginfo('name') ?> ..." aria-label="Search">
        <div class="search_cats_btn"><i class="dej-settings-sliders"></i></div>
        <?php if (is_woo_activated()) {
            $category_args = apply_filters('DejavoSE_search_category_args', array(
                'name' => 'DejavoSE-search-cats',
                'class' => 'DejavoSE_search_cats',
                'hide_empty' => 0,
                'value_field' => 'id',
                'show_option_all' => esc_html__('All categories', 'dejavo'),
                'show_option_none' => '',
            ));
            wc_product_dropdown_categories($category_args);
            if (is_woo_activated() and (is_product() || is_home() || is_product_taxonomy() || is_shop() || is_page())) {
                echo '<input type="hidden" name="post_type" value="product">';
            }
        }
        ?>
        <button class="dejavo_search_btn" type="submit"><i class="dej-search"></i></button>
    </form>
</div>