Tag 1.2.9
This commit is contained in:
parent
bb42be1a8c
commit
5b835c9fa3
@ -104,6 +104,28 @@ class Opalestate_Settings_Pages_Tab extends Opalestate_Settings_Base_Tab {
|
||||
],
|
||||
'default' => 'on',
|
||||
],
|
||||
[
|
||||
'name' => esc_html__( 'Show Agent Profile', 'opalestate-pro' ),
|
||||
'desc' => esc_html__( 'Show Agent Profile menu page.', 'opalestate-pro' ),
|
||||
'id' => 'enable_dashboard_agent_profile',
|
||||
'type' => 'switch',
|
||||
'options' => [
|
||||
'on' => esc_html__( 'Enable', 'opalestate-pro' ),
|
||||
'off' => esc_html__( 'Disable', 'opalestate-pro' ),
|
||||
],
|
||||
'default' => 'on',
|
||||
],
|
||||
[
|
||||
'name' => esc_html__( 'Show Agency Profile', 'opalestate-pro' ),
|
||||
'desc' => esc_html__( 'Show Agency Profile menu page.', 'opalestate-pro' ),
|
||||
'id' => 'enable_dashboard_agency_profile',
|
||||
'type' => 'switch',
|
||||
'options' => [
|
||||
'on' => esc_html__( 'Enable', 'opalestate-pro' ),
|
||||
'off' => esc_html__( 'Disable', 'opalestate-pro' ),
|
||||
],
|
||||
'default' => 'on',
|
||||
],
|
||||
[
|
||||
'name' => esc_html__( 'Show Favorite', 'opalestate-pro' ),
|
||||
'desc' => esc_html__( 'Show Favorite menu page.', 'opalestate-pro' ),
|
||||
|
@ -77,7 +77,7 @@ class Opalestate_Agency_Front {
|
||||
$user_roles = $current_user->roles;
|
||||
$user_role = array_shift( $user_roles );
|
||||
|
||||
if ( $user_role == 'opalestate_agency' ) {
|
||||
if ( 'on' === opalestate_get_option( 'enable_dashboard_agency_profile', 'on' ) && $user_role == 'opalestate_agency' ) {
|
||||
$menu['agency_profile'] = [
|
||||
'icon' => 'fa fa-user',
|
||||
'link' => "agency_profile",
|
||||
|
@ -75,8 +75,7 @@ class Opalestate_Agent_Front {
|
||||
|
||||
$user_roles = $current_user->roles;
|
||||
$user_role = array_shift( $user_roles );
|
||||
|
||||
if ( $user_role == 'opalestate_agent' ) {
|
||||
if ( 'on' === opalestate_get_option( 'enable_dashboard_agent_profile', 'on' ) && $user_role == 'opalestate_agent' ) {
|
||||
$menu['extra_profile'] = [
|
||||
'icon' => 'fa fa-user',
|
||||
'link' => "agent_profile",
|
||||
|
@ -81,7 +81,7 @@ class Opalestate_User_MetaBox {
|
||||
}
|
||||
|
||||
public function get_address_fields( $prefix ) {
|
||||
return [
|
||||
return apply_filters( 'opalestate_get_user_matabox_address_fields', [
|
||||
[
|
||||
'name' => esc_html__( 'Location', 'opalestate-pro' ),
|
||||
'desc' => esc_html__( 'Select one, to add new you create in location of estate panel', 'opalestate-pro' ),
|
||||
@ -110,9 +110,6 @@ class Opalestate_User_MetaBox {
|
||||
'name' => esc_html__( 'Address', 'opalestate-pro' ),
|
||||
'id' => "{$prefix}address",
|
||||
'type' => 'text',
|
||||
'attributes' => [
|
||||
'required' => 'required',
|
||||
],
|
||||
],
|
||||
[
|
||||
'id' => "{$prefix}map",
|
||||
@ -120,11 +117,8 @@ class Opalestate_User_MetaBox {
|
||||
'type' => 'opal_map',
|
||||
'sanitization_cb' => 'opal_map_sanitise',
|
||||
'split_values' => true,
|
||||
'attributes' => [
|
||||
'required' => 'required',
|
||||
],
|
||||
],
|
||||
];
|
||||
] );
|
||||
}
|
||||
|
||||
public function get_job_fields( $prefix ) {
|
||||
@ -166,13 +160,11 @@ class Opalestate_User_MetaBox {
|
||||
'id' => "{$prefix}phone",
|
||||
'type' => 'text',
|
||||
],
|
||||
|
||||
[
|
||||
'name' => esc_html__( 'Mobile', 'opalestate-pro' ),
|
||||
'id' => "{$prefix}mobile",
|
||||
'type' => 'text',
|
||||
],
|
||||
|
||||
[
|
||||
'name' => esc_html__( 'Fax', 'opalestate-pro' ),
|
||||
'id' => "{$prefix}fax",
|
||||
@ -194,7 +186,6 @@ class Opalestate_User_MetaBox {
|
||||
1 => esc_html__( 'Yes', 'opalestate-pro' ),
|
||||
],
|
||||
],
|
||||
|
||||
[
|
||||
'id' => "{$prefix}trusted",
|
||||
'name' => esc_html__( 'Trusted', 'opalestate-pro' ),
|
||||
@ -205,7 +196,6 @@ class Opalestate_User_MetaBox {
|
||||
1 => esc_html__( 'Yes', 'opalestate-pro' ),
|
||||
],
|
||||
],
|
||||
|
||||
[
|
||||
'name' => esc_html__( 'Avatar Picture', 'opalestate-pro' ),
|
||||
'desc' => esc_html__( 'This image will display in user detail and profile box information', 'opalestate-pro' ),
|
||||
@ -214,7 +204,6 @@ class Opalestate_User_MetaBox {
|
||||
'single' => true,
|
||||
'avatar' => true,
|
||||
],
|
||||
|
||||
[
|
||||
'name' => esc_html__( 'Email', 'opalestate-pro' ),
|
||||
'id' => "{$prefix}email",
|
||||
@ -237,7 +226,6 @@ class Opalestate_User_MetaBox {
|
||||
'id' => "{$prefix}mobile",
|
||||
'type' => 'text',
|
||||
],
|
||||
|
||||
[
|
||||
'name' => esc_html__( 'Fax', 'opalestate-pro' ),
|
||||
'id' => "{$prefix}fax",
|
||||
|
@ -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.2.8
|
||||
* Version: 1.2.9
|
||||
* Author: WPOPAL
|
||||
* Author URI: http://www.wpopal.com
|
||||
* Requires at least: 4.9
|
||||
@ -151,7 +151,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.2.8' );
|
||||
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.2.9' );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -160,7 +160,7 @@ if ( ! class_exists( 'OpalEstate' ) ) {
|
||||
public function setup_constants() {
|
||||
// Plugin version
|
||||
if ( ! defined( 'OPALESTATE_VERSION' ) ) {
|
||||
define( 'OPALESTATE_VERSION', '1.2.8' );
|
||||
define( 'OPALESTATE_VERSION', '1.2.9' );
|
||||
}
|
||||
|
||||
// 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
|
||||
Requires at least: 4.9
|
||||
Tested up to: 5.3.2
|
||||
Stable tag: 1.2.7
|
||||
Stable tag: 1.2.9
|
||||
License: GPLv3
|
||||
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")
|
||||
|
||||
== Changelog ==
|
||||
= 1.2.9 - 2020-01-09 =
|
||||
* Added - Pages settings.
|
||||
|
||||
= 1.2.8 - 2020-01-06 =
|
||||
* Added - Pages settings.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user