Fixes: Vertical search form
This commit is contained in:
parent
47262e47ec
commit
23d42cb6de
@ -1,3 +1,6 @@
|
|||||||
|
= 1.5.4 - 2020-06-05 =
|
||||||
|
* Fixes - Search box field for vertical form.
|
||||||
|
|
||||||
= 1.5.3 - 2020-06-05 =
|
= 1.5.3 - 2020-06-05 =
|
||||||
* Added - Search box field for vertical form.
|
* Added - Search box field for vertical form.
|
||||||
|
|
||||||
|
@ -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->end_controls_section();
|
||||||
|
|
||||||
$this->start_controls_section(
|
$this->start_controls_section(
|
||||||
@ -294,7 +306,6 @@ class Opalestate_Searchbox_Elementor_Widget extends Opalestate_Elementor_Widget_
|
|||||||
$this->end_controls_section();
|
$this->end_controls_section();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$this->start_controls_section(
|
$this->start_controls_section(
|
||||||
'section_button_style_content',
|
'section_button_style_content',
|
||||||
[
|
[
|
||||||
@ -395,4 +406,12 @@ class Opalestate_Searchbox_Elementor_Widget extends Opalestate_Elementor_Widget_
|
|||||||
'collapse-keyword',
|
'collapse-keyword',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function get_vertical_form() {
|
||||||
|
return [
|
||||||
|
'search-form-v',
|
||||||
|
'search-form-v2',
|
||||||
|
'search-form-v3',
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* Plugin Name: Opal Estate Pro
|
* Plugin Name: Opal Estate Pro
|
||||||
* Plugin URI: https://wpdocs.gitbook.io/opal-estate/
|
* 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.
|
* 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: WPOPAL
|
||||||
* Author URI: http://www.wpopal.com
|
* Author URI: http://www.wpopal.com
|
||||||
* Requires at least: 4.9
|
* Requires at least: 4.9
|
||||||
@ -154,7 +154,7 @@ if ( ! class_exists( 'OpalEstate' ) ) {
|
|||||||
*/
|
*/
|
||||||
public function __clone() {
|
public function __clone() {
|
||||||
// Cloning instances of the class is forbidden
|
// 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() {
|
public function setup_constants() {
|
||||||
// Plugin version
|
// Plugin version
|
||||||
if ( ! defined( 'OPALESTATE_VERSION' ) ) {
|
if ( ! defined( 'OPALESTATE_VERSION' ) ) {
|
||||||
define( 'OPALESTATE_VERSION', '1.5.3' );
|
define( 'OPALESTATE_VERSION', '1.5.4' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Plugin Folder Path
|
// Plugin Folder Path
|
||||||
|
@ -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
|
Tags: estate, property, opalestate, house for rent, agency for lease, estate submission, agents estate property, property marketplace
|
||||||
Requires at least: 4.9
|
Requires at least: 4.9
|
||||||
Tested up to: 5.3.2
|
Tested up to: 5.3.2
|
||||||
Stable tag: 1.5.3
|
Stable tag: 1.5.4
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
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")
|
* System tickets support 24/7 available : [free support](https://themelexus.ticksy.com/ "Visit the Plugin support Page")
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
= 1.5.4 - 2020-06-05 =
|
||||||
|
* Fixes - Search box field for vertical form.
|
||||||
|
|
||||||
= 1.5.3 - 2020-06-05 =
|
= 1.5.3 - 2020-06-05 =
|
||||||
* Added - Search box field for vertical form.
|
* Added - Search box field for vertical form.
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ $display_country = isset( $display_country ) ? $display_country : true;
|
|||||||
$display_state = isset( $display_state ) ? $display_state : true;
|
$display_state = isset( $display_state ) ? $display_state : true;
|
||||||
$display_city = isset( $display_city ) ? $display_city : true;
|
$display_city = isset( $display_city ) ? $display_city : true;
|
||||||
$display_more_options = isset( $display_more_options ) ? $display_more_options : 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 = [
|
$form_classes = [
|
||||||
'opalestate-search-form',
|
'opalestate-search-form',
|
||||||
@ -25,9 +27,9 @@ $form_classes = [
|
|||||||
|
|
||||||
<form class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $form_classes ) ) ); ?>" action="<?php echo esc_url( opalestate_get_search_link() ); ?>" method="GET">
|
<form class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $form_classes ) ) ); ?>" action="<?php echo esc_url( opalestate_get_search_link() ); ?>" method="GET">
|
||||||
<?php
|
<?php
|
||||||
if ( $display_category ) {
|
if ( $display_category ) {
|
||||||
echo opalestate_load_template_path( 'search-box/fields/categories' );
|
echo opalestate_load_template_path( 'search-box/fields/categories' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $display_country ) {
|
if ( $display_country ) {
|
||||||
echo opalestate_load_template_path( 'search-box/fields/country-select' );
|
echo opalestate_load_template_path( 'search-box/fields/country-select' );
|
||||||
@ -44,7 +46,7 @@ $form_classes = [
|
|||||||
|
|
||||||
<?php echo opalestate_load_template_path( 'search-box/fields/types' ); ?>
|
<?php echo opalestate_load_template_path( 'search-box/fields/types' ); ?>
|
||||||
|
|
||||||
<?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 ] ); ?>
|
||||||
|
|
||||||
<?php if ( opalestate_is_enable_price_field() ) : ?>
|
<?php if ( opalestate_is_enable_price_field() ) : ?>
|
||||||
<?php echo opalestate_load_template_path( 'search-box/fields/price' ); ?>
|
<?php echo opalestate_load_template_path( 'search-box/fields/price' ); ?>
|
||||||
|
@ -10,6 +10,8 @@ defined( 'ABSPATH' ) || exit;
|
|||||||
$GLOBALS['group-info-column'] = 1;
|
$GLOBALS['group-info-column'] = 1;
|
||||||
|
|
||||||
$display_more_options = isset( $display_more_options ) ? $display_more_options : 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 = [
|
$form_classes = [
|
||||||
'opalestate-search-form',
|
'opalestate-search-form',
|
||||||
@ -32,7 +34,7 @@ $form_classes = [
|
|||||||
|
|
||||||
<div class="form-item form-item--information">
|
<div class="form-item form-item--information">
|
||||||
<h6> <?php esc_html_e( 'Information', 'opalestate-pro' ); ?></h6>
|
<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>
|
</div>
|
||||||
|
|
||||||
<?php if ( opalestate_is_enable_price_field() ) : ?>
|
<?php if ( opalestate_is_enable_price_field() ) : ?>
|
||||||
|
@ -13,6 +13,8 @@ $display_country = isset( $display_country ) ? $display_country : true;
|
|||||||
$display_state = isset( $display_state ) ? $display_state : true;
|
$display_state = isset( $display_state ) ? $display_state : true;
|
||||||
$display_city = isset( $display_city ) ? $display_city : true;
|
$display_city = isset( $display_city ) ? $display_city : true;
|
||||||
$display_more_options = isset( $display_more_options ) ? $display_more_options : 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 = [
|
$form_classes = [
|
||||||
'opalestate-search-form',
|
'opalestate-search-form',
|
||||||
@ -49,7 +51,7 @@ $form_classes = [
|
|||||||
|
|
||||||
<div class="form-item form-item--information">
|
<div class="form-item form-item--information">
|
||||||
<h6> <?php esc_html_e( 'Information', 'opalestate-pro' ); ?></h6>
|
<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>
|
</div>
|
||||||
|
|
||||||
<?php if ( opalestate_is_enable_price_field() ) : ?>
|
<?php if ( opalestate_is_enable_price_field() ) : ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user