From 2266f57b8ca63bfdf6696c0dca8be02796a43f6e Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Wed, 21 Dec 2016 20:58:42 +0800 Subject: [PATCH] Add main profile dynamic text color --- admin/templates/form/profile_customize.php | 4 ++++ assets/dynamic_css/dynamic_profile.php | 8 ++++++++ core/um-setup.php | 1 + 3 files changed, 13 insertions(+) diff --git a/admin/templates/form/profile_customize.php b/admin/templates/form/profile_customize.php index 162b074d..1fab569b 100644 --- a/admin/templates/form/profile_customize.php +++ b/admin/templates/form/profile_customize.php @@ -107,6 +107,10 @@

+ +

+ +

diff --git a/assets/dynamic_css/dynamic_profile.php b/assets/dynamic_css/dynamic_profile.php index c5d0b51a..59a04739 100644 --- a/assets/dynamic_css/dynamic_profile.php +++ b/assets/dynamic_css/dynamic_profile.php @@ -113,5 +113,13 @@ print " "; } +if( $main_text_color ){ +print " +.um-$form_id.um .um-profile-body.main *{ + color: $main_text_color; +} +"; +} + ?> \ No newline at end of file diff --git a/core/um-setup.php b/core/um-setup.php index d0729567..6fec6fef 100644 --- a/core/um-setup.php +++ b/core/um-setup.php @@ -128,6 +128,7 @@ class UM_Setup { '_um_profile_secondary_btn_hover' => '#e5e5e5', '_um_profile_secondary_btn_text' => '#666', '_um_profile_main_bg' => '', + '_um_profile_main_text_color' => '#555555', '_um_register_role' => '0', '_um_register_template' => 'register', '_um_register_max_width' => '450px',