30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* فرم جستجوی محصول — Hesabix2
|
|
*
|
|
* @see https://woocommerce.com/document/template-structure/
|
|
* @package Hesabix2
|
|
* @version 7.0.1
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
$field_id = 'woocommerce-product-search-field-' . ( isset( $index ) ? absint( $index ) : 0 );
|
|
?>
|
|
<form role="search" method="get" class="woocommerce-product-search hesabix-wc-product-search" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
|
<label class="screen-reader-text" for="<?php echo esc_attr( $field_id ); ?>"><?php esc_html_e( 'جستجوی محصول', 'hesabix2' ); ?></label>
|
|
<input
|
|
type="search"
|
|
id="<?php echo esc_attr( $field_id ); ?>"
|
|
class="search-field"
|
|
placeholder="<?php echo esc_attr__( 'نام محصول را جستجو کنید…', 'hesabix2' ); ?>"
|
|
value="<?php echo esc_attr( get_search_query() ); ?>"
|
|
name="s"
|
|
/>
|
|
<button type="submit" class="button<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?>">
|
|
<?php esc_html_e( 'جستجو', 'hesabix2' ); ?>
|
|
</button>
|
|
<input type="hidden" name="post_type" value="product" />
|
|
</form>
|