<div class="woof-name-description"> <h3><?php _e('Drop-down', 'woocommerce-products-filter'); ?> </h3> <strong><?php _e('Drop-down price filter ranges', 'woocommerce-products-filter'); ?> </strong> <span><?php _e('Ranges for price filter.', 'woocommerce-products-filter'); ?> </span> <span><?php printf(__('Example: 0-50,51-100,101-i. Where "i" is infinity. Max price is %s.', 'woocommerce-products-filter'), WOOF_HELPER::get_max_price()); ?> </span> </div> <div class="woof-form-element"> <input type="text" class="woof_popup_option" data-option="ranges" placeholder="" value="" /> </div> </div> <div class="woof-form-element-container"> <div class="woof-name-description"> <strong><?php _e('Drop-down price filter text', 'woocommerce-products-filter');
<?php if (!isset($woof_settings['price_filter2_ranges'])) { $woof_settings['price_filter2_ranges'] = ''; } ?> <h4 style="margin-bottom: 5px;"><?php _e('Drop-down price filter ranges', 'woocommerce-products-filter'); ?> </h4> <input style="width: 80%;" type="text" name="woof_settings[price_filter2_ranges]" value="<?php echo $woof_settings['price_filter2_ranges']; ?> " /><br /> <i><?php printf(__('Ranges for price filter when its activated as drop down. Example: 0-50,51-100,101-i. Where "i" is infinity. Max price is %s.', 'woocommerce-products-filter'), WOOF_HELPER::get_max_price()); ?> </i><br /> <br /> <?php if (!isset($woof_settings['price_filter2_1opt_txt'])) { $woof_settings['price_filter2_1opt_txt'] = ''; } ?> <h4 style="margin-bottom: 5px;"><?php _e('Drop-down price filter text', 'woocommerce-products-filter'); ?> </h4>
} ?> <?php wp_enqueue_script('ion.range-slider', WOOF_LINK . 'js/ion.range-slider/js/ion-rangeSlider/ion.rangeSlider.min.js', array('jquery')); wp_enqueue_style('ion.range-slider', WOOF_LINK . 'js/ion.range-slider/css/ion.rangeSlider.css'); $ion_slider_skin = 'skinNice'; if (isset($this->settings['by_price']['ion_slider_skin'])) { $ion_slider_skin = $this->settings['by_price']['ion_slider_skin']; } wp_enqueue_style('ion.range-slider-skin', WOOF_LINK . 'js/ion.range-slider/css/ion.rangeSlider.' . $ion_slider_skin . '.css'); //*** $request = $this->get_request_data(); $uniqid = uniqid(); $preset_min = WOOF_HELPER::get_min_price(); $preset_max = WOOF_HELPER::get_max_price(); $min_price = $this->is_isset_in_request_data('min_price') ? esc_attr($request['min_price']) : $preset_min; $max_price = $this->is_isset_in_request_data('max_price') ? esc_attr($request['max_price']) : $preset_max; //*** if (class_exists('WOOCS')) { $preset_min = apply_filters('woocs_exchange_value', $preset_min); $preset_max = apply_filters('woocs_exchange_value', $preset_max); $min_price = apply_filters('woocs_exchange_value', $min_price); $max_price = apply_filters('woocs_exchange_value', $max_price); } //*** $slider_step = 1; if (isset($this->settings['by_price']['ion_slider_step'])) { $slider_step = $this->settings['by_price']['ion_slider_step']; if (!$slider_step) { $slider_step = 1;