From 18fe40583e2b994b5beab40027d1ca794886b291 Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Thu, 10 Oct 2019 16:56:14 +0700 Subject: [PATCH 1/2] Update search-form.php --- inc/api/v1/search-form.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/inc/api/v1/search-form.php b/inc/api/v1/search-form.php index ed25d42f..e0f26dcb 100644 --- a/inc/api/v1/search-form.php +++ b/inc/api/v1/search-form.php @@ -135,7 +135,18 @@ class Opalestate_Search_Form_Api extends Opalestate_Base_API { 'data' => Opalestate_Taxonomy_Amenities::get_list(), ]; - $fields['info'] = OpalEstate_Search::get_setting_search_fields(); + $info_fields = OpalEstate_Search::get_setting_search_fields(); + $info = []; + if ( $info_fields ) { + foreach ( $info_fields as $field_key => $field_name ) { + $info[] = [ + 'key' => $field_key, + 'name' => $field_name, + ]; + } + } + + $fields['info'] = $info; $response['fields'] = $fields; return $this->get_response( 200, $response ); From 68b955cddec92b86e36365a996b7d66f86c0212f Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Thu, 10 Oct 2019 17:01:15 +0700 Subject: [PATCH 2/2] Update readme.txt --- readme.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 8c1517ae..5ac79c1c 100755 --- a/readme.txt +++ b/readme.txt @@ -11,7 +11,7 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html This is an ideal solution and brilliant choice for you to set up a professional estate website, Marketplace, Portal Property Website. == Description == -[Live Demos](http://demo2.themelexus.com/housey/) | [Plugin Guide](https://wpopal-2.gitbook.io/opal-estate/) | [Theme Guide](https://wpopal-2.gitbook.io/housey/) | [Free Theme](http://demo2.themelexus.com/latehome_free/) | [Extensions](https://wordpress.org/plugins/tags/opalestate_addon/) +[Live Demos](http://demo2.themelexus.com/housey/) | [Plugin Guide](https://wpopal-2.gitbook.io/opal-estate/) | [Theme Guide](https://pavotheme.gitbook.io/housey/) | [Free Theme](http://demo2.themelexus.com/latehome_free/) | [Extensions](https://wordpress.org/plugins/tags/opalestate_addon/) @@ -24,7 +24,9 @@ The plugin will not make you disappointed with ease of use, friendly & flexible = Which themes use this plugin? = 1. *[ Housey - Real Estate WordPress Theme](https://bit.ly/2kHewkG "Housey - Real Estate WordPress Theme")* - 2. *[ Latehome Free - Real Estate Free WordPress Theme](http://demo2.themelexus.com/latehome_free/ "Latehome Free - Real Estate Free WordPress Theme"). You can download free [here](https://bit.ly/2nLTfHT "Latehome Free + 2. *[ Latehome - Real Estate WordPress Theme](https://bit.ly/2M0rmp0 "Latehome - Real Estate WordPress Theme")* + 3. *[ Latehome Free - Real Estate Free WordPress Theme](http://demo2.themelexus.com/latehome_free/ "Latehome Free - Real Estate Free WordPress Theme"). You can download free [here](https://bit + .ly/2nLTfHT "Latehome Free download").* * Please keep contact us at help@wpopal.com to send us your website, we will publish it our showcase