ru-se.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

product-searchform.php (1531B)


      1 <?php
      2 /**
      3  * The template for displaying product search form
      4  *
      5  * This template can be overridden by copying it to yourtheme/woocommerce/product-searchform.php.
      6  *
      7  * HOWEVER, on occasion WooCommerce will need to update template files and you
      8  * (the theme developer) will need to copy the new files to your theme to
      9  * maintain compatibility. We try to do this as little as possible, but it does
     10  * happen. When this occurs the version of the template file will be bumped and
     11  * the readme will list any important changes.
     12  *
     13  * @see     https://docs.woocommerce.com/document/template-structure/
     14  * @package WooCommerce\Templates
     15  * @version 3.3.0
     16  */
     17 
     18 if ( ! defined( 'ABSPATH' ) ) {
     19 	exit;
     20 }
     21 
     22 ?>
     23 <form role="search" method="get" class="search-form woocommerce-product-search" action="<?php echo esc_url( home_url( '/' ) ); ?>">
     24     <div class="mdc-text-field mdc-text-field--upgraded">
     25         <input type="search" id="woocommerce-product-search-field-<?php echo isset( $index ) ? absint( $index ) : 0; ?>" class="search-field mdc-text-field__input" placeholder="<?php echo esc_attr__( 'Search products&hellip;', 'woocommerce' ); ?>" value="<?php echo get_search_query(); ?>" name="s">
     26         <label class="mdc-floating-label" for="woocommerce-product-search-field-<?php echo isset( $index ) ? absint( $index ) : 0; ?>"><?php echo esc_attr__( 'Search products&hellip;', 'woocommerce' ); ?></label>
     27         <div class="mdc-line-ripple"></div>
     28         <input type="hidden" name="post_type" value="product" />
     29     </div>
     30 </form>