File manager - Edit - /home/vblioqus/y999-game.pro/wp-content/themes/stcustom-6-new/searchform-custom.php
Back
<form role="search" method="get" id="searchform" class="searchform woocommerce-product-search" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div class="search-field col-lg-7 col-md-7 col-sm-6 col-xs-9 pl-0"> <input type="search" id="woocommerce-product-search-field-<?php echo isset( $index ) ? absint( $index ) : 0; ?>" class="search-text" placeholder="Search for apps & gamaes" value="<?php echo get_search_query(); ?>" name="s" /> </div> <div class="search-category col-lg-3 col-md-3 col-sm-4 hidden-xs pl-5 pr-0 "> <div class="sCat_wrap row ml-0 mr-0"> <?php $taxonomy = 'category'; $orderby = 'name'; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hierarchical = 1; // 1 for yes, 0 for no $title = ''; $empty = 0; $args = array( 'taxonomy' => $taxonomy, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); $all_categories = get_categories( $args ); ?> <select name="search_cat" class="search-cat"> <option value="any">All Categories</option> <?php foreach ($all_categories as $cat) { if($cat->category_parent == 0) { $category_id = $cat->term_id; echo '<option value="'.$cat->term_id.'">'.$cat->name.'</option>'; $args2 = array( 'taxonomy' => $taxonomy, 'child_of' => 0, 'parent' => $category_id, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); $sub_cats = get_categories( $args2 );?> <?php if($sub_cats) { foreach($sub_cats as $sub_category) { echo '<option value="'.$sub_category->term_id.'">'.$sub_category->name.'</option>' ; } } ?> <?php } } ?> </select> </div> </div> <div class="search-button col-lg-2 col-md-2 col-sm-2 col-xs-3 pl-0 pr-10"> <button type="submit" id="searchsubmit" class="sbmt-btn"><i class="fa fa-search"></i></button> </div> </form>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings