Fix admin information fields

This commit is contained in:
Hoang Huu 2020-01-31 15:19:34 +07:00
parent 630f0dd573
commit e392e8d61a
5 changed files with 88 additions and 108 deletions

@ -1,3 +1,48 @@
= 1.2.9.3 - 2020-01-31 =
* Fixes - Admin infomation fields.
= 1.2.9.2 - 2020-01-30 =
* Fixes - Archive filter.
= 1.2.9.1 - 2020-01-13 =
* Added - Pages settings.
= 1.2.9 - 2020-01-09 =
* Added - Pages settings.
= 1.2.8 - 2020-01-06 =
* Added - Pages settings.
= 1.2.7 - 2020-01-02 =
* Added - Redirect to User Dashboard page after login/register setting.
= 1.2.6 - 2019-12-30 =
* Fixes - Compatible WordPress version.
= 1.2.5 - 2019-12-13 =
* Fixes - Slider properties.
= 1.2.4 - 2019-12-11 =
* Fixes - Order properties with featured properties.
* Fixes - Email approved.
= 1.2.3 - 2019-12-09 =
* Fixes - Order properties
* Fixes - Package template.
= 1.2.2 - 2019-12-06 =
* Added - Add Accumulated listings setting for packages.
= 1.2.1 - 2019-12-06 =
* Fixes - Submission property not saved.
= 1.2 - 2019-12-04 =
* Fixes - Login ajax.
* Added - Enable email settings.
= 1.1.9.3 - 2019-11-27 =
* Fixes - Measurement Unit translation.
= 1.1.9.2 - 2019-11-18 = = 1.1.9.2 - 2019-11-18 =
* Added - Fix API. * Added - Fix API.
* Fixes - Search query. * Fixes - Search query.

@ -211,9 +211,9 @@ class Opalestate_Property_MetaBox {
], ],
], ],
[ [
'name' => esc_html__( 'Address', 'opalestate-pro' ), 'name' => esc_html__( 'Address', 'opalestate-pro' ),
'id' => $prefix . 'address', 'id' => $prefix . 'address',
'type' => 'textarea_small', 'type' => 'textarea_small',
], ],
[ [
'id' => "{$prefix}video", 'id' => "{$prefix}video",
@ -289,37 +289,25 @@ class Opalestate_Property_MetaBox {
'id' => $prefix . 'builtyear', 'id' => $prefix . 'builtyear',
'type' => 'text', 'type' => 'text',
'description' => esc_html__( 'Enter built year', 'opalestate-pro' ), 'description' => esc_html__( 'Enter built year', 'opalestate-pro' ),
'before_row' => '<div class="row-group-features group-has-three group-property-info clearfix"><h3>' . ( is_admin() ? "" : esc_html__( 'Property Information',
'before_row' => '<div class="row-group-features group-has-three group-property-info clearfix"><h3>' . ( is_admin() ? "" : esc_html__( 'Property Information', 'opalestate-pro' ) ) . '</h3>', 'opalestate-pro' ) ) . '</h3>',
], ],
[ [
'name' => esc_html__( 'Parking', 'opalestate-pro' ), 'name' => esc_html__( 'Parking', 'opalestate-pro' ),
'id' => $prefix . 'parking', 'id' => $prefix . 'parking',
'type' => 'text', 'type' => 'text',
'attributes' => [
'type' => 'number',
'min' => 0,
],
'description' => esc_html__( 'Enter number of Parking', 'opalestate-pro' ), 'description' => esc_html__( 'Enter number of Parking', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Bedrooms', 'opalestate-pro' ), 'name' => esc_html__( 'Bedrooms', 'opalestate-pro' ),
'id' => $prefix . 'bedrooms', 'id' => $prefix . 'bedrooms',
'type' => 'text', 'type' => 'text',
'attributes' => [
'type' => 'number',
'min' => 0,
],
'description' => esc_html__( 'Enter number of bedrooms', 'opalestate-pro' ), 'description' => esc_html__( 'Enter number of bedrooms', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Bathrooms', 'opalestate-pro' ), 'name' => esc_html__( 'Bathrooms', 'opalestate-pro' ),
'id' => $prefix . 'bathrooms', 'id' => $prefix . 'bathrooms',
'type' => 'text', 'type' => 'text',
'attributes' => [
'type' => 'number',
'min' => 0,
],
'description' => esc_html__( 'Enter number of bathrooms', 'opalestate-pro' ), 'description' => esc_html__( 'Enter number of bathrooms', 'opalestate-pro' ),
], ],
[ [
@ -344,33 +332,20 @@ class Opalestate_Property_MetaBox {
'name' => esc_html__( 'Living Rooms', 'opalestate-pro' ), 'name' => esc_html__( 'Living Rooms', 'opalestate-pro' ),
'id' => "{$prefix}livingrooms", 'id' => "{$prefix}livingrooms",
'type' => 'text', 'type' => 'text',
'attributes' => [
'type' => 'number',
'min' => 0,
],
'description' => esc_html__( 'Enter Number of Living Rooms', 'opalestate-pro' ), 'description' => esc_html__( 'Enter Number of Living Rooms', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Kitchens', 'opalestate-pro' ), 'name' => esc_html__( 'Kitchens', 'opalestate-pro' ),
'id' => "{$prefix}kitchens", 'id' => "{$prefix}kitchens",
'type' => 'text', 'type' => 'text',
'attributes' => [
'type' => 'number',
'min' => 0,
],
'description' => esc_html__( 'Enter Number of Kitchens', 'opalestate-pro' ), 'description' => esc_html__( 'Enter Number of Kitchens', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Rooms', 'opalestate-pro' ), 'name' => esc_html__( 'Rooms', 'opalestate-pro' ),
'id' => "{$prefix}amountrooms", 'id' => "{$prefix}amountrooms",
'type' => 'text', 'type' => 'text',
'attributes' => [
'type' => 'number',
'min' => 0,
],
'description' => esc_html__( 'Enter Number of Amount Rooms', 'opalestate-pro' ), 'description' => esc_html__( 'Enter Number of Amount Rooms', 'opalestate-pro' ),
'after_row' => '</div>',
'after_row' => '</div>',
], ],
]; ];

@ -242,44 +242,25 @@ class Opalestate_Property_MetaBox_Submission {
'id' => $prefix . 'builtyear', 'id' => $prefix . 'builtyear',
'type' => 'text', 'type' => 'text',
'description' => esc_html__( 'Enter built year', 'opalestate-pro' ), 'description' => esc_html__( 'Enter built year', 'opalestate-pro' ),
'before_row' => '<div id="opalestate-submission-information" class="opalestate-tab-content"><div class="field-row-2">',
'before_row' => '<div id="opalestate-submission-information" class="opalestate-tab-content"><div class="field-row-2">',
], ],
[ [
'name' => esc_html__( 'Parking', 'opalestate-pro' ), 'name' => esc_html__( 'Parking', 'opalestate-pro' ),
'id' => $prefix . 'parking', 'id' => $prefix . 'parking',
'type' => 'text', 'type' => 'text',
'attributes' => [ 'description' => esc_html__( 'Enter number of Parking', 'opalestate-pro' ),
'type' => 'number',
'pattern' => '\d*',
],
'sanitization_cb' => 'absint',
'escape_cb' => 'absint',
'description' => esc_html__( 'Enter number of Parking', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Bedrooms', 'opalestate-pro' ), 'name' => esc_html__( 'Bedrooms', 'opalestate-pro' ),
'id' => $prefix . 'bedrooms', 'id' => $prefix . 'bedrooms',
'type' => 'text', 'type' => 'text',
'attributes' => [ 'description' => esc_html__( 'Enter number of bedrooms', 'opalestate-pro' ),
'type' => 'number',
'pattern' => '\d*',
],
'sanitization_cb' => 'absint',
'escape_cb' => 'absint',
'description' => esc_html__( 'Enter number of bedrooms', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Bathrooms', 'opalestate-pro' ), 'name' => esc_html__( 'Bathrooms', 'opalestate-pro' ),
'id' => $prefix . 'bathrooms', 'id' => $prefix . 'bathrooms',
'type' => 'text', 'type' => 'text',
'attributes' => [ 'description' => esc_html__( 'Enter number of bathrooms', 'opalestate-pro' ),
'type' => 'number',
'pattern' => '\d*',
],
'sanitization_cb' => 'absint',
'escape_cb' => 'absint',
'description' => esc_html__( 'Enter number of bathrooms', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Plot Size', 'opalestate-pro' ), 'name' => esc_html__( 'Plot Size', 'opalestate-pro' ),
@ -288,16 +269,10 @@ class Opalestate_Property_MetaBox_Submission {
'description' => esc_html__( 'Enter size of Plot as 20x30, 20x30x40, 20x30x40x50', 'opalestate-pro' ), 'description' => esc_html__( 'Enter size of Plot as 20x30, 20x30x40, 20x30x40x50', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Area Size', 'opalestate-pro' ), 'name' => esc_html__( 'Area Size', 'opalestate-pro' ),
'id' => $prefix . 'areasize', 'id' => $prefix . 'areasize',
'type' => 'text', 'type' => 'text',
'attributes' => [ 'description' => esc_html__( 'Enter size of area in sqft', 'opalestate-pro' ),
'type' => 'number',
'pattern' => '\d*',
],
'sanitization_cb' => 'absint',
'escape_cb' => 'absint',
'description' => esc_html__( 'Enter size of area in sqft', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Orientation', 'opalestate-pro' ), 'name' => esc_html__( 'Orientation', 'opalestate-pro' ),
@ -306,43 +281,25 @@ class Opalestate_Property_MetaBox_Submission {
'description' => esc_html__( 'Enter Orientation of property', 'opalestate-pro' ), 'description' => esc_html__( 'Enter Orientation of property', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Living Rooms', 'opalestate-pro' ), 'name' => esc_html__( 'Living Rooms', 'opalestate-pro' ),
'id' => "{$prefix}livingrooms", 'id' => "{$prefix}livingrooms",
'type' => 'text', 'type' => 'text',
'attributes' => [ 'description' => esc_html__( 'Enter Number of Living Rooms', 'opalestate-pro' ),
'type' => 'number',
'pattern' => '\d*',
],
'sanitization_cb' => 'absint',
'escape_cb' => 'absint',
'description' => esc_html__( 'Enter Number of Living Rooms', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Kitchens', 'opalestate-pro' ), 'name' => esc_html__( 'Kitchens', 'opalestate-pro' ),
'id' => "{$prefix}kitchens", 'id' => "{$prefix}kitchens",
'type' => 'text', 'type' => 'text',
'attributes' => [ 'description' => esc_html__( 'Enter Number of Kitchens', 'opalestate-pro' ),
'type' => 'number',
'pattern' => '\d*',
],
'sanitization_cb' => 'absint',
'escape_cb' => 'absint',
'description' => esc_html__( 'Enter Number of Kitchens', 'opalestate-pro' ),
], ],
[ [
'name' => esc_html__( 'Rooms', 'opalestate-pro' ), 'name' => esc_html__( 'Rooms', 'opalestate-pro' ),
'id' => "{$prefix}amountrooms", 'id' => "{$prefix}amountrooms",
'type' => 'text', 'type' => 'text',
'attributes' => [ 'description' => esc_html__( 'Enter Number of Amount Rooms', 'opalestate-pro' ),
'type' => 'number', 'after_row' => '</div><hr><button type="button" class="submission-back-btn btn btn-primary">' . esc_html__( 'Previous Step',
'pattern' => '\d*',
],
'sanitization_cb' => 'absint',
'escape_cb' => 'absint',
'description' => esc_html__( 'Enter Number of Amount Rooms', 'opalestate-pro' ),
'after_row' => '</div><hr><button type="button" class="submission-back-btn btn btn-primary">' . esc_html__( 'Previous Step',
'opalestate-pro' ) . '</button><button type="button" class="submission-next-btn btn btn-primary">' . esc_html__( 'Next Step', 'opalestate-pro' ) . '</button></div>', 'opalestate-pro' ) . '</button><button type="button" class="submission-next-btn btn btn-primary">' . esc_html__( 'Next Step', 'opalestate-pro' ) . '</button></div>',
], ],

@ -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.2.9.2 * Version: 1.2.9.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
@ -150,7 +150,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&#8217; huh?', 'opalestate-pro' ), '1.2.9.2' ); _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin&#8217; huh?', 'opalestate-pro' ), '1.2.9.3' );
} }
/** /**
@ -159,7 +159,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.2.9.2' ); define( 'OPALESTATE_VERSION', '1.2.9.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.2.9.2 Stable tag: 1.2.9.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
@ -156,6 +156,9 @@ This section describes how to install the plugin and get it working.
* System tickets support 24/7 available : [free support](https://wpopal.ticksy.com/ "Visit the Plugin support Page") * System tickets support 24/7 available : [free support](https://wpopal.ticksy.com/ "Visit the Plugin support Page")
== Changelog == == Changelog ==
= 1.2.9.3 - 2020-01-31 =
* Fixes - Admin infomation fields.
= 1.2.9.2 - 2020-01-30 = = 1.2.9.2 - 2020-01-30 =
* Fixes - Archive filter. * Fixes - Archive filter.