diff --git a/assets/opalestate.css b/assets/opalestate.css index 1e685417..baa4a80a 100755 --- a/assets/opalestate.css +++ b/assets/opalestate.css @@ -4036,3 +4036,8 @@ header#masthead { top: 50%; transform: translateY(-50%); } + +.opalestate-read-message .message-container { + border-bottom: 1px solid #ebebeb; + margin-bottom: 15px; +} diff --git a/assets/scss/opalestate/_dashboard.scss b/assets/scss/opalestate/_dashboard.scss index a22899b2..78ede976 100755 --- a/assets/scss/opalestate/_dashboard.scss +++ b/assets/scss/opalestate/_dashboard.scss @@ -476,4 +476,9 @@ top:0; } } -} \ No newline at end of file +} + +.opalestate-read-message .message-container { + border-bottom: 1px solid #ebebeb; + margin-bottom: 15px; +} diff --git a/changelog.txt b/changelog.txt index c18311b2..433af0bf 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ += 1.4.9.2 - 2020-05-21 = +* Added - Message additional information. +* Fixes - Set feature property for customers. + = 1.4.9.1 - 2020-05-14 = * Fixes - Responsive slider. diff --git a/inc/.DS_Store b/inc/.DS_Store index c3ad825f..c2b05e73 100755 Binary files a/inc/.DS_Store and b/inc/.DS_Store differ diff --git a/inc/admin/.DS_Store b/inc/admin/.DS_Store new file mode 100644 index 00000000..c64b7b2f Binary files /dev/null and b/inc/admin/.DS_Store differ diff --git a/inc/admin/settings/pages.php b/inc/admin/settings/pages.php index a3e33ea4..84a14b68 100644 --- a/inc/admin/settings/pages.php +++ b/inc/admin/settings/pages.php @@ -158,6 +158,7 @@ class Opalestate_Settings_Pages_Tab extends Opalestate_Settings_Base_Tab { 'on' => esc_html__( 'Enable', 'opalestate-pro' ), 'off' => esc_html__( 'Disable', 'opalestate-pro' ), ], + 'default' => 'off', ], [ 'name' => esc_html__( 'Show Submission', 'opalestate-pro' ), diff --git a/inc/ajax-functions.php b/inc/ajax-functions.php index b4a151d6..40161601 100755 --- a/inc/ajax-functions.php +++ b/inc/ajax-functions.php @@ -211,7 +211,7 @@ function opalestate_toggle_featured_property() { $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', 1 ); + 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(); } diff --git a/inc/message/class-opalestate-message.php b/inc/message/class-opalestate-message.php index a2aee541..9cee00d5 100755 --- a/inc/message/class-opalestate-message.php +++ b/inc/message/class-opalestate-message.php @@ -370,29 +370,32 @@ class OpalEstate_User_Message { $charset_collate = $wpdb->get_charset_collate(); $sql = 'CREATE TABLE IF NOT EXISTS ' . $wpdb->prefix . 'opalestate_message' . ' ( - `id` int(11) UNSIGNED NOT NULL, - `subject` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + `subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `message` text COLLATE utf8mb4_unicode_ci NOT NULL, - `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `sender_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `sender_email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `sender_id` int(11) DEFAULT NULL, `created` datetime NOT NULL, `receiver_id` int(11) NOT NULL, `post_id` int(11) NOT NULL, - `type` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL, - `isread` tinyint(1) NOT NULL + `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `isread` tinyint(1) NOT NULL, + PRIMARY KEY (id) ) ' . $charset_collate; dbDelta( $sql ); /// $sql = 'CREATE TABLE IF NOT EXISTS ' . $wpdb->prefix . 'opalestate_message_reply' . ' ( - `id` int(11) NOT NULL, + `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `message_id` int(11) NOT NULL, `sender_id` int(11) NOT NULL, `message` text NOT NULL, `created` datetime NOT NULL, - `receiver_id` int(11) NOT NULL + `receiver_id` int(11) NOT NULL, + PRIMARY KEY (id) ) ' . $charset_collate; dbDelta( $sql ); diff --git a/inc/message/class-opalestate-request-reviewing.php b/inc/message/class-opalestate-request-reviewing.php index 6de5fafa..521ca631 100755 --- a/inc/message/class-opalestate-request-reviewing.php +++ b/inc/message/class-opalestate-request-reviewing.php @@ -119,17 +119,19 @@ class OpalEstate_User_Request_Viewing { $charset_collate = $wpdb->get_charset_collate(); $sql = 'CREATE TABLE IF NOT EXISTS ' . $wpdb->prefix . 'opalestate_message' . ' ( - `id` int(11) UNSIGNED NOT NULL, - `subject` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + `subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `message` text COLLATE utf8mb4_unicode_ci NOT NULL, - `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `sender_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `sender_email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `sender_id` int(11) DEFAULT NULL, `created` datetime NOT NULL, `receiver_id` int(11) NOT NULL, `post_id` int(11) NOT NULL, - `type` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL, - `isread` tinyint(1) NOT NULL + `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `isread` tinyint(1) NOT NULL, + PRIMARY KEY (id) ) ' . $charset_collate; dbDelta( $sql ); diff --git a/inc/vendors/.DS_Store b/inc/vendors/.DS_Store index 077103fc..c36aafcf 100755 Binary files a/inc/vendors/.DS_Store and b/inc/vendors/.DS_Store differ diff --git a/opal-estate-pro.php b/opal-estate-pro.php index 025c5675..9225720e 100755 --- a/opal-estate-pro.php +++ b/opal-estate-pro.php @@ -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.4.9.1 + * Version: 1.4.9.2 * Author: WPOPAL * Author URI: http://www.wpopal.com * Requires at least: 4.9 @@ -150,7 +150,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.4.9.1' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.4.9.2' ); } /** @@ -159,7 +159,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { public function setup_constants() { // Plugin version if ( ! defined( 'OPALESTATE_VERSION' ) ) { - define( 'OPALESTATE_VERSION', '1.4.9.1' ); + define( 'OPALESTATE_VERSION', '1.4.9.2' ); } // Plugin Folder Path diff --git a/readme.txt b/readme.txt index 9f5265f6..c4016b13 100755 --- a/readme.txt +++ b/readme.txt @@ -152,6 +152,10 @@ 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.4.9.2 - 2020-05-21 = +* Added - Message additional information. +* Fixes - Set feature property for customers. + = 1.4.9.1 - 2020-05-14 = * Fixes - Responsive slider. diff --git a/templates/.DS_Store b/templates/.DS_Store index 25bc4213..3a07432b 100755 Binary files a/templates/.DS_Store and b/templates/.DS_Store differ diff --git a/templates/user/messages.php b/templates/user/messages.php index 23d1f045..29d113d2 100755 --- a/templates/user/messages.php +++ b/templates/user/messages.php @@ -1,46 +1,53 @@ - isset( $_GET['cpage'] ) ? abs( (int) $_GET['cpage'] ) : 1, - 'items_per_page' => 10 -); -$messages = opalestate_get_message_by_user( $args ); + isset( $_GET['cpage'] ) ? abs( (int) $_GET['cpage'] ) : 1, + 'items_per_page' => 10, +]; +$messages = opalestate_get_message_by_user( $args ); ?>