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

@@ -256,6 +256,17 @@ class Opalestate_Settings_Property_Tab extends Opalestate_Settings_Base_Tab {
],
];
$fields[] = [
'name' => esc_html__( 'Price input type', 'opalestate-pro' ),
'options' => [
'slider' => esc_html__( 'Range slider', 'opalestate-pro' ),
'input' => esc_html__( 'Input', 'opalestate-pro' ),
],
'id' => 'price_input_type',
'type' => 'select',
'default' => 'slider',
];
foreach ( $metas as $key => $meta ) {
$fields[] = [
'name' => $meta['name'],

View File

@@ -223,42 +223,6 @@ function opalestate_toggle_featured_property() {
}
/**
* load more properties by agency
*/
// add_action( 'wp_ajax_get_agency_property', 'opalestate_load_more_agency_property' );
// add_action( 'wp_ajax_nopriv_get_agency_property', 'opalestate_load_more_agency_property' );
//
// function opalestate_load_more_agency_property() {
//
//
// $post = [
// 'post_id' => 0,
// 'paged' => 1,
// 'user_id' => 13,
// 'related' => '',
// 'limit' => apply_filters( 'opalesate_agency_properties_limit', 5 ),
// ];
//
// $post = array_merge( $post, $_POST );
// extract( $post );
//
// $user_id = get_post_meta( absint( $post_id ), OPALESTATE_AGENCY_PREFIX . 'user_id', true );
// $query = Opalestate_Query::get_agency_property( absint( $post_id ), absint( $user_id ), absint( $limit ), absint( $paged ) );
//
// if ( $query->have_posts() ) :
// while ( $query->have_posts() ) : $query->the_post(); ?>
<!-- <div class="col-lg-12 col-md-12 col-sm-12">-->
<!-- --><?php //echo opalestate_load_template_path( 'content-property-list-v2' ); ?>
<!-- </div>-->
<!-- --><?php //endwhile;
// endif;
// wp_reset_postdata();
// exit;
// }
/**
* load more properties by agency
*/
@@ -270,7 +234,7 @@ function opalestate_get_agent_property() {
$post = [
'paged' => 1,
'id' => 13,
'id' => '',
'limit' => apply_filters( 'opalesate_agent_properties_limit', 6 ),
];
@@ -312,7 +276,7 @@ function opalestate_get_agency_property() {
$post = [
'id' => 0,
'paged' => 1,
'user_id' => 13,
'user_id' => '',
'related' => '',
'limit' => apply_filters( 'opalesate_agency_properties_limit', 5 ),
];