auth
1 year ago
block-notices
1 year ago
brands
1 year ago
cart
1 year ago
checkout
1 year ago
emails
1 year ago
global
1 year ago
loop
1 year ago
myaccount
1 year ago
notices
2 years ago
order
1 year ago
parts
1 year ago
product-form
1 year ago
single-product
1 year ago
templates
1 year ago
archive-product.php
2 years ago
content-product-cat.php
2 years ago
content-product.php
1 year ago
content-single-product.php
2 years ago
content-widget-price-filter.php
2 years ago
content-widget-product.php
2 years ago
content-widget-reviews.php
2 years ago
product-searchform.php
2 years ago
single-product-reviews.php
2 years ago
single-product.php
2 years ago
taxonomy-product-attribute.php
2 years ago
taxonomy-product-cat.php
2 years ago
taxonomy-product-tag.php
2 years ago
content-widget-price-filter.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The template for displaying product price filter widget. |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/content-widget-price-filter.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://woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates |
| 15 | * @version 7.0.1 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | |
| 20 | ?> |
| 21 | <?php do_action( 'woocommerce_widget_price_filter_start', $args ); ?> |
| 22 | |
| 23 | <form method="get" action="<?php echo esc_url( $form_action ); ?>"> |
| 24 | <div class="price_slider_wrapper"> |
| 25 | <div class="price_slider" style="display:none;"></div> |
| 26 | <div class="price_slider_amount" data-step="<?php echo esc_attr( $step ); ?>"> |
| 27 | <label class="screen-reader-text" for="min_price"><?php esc_html_e( 'Min price', 'woocommerce' ); ?></label> |
| 28 | <input type="text" id="min_price" name="min_price" value="<?php echo esc_attr( $current_min_price ); ?>" data-min="<?php echo esc_attr( $min_price ); ?>" placeholder="<?php echo esc_attr__( 'Min price', 'woocommerce' ); ?>" /> |
| 29 | <label class="screen-reader-text" for="max_price"><?php esc_html_e( 'Max price', 'woocommerce' ); ?></label> |
| 30 | <input type="text" id="max_price" name="max_price" value="<?php echo esc_attr( $current_max_price ); ?>" data-max="<?php echo esc_attr( $max_price ); ?>" placeholder="<?php echo esc_attr__( 'Max price', 'woocommerce' ); ?>" /> |
| 31 | <?php /* translators: Filter: verb "to filter" */ ?> |
| 32 | <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 echo esc_html__( 'Filter', 'woocommerce' ); ?></button> |
| 33 | <div class="price_label" style="display:none;"> |
| 34 | <?php echo esc_html__( 'Price:', 'woocommerce' ); ?> <span class="from"></span> — <span class="to"></span> |
| 35 | </div> |
| 36 | <?php echo wc_query_string_form_fields( null, array( 'min_price', 'max_price', 'paged' ), '', true ); ?> |
| 37 | <div class="clear"></div> |
| 38 | </div> |
| 39 | </div> |
| 40 | </form> |
| 41 | |
| 42 | <?php do_action( 'woocommerce_widget_price_filter_end', $args ); ?> |
| 43 |