mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 06:03:38 +09:00
!!! IMPORTANT 2.0 version before upgrade please run full backup of your site !!!
- new code structure, optimized for next development; - created spl_autoloader for remove includes; - UM classes with namespaces; - deprecated global $ultimatemember; variable (use UM() instead); - new UM/WP roles logic; - new settings class and logic (deprecated Redux framework, deprecated some old options, added some new options); - new dependencies class for extensions; - WP native styles for backend fields; - new upgrades and license activations for extensions; - new logic form backend forms and fields; - created uninstall.php file for delete permanently all UM settings; - optimized registration/upgrade profile process; Deprecated Hooks: um_new_user_registration_plain um_user_registration_extra_hook um_add_user_frontend um_post_registration_global_hook um_admin_extend_directory_options_general (was action...will be filter)
This commit is contained in:
@@ -7,302 +7,5 @@ print ".um-$form_id.um {
|
||||
}";
|
||||
}
|
||||
|
||||
if ( $active_color ) {
|
||||
print "
|
||||
|
||||
.um-$form_id.um .um-tip:hover,
|
||||
.um-$form_id.um .um-field-radio.active:not(.um-field-radio-state-disabled) i,
|
||||
.um-$form_id.um .um-field-checkbox.active:not(.um-field-radio-state-disabled) i,
|
||||
.um-$form_id.um .um-member-name a:hover,
|
||||
.um-$form_id.um .um-member-more a:hover,
|
||||
.um-$form_id.um .um-member-less a:hover,
|
||||
.um-$form_id.um .um-members-pagi a:hover,
|
||||
.um-$form_id.um .um-cover-add:hover,
|
||||
.um-$form_id.um .um-profile-subnav a.active,
|
||||
.um-$form_id.um .um-item-meta a,
|
||||
.um-account-name a:hover,
|
||||
.um-account-nav a.current,
|
||||
.um-account-side li a.current span.um-account-icon,
|
||||
.um-account-side li a.current:hover span.um-account-icon,
|
||||
.um-dropdown li a:hover,
|
||||
i.um-active-color,
|
||||
span.um-active-color
|
||||
{
|
||||
color: $active_color;
|
||||
}
|
||||
|
||||
.um-$form_id.um .um-field-group-head,
|
||||
.picker__box,
|
||||
.picker__nav--prev:hover,
|
||||
.picker__nav--next:hover,
|
||||
.um-$form_id.um .um-members-pagi span.current,
|
||||
.um-$form_id.um .um-members-pagi span.current:hover,
|
||||
.um-$form_id.um .um-profile-nav-item.active a,
|
||||
.um-$form_id.um .um-profile-nav-item.active a:hover,
|
||||
.upload,
|
||||
.um-modal-header,
|
||||
.um-modal-btn,
|
||||
.um-modal-btn.disabled,
|
||||
.um-modal-btn.disabled:hover,
|
||||
div.uimob800 .um-account-side li a.current,div.uimob800 .um-account-side li a.current:hover
|
||||
{
|
||||
background: $active_color;
|
||||
}
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
if ( $secondary_color ) {
|
||||
print "
|
||||
|
||||
.um-$form_id.um .um-field-group-head:hover,
|
||||
.picker__footer,
|
||||
.picker__header,
|
||||
.picker__day--infocus:hover,
|
||||
.picker__day--outfocus:hover,
|
||||
.picker__day--highlighted:hover,
|
||||
.picker--focused .picker__day--highlighted,
|
||||
.picker__list-item:hover,
|
||||
.picker__list-item--highlighted:hover,
|
||||
.picker--focused .picker__list-item--highlighted,
|
||||
.picker__list-item--selected,
|
||||
.picker__list-item--selected:hover,
|
||||
.picker--focused .picker__list-item--selected {
|
||||
background: $secondary_color;
|
||||
}
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
if ( isset( $align ) && $align == 'center') {
|
||||
print ".um-$form_id.um {
|
||||
margin-left: auto!important;
|
||||
margin-right: auto!important;
|
||||
}";
|
||||
} else if ( isset( $align ) && $align ) {
|
||||
print ".um-$form_id.um {
|
||||
float: $align;
|
||||
}";
|
||||
}
|
||||
|
||||
if ( $primary_btn_color ) {
|
||||
|
||||
print ".um-$form_id.um input[type=submit]:disabled:hover {
|
||||
background: $primary_btn_color;
|
||||
}";
|
||||
|
||||
print ".um-$form_id.um input[type=submit].um-button,
|
||||
.um-$form_id.um input[type=submit].um-button:focus,
|
||||
.um-$form_id.um a.um-button,
|
||||
.um-$form_id.um a.um-button.um-disabled:hover,
|
||||
.um-$form_id.um a.um-button.um-disabled:focus,
|
||||
.um-$form_id.um a.um-button.um-disabled:active {
|
||||
background: $primary_btn_color;
|
||||
}";
|
||||
|
||||
print ".um-$form_id.um a.um-link {
|
||||
color: $primary_btn_color;
|
||||
}";
|
||||
|
||||
}
|
||||
|
||||
if ( $primary_btn_hover ) {
|
||||
print ".um-$form_id.um input[type=submit].um-button:hover,
|
||||
.um-$form_id.um a.um-button:hover {
|
||||
background-color: $primary_btn_hover;
|
||||
}";
|
||||
print ".um-$form_id.um a.um-link:hover, .um-$form_id.um a.um-link-hvr:hover {
|
||||
color: $primary_btn_hover;
|
||||
}";
|
||||
}
|
||||
|
||||
if ( $primary_btn_text ) {
|
||||
print ".um-$form_id.um .um-button {
|
||||
color: $primary_btn_text;
|
||||
}";
|
||||
}
|
||||
|
||||
if ( $secondary_btn_color ) {
|
||||
print ".um-$form_id.um .um-button.um-alt,
|
||||
.um-$form_id.um input[type=submit].um-button.um-alt {
|
||||
background: $secondary_btn_color;
|
||||
}";
|
||||
}
|
||||
|
||||
if ( $secondary_btn_hover ) {
|
||||
print ".um-$form_id.um .um-button.um-alt:hover,
|
||||
.um-$form_id.um input[type=submit].um-button.um-alt:hover{
|
||||
background: $secondary_btn_hover;
|
||||
}";
|
||||
}
|
||||
|
||||
if ( $secondary_btn_text ) {
|
||||
print ".um-$form_id.um .um-button.um-alt,
|
||||
.um-$form_id.um input[type=submit].um-button.um-alt {
|
||||
color: $secondary_btn_text;
|
||||
}";
|
||||
}
|
||||
|
||||
if ( $form_border ) {
|
||||
print "
|
||||
.um-$form_id.um .um-form input[type=text],
|
||||
.um-$form_id.um .um-form input[type=tel],
|
||||
.um-$form_id.um .um-form input[type=number],
|
||||
.um-$form_id.um .um-form input[type=password],
|
||||
.um-$form_id.um .um-form textarea,
|
||||
.um-$form_id.um .upload-progress,
|
||||
.select2-container .select2-choice,
|
||||
.select2-drop,
|
||||
.select2-container-multi .select2-choices,
|
||||
.select2-drop-active,
|
||||
.select2-drop.select2-drop-above
|
||||
{
|
||||
border: $form_border !important;
|
||||
}
|
||||
|
||||
.um-$form_id.um .um-form .select2-container-multi .select2-choices .select2-search-field input[type=text] {border: none !important}
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
if ( $form_border_hover ) {
|
||||
print "
|
||||
.um-$form_id.um .um-form input[type=text]:focus,
|
||||
.um-$form_id.um .um-form input[type=tel]:focus,
|
||||
.um-$form_id.um .um-form input[type=number]:focus,
|
||||
.um-$form_id.um .um-form input[type=password]:focus,
|
||||
.um-$form_id.um .um-form .um-datepicker.picker__input.picker__input--active,
|
||||
.um-$form_id.um .um-form .um-datepicker.picker__input.picker__input--target,
|
||||
.um-$form_id.um .um-form textarea:focus {
|
||||
border: $form_border_hover !important;
|
||||
}
|
||||
";
|
||||
}
|
||||
|
||||
if ( $form_bg_color ) {
|
||||
print "
|
||||
.um-$form_id.um .um-form input[type=text],
|
||||
.um-$form_id.um .um-form input[type=tel],
|
||||
.um-$form_id.um .um-form input[type=number],
|
||||
.um-$form_id.um .um-form input[type=password],
|
||||
.um-$form_id.um .um-form textarea,
|
||||
.select2-container .select2-choice,
|
||||
.select2-container-multi .select2-choices
|
||||
{
|
||||
background-color: $form_bg_color;
|
||||
}
|
||||
";
|
||||
}
|
||||
|
||||
if ( $form_bg_color_focus ) {
|
||||
print "
|
||||
.um-$form_id.um .um-form input[type=text]:focus,
|
||||
.um-$form_id.um .um-form input[type=tel]:focus,
|
||||
.um-$form_id.um .um-form input[type=number]:focus,
|
||||
.um-$form_id.um .um-form input[type=password]:focus,
|
||||
.um-$form_id.um .um-form textarea:focus {
|
||||
background-color: $form_bg_color_focus;
|
||||
}
|
||||
";
|
||||
}
|
||||
|
||||
if ( $form_placeholder ) {
|
||||
print "
|
||||
|
||||
.um-$form_id.um .um-form ::-webkit-input-placeholder
|
||||
{
|
||||
color: $form_placeholder;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.um-$form_id.um .um-form ::-moz-placeholder
|
||||
{
|
||||
color: $form_placeholder;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.um-$form_id.um .um-form ::-moz-placeholder
|
||||
{
|
||||
color: $form_placeholder;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.um-$form_id.um .um-form ::-ms-input-placeholder
|
||||
{
|
||||
color: $form_placeholder;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.select2-default,
|
||||
.select2-default *,
|
||||
.select2-container-multi .select2-choices .select2-search-field input
|
||||
{
|
||||
color: $form_placeholder;
|
||||
}
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
if ( $form_icon_color ) {
|
||||
print "
|
||||
.um-$form_id.um .um-field-icon i,
|
||||
.select2-container .select2-choice .select2-arrow:before,
|
||||
.select2-search:before,
|
||||
.select2-search-choice-close:before
|
||||
{
|
||||
color: $form_icon_color;
|
||||
}
|
||||
";
|
||||
}
|
||||
|
||||
if ( $form_asterisk_color ) {
|
||||
print "
|
||||
.um-$form_id.um span.um-req
|
||||
{
|
||||
color: $form_asterisk_color;
|
||||
}
|
||||
";
|
||||
}
|
||||
|
||||
if ( $form_field_label ) {
|
||||
print "
|
||||
.um-$form_id.um .um-field-label {
|
||||
color: $form_field_label;
|
||||
}
|
||||
";
|
||||
}
|
||||
|
||||
if ( $form_text_color ) {
|
||||
print "
|
||||
|
||||
.um-$form_id.um .um-form input[type=text],
|
||||
.um-$form_id.um .um-form input[type=tel],
|
||||
.um-$form_id.um .um-form input[type=password],
|
||||
.um-$form_id.um .um-form textarea
|
||||
{
|
||||
color: $form_text_color;
|
||||
}
|
||||
|
||||
.um-$form_id.um .um-form input:-webkit-autofill {
|
||||
-webkit-box-shadow:0 0 0 50px white inset; /* Change the color to your own background color */
|
||||
-webkit-text-fill-color: $form_text_color;
|
||||
}
|
||||
|
||||
.um-$form_id.um .um-form input:-webkit-autofill:focus {
|
||||
-webkit-box-shadow: none,0 0 0 50px white inset;
|
||||
-webkit-text-fill-color: $form_text_color;
|
||||
}
|
||||
|
||||
";
|
||||
}
|
||||
|
||||
if ( $help_tip_color ) {
|
||||
print "
|
||||
.um-$form_id.um .um-tip {
|
||||
color: $help_tip_color;
|
||||
}
|
||||
";
|
||||
}
|
||||
|
||||
?>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user