Add search price input layout

This commit is contained in:
Hoang Huu
2020-03-24 10:22:00 +07:00
parent 32c3a3da9a
commit 71a9c2227e
6 changed files with 77 additions and 40 deletions

View File

@@ -21,5 +21,8 @@ if ( opalestate_options( 'currency_position', 'before' ) == 'before' ) {
$data['unit_position'] = 'prefix';
}
?>
<?php opalesate_property_slide_ranger_template( esc_html__( 'Price', 'opalestate-pro' ), $data ); ?>
if ( 'input' === opalestate_get_option( 'price_input_type', 'slider' ) ) {
echo opalestate_load_template_path( 'search-box/fields/price-input', [ 'data' => $data ] );
} else {
opalesate_property_slide_ranger_template( esc_html__( 'Price', 'opalestate-pro' ), $data );
}