mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Add main profile dynamic text color
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -113,5 +113,13 @@ print "
|
||||
";
|
||||
}
|
||||
|
||||
if( $main_text_color ){
|
||||
print "
|
||||
.um-$form_id.um .um-profile-body.main *{
|
||||
color: $main_text_color;
|
||||
}
|
||||
";
|
||||
}
|
||||
|
||||
?>
|
||||
</style>
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user