diff --git a/assets/js/custom-fields.js b/assets/js/custom-fields.js index c5a34bdf..08bb7763 100644 --- a/assets/js/custom-fields.js +++ b/assets/js/custom-fields.js @@ -23,6 +23,7 @@ jQuery( document ).ready( function ( $ ) { $( '.cmb2-id-' + res + '-options-value' ).show(); $( '.cmb2-id-' + res + '-min-range' ).hide(); $( '.cmb2-id-' + res + '-max-range' ).hide(); + $( '.cmb2-id-' + res + '-unit-thousand' ).hide(); $( '.cmb2-id-' + res + '-default-text' ).hide(); } @@ -33,6 +34,7 @@ jQuery( document ).ready( function ( $ ) { $( '.cmb2-id-' + res + '-default-text' ).show(); $( '.cmb2-id-' + res + '-min-range' ).hide(); $( '.cmb2-id-' + res + '-max-range' ).hide(); + $( '.cmb2-id-' + res + '-unit-thousand' ).hide(); $( '.cmb2-id-' + res + '-options-value' ).hide(); } @@ -43,6 +45,7 @@ jQuery( document ).ready( function ( $ ) { $( '.cmb2-id-' + res + '-options-value' ).hide(); $( '.cmb2-id-' + res + '-min-range' ).show(); $( '.cmb2-id-' + res + '-max-range' ).show(); + $( '.cmb2-id-' + res + '-unit-thousand' ).show(); $( '.cmb2-id-' + res + '-default-text' ).hide(); } } @@ -58,16 +61,19 @@ jQuery( document ).ready( function ( $ ) { $( '.cmb2-id-' + res + '-options-value' ).hide(); $( '.cmb2-id-' + res + '-min-range' ).show(); $( '.cmb2-id-' + res + '-max-range' ).show(); + $( '.cmb2-id-' + res + '-unit-thousand' ).show(); $( '.cmb2-id-' + res + '-default-text' ).hide(); } else if ( val == 'text' ) { $( '.cmb2-id-' + res + '-default-text' ).show(); $( '.cmb2-id-' + res + '-options-value' ).hide(); $( '.cmb2-id-' + res + '-min-range' ).hide(); $( '.cmb2-id-' + res + '-max-range' ).hide(); + $( '.cmb2-id-' + res + '-unit-thousand' ).hide(); } else { $( '.cmb2-id-' + res + '-options-value' ).show(); $( '.cmb2-id-' + res + '-min-range' ).hide(); $( '.cmb2-id-' + res + '-max-range' ).hide(); + $( '.cmb2-id-' + res + '-unit-thousand' ).hide(); $( '.cmb2-id-' + res + '-default-text' ).hide(); } } ); diff --git a/changelog.txt b/changelog.txt index 017ff4eb..737b2caf 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ += 1.3.3 - 2020-02-20 = +* Added - Required login to show Author box +* Added - Search field settings. + = 1.3.2 - 2020-02-15 = * Fixes - Hotfix single property settings. diff --git a/inc/admin/settings/property.php b/inc/admin/settings/property.php index e0205432..34bd2940 100755 --- a/inc/admin/settings/property.php +++ b/inc/admin/settings/property.php @@ -280,19 +280,27 @@ class Opalestate_Settings_Property_Tab extends Opalestate_Settings_Base_Tab { } $fields[] = [ - 'name' => esc_html__( 'Search type ', 'opalestate-pro' ) . $meta['name'], - 'options' => [ + 'name' => $meta['name'], + 'desc' => '', + 'type' => 'opalestate_title', + 'id' => 'opalestate_title_search_field_' . $meta['id'], + 'before_row' => '