This commit is contained in:
Alpha 2020-07-13 09:41:00 +07:00
parent 6298197d8f
commit a5a053b025
10 changed files with 30 additions and 13 deletions

View File

@ -1,3 +1,9 @@
= 1.6.2 - 2020-07-13 =
* Added - Search form general setting
= 1.6.1 - 2020-07-07 =
* Fixes - Property collection sort order
= 1.6 - 2020-06-25 =
* Added - Related properties setting
* Added - Nearby properties setting

BIN
inc/.DS_Store vendored

Binary file not shown.

View File

@ -85,6 +85,14 @@ class Opalestate_Settings_Property_Tab extends Opalestate_Settings_Base_Tab {
'options' => $checkes,
];
$fields[] = [
'name' => esc_html__( 'Default Search form', 'opalestate-pro' ),
'id' => 'default_search_form',
'type' => 'select',
'options' => opalestate_search_properties_form_styles(),
'default' => 'collapse-city',
];
$fields[] = [
'name' => esc_html__( 'Default Display mode', 'opalestate-pro' ),
'id' => 'displaymode',

View File

@ -198,6 +198,9 @@ class Opalestate_Query {
'post_type' => 'opalestate_property',
'posts_per_page' => isset( $args['posts_per_page'] ) ? $args['posts_per_page'] : 5,
'paged' => isset( $args['paged'] ) ? $args['paged'] : 1,
'post_status' => 'publish',
'order_by' => isset( $args['orderby'] ) ? $args['orderby'] : 'post_date',
'order' => isset( $args['order'] ) ? $args['order'] : 'DESC',
];
$condition = array_merge( $condition, $args );

View File

@ -43,18 +43,14 @@ class OpalEstate_Shortcodes {
* defined list of shortcode and functions of this for each.
*/
public function __construct() {
$this->shortcodes = [
'search_properties_form' => [ 'code' => 'search_properties_form', 'label' => esc_html__( 'Search Properties Form', 'opalestate-pro' ) ],
'properties' => [ 'code' => 'properties', 'label' => esc_html__( 'Properties', 'opalestate-pro' ) ],
'search_properties_result' => [ 'code' => 'search_properties_result', 'label' => esc_html__( 'Search Properties Result', 'opalestate-pro' ) ],
'search_properties' => [ 'code' => 'search_properties', 'label' => esc_html__( 'Search Properties', 'opalestate-pro' ) ],
'search_split_maps' => [ 'code' => 'search_split_maps', 'label' => esc_html__( 'Search Split Maps', 'opalestate-pro' ) ],
'search_map_properties' => [ 'code' => 'search_map_properties', 'label' => esc_html__( 'Show Map + Search Box and Properties', 'opalestate-pro' ) ],
'ajax_map_search' => [ 'code' => 'ajax_map_search', 'label' => esc_html__( 'Ajax Search Map Properties And Horizontal Search', 'opalestate-pro' ) ],
'register_form' => [ 'code' => 'register_form', 'label' => esc_html__( 'Register User Form', 'opalestate-pro' ) ],
'login_form' => [ 'code' => 'login_form', 'label' => esc_html__( 'Login Form', 'opalestate-pro' ) ],
];
@ -66,7 +62,6 @@ class OpalEstate_Shortcodes {
if ( is_admin() ) {
add_action( 'media_buttons', [ $this, 'shortcode_button' ] );
}
}
/**

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.6
* Version: 1.6.2
* 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.6' );
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.6.2' );
}
/**
@ -163,7 +163,7 @@ if ( ! class_exists( 'OpalEstate' ) ) {
public function setup_constants() {
// Plugin version
if ( ! defined( 'OPALESTATE_VERSION' ) ) {
define( 'OPALESTATE_VERSION', '1.6' );
define( 'OPALESTATE_VERSION', '1.6.2' );
}
// 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.9
Stable tag: 1.6.2
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

View File

@ -5,6 +5,8 @@ $settings = array_merge( [
'paged' => 1,
'showsortby' => false,
'style' => 'grid',
'orderby' => 'post_date',
'order' => 'DESC',
], $settings );
extract( $settings );
@ -24,6 +26,8 @@ $args = [
'statuses' => $statuses,
'showmode' => $showmode,
'labels' => $labels,
'orderby' => $orderby,
'order' => $order,
];
$query = Opalestate_Query::get_property_query( $args );

View File

@ -1,6 +1,7 @@
<?php
$layout = apply_filters( 'opalestate_archive_search_block_form_layout', 'collapse-city' );
$settings = [];
$default_search_form = opalestate_get_option( 'default_search_form', 'collapse-city' );
$layout = apply_filters( 'opalestate_archive_search_block_form_layout', $default_search_form );
$settings = [];
?>
<div class="opalestate-archive-search-block">
<div class="container">

View File

@ -7,7 +7,7 @@ $facilities = $property->get_facilities();
<?php if ( 'on' === $property->get_block_setting( 'facilities' ) && $facilities && isset( $facilities[0] ) && ! empty( $facilities[0] ) ): ?>
<div class="property-facilities box-inner-summary">
<h5 class="list-group-item-heading"><?php esc_html_e( "Facilities", "opalestate" ); ?></h5>
<h5 class="list-group-item-heading"><?php esc_html_e( 'Facilities', 'opalestate-pro' ); ?></h5>
<div class="list-group-item-text">
<div class="<?php echo apply_filters( 'opalestate_row_container_class', 'opal-row' ); ?>">
<?php foreach ( $facilities as $facility ): ?>