Fix search box. Tag v1.5.3
This commit is contained in:
parent
13bc6c7ea1
commit
47262e47ec
@ -1,3 +1,6 @@
|
|||||||
|
= 1.5.3 - 2020-06-05 =
|
||||||
|
* Added - Search box field for vertical form.
|
||||||
|
|
||||||
= 1.5.2 - 2020-06-04 =
|
= 1.5.2 - 2020-06-04 =
|
||||||
* Added - Clean Up setting.
|
* Added - Clean Up setting.
|
||||||
|
|
||||||
|
@ -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(
|
$this->add_control(
|
||||||
'display_country',
|
'display_country',
|
||||||
[
|
[
|
||||||
|
@ -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.2
|
* Version: 1.5.3
|
||||||
* 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.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() {
|
public function setup_constants() {
|
||||||
// Plugin version
|
// Plugin version
|
||||||
if ( ! defined( 'OPALESTATE_VERSION' ) ) {
|
if ( ! defined( 'OPALESTATE_VERSION' ) ) {
|
||||||
define( 'OPALESTATE_VERSION', '1.5.2' );
|
define( 'OPALESTATE_VERSION', '1.5.3' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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.1
|
Stable tag: 1.5.3
|
||||||
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.3 - 2020-06-05 =
|
||||||
|
* Added - Search box field for vertical form.
|
||||||
|
|
||||||
= 1.5.2 - 2020-06-04 =
|
= 1.5.2 - 2020-06-04 =
|
||||||
* Added - Clean Up setting.
|
* Added - Clean Up setting.
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ $id = time();
|
|||||||
<ul class="list-inline opalestate-scroll-elements">
|
<ul class="list-inline opalestate-scroll-elements">
|
||||||
<li><a href="#block-description" class="active"><?php esc_html_e( 'Description', 'opalestate-pro' ); ?></a></li>
|
<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>
|
<li><a href="#reviews"><?php esc_html_e( 'Review', 'opalestate-pro' ); ?></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ defined( 'ABSPATH' ) || exit;
|
|||||||
|
|
||||||
$GLOBALS['group-info-column'] = 1;
|
$GLOBALS['group-info-column'] = 1;
|
||||||
|
|
||||||
|
$display_category = isset( $display_category ) ? $display_category : true;
|
||||||
$display_country = isset( $display_country ) ? $display_country : true;
|
$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;
|
||||||
@ -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">
|
<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 ) {
|
||||||
|
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' );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user