From f7efadf4aa8509a1097ede76d9dddf7a1f83e7dc Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Wed, 25 Sep 2019 15:48:34 +0700 Subject: [PATCH] Add dashboard logo --- inc/admin/settings/general.php | 18 ++++++++++++++++- templates/user-management.php | 37 ++++++++++++++++++++++------------ 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/inc/admin/settings/general.php b/inc/admin/settings/general.php index 2d2debd0..7b768b9d 100755 --- a/inc/admin/settings/general.php +++ b/inc/admin/settings/general.php @@ -46,7 +46,6 @@ class Opalestate_Settings_General_Tab extends Opalestate_Settings_Base_Tab { 'before_row' => '
', 'after_row' => '
', ], - [ 'name' => esc_html__( 'User Management Page', 'opalestate-pro' ), 'desc' => esc_html__( 'This is page use User Management Page using for show content of management page such as profile, my properties', 'opalestate-pro' ), @@ -54,6 +53,23 @@ class Opalestate_Settings_General_Tab extends Opalestate_Settings_Base_Tab { 'type' => 'select', 'options' => $pages, ], + [ + 'name' => esc_html__( 'Dashboard Logo', 'opalestate-pro' ), + 'desc' => esc_html__( 'Upload a logo for user dashboard page.', 'opalestate-pro' ), + 'id' => 'dashboard_logo', + 'type' => 'file', + 'preview_size' => [ 100, 100 ], + 'options' => [ + 'url' => false, + ], + 'query_args' => [ + 'type' => [ + 'image/gif', + 'image/jpeg', + 'image/png', + ], + ], + ], [ 'name' => esc_html__( 'My Account Page', 'opalestate-pro' ), 'desc' => esc_html__( 'This is page use User login and register an account, or reset password.', 'opalestate-pro' ), diff --git a/templates/user-management.php b/templates/user-management.php index e360178a..29c72a8d 100755 --- a/templates/user-management.php +++ b/templates/user-management.php @@ -70,21 +70,32 @@ if ( $current_user->display_name !== $current_user->user_login ) {