Compare commits

...

5 Commits

Author SHA1 Message Date
Bea c6d90d08fb
Disable registration by hiding register button 2021-09-07 18:31:22 +02:00
Bea 2124feb7b2
Create area-input.php 2021-05-05 20:15:16 +02:00
Bea 4b8fc83816
Fix featured toggle not working
Hacky implementation, but it does the job.
2021-04-27 00:21:57 +02:00
Chung Pham 440e7fc604 update 2021-03-15 17:32:08 +07:00
Chung Pham b190321758 update 2021-01-15 15:55:23 +07:00
16 changed files with 3068 additions and 25 deletions

View File

@ -20,7 +20,7 @@ var paths = {
"node": "./node_modules/",
"bower": "./bower_components/",
"distprod": "./dist-product",
"dist":"/Applications/XAMPP/xamppfiles/htdocs/wordpress/svn/opal-widgets-for-opaljob/trunk"
"dist":"/Users/chungpham/svn/opal-estate-pro/trunk"
}
var folderPlugin = './';

3011
assets/js/libs/slick.js Executable file

File diff suppressed because it is too large Load Diff

View File

@ -97,9 +97,3 @@
stroke-width: 32;
animation: rotate 1.5s ease-in;
}
@keyframes rotate {
to {
x
}
}

View File

@ -1,3 +1,6 @@
= 1.7.0 - 2021-03-15 =
* Fixes - js slick
= 1.6.10 - 2020-08-03 =
* Fixes - Send mail

View File

@ -208,13 +208,16 @@ function opalestate_toggle_featured_property() {
if ( $post->post_author == $user_id ) {
$check = apply_filters( 'opalestate_set_feature_property_checked', false );
if ( $check ) {
do_action( 'opalestate_toggle_featured_property_before', $user_id, $property_id );
update_post_meta( $property_id, OPALESTATE_PROPERTY_PREFIX . 'featured', 'on' );
echo json_encode( [ 'status' => true, 'msg' => esc_html__( 'Could not set this as featured', 'opalestate-pro' ) ] );
wp_die();
}
$isfeatured = get_post_meta( $property_id, OPALESTATE_PROPERTY_PREFIX . 'featured', true );
if( $isfeatured ) {
update_post_meta( $property_id, OPALESTATE_PROPERTY_PREFIX . 'featured', '' );
echo json_encode( [ 'status' => false, 'msg' => esc_html__( 'Immobile tolto da evidenza', 'opalestate-pro' ) ] );
wp_die();
} else {
update_post_meta( $property_id, OPALESTATE_PROPERTY_PREFIX . 'featured', 'on' );
echo json_encode( [ 'status' => false, 'msg' => esc_html__( 'Immobile messo in evidenza', 'opalestate-pro' ) ] );
wp_die();
}
}
echo json_encode( [ 'status' => false, 'msg' => esc_html__( 'Could not set this as featured', 'opalestate-pro' ) ] );

View File

@ -81,6 +81,16 @@ class OpalEstate_Submission {
'1.0',
true
);
wp_register_script(
'jquery-wpopal-slick',
trailingslashit( OPALESTATE_PLUGIN_URL ). 'assets/js/libs/slick.js',
[
'jquery',
],
'1.8.1',
true
);
}
/*

View File

@ -38,7 +38,7 @@ class Opalestate_Agency_Collection_Elementor_Widget extends Opalestate_Elementor
*
*/
public function get_script_depends() {
return [ 'jquery-slick' ];
return [ 'jquery-wpopal-slick' ];
}
/**

View File

@ -38,7 +38,7 @@ class Opalestate_Agent_Collection_Elementor_Widget extends Opalestate_Elementor_
*
*/
public function get_script_depends() {
return [ 'jquery-slick' ];
return [ 'jquery-wpopal-slick' ];
}
/**

View File

@ -38,7 +38,7 @@ class Opalestate_Category_List_Elementor_Widget extends Opalestate_Elementor_Wid
*
*/
public function get_script_depends() {
return [ 'jquery-slick' ];
return [ 'jquery-wpopal-slick' ];
}
/**

View File

@ -38,7 +38,7 @@ class Opalestate_City_List_Elementor_Widget extends Opalestate_Elementor_Widget_
*
*/
public function get_script_depends() {
return [ 'jquery-slick' ];
return [ 'jquery-wpopal-slick' ];
}
/**

View File

@ -36,7 +36,7 @@ class Opalestate_Property_collection_Elementor_Widget extends Opalestate_Element
*
*/
public function get_script_depends() {
return [ 'jquery-slick' ];
return [ 'jquery-wpopal-slick' ];
}

View File

@ -2,7 +2,7 @@
# This file is distributed under the same license as the Opal Estate Pro package.
msgid ""
msgstr ""
"Project-Id-Version: Opal Estate Pro 1.6.10\n"
"Project-Id-Version: Opal Estate Pro 1.7.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/opal-estate-pro\n"
"POT-Creation-Date: 2020-08-20 10:29:06+00:00\n"
"MIME-Version: 1.0\n"

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

View File

@ -0,0 +1,16 @@
<label class="opalestate-label opalestate-label--price-input"><?php esc_html_e( 'Area', 'opalestate-pro' ); ?></label>
<div class="opalestate-price-input-wrap">
<div class="opalestate-price-input opalestate-price-input--min">
<input class="form-control" type="number" name="min_area" value="<?php echo esc_attr( $data['input_min'] ); ?>" placeholder="<?php esc_attr_e( 'Min Area', 'opalestate-pro' ); ?>">
<span class="opalestate-price-currency"><?php echo esc_html( $data['unit'] ); ?></span>
</div>
<div class="opalestate-price-input-separator">
<span><?php echo esc_html_x( '-', 'price input separator', 'opalestate-pro' ); ?></span>
</div>
<div class="opalestate-price-input opalestate-price-input--max">
<input class="form-control" type="number" name="max_area" value="<?php echo esc_attr( $data['input_max'] ); ?>" placeholder="<?php esc_attr_e( 'Max Area', 'opalestate-pro' ); ?>">
<span class="opalestate-price-currency"><?php echo esc_html( $data['unit'] ); ?></span>
</div>
</div>

View File

@ -91,7 +91,13 @@ $type_default = apply_filters( 'opalestate_register_form_default_type', 'subscri
<?php if ( $redirect ) : ?>
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ); ?>">
<?php endif; ?>
<input type="submit" class="opalestate-button button btn btn-primary" name="register" value="<?php esc_attr_e( 'Register', 'opalestate-pro' ); ?>"/>
<?php
/** DISABLE REGISTATION BY HIDING THE BUTTON
* <input type="submit" class="opalestate-button button btn btn-primary" name="register" value="<?php esc_attr_e( 'Register', 'opalestate-pro' ); ?>"/>
*/
?>
</p>
<?php do_action( 'opalestate_member_after_register_form' ); ?>