Fix search box. Tag v1.5.3

This commit is contained in:
Hoang Huu 2020-06-05 09:21:25 +07:00
parent 13bc6c7ea1
commit 47262e47ec
6 changed files with 28 additions and 5 deletions

View File

@ -1,3 +1,6 @@
= 1.5.3 - 2020-06-05 =
* Added - Search box field for vertical form.
= 1.5.2 - 2020-06-04 =
* Added - Clean Up setting.

View File

@ -118,6 +118,18 @@ class Opalestate_Searchbox_Elementor_Widget extends Opalestate_Elementor_Widget_
]
);
$this->add_control(
'display_category',
[
'label' => esc_html__( 'Display Category select', 'opalestate-pro' ),
'type' => Controls_Manager::SWITCHER,
'default' => 'yes',
'condition' => [
'style' => 'search-form-v',
],
]
);
$this->add_control(
'display_country',
[

View File

@ -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.2
* Version: 1.5.3
* 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.2' );
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.5.3' );
}
/**
@ -163,7 +163,7 @@ if ( ! class_exists( 'OpalEstate' ) ) {
public function setup_constants() {
// Plugin version
if ( ! defined( 'OPALESTATE_VERSION' ) ) {
define( 'OPALESTATE_VERSION', '1.5.2' );
define( 'OPALESTATE_VERSION', '1.5.3' );
}
// Plugin Folder Path

View File

@ -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.1
Stable tag: 1.5.3
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.3 - 2020-06-05 =
* Added - Search box field for vertical form.
= 1.5.2 - 2020-06-04 =
* Added - Clean Up setting.

View File

@ -15,7 +15,7 @@ $id = time();
<ul class="list-inline opalestate-scroll-elements">
<li><a href="#block-description" class="active"><?php esc_html_e( 'Description', 'opalestate-pro' ); ?></a></li>
<?php if ( opalestate_get_option( 'enable_agent_reviews' ) ) : ?>
<?php if ( opalestate_agent_reviews_enabled() ) : ?>
<li><a href="#reviews"><?php esc_html_e( 'Review', 'opalestate-pro' ); ?></a></li>
<?php endif; ?>

View File

@ -9,6 +9,7 @@ defined( 'ABSPATH' ) || exit;
$GLOBALS['group-info-column'] = 1;
$display_category = isset( $display_category ) ? $display_category : true;
$display_country = isset( $display_country ) ? $display_country : true;
$display_state = isset( $display_state ) ? $display_state : true;
$display_city = isset( $display_city ) ? $display_city : true;
@ -24,6 +25,10 @@ $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">
<?php
if ( $display_category ) {
echo opalestate_load_template_path( 'search-box/fields/categories' );
}
if ( $display_country ) {
echo opalestate_load_template_path( 'search-box/fields/country-select' );
}