Add main profile dynamic text color

This commit is contained in:
Champ Camba
2016-12-21 20:58:42 +08:00
parent f6e585773e
commit 2266f57b8c
3 changed files with 13 additions and 0 deletions
@@ -107,6 +107,10 @@
<p><label for="_um_profile_main_bg"><?php _e('Base Background Color','ultimatemember'); ?></label>
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_main_bg', null, um_get_option('profile_main_bg') ); ?>" class="um-admin-colorpicker" name="_um_profile_main_bg" id="_um_profile_main_bg" data-default-color="<?php echo um_get_option('profile_main_bg'); ?>" />
</p>
<p><label for="_um_profile_main_text_color"><?php _e('Base Text Color','ultimatemember'); ?> <?php $this->tooltip('Override the default form text color', 'e'); ?></label>
<input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_profile_main_text_color', null, um_get_option('profile_main_text_color') ); ?>" class="um-admin-colorpicker" name="_um_profile_main_text_color" id="_um_profile_main_text_color" data-default-color="<?php echo um_get_option('profile_main_text_color'); ?>" />
</p>
<p><label for="_um_profile_cover_enabled"><?php _e('Enable Cover Photos','ultimatemember'); ?></label>
<span>
+8
View File
@@ -113,5 +113,13 @@ print "
";
}
if( $main_text_color ){
print "
.um-$form_id.um .um-profile-body.main *{
color: $main_text_color;
}
";
}
?>
</style>
+1
View File
@@ -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',