File "woof_price_filter_text.php"
Full Path: /home/vantageo/public_html/cache/cache/cache/.wp-cli/wp-content/plugins/woocommerce-products-filter/views/shortcodes/woof_price_filter_text.php
File size: 1.77 KB
MIME-type: text/x-php
Charset: utf-8
<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
<?php
$request_data = $this->get_request_data();
$min_price = 0;
$max_price = WOOF_HELPER::get_max_price();
$min_price_txt = esc_html__('min price', 'woocommerce-products-filter');
$max_price_txt = esc_html__('max price', 'woocommerce-products-filter');
if (isset($request_data['min_price'])) {
$min_price = $request_data['min_price'];
}
if (isset($request_data['max_price'])) {
$max_price = $request_data['max_price'];
}
//+++
$min_price_data = $min_price;
$max_price_data = $max_price;
//WOOCS compatibility
if (class_exists('WOOCS')) {
$min_price_data = apply_filters('woocs_exchange_value', $min_price_data);
$max_price_data = apply_filters('woocs_exchange_value', $max_price_data);
}
$price_id = uniqid('woof_txt_price');
?>
<div class="woof_price_filter_txt_container">
<label class="woof_wcga_label_hide" for="<?php esc_attr_e($price_id) ?>_from"><?php esc_html_e($min_price_txt) ?></label>
<input id="<?php esc_attr_e($price_id) ?>_from" type="text" class="woof_price_filter_txt woof_price_filter_txt_from" placeholder="<?php esc_html_e($min_price_txt) ?>" data-value="<?php esc_attr_e($min_price_data) ?>" value="<?php esc_attr_e($min_price) ?>" />
<label class="woof_wcga_label_hide" for="<?php esc_attr_e($price_id) ?>_to"><?php esc_html_e($max_price_txt) ?></label>
<input id="<?php esc_attr_e($price_id) ?>_to" type="text" class="woof_price_filter_txt woof_price_filter_txt_to" placeholder="<?php esc_html_e($max_price_txt) ?>" name="max_price" data-value="<?php esc_attr_e($max_price_data) ?>" value="<?php esc_attr_e($max_price) ?>" />
<?php if (class_exists('WOOCS')): ?>
(<?php esc_html_e(get_woocommerce_currency_symbol()) ?>)
<?php endif; ?>
</div>
<?php