Fixes: Vertical search form

This commit is contained in:
Hoang Huu
2020-06-05 15:07:54 +07:00
parent 47262e47ec
commit 23d42cb6de
7 changed files with 42 additions and 11 deletions

View File

@@ -13,6 +13,8 @@ $display_country = isset( $display_country ) ? $display_country : true;
$display_state = isset( $display_state ) ? $display_state : true;
$display_city = isset( $display_city ) ? $display_city : true;
$display_more_options = isset( $display_more_options ) ? $display_more_options : true;
$info_number_input = isset( $info_number_input ) ? $info_number_input : true;
$type = $info_number_input ? 'input' : 'select';
$form_classes = [
'opalestate-search-form',
@@ -49,7 +51,7 @@ $form_classes = [
<div class="form-item form-item--information">
<h6> <?php esc_html_e( 'Information', 'opalestate-pro' ); ?></h6>
<?php echo opalestate_load_template_path( 'search-box/fields/group-info', [ 'type' => 'input' ] ); ?>
<?php echo opalestate_load_template_path( 'search-box/fields/group-info', [ 'type' => $type ] ); ?>
</div>
<?php if ( opalestate_is_enable_price_field() ) : ?>