Update
This commit is contained in:
parent
6298197d8f
commit
a5a053b025
@ -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 =
|
= 1.6 - 2020-06-25 =
|
||||||
* Added - Related properties setting
|
* Added - Related properties setting
|
||||||
* Added - Nearby properties setting
|
* Added - Nearby properties setting
|
||||||
|
BIN
inc/.DS_Store
vendored
BIN
inc/.DS_Store
vendored
Binary file not shown.
@ -85,6 +85,14 @@ class Opalestate_Settings_Property_Tab extends Opalestate_Settings_Base_Tab {
|
|||||||
'options' => $checkes,
|
'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[] = [
|
$fields[] = [
|
||||||
'name' => esc_html__( 'Default Display mode', 'opalestate-pro' ),
|
'name' => esc_html__( 'Default Display mode', 'opalestate-pro' ),
|
||||||
'id' => 'displaymode',
|
'id' => 'displaymode',
|
||||||
|
@ -198,6 +198,9 @@ class Opalestate_Query {
|
|||||||
'post_type' => 'opalestate_property',
|
'post_type' => 'opalestate_property',
|
||||||
'posts_per_page' => isset( $args['posts_per_page'] ) ? $args['posts_per_page'] : 5,
|
'posts_per_page' => isset( $args['posts_per_page'] ) ? $args['posts_per_page'] : 5,
|
||||||
'paged' => isset( $args['paged'] ) ? $args['paged'] : 1,
|
'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 );
|
$condition = array_merge( $condition, $args );
|
||||||
|
@ -43,18 +43,14 @@ class OpalEstate_Shortcodes {
|
|||||||
* defined list of shortcode and functions of this for each.
|
* defined list of shortcode and functions of this for each.
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
|
||||||
$this->shortcodes = [
|
$this->shortcodes = [
|
||||||
|
|
||||||
'search_properties_form' => [ 'code' => 'search_properties_form', 'label' => esc_html__( 'Search Properties Form', 'opalestate-pro' ) ],
|
'search_properties_form' => [ 'code' => 'search_properties_form', 'label' => esc_html__( 'Search Properties Form', 'opalestate-pro' ) ],
|
||||||
'properties' => [ 'code' => 'properties', 'label' => esc_html__( 'Properties', '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_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_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_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' ) ],
|
'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' ) ],
|
'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' ) ],
|
'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' ) ],
|
'login_form' => [ 'code' => 'login_form', 'label' => esc_html__( 'Login Form', 'opalestate-pro' ) ],
|
||||||
];
|
];
|
||||||
@ -66,7 +62,6 @@ class OpalEstate_Shortcodes {
|
|||||||
if ( is_admin() ) {
|
if ( is_admin() ) {
|
||||||
add_action( 'media_buttons', [ $this, 'shortcode_button' ] );
|
add_action( 'media_buttons', [ $this, 'shortcode_button' ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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.6
|
* Version: 1.6.2
|
||||||
* 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.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() {
|
public function setup_constants() {
|
||||||
// Plugin version
|
// Plugin version
|
||||||
if ( ! defined( 'OPALESTATE_VERSION' ) ) {
|
if ( ! defined( 'OPALESTATE_VERSION' ) ) {
|
||||||
define( 'OPALESTATE_VERSION', '1.6' );
|
define( 'OPALESTATE_VERSION', '1.6.2' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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.9
|
Stable tag: 1.6.2
|
||||||
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
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@ $settings = array_merge( [
|
|||||||
'paged' => 1,
|
'paged' => 1,
|
||||||
'showsortby' => false,
|
'showsortby' => false,
|
||||||
'style' => 'grid',
|
'style' => 'grid',
|
||||||
|
'orderby' => 'post_date',
|
||||||
|
'order' => 'DESC',
|
||||||
], $settings );
|
], $settings );
|
||||||
extract( $settings );
|
extract( $settings );
|
||||||
|
|
||||||
@ -24,6 +26,8 @@ $args = [
|
|||||||
'statuses' => $statuses,
|
'statuses' => $statuses,
|
||||||
'showmode' => $showmode,
|
'showmode' => $showmode,
|
||||||
'labels' => $labels,
|
'labels' => $labels,
|
||||||
|
'orderby' => $orderby,
|
||||||
|
'order' => $order,
|
||||||
];
|
];
|
||||||
|
|
||||||
$query = Opalestate_Query::get_property_query( $args );
|
$query = Opalestate_Query::get_property_query( $args );
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$layout = apply_filters( 'opalestate_archive_search_block_form_layout', 'collapse-city' );
|
$default_search_form = opalestate_get_option( 'default_search_form', 'collapse-city' );
|
||||||
|
$layout = apply_filters( 'opalestate_archive_search_block_form_layout', $default_search_form );
|
||||||
$settings = [];
|
$settings = [];
|
||||||
?>
|
?>
|
||||||
<div class="opalestate-archive-search-block">
|
<div class="opalestate-archive-search-block">
|
||||||
|
@ -7,7 +7,7 @@ $facilities = $property->get_facilities();
|
|||||||
|
|
||||||
<?php if ( 'on' === $property->get_block_setting( 'facilities' ) && $facilities && isset( $facilities[0] ) && ! empty( $facilities[0] ) ): ?>
|
<?php if ( 'on' === $property->get_block_setting( 'facilities' ) && $facilities && isset( $facilities[0] ) && ! empty( $facilities[0] ) ): ?>
|
||||||
<div class="property-facilities box-inner-summary">
|
<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="list-group-item-text">
|
||||||
<div class="<?php echo apply_filters( 'opalestate_row_container_class', 'opal-row' ); ?>">
|
<div class="<?php echo apply_filters( 'opalestate_row_container_class', 'opal-row' ); ?>">
|
||||||
<?php foreach ( $facilities as $facility ): ?>
|
<?php foreach ( $facilities as $facility ): ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user