Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/www/wp-content/themes/puca/page-templates/themes/fashion/parts/ |
Upload File : |
<?php if ( puca_tbay_get_config('show_searchform') ): ?> <?php $_id = puca_tbay_random_key(); $search_class = ( puca_tbay_get_global_config('autocomplete_search') ) ? 'tbay-search-ajax' : ''; ?> <div class="tbay-search-form <?php echo esc_attr($search_class); ?>"> <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get" id="form-search-<?php echo esc_attr($_id); ?>"> <div class="form-group"> <div class="input-group"> <?php if ( puca_tbay_get_config('search_type') != 'all' && puca_tbay_get_config('search_category') ): ?> <?php wp_enqueue_style('sumoselect'); wp_enqueue_script('jquery-sumoselect'); ?> <div class="select-category input-group-addon"> <?php if ( puca_tbay_get_config('search_type') == 'product' ): $args = array( 'show_counts' => false, 'hierarchical' => true, 'show_uncategorized' => 0 ); ?> <?php wc_product_dropdown_categories( $args ); ?> <?php elseif ( puca_tbay_get_config('search_type') == 'post' ): $args = array( 'show_option_all' => esc_html__( 'All categories', 'puca' ), 'show_counts' => false, 'hierarchical' => true, 'show_uncategorized' => 0, 'name' => 'category', 'id' => 'search-category', 'class' => 'postform dropdown_product_cat', ); ?> <?php wp_dropdown_categories( $args ); ?> <?php endif; ?> </div> <?php endif; ?> <input type="text" placeholder="<?php esc_attr_e( 'Search...', 'puca' ); ?>" name="s" required oninvalid="this.setCustomValidity('<?php esc_html_e('Enter at least 2 characters', 'puca'); ?>')" oninput="setCustomValidity('')" class="tbay-search form-control input-sm"/> <div class="tbay-preloader"></div> <div class="button-group input-group-addon"> <button type="submit" class="button-search btn btn-sm"><i class="icon-magnifier"></i></button> </div> <?php if ( puca_tbay_get_config('search_type') != 'all' ): ?> <input type="hidden" name="post_type" value="<?php echo esc_attr( puca_tbay_get_config('search_type') ); ?>" class="post_type" /> <?php endif; ?> </div> </div> </form> </div> <?php endif; ?>