diff --git a/changelog.txt b/changelog.txt index 563c4551..3855897a 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ += 1.5.4 - 2020-06-05 = +* Fixes - Search box field for vertical form. + = 1.5.3 - 2020-06-05 = * Added - Search box field for vertical form. diff --git a/inc/vendors/elementor/widgets/opalestate-searchbox.php b/inc/vendors/elementor/widgets/opalestate-searchbox.php index 69fbcaa3..fa0c593a 100755 --- a/inc/vendors/elementor/widgets/opalestate-searchbox.php +++ b/inc/vendors/elementor/widgets/opalestate-searchbox.php @@ -173,6 +173,18 @@ class Opalestate_Searchbox_Elementor_Widget extends Opalestate_Elementor_Widget_ ] ); + $this->add_control( + 'info_number_input', + [ + 'label' => esc_html__( 'Information number fields', 'opalestate-pro' ), + 'type' => Controls_Manager::SWITCHER, + 'default' => 'yes', + 'condition' => [ + 'style' => $this->get_vertical_form(), + ], + ] + ); + $this->end_controls_section(); $this->start_controls_section( @@ -294,7 +306,6 @@ class Opalestate_Searchbox_Elementor_Widget extends Opalestate_Elementor_Widget_ $this->end_controls_section(); - $this->start_controls_section( 'section_button_style_content', [ @@ -395,4 +406,12 @@ class Opalestate_Searchbox_Elementor_Widget extends Opalestate_Elementor_Widget_ 'collapse-keyword', ]; } + + protected function get_vertical_form() { + return [ + 'search-form-v', + 'search-form-v2', + 'search-form-v3', + ]; + } } diff --git a/opal-estate-pro.php b/opal-estate-pro.php index f1ca6fb5..9251cd67 100755 --- a/opal-estate-pro.php +++ b/opal-estate-pro.php @@ -3,7 +3,7 @@ * Plugin Name: Opal Estate Pro * Plugin URI: https://wpdocs.gitbook.io/opal-estate/ * Description: Opal Real Estate Plugin is an ideal solution and brilliant choice for you to set up a professional estate website. - * Version: 1.5.3 + * Version: 1.5.4 * Author: WPOPAL * Author URI: http://www.wpopal.com * Requires at least: 4.9 @@ -154,7 +154,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { */ public function __clone() { // Cloning instances of the class is forbidden - _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.5.3' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.5.4' ); } /** @@ -163,7 +163,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { public function setup_constants() { // Plugin version if ( ! defined( 'OPALESTATE_VERSION' ) ) { - define( 'OPALESTATE_VERSION', '1.5.3' ); + define( 'OPALESTATE_VERSION', '1.5.4' ); } // Plugin Folder Path diff --git a/readme.txt b/readme.txt index 5a878c35..dd909765 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://wpdocs.gitbook.io/opal-estate/ Tags: estate, property, opalestate, house for rent, agency for lease, estate submission, agents estate property, property marketplace Requires at least: 4.9 Tested up to: 5.3.2 -Stable tag: 1.5.3 +Stable tag: 1.5.4 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -150,6 +150,9 @@ This section describes how to install the plugin and get it working. * System tickets support 24/7 available : [free support](https://themelexus.ticksy.com/ "Visit the Plugin support Page") == Changelog == += 1.5.4 - 2020-06-05 = +* Fixes - Search box field for vertical form. + = 1.5.3 - 2020-06-05 = * Added - Search box field for vertical form. diff --git a/templates/search-box/search-form-v.php b/templates/search-box/search-form-v.php index 5e5b4b00..e22bb85e 100755 --- a/templates/search-box/search-form-v.php +++ b/templates/search-box/search-form-v.php @@ -14,6 +14,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', @@ -25,9 +27,9 @@ $form_classes = [