Version Description
- 13/12/2019 =
- Enhancement - Redirect URL after logout.
- Enhancement - Password field eye icon.
- Fix - Escaping attribute in checkbox field.
- Fix - Remove admin notice from form builder.
- Fix - Case sensitive in confirm password.
- Fix - Invite code field name made non editable.
Download this release
Release Info
Developer | wpeverest |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.7.5 |
Comparing to | |
See all releases |
Code changes from version 1.7.4 to 1.7.5
- assets/css/user-registration.css +1 -1
- assets/js/frontend/password-strength-meter.js +2 -1
- assets/js/frontend/password-strength-meter.min.js +1 -1
- assets/js/frontend/user-registration.js +11 -3
- assets/js/frontend/user-registration.min.js +1 -1
- includes/abstracts/abstract-ur-form-field.php +8 -4
- includes/admin/class-ur-admin-notices.php +1 -1
- includes/admin/settings/class-ur-settings-general.php +9 -10
- includes/frontend/class-ur-frontend-form-handler.php +1 -1
- includes/functions-ur-template.php +71 -34
- readme.txt +9 -1
- user-registration.php +2 -2
assets/css/user-registration.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ur-form-container .button,.ur-form-container button,.user-registration .button,.user-registration button{transition:all .25s ease 0s}.ur-form-container .button.button-icon,.ur-form-container button.button-icon,.user-registration .button.button-icon,.user-registration button.button-icon{width:32px;padding:0 0 2px}.ur-form-container .button.button-icon .dashicons,.ur-form-container button.button-icon .dashicons,.user-registration .button.button-icon .dashicons,.user-registration button.button-icon .dashicons{line-height:1;vertical-align:middle}.ur-form-container .button.button-icon-round,.ur-form-container button.button-icon-round,.user-registration .button.button-icon-round,.user-registration button.button-icon-round{border-radius:50%}.ur-form-container .button .ur-spinner,.ur-form-container button .ur-spinner,.user-registration .button .ur-spinner,.user-registration button .ur-spinner{width:16px;height:16px;margin-left:6px;margin-bottom:2px;display:inline-block;vertical-align:middle}.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2;text-shadow:none}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-primary:disabled,.user-registration .button-primary:disabled{color:#b2bae0!important;background:#697ac3!important;border-color:#697ac3!important}.ur-form-container .button-secondary,.user-registration .button-secondary{color:#1a1f33;background:#dee0e9;border-color:#dee0e9;box-shadow:0 1px 0 #dee0e9}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{color:#1a1f33;background:#b6bbcf;border-color:#b6bbcf;box-shadow:0 1px 0 #b6bbcf}.ur-form-container .button-danger,.user-registration .button-danger{color:#fff;background:#ff4149;border-color:#ff4149;box-shadow:0 1px 0 #ff4149}.ur-form-container .button-danger:active,.ur-form-container .button-danger:focus,.ur-form-container .button-danger:hover,.user-registration .button-danger:active,.user-registration .button-danger:focus,.user-registration .button-danger:hover{color:#fff;background:#ee2a32;border-color:#ee2a32;box-shadow:0 1px 0 #ee2a32}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-right:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{display:block;margin:0 0 10px;padding:10px 15px;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.25;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{content:'\f348';display:inline-block;vertical-align:middle;font-family:Dashicons;font-size:calc(100% + 10px);margin-right:.875rem}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:right}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-info{color:#1e85be;border-top-color:#1e85be}.user-registration-error{border-top-color:#ff4149;background:rgba(255,65,73,.1);color:#f4000a}.user-registration-error::before{content:'\f534'}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form.login{margin:0;padding:10px;box-shadow:none;background:0 0}.ur-frontend-form.login input[name=rememberme]#rememberme{vertical-align:middle}.ur-frontend-form.login-registration{margin:0;border:none;padding:0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form .description{display:block;font-size:14px;line-height:1.5}.ur-frontend-form .ur-form-row{display:flex}.ur-frontend-form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid{flex:1;padding:0 10px}.ur-frontend-form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:0 none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul{margin:0;list-style:none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li{margin-left:0;line-height:1.3;vertical-align:middle;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li label,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li label{display:inline-block;vertical-align:inherit}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input[type=radio],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input[type=radio]{margin-top:2px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li label,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li label{display:inline}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form .ur-form-row .ur-form-grid select,.ur-frontend-form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;min-height:36px;margin-bottom:10px;line-height:1.5}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::placeholder{color:#ddd}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;display:inline-block;vertical-align:middle;margin-right:5px;margin-left:20px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-left:0}.ur-frontend-form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form .ur-form-row .ur-form-grid input[readonly],.ur-frontend-form .ur-form-row .ur-form-grid select[readonly],.ur-frontend-form .ur-form-row .ur-form-grid textarea[readonly]{cursor:auto}.ur-frontend-form .ur-form-row .ur-form-grid label,.ur-frontend-form .ur-form-row .ur-form-grid legend{display:block;font-size:14px;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid label .required,.ur-frontend-form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:#ff4149}.ur-frontend-form .ur-form-row .ur-form-grid label.ur-label,.ur-frontend-form .ur-form-row .ur-form-grid legend.ur-label{font-weight:700}.ur-frontend-form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group{display:block;position:relative}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview{color:#676d8a;position:absolute;top:50%;right:15px;transform:translateY(-50%)}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden{opacity:.6}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden:hover{opacity:1}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple{border:1px solid #f0f1f5}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered li:last-child{margin-left:0}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__choice{margin:5px}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-search--inline input[type=text]{margin:5px;height:inherit}.ur-frontend-form button,.ur-frontend-form button[type=submit],.ur-frontend-form input[type=submit]{padding:10px 20px;line-height:1.5;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;transition:.35s all ease-out}.ur-frontend-form input[type=submit]{float:right}.ur-frontend-form .ur-button-container{display:flex;margin-top:10px;padding:0 10px}.ur-frontend-form .ur-button-container .ur-submit-button{margin-left:auto}.ur-frontend-form .ur-submit-button{margin-right:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{border:none;border-bottom:1px solid #69717a;outline:0;transition:all .35s;padding:10px 15px;background:#f8f9fa;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid legend{margin-left:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--bordered form button.user-registration-multi-part-nav-next,.ur-frontend-form.ur-frontend-form--bordered form button.user-registration-multi-part-nav-prev,.ur-frontend-form.ur-frontend-form--bordered form button[type=submit],.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]{background:#f8f9fa;border:1px solid #69717a;color:#69717a;border-radius:0}.ur-frontend-form.ur-frontend-form--bordered form button.user-registration-multi-part-nav-next:hover,.ur-frontend-form.ur-frontend-form--bordered form button.user-registration-multi-part-nav-prev:hover,.ur-frontend-form.ur-frontend-form--bordered form button[type=submit]:hover,.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]:hover{background:#475bb2;color:#fff;border-color:#475bb2}.ur-frontend-form.ur-frontend-form--flat{background:#f7f7f7;border:none transparent}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .form-row,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:0}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{border:none;outline:0;padding:10px 15px;background:#fff;color:#69717a;margin-bottom:10px;height:45px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea:focus{box-shadow:0 0 10px 5px rgba(0,0,0,.05)}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select{margin-bottom:10px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid legend{color:#69717a}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{border:1px solid #ced4da;border-radius:25px;outline:0;transition:all .35s;padding:10px 15px;background:#fff;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid button[type=button]{border-radius:25px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid legend{margin-left:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded form button.user-registration-multi-part-nav-next,.ur-frontend-form.ur-frontend-form--rounded form button.user-registration-multi-part-nav-prev,.ur-frontend-form.ur-frontend-form--rounded form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded form input[type=submit]{border:0 none;color:#fff;border-radius:25px;float:none;display:block;padding:15px 25px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid textarea{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid button[type=button]{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button.user-registration-multi-part-nav-next,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button.user-registration-multi-part-nav-prev,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form input[type=submit]{border-radius:2px}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration{background-color:#fff;margin:30px 0}#user-registration *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#user-registration .user-registration-tips{font-size:12px;color:#acaeba;margin-bottom:0}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-flex;display:flex;flex-wrap:wrap}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:10px 15px;display:block;font-weight:400;font-size:14px;font-family:sans-serif;text-decoration:none;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{font-weight:600}#user-registration .user-registration-MyAccount-content{padding:30px}#user-registration .user-registration-MyAccount-content h2{margin-bottom:30px}#user-registration .user-registration-MyAccount-content .user-registration-profile-fields__field-wrapper{margin:0 -10px}#user-registration .user-registration-MyAccount-content .ur-form-grid{border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}#user-registration .user-registration-MyAccount-content .edit-password legend,#user-registration .user-registration-MyAccount-content h2{font-size:28px;font-weight:400}#user-registration .user-registration-MyAccount-content .user-registration-profile-header{margin-bottom:25px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{width:100px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header h3{font-size:22px;font-weight:400;margin-bottom:5px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .button-group,#user-registration .user-registration-MyAccount-content .user-registration-profile-header header p{margin-bottom:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .profile-pic-remove{margin-right:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-nick-name{color:#acaeba}#user-registration .user-registration-MyAccount-content .user-registration-EditProfileForm .user-registration-profile-header .user-registration-img-container{width:auto}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-left:-40px;float:left}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap h2,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap h2{width:100%;margin-bottom:.5em}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap .components-base-control,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap .components-base-control{width:100%}.ur-frontend-form.ur-gutenberg-editor form button[type=submit]{cursor:not-allowed}.ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input{cursor:not-allowed}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#dee0e9}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#dee0e9}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#dee0e9}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#dee0e9}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#dee0e9;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}.ur-hidden{display:none}
|
1 |
+
.ur-form-container .button,.ur-form-container button,.user-registration .button,.user-registration button{transition:all .25s ease 0s}.ur-form-container .button.button-icon,.ur-form-container button.button-icon,.user-registration .button.button-icon,.user-registration button.button-icon{width:32px;padding:0 0 2px}.ur-form-container .button.button-icon .dashicons,.ur-form-container button.button-icon .dashicons,.user-registration .button.button-icon .dashicons,.user-registration button.button-icon .dashicons{line-height:1;vertical-align:middle}.ur-form-container .button.button-icon-round,.ur-form-container button.button-icon-round,.user-registration .button.button-icon-round,.user-registration button.button-icon-round{border-radius:50%}.ur-form-container .button .ur-spinner,.ur-form-container button .ur-spinner,.user-registration .button .ur-spinner,.user-registration button .ur-spinner{width:16px;height:16px;margin-left:6px;margin-bottom:2px;display:inline-block;vertical-align:middle}.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2;text-shadow:none}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-primary:disabled,.user-registration .button-primary:disabled{color:#b2bae0!important;background:#697ac3!important;border-color:#697ac3!important}.ur-form-container .button-secondary,.user-registration .button-secondary{color:#1a1f33;background:#dee0e9;border-color:#dee0e9;box-shadow:0 1px 0 #dee0e9}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{color:#1a1f33;background:#b6bbcf;border-color:#b6bbcf;box-shadow:0 1px 0 #b6bbcf}.ur-form-container .button-danger,.user-registration .button-danger{color:#fff;background:#ff4149;border-color:#ff4149;box-shadow:0 1px 0 #ff4149}.ur-form-container .button-danger:active,.ur-form-container .button-danger:focus,.ur-form-container .button-danger:hover,.user-registration .button-danger:active,.user-registration .button-danger:focus,.user-registration .button-danger:hover{color:#fff;background:#ee2a32;border-color:#ee2a32;box-shadow:0 1px 0 #ee2a32}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-right:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{display:block;margin:0 0 10px;padding:10px 15px;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.25;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{content:'\f348';display:inline-block;vertical-align:middle;font-family:Dashicons;font-size:calc(100% + 10px);margin-right:.875rem}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:right}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-info{color:#1e85be;border-top-color:#1e85be}.user-registration-error{border-top-color:#ff4149;background:rgba(255,65,73,.1);color:#f4000a}.user-registration-error::before{content:'\f534'}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form.login{margin:0;padding:10px;box-shadow:none;background:0 0}.ur-frontend-form.login input[name=rememberme]#rememberme{vertical-align:middle}.ur-frontend-form.login-registration{margin:0;border:none;padding:0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form .description{display:block;font-size:14px;line-height:1.5}.ur-frontend-form .ur-form-row{display:flex}.ur-frontend-form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid{flex:1;padding:0 10px}.ur-frontend-form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:0 none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul{margin:0;list-style:none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li{margin-left:0;line-height:1.3;vertical-align:middle;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li label,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li label{display:inline-block;vertical-align:inherit}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input[type=radio],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input[type=radio]{margin-top:2px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li label,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li label{display:inline}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form .ur-form-row .ur-form-grid select,.ur-frontend-form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;min-height:36px;margin-bottom:10px;line-height:1.5}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::placeholder{color:#ddd}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;display:inline-block;vertical-align:middle;margin-right:5px;margin-left:20px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-left:0}.ur-frontend-form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form .ur-form-row .ur-form-grid input[readonly],.ur-frontend-form .ur-form-row .ur-form-grid select[readonly],.ur-frontend-form .ur-form-row .ur-form-grid textarea[readonly]{cursor:auto}.ur-frontend-form .ur-form-row .ur-form-grid label,.ur-frontend-form .ur-form-row .ur-form-grid legend{display:block;font-size:14px;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid label .required,.ur-frontend-form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:#ff4149}.ur-frontend-form .ur-form-row .ur-form-grid label.ur-label,.ur-frontend-form .ur-form-row .ur-form-grid legend.ur-label{font-weight:700}.ur-frontend-form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group{display:block;position:relative}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview{color:#676d8a;position:absolute;top:50%;right:15px;transform:translateY(-50%)}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden{opacity:.6}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden:hover{opacity:1}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple{border:1px solid #f0f1f5}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered li:last-child{margin-left:0}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__choice{margin:5px}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-search--inline input[type=text]{margin:5px;height:inherit}.ur-frontend-form button,.ur-frontend-form button[type=submit],.ur-frontend-form input[type=submit]{padding:10px 20px;line-height:1.5;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;transition:.35s all ease-out}.ur-frontend-form input[type=submit]{float:right}.ur-frontend-form .ur-button-container{display:flex;margin-top:10px;padding:0 10px}.ur-frontend-form .ur-button-container .ur-submit-button{margin-left:auto}.ur-frontend-form .ur-submit-button{margin-right:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{border:none;border-bottom:1px solid #69717a;outline:0;transition:all .35s;padding:10px 15px;background:#f8f9fa;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid legend{margin-left:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--bordered form button.user-registration-multi-part-nav-next,.ur-frontend-form.ur-frontend-form--bordered form button.user-registration-multi-part-nav-prev,.ur-frontend-form.ur-frontend-form--bordered form button[type=submit],.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]{background:#f8f9fa;border:1px solid #69717a;color:#69717a;border-radius:0}.ur-frontend-form.ur-frontend-form--bordered form button.user-registration-multi-part-nav-next:hover,.ur-frontend-form.ur-frontend-form--bordered form button.user-registration-multi-part-nav-prev:hover,.ur-frontend-form.ur-frontend-form--bordered form button[type=submit]:hover,.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]:hover{background:#475bb2;color:#fff;border-color:#475bb2}.ur-frontend-form.ur-frontend-form--flat{background:#f7f7f7;border:none transparent}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .form-row,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:0}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{border:none;outline:0;padding:10px 15px;background:#fff;color:#69717a;margin-bottom:10px;height:45px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea:focus{box-shadow:0 0 10px 5px rgba(0,0,0,.05)}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select{margin-bottom:10px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid legend{color:#69717a}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{border:1px solid #ced4da;border-radius:25px;outline:0;transition:all .35s;padding:10px 15px;background:#fff;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid button[type=button]{border-radius:25px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid legend{margin-left:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded form button.user-registration-multi-part-nav-next,.ur-frontend-form.ur-frontend-form--rounded form button.user-registration-multi-part-nav-prev,.ur-frontend-form.ur-frontend-form--rounded form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded form input[type=submit]{border:0 none;color:#fff;border-radius:25px;float:none;display:block;padding:15px 25px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid textarea{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid button[type=button]{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button.user-registration-multi-part-nav-next,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button.user-registration-multi-part-nav-prev,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form input[type=submit]{border-radius:2px}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration{background-color:#fff;margin:30px 0}#user-registration *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#user-registration .user-registration-tips{font-size:12px;color:#acaeba;margin-bottom:0}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-flex;display:flex;flex-wrap:wrap}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:10px 15px;display:block;font-weight:400;font-size:14px;font-family:sans-serif;text-decoration:none;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{font-weight:600}#user-registration .user-registration-MyAccount-content{padding:30px}#user-registration .user-registration-MyAccount-content h2{margin-bottom:30px}#user-registration .user-registration-MyAccount-content .user-registration-profile-fields__field-wrapper{margin:0 -10px}#user-registration .user-registration-MyAccount-content .ur-form-grid{border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}#user-registration .user-registration-MyAccount-content .edit-password legend,#user-registration .user-registration-MyAccount-content h2{font-size:28px;font-weight:400}#user-registration .user-registration-MyAccount-content .user-registration-profile-header{margin-bottom:25px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{width:100px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header h3{font-size:22px;font-weight:400;margin-bottom:5px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .button-group,#user-registration .user-registration-MyAccount-content .user-registration-profile-header header p{margin-bottom:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .profile-pic-remove{margin-right:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-nick-name{color:#acaeba}#user-registration .user-registration-MyAccount-content .user-registration-EditProfileForm .user-registration-profile-header .user-registration-img-container{width:auto}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-left:-40px;float:left}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap h2,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap h2{width:100%;margin-bottom:.5em}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap .components-base-control,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap .components-base-control{width:100%}.ur-frontend-form.ur-gutenberg-editor form button[type=submit]{cursor:not-allowed}.ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input{cursor:not-allowed}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#dee0e9}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#dee0e9}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#dee0e9}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#dee0e9}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#dee0e9;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}.ur-hidden{display:none}
|
assets/js/frontend/password-strength-meter.js
CHANGED
@@ -43,11 +43,12 @@ jQuery(function ( $ ) {
|
|
43 |
var minimum_password_strength = wrapper.attr('data-minimum-password-strength');
|
44 |
|
45 |
var meter = wrapper.find('.user-registration-password-strength');
|
|
|
46 |
if ( '' === field.val() ) {
|
47 |
meter.remove();
|
48 |
$(document.body).trigger('ur-password-strength-removed');
|
49 |
} else if ( 0 === meter.length ) {
|
50 |
-
field.after('<div class="user-registration-password-strength" aria-live="polite" data-min-strength="' + minimum_password_strength + '"></div>');
|
51 |
$(document.body).trigger('ur-password-strength-added');
|
52 |
}
|
53 |
},
|
43 |
var minimum_password_strength = wrapper.attr('data-minimum-password-strength');
|
44 |
|
45 |
var meter = wrapper.find('.user-registration-password-strength');
|
46 |
+
var password_field = wrapper.find('.password-input-group');
|
47 |
if ( '' === field.val() ) {
|
48 |
meter.remove();
|
49 |
$(document.body).trigger('ur-password-strength-removed');
|
50 |
} else if ( 0 === meter.length ) {
|
51 |
+
password_field.closest( '.field-user_pass' ).after('<div class="user-registration-password-strength" aria-live="polite" data-min-strength="' + minimum_password_strength + '"></div>');
|
52 |
$(document.body).trigger('ur-password-strength-added');
|
53 |
}
|
54 |
},
|
assets/js/frontend/password-strength-meter.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(
|
1 |
+
jQuery(function(s){var t=ur_password_strength_meter_params.pwsL10n,r={init:function(){var t=this;s(document.body).on("keyup change",'input[name="user_pass"], .user-registration-ResetPassword input[name="password_1"], input[name="password_1"].user-registration-Input--password',function(){"no"!==s(this).closest("form").attr("data-enable-strength-password")&&t.strengthMeter(s(this))})},strengthMeter:function(t){var e=t.closest("form"),a=s(t,e);r.includeMeter(e,a),r.checkPasswordStrength(e,a)},includeMeter:function(t,r){var e=t.attr("data-minimum-password-strength"),a=t.find(".user-registration-password-strength"),n=t.find(".password-input-group");""===r.val()?(a.remove(),s(document.body).trigger("ur-password-strength-removed")):0===a.length&&(n.closest(".field-user_pass").after('<div class="user-registration-password-strength" aria-live="polite" data-min-strength="'+e+'"></div>'),s(document.body).trigger("ur-password-strength-added"))},checkPasswordStrength:function(s,r){var e=s.find(".user-registration-password-strength"),a=s.find(".user-registration-password-hint"),n='<small class="user-registration-password-hint">'+ur_password_strength_meter_params.i18n_password_hint+"</small>",i=s.find('input[type="submit"].user-registration-Button'),d=s.attr("data-minimum-password-strength"),o=wp.passwordStrength.userInputBlacklist();o.push(s.find('input[data-id="user_email"]').val()),o.push(s.find('input[data-id="user_login"]').val());var u=wp.passwordStrength.meter(r.val(),o);switch(e.removeClass("short bad good strong"),a.remove(),s.find(".user-registration-password-strength").attr("data-current-strength",u),u>=d&&i.removeAttr("disabled"),u){case 0:e.addClass("short").html(t.shortpw),e.after(n);break;case 1:e.addClass("bad").html(t.bad),e.after(n);break;case 2:e.addClass("good").html(t.good),e.after(n);break;case 3:case 4:e.addClass("strong").html(t.strong);break;case 5:e.addClass("short").html(t.mismatch)}return u}};r.init()});
|
assets/js/frontend/user-registration.js
CHANGED
@@ -47,7 +47,7 @@
|
|
47 |
errorClass: 'user-registration-error',
|
48 |
validClass: 'user-registration-valid',
|
49 |
errorPlacement: function (error, element) {
|
50 |
-
if ('radio' === element.attr('type') || 'checkbox' === element.attr('type')) {
|
51 |
element.parent().parent().parent().append(error);
|
52 |
} else if (element.is('select') && element.attr('class').match(/date-month|date-day|date-year/)) {
|
53 |
if (element.parent().find('label.user-registration-error:visible').length === 0) {
|
@@ -326,7 +326,7 @@
|
|
326 |
$this.find( '#user_pass_error' ).remove();
|
327 |
|
328 |
var error_msg_dom = '<label id="user_pass_error" class="user-registration-error" for="user_pass">' + ursL10n.password_strength_error + '.</label>';
|
329 |
-
$this.find('.user-registration-password-
|
330 |
$this.find('#user_pass').attr('aria-invalid',true);
|
331 |
$this.find('#user_pass').focus();
|
332 |
}
|
@@ -503,7 +503,7 @@
|
|
503 |
if( wrapper.find('input[data-id="user_pass"]').val() !== "" ){
|
504 |
wrapper.find( '#user_pass_error' ).remove();
|
505 |
var error_msg_dom = '<label id="user_pass_error" class="user-registration-error" for="user_pass">' + ursL10n.password_strength_error +'.</label>';
|
506 |
-
|
507 |
}
|
508 |
}
|
509 |
}
|
@@ -518,6 +518,14 @@
|
|
518 |
e.preventDefault();
|
519 |
var current_task = ( $(this).hasClass( 'dashicons-hidden' ) ) ? 'show' : 'hide';
|
520 |
var $password_field = $(this).closest( '.user-registration-form-row' ).find( 'input[name="password"]' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
if( $password_field.length > 0 ) {
|
522 |
switch( current_task ) {
|
523 |
case 'show':
|
47 |
errorClass: 'user-registration-error',
|
48 |
validClass: 'user-registration-valid',
|
49 |
errorPlacement: function (error, element) {
|
50 |
+
if ('radio' === element.attr('type') || 'checkbox' === element.attr('type') || 'password' === element.attr('type') ) {
|
51 |
element.parent().parent().parent().append(error);
|
52 |
} else if (element.is('select') && element.attr('class').match(/date-month|date-day|date-year/)) {
|
53 |
if (element.parent().find('label.user-registration-error:visible').length === 0) {
|
326 |
$this.find( '#user_pass_error' ).remove();
|
327 |
|
328 |
var error_msg_dom = '<label id="user_pass_error" class="user-registration-error" for="user_pass">' + ursL10n.password_strength_error + '.</label>';
|
329 |
+
$this.find('.user-registration-password-hint').after( error_msg_dom );
|
330 |
$this.find('#user_pass').attr('aria-invalid',true);
|
331 |
$this.find('#user_pass').focus();
|
332 |
}
|
503 |
if( wrapper.find('input[data-id="user_pass"]').val() !== "" ){
|
504 |
wrapper.find( '#user_pass_error' ).remove();
|
505 |
var error_msg_dom = '<label id="user_pass_error" class="user-registration-error" for="user_pass">' + ursL10n.password_strength_error +'.</label>';
|
506 |
+
wrapper.find('.user-registration-password-hint').after( error_msg_dom );
|
507 |
}
|
508 |
}
|
509 |
}
|
518 |
e.preventDefault();
|
519 |
var current_task = ( $(this).hasClass( 'dashicons-hidden' ) ) ? 'show' : 'hide';
|
520 |
var $password_field = $(this).closest( '.user-registration-form-row' ).find( 'input[name="password"]' );
|
521 |
+
|
522 |
+
if( $password_field.length === 0){
|
523 |
+
$password_field = $(this).closest( '.field-user_pass' ).find( 'input[name="user_pass"]' );
|
524 |
+
}
|
525 |
+
if( $password_field.length === 0){
|
526 |
+
$password_field = $(this).closest( '.field-user_confirm_password' ).find( 'input[name="user_confirm_password"]' );
|
527 |
+
}
|
528 |
+
|
529 |
if( $password_field.length > 0 ) {
|
530 |
switch( current_task ) {
|
531 |
case 'show':
|
assets/js/frontend/user-registration.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function request_recaptcha_token(){0!==jQuery(".ur-frontend-form").find("form.register #ur-recaptcha-node #node_recaptcha_register.g-recaptcha-v3").length&&grecaptcha.ready(function(){grecaptcha.execute(ur_google_recaptcha_code.site_key,{action:"register"}).then(function(e){jQuery("form.register").find("#g-recaptcha-response").text(e)})});0!==jQuery(".ur-frontend-form").find("form.login .ur-form-row .ur-form-grid #ur-recaptcha-node #node_recaptcha_login.g-recaptcha-v3").length&&grecaptcha.ready(function(){grecaptcha.execute(ur_google_recaptcha_code.site_key,{action:"login"}).then(function(e){jQuery("form.login").find("#g-recaptcha-response").text(e)})})}!function(e){({$user_registration:e(".ur-frontend-form form.register"),init:function(){this.load_validation(),this.init_inputMask(),this.init_tiptip(),this.$user_registration.on("input validate change",".input-text, select, input:checkbox input:radio",this.validate_field)},init_inputMask:function(){"undefined"!=typeof e.fn.inputmask&&e(".ur-masked-input").inputmask()},init_tiptip:function(){if("undefined"!=typeof tipTip){e(".user-registration-help-tip").tipTip({attribute:"title",fadeIn:50,fadeOut:50,delay:200})}},load_validation:function(){if("undefined"==typeof e.fn.validate)return!1;e.validator.methods.email=function(e,r){var a=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return this.optional(r)||a.test(e)},this.$user_registration.each(function(){e(this).validate({errorClass:"user-registration-error",validClass:"user-registration-valid",errorPlacement:function(e,r){"radio"===r.attr("type")||"checkbox"===r.attr("type")?r.parent().parent().parent().append(e):r.is("select")&&r.attr("class").match(/date-month|date-day|date-year/)?0===r.parent().find("label.user-registration-error:visible").length&&r.parent().find("select:last").after(e):r.hasClass("urfu-file-input")?e.insertAfter(r.parent().parent()):e.insertAfter(r)},highlight:function(r,a,t){var i=e(r);i.closest(".form-row"),i.attr("name")},unhighlight:function(r,a,t){var i=e(r),s=i.closest(".form-row"),n=i.attr("name");"radio"===i.attr("type")||"checkbox"===i.attr("type")?s.find("input[name='"+n+"']").addClass(t).removeClass(a):i.addClass(t).removeClass(a),s.removeClass("user-registration-has-error")},submitHandler:function(e){return!1}})})},validate_field:function(r){e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields});var a=e(this),t=a.closest(".form-row"),i=!0,s=t.is(".validate-required"),n=t.is(".validate-email"),u=r.type;if("input"===u&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email user-registration-validated"),"validate"===u||"change"===u){if(s&&("checkbox"!==a.attr("type")||a.is(":checked")?""===a.val()&&(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),i=!1):(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),i=!1)),n&&a.val()){new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a.val())||(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-email"),i=!1)}i&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email").addClass("user-registration-validated")}}}).init();var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var a=e(this),t=[],i=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(){var r=this,t=[],i=a.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field"),s=new Array;e.each(i,function(){var i=e(this).attr("name");if(a.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+i+'"]').length<2){var n=r.get_fieldwise_data(e(this));t.push(n)}else e.inArray(i,s)<0&&s.push(i)});for(var n=0;n<s.length;n++){var u=a.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+s[n]+'"]'),o=(u.get(0).tagName.toLowerCase(),"undefined"!==u.eq(0).attr("type")?u.eq(0).attr("type"):"null"),d=new Array;if(e.each(u,function(){var r=e(this),a="";switch(r.get(0).tagName.toLowerCase()){case"input":switch(o){case"checkbox":case"radio":a=r.prop("checked")?r.val():"";break;default:a=r.val()}break;case"select":case"textarea":a=r.val()}""!==a&&d.push(a)}),"checkbox"==o)var l=JSON.stringify(d);else if("radio"==o)l=d[0];else l=u.val();var f=s[n];f=f.replace("[]","");var c={value:l,field_type:o,label:u.eq(0).attr("data-label"),field_name:f};t.push(c)}return e(document).trigger("user_registration_frontend_form_data_filter",[t]),t},get_fieldwise_data:function(r){var a={},s=r.get(0).tagName.toLowerCase(),n="undefined"!==r.attr("type")?r.attr("type"):"null",u=r.get(0).className.split(" ")[0];switch(a.value="",s){case"input":switch(n){case"checkbox":case"radio":a.value=r.prop("checked")?r.val():"";break;default:a.value=r.val()}break;case"select":a.value=r.val();break;case"textarea":switch(u){case"wysiwyg":tinyMCE.triggerSave(),a.value=r.val();break;default:a.value=r.val()}}return e(document).trigger("user_registration_frontend_form_data_render",[r,a]),a.field_type="undefined"!==r.eq(0).attr("type")?r.eq(0).attr("type"):"null",r.attr("data-label")!==undefined?a.label=r.attr("data-label"):r.prev().length&&"label"===r.prev().get(0).tagName.toLowerCase()?a.label=r.prev().text():a.label=a.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?(a.field_name=r.attr("name"),a.field_name=a.field_name.replace("[]","")):a.field_name="",e.inArray(a.field_name,e.trim(i))>=0&&t.push(a.field_name),a},show_message:function(r,a,t){t.find(".ur-message").remove();var i=e('<div class="ur-message user-registration-'+a+'" id="ur-submit-message-node"/>');i.append(r),t.append(i)}},n={init:function(){this.form_submit_event()},form_submit_event:function(){e("form.register").on("submit",function(a){var t=e(this);if(e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields}),t.find(".user-registration-password-strength").length>0){var i=t.find(".user-registration-password-strength").attr("data-current-strength"),n=t.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(i,0)<parseInt(n,0)){if(""!=t.find("#user_pass").val()){t.find("#user_pass_error").remove();var u='<label id="user_pass_error" class="user-registration-error" for="user_pass">'+r.password_strength_error+".</label>";t.find(".user-registration-password-strength").closest(".form-row").append(u),t.find("#user_pass").attr("aria-invalid",!0),t.find("#user_pass").focus()}return!1}}if(t.valid()){a.preventDefault(),t.find(".ur-submit-button").prop("disabled",!0);var o,d=0,l="0",f=t.find("#g-recaptcha-response").val();try{o=JSON.stringify(s.get_form_data())}catch(p){o=""}1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(d=e(this).closest("form").find('input[name="ur-user-form-id"]').val()),1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(l=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var c={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:o,captchaResponse:f,form_id:d,ur_frontend_form_nonce:l};if(e(document).trigger("user_registration_frontend_before_form_submit",[c,t]),"undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===(f=t.find("#g-recaptcha-response").val()).length)return void s.show_message("<p>"+r.captcha_error+"</p>","error",t);"v3"==ur_google_recaptcha_code.version?request_recaptcha_token():grecaptcha.reset()}t.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:c,type:"POST",async:!0,complete:function(a){t.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var i=t.find('input[name="ur-redirect-url"]').val(),n=e('<ul class=""/>'),u="error";try{var o=e.parseJSON(a.responseText);"undefined"!=typeof o.success&&!0===o.success&&"undefined"!=typeof o.data.paypal_redirect&&(window.location=o.data.paypal_redirect),"undefined"!=typeof o.success&&!0===o.success&&(u="message"),"message"===u?(e(".user-registration-password-hint").remove(),e(".user-registration-password-strength").remove(),"admin_approval"==user_registration_params.login_option?n.append("<li>"+r.user_under_approval+"</li>"):"email_confirmation"==user_registration_params.login_option?n.append("<li>"+r.user_email_pending+"</li>"):"payment"==user_registration_params.login_option?n.append("<li>"+o.data.message+"</li>"):n.append("<li>"+r.user_successfully_saved+"</li>"),t[0].reset(),jQuery("#billing_country").trigger("change"),jQuery("#shipping_country").trigger("change"),void 0!==i&&""!==i?window.setTimeout(function(){window.location=i},1e3):"undefined"!=typeof o.data.auto_login&&o.data.auto_login&&location.reload()):"error"===u&&("object"==typeof o.data.message?e.each(o.data.message,function(e,r){n.append("<li>"+r+"</li>")}):n.append("<li>"+o.data.message+"</li>"))}catch(d){n.append("<li>"+d.message+"</li>")}s.show_message(n,u,t),e(document).trigger("user_registration_frontend_after_ajax_complete",[a.responseText,u,t]),t.find(".ur-submit-button").prop("disabled",!1)}})}})}};s.init(),n.init()})},e(function(){e("form.register").ur_form_submission();var a=e('.ur-frontend-form input[type="date"]');a.length>0&&a.addClass("flatpickr-field").attr("type","text").flatpickr({disableMobile:!0}),e("form.register").on("focusout","#user_pass",function(){$this=e("#user_pass");if("yes"===$this.closest("form").attr("data-enable-strength-password")){var a=$this.closest("form"),t=a.attr("data-minimum-password-strength"),i=wp.passwordStrength.userInputBlacklist();i.push(a.find('input[data-id="user_email"]').val()),i.push(a.find('input[data-id="user_login"]').val());if(wp.passwordStrength.meter($this.val(),i)<t&&""!==a.find('input[data-id="user_pass"]').val()){a.find("#user_pass_error").remove();var s='<label id="user_pass_error" class="user-registration-error" for="user_pass">'+r.password_strength_error+".</label>";$this.closest(".form-row").append(s)}}})}),e(function(){request_recaptcha_token()}),e(document).on("click",".password_preview",function(a){a.preventDefault();var t=e(this).hasClass("dashicons-hidden")?"show":"hide",i=e(this).closest(".user-registration-form-row").find('input[name="password"]');if(i.length>0)switch(t){case"show":i.attr("type","text"),e(this).removeClass("dashicons-hidden").addClass("dashicons-visibility"),e(this).attr("title",r.hide_password_title);break;case"hide":i.attr("type","password"),e(this).removeClass("dashicons-visibility").addClass("dashicons-hidden"),e(this).attr("title",r.show_password_title)}})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){0!==jQuery(".ur-frontend-form").find("form.register #ur-recaptcha-node #node_recaptcha_register").length&&(google_recaptcha_user_registration=grecaptcha.render("node_recaptcha_register",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"}));0!==jQuery(".ur-frontend-form").find("form.login .ur-form-row .ur-form-grid #ur-recaptcha-node #node_recaptcha_login").length&&grecaptcha.render("node_recaptcha_login",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"})};
|
1 |
+
function request_recaptcha_token(){0!==jQuery(".ur-frontend-form").find("form.register #ur-recaptcha-node #node_recaptcha_register.g-recaptcha-v3").length&&grecaptcha.ready(function(){grecaptcha.execute(ur_google_recaptcha_code.site_key,{action:"register"}).then(function(e){jQuery("form.register").find("#g-recaptcha-response").text(e)})});0!==jQuery(".ur-frontend-form").find("form.login .ur-form-row .ur-form-grid #ur-recaptcha-node #node_recaptcha_login.g-recaptcha-v3").length&&grecaptcha.ready(function(){grecaptcha.execute(ur_google_recaptcha_code.site_key,{action:"login"}).then(function(e){jQuery("form.login").find("#g-recaptcha-response").text(e)})})}!function(e){({$user_registration:e(".ur-frontend-form form.register"),init:function(){this.load_validation(),this.init_inputMask(),this.init_tiptip(),this.$user_registration.on("input validate change",".input-text, select, input:checkbox input:radio",this.validate_field)},init_inputMask:function(){"undefined"!=typeof e.fn.inputmask&&e(".ur-masked-input").inputmask()},init_tiptip:function(){if("undefined"!=typeof tipTip){e(".user-registration-help-tip").tipTip({attribute:"title",fadeIn:50,fadeOut:50,delay:200})}},load_validation:function(){if("undefined"==typeof e.fn.validate)return!1;e.validator.methods.email=function(e,r){var a=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return this.optional(r)||a.test(e)},this.$user_registration.each(function(){e(this).validate({errorClass:"user-registration-error",validClass:"user-registration-valid",errorPlacement:function(e,r){"radio"===r.attr("type")||"checkbox"===r.attr("type")||"password"===r.attr("type")?r.parent().parent().parent().append(e):r.is("select")&&r.attr("class").match(/date-month|date-day|date-year/)?0===r.parent().find("label.user-registration-error:visible").length&&r.parent().find("select:last").after(e):r.hasClass("urfu-file-input")?e.insertAfter(r.parent().parent()):e.insertAfter(r)},highlight:function(r,a,t){var i=e(r);i.closest(".form-row"),i.attr("name")},unhighlight:function(r,a,t){var i=e(r),s=i.closest(".form-row"),n=i.attr("name");"radio"===i.attr("type")||"checkbox"===i.attr("type")?s.find("input[name='"+n+"']").addClass(t).removeClass(a):i.addClass(t).removeClass(a),s.removeClass("user-registration-has-error")},submitHandler:function(e){return!1}})})},validate_field:function(r){e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields});var a=e(this),t=a.closest(".form-row"),i=!0,s=t.is(".validate-required"),n=t.is(".validate-email"),u=r.type;if("input"===u&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email user-registration-validated"),"validate"===u||"change"===u){if(s&&("checkbox"!==a.attr("type")||a.is(":checked")?""===a.val()&&(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),i=!1):(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),i=!1)),n&&a.val()){new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a.val())||(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-email"),i=!1)}i&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email").addClass("user-registration-validated")}}}).init();var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var a=e(this),t=[],i=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(){var r=this,t=[],i=a.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field"),s=new Array;e.each(i,function(){var i=e(this).attr("name");if(a.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+i+'"]').length<2){var n=r.get_fieldwise_data(e(this));t.push(n)}else e.inArray(i,s)<0&&s.push(i)});for(var n=0;n<s.length;n++){var u=a.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+s[n]+'"]'),o=(u.get(0).tagName.toLowerCase(),"undefined"!==u.eq(0).attr("type")?u.eq(0).attr("type"):"null"),d=new Array;if(e.each(u,function(){var r=e(this),a="";switch(r.get(0).tagName.toLowerCase()){case"input":switch(o){case"checkbox":case"radio":a=r.prop("checked")?r.val():"";break;default:a=r.val()}break;case"select":case"textarea":a=r.val()}""!==a&&d.push(a)}),"checkbox"==o)var l=JSON.stringify(d);else if("radio"==o)l=d[0];else l=u.val();var f=s[n];f=f.replace("[]","");var c={value:l,field_type:o,label:u.eq(0).attr("data-label"),field_name:f};t.push(c)}return e(document).trigger("user_registration_frontend_form_data_filter",[t]),t},get_fieldwise_data:function(r){var a={},s=r.get(0).tagName.toLowerCase(),n="undefined"!==r.attr("type")?r.attr("type"):"null",u=r.get(0).className.split(" ")[0];switch(a.value="",s){case"input":switch(n){case"checkbox":case"radio":a.value=r.prop("checked")?r.val():"";break;default:a.value=r.val()}break;case"select":a.value=r.val();break;case"textarea":switch(u){case"wysiwyg":tinyMCE.triggerSave(),a.value=r.val();break;default:a.value=r.val()}}return e(document).trigger("user_registration_frontend_form_data_render",[r,a]),a.field_type="undefined"!==r.eq(0).attr("type")?r.eq(0).attr("type"):"null",r.attr("data-label")!==undefined?a.label=r.attr("data-label"):r.prev().length&&"label"===r.prev().get(0).tagName.toLowerCase()?a.label=r.prev().text():a.label=a.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?(a.field_name=r.attr("name"),a.field_name=a.field_name.replace("[]","")):a.field_name="",e.inArray(a.field_name,e.trim(i))>=0&&t.push(a.field_name),a},show_message:function(r,a,t){t.find(".ur-message").remove();var i=e('<div class="ur-message user-registration-'+a+'" id="ur-submit-message-node"/>');i.append(r),t.append(i)}},n={init:function(){this.form_submit_event()},form_submit_event:function(){e("form.register").on("submit",function(a){var t=e(this);if(e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields}),t.find(".user-registration-password-strength").length>0){var i=t.find(".user-registration-password-strength").attr("data-current-strength"),n=t.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(i,0)<parseInt(n,0)){if(""!=t.find("#user_pass").val()){t.find("#user_pass_error").remove();var u='<label id="user_pass_error" class="user-registration-error" for="user_pass">'+r.password_strength_error+".</label>";t.find(".user-registration-password-hint").after(u),t.find("#user_pass").attr("aria-invalid",!0),t.find("#user_pass").focus()}return!1}}if(t.valid()){a.preventDefault(),t.find(".ur-submit-button").prop("disabled",!0);var o,d=0,l="0",f=t.find("#g-recaptcha-response").val();try{o=JSON.stringify(s.get_form_data())}catch(p){o=""}1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(d=e(this).closest("form").find('input[name="ur-user-form-id"]').val()),1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(l=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var c={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:o,captchaResponse:f,form_id:d,ur_frontend_form_nonce:l};if(e(document).trigger("user_registration_frontend_before_form_submit",[c,t]),"undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===(f=t.find("#g-recaptcha-response").val()).length)return void s.show_message("<p>"+r.captcha_error+"</p>","error",t);"v3"==ur_google_recaptcha_code.version?request_recaptcha_token():grecaptcha.reset()}t.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:c,type:"POST",async:!0,complete:function(a){t.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var i=t.find('input[name="ur-redirect-url"]').val(),n=e('<ul class=""/>'),u="error";try{var o=e.parseJSON(a.responseText);"undefined"!=typeof o.success&&!0===o.success&&"undefined"!=typeof o.data.paypal_redirect&&(window.location=o.data.paypal_redirect),"undefined"!=typeof o.success&&!0===o.success&&(u="message"),"message"===u?(e(".user-registration-password-hint").remove(),e(".user-registration-password-strength").remove(),"admin_approval"==user_registration_params.login_option?n.append("<li>"+r.user_under_approval+"</li>"):"email_confirmation"==user_registration_params.login_option?n.append("<li>"+r.user_email_pending+"</li>"):"payment"==user_registration_params.login_option?n.append("<li>"+o.data.message+"</li>"):n.append("<li>"+r.user_successfully_saved+"</li>"),t[0].reset(),jQuery("#billing_country").trigger("change"),jQuery("#shipping_country").trigger("change"),void 0!==i&&""!==i?window.setTimeout(function(){window.location=i},1e3):"undefined"!=typeof o.data.auto_login&&o.data.auto_login&&location.reload()):"error"===u&&("object"==typeof o.data.message?e.each(o.data.message,function(e,r){n.append("<li>"+r+"</li>")}):n.append("<li>"+o.data.message+"</li>"))}catch(d){n.append("<li>"+d.message+"</li>")}s.show_message(n,u,t),e(document).trigger("user_registration_frontend_after_ajax_complete",[a.responseText,u,t]),t.find(".ur-submit-button").prop("disabled",!1)}})}})}};s.init(),n.init()})},e(function(){e("form.register").ur_form_submission();var a=e('.ur-frontend-form input[type="date"]');a.length>0&&a.addClass("flatpickr-field").attr("type","text").flatpickr({disableMobile:!0}),e("form.register").on("focusout","#user_pass",function(){$this=e("#user_pass");if("yes"===$this.closest("form").attr("data-enable-strength-password")){var a=$this.closest("form"),t=a.attr("data-minimum-password-strength"),i=wp.passwordStrength.userInputBlacklist();i.push(a.find('input[data-id="user_email"]').val()),i.push(a.find('input[data-id="user_login"]').val());if(wp.passwordStrength.meter($this.val(),i)<t&&""!==a.find('input[data-id="user_pass"]').val()){a.find("#user_pass_error").remove();var s='<label id="user_pass_error" class="user-registration-error" for="user_pass">'+r.password_strength_error+".</label>";a.find(".user-registration-password-hint").after(s)}}})}),e(function(){request_recaptcha_token()}),e(document).on("click",".password_preview",function(a){a.preventDefault();var t=e(this).hasClass("dashicons-hidden")?"show":"hide",i=e(this).closest(".user-registration-form-row").find('input[name="password"]');if(0===i.length&&(i=e(this).closest(".field-user_pass").find('input[name="user_pass"]')),0===i.length&&(i=e(this).closest(".field-user_confirm_password").find('input[name="user_confirm_password"]')),i.length>0)switch(t){case"show":i.attr("type","text"),e(this).removeClass("dashicons-hidden").addClass("dashicons-visibility"),e(this).attr("title",r.hide_password_title);break;case"hide":i.attr("type","password"),e(this).removeClass("dashicons-visibility").addClass("dashicons-hidden"),e(this).attr("title",r.show_password_title)}})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){0!==jQuery(".ur-frontend-form").find("form.register #ur-recaptcha-node #node_recaptcha_register").length&&(google_recaptcha_user_registration=grecaptcha.render("node_recaptcha_register",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"}));0!==jQuery(".ur-frontend-form").find("form.login .ur-form-row .ur-form-grid #ur-recaptcha-node #node_recaptcha_login").length&&grecaptcha.render("node_recaptcha_login",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"})};
|
includes/abstracts/abstract-ur-form-field.php
CHANGED
@@ -121,7 +121,7 @@ abstract class UR_Form_Field {
|
|
121 |
}
|
122 |
|
123 |
$form_data['custom_attributes']['data-label'] = ur_string_translation( $form_id, 'user_registration_' . $data['general_setting']->field_name . '_label', $data['general_setting']->label );
|
124 |
-
|
125 |
if ( isset( $form_data['label'] ) ) {
|
126 |
$form_data['label'] = ur_string_translation( $form_id, 'user_registration_' . $data['general_setting']->field_name . '_label', $form_data['label'] );
|
127 |
}
|
@@ -131,7 +131,7 @@ abstract class UR_Form_Field {
|
|
131 |
if ( isset( $form_data['description'] ) ) {
|
132 |
$form_data['description'] = ur_string_translation( $form_id, 'user_registration_' . $data['general_setting']->field_name . '_description', $form_data['description'] );
|
133 |
}
|
134 |
-
|
135 |
if ( 'country' === $field_key ) {
|
136 |
$form_data['options'] = UR_Form_Field_Country::get_instance()->get_country();
|
137 |
}
|
@@ -249,8 +249,12 @@ abstract class UR_Form_Field {
|
|
249 |
if ( true == $setting_value['required'] ) {
|
250 |
$general_setting_wrapper .= ' required ';
|
251 |
}
|
252 |
-
|
253 |
-
|
|
|
|
|
|
|
|
|
254 |
break;
|
255 |
|
256 |
case 'radio':
|
121 |
}
|
122 |
|
123 |
$form_data['custom_attributes']['data-label'] = ur_string_translation( $form_id, 'user_registration_' . $data['general_setting']->field_name . '_label', $data['general_setting']->label );
|
124 |
+
|
125 |
if ( isset( $form_data['label'] ) ) {
|
126 |
$form_data['label'] = ur_string_translation( $form_id, 'user_registration_' . $data['general_setting']->field_name . '_label', $form_data['label'] );
|
127 |
}
|
131 |
if ( isset( $form_data['description'] ) ) {
|
132 |
$form_data['description'] = ur_string_translation( $form_id, 'user_registration_' . $data['general_setting']->field_name . '_description', $form_data['description'] );
|
133 |
}
|
134 |
+
|
135 |
if ( 'country' === $field_key ) {
|
136 |
$form_data['options'] = UR_Form_Field_Country::get_instance()->get_country();
|
137 |
}
|
249 |
if ( true == $setting_value['required'] ) {
|
250 |
$general_setting_wrapper .= ' required ';
|
251 |
}
|
252 |
+
$disabled = '';
|
253 |
+
// To make invite code field name non editable.
|
254 |
+
if($value === 'invite_code'){
|
255 |
+
$disabled = 'disabled';
|
256 |
+
}
|
257 |
+
$general_setting_wrapper .= $extra_attribute . ' '. $disabled .'/>';
|
258 |
break;
|
259 |
|
260 |
case 'radio':
|
includes/admin/class-ur-admin-notices.php
CHANGED
@@ -49,7 +49,7 @@ class UR_Admin_Notices {
|
|
49 |
|
50 |
if ( current_user_can( 'manage_user_registration' ) ) {
|
51 |
add_action( 'admin_print_styles', array( __CLASS__, 'add_notices' ) );
|
52 |
-
add_action( '
|
53 |
}
|
54 |
}
|
55 |
|
49 |
|
50 |
if ( current_user_can( 'manage_user_registration' ) ) {
|
51 |
add_action( 'admin_print_styles', array( __CLASS__, 'add_notices' ) );
|
52 |
+
add_action( 'in_admin_header', array( __CLASS__, 'hide_unrelated_notices' ) );
|
53 |
}
|
54 |
}
|
55 |
|
includes/admin/settings/class-ur-settings-general.php
CHANGED
@@ -92,6 +92,15 @@ if ( ! class_exists( 'UR_Settings_General' ) ) :
|
|
92 |
'desc_tip' => true,
|
93 |
'options' => $all_roles_except_admin,
|
94 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
array(
|
96 |
'title' => __( 'Uninstall Option', 'user-registration' ),
|
97 |
'desc' => __( 'Heads Up! Check this if you would like to remove ALL User Registration data upon plugin deletion.', 'user-registration' ),
|
@@ -372,16 +381,6 @@ if ( ! class_exists( 'UR_Settings_General' ) ) :
|
|
372 |
'default' => 'yes',
|
373 |
),
|
374 |
|
375 |
-
array(
|
376 |
-
'title' => __( 'Enable hide/show password', 'user-registration' ),
|
377 |
-
'desc' => __( 'Check to enable hide/show password icon in login form.', 'user-registration' ),
|
378 |
-
'id' => 'user_registration_login_option_hide_show_password',
|
379 |
-
'type' => 'checkbox',
|
380 |
-
'desc_tip' => true,
|
381 |
-
'css' => 'min-width: 350px;',
|
382 |
-
'default' => 'no',
|
383 |
-
),
|
384 |
-
|
385 |
array(
|
386 |
'title' => __( 'Enable lost password', 'user-registration' ),
|
387 |
'desc' => __( 'Check to enable/disable lost password.', 'user-registration' ),
|
92 |
'desc_tip' => true,
|
93 |
'options' => $all_roles_except_admin,
|
94 |
),
|
95 |
+
array(
|
96 |
+
'title' => __( 'Enable hide/show password', 'user-registration' ),
|
97 |
+
'desc' => __( 'Check to enable hide/show password icon.', 'user-registration' ),
|
98 |
+
'id' => 'user_registration_login_option_hide_show_password',
|
99 |
+
'type' => 'checkbox',
|
100 |
+
'desc_tip' => true,
|
101 |
+
'css' => 'min-width: 350px;',
|
102 |
+
'default' => 'no',
|
103 |
+
),
|
104 |
array(
|
105 |
'title' => __( 'Uninstall Option', 'user-registration' ),
|
106 |
'desc' => __( 'Heads Up! Check this if you would like to remove ALL User Registration data upon plugin deletion.', 'user-registration' ),
|
381 |
'default' => 'yes',
|
382 |
),
|
383 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
array(
|
385 |
'title' => __( 'Enable lost password', 'user-registration' ),
|
386 |
'desc' => __( 'Check to enable/disable lost password.', 'user-registration' ),
|
includes/frontend/class-ur-frontend-form-handler.php
CHANGED
@@ -319,7 +319,7 @@ class UR_Frontend_Form_Handler {
|
|
319 |
if ( $has_confirm_password ) {
|
320 |
if ( empty( $confirm_password ) ) {
|
321 |
array_push( self::$response_array, __( 'Empty confirm password', 'user-registration' ) );
|
322 |
-
} elseif (
|
323 |
array_push( self::$response_array, get_option( 'user_registration_form_submission_error_message_confirm_password', __( 'Password and confirm password not matched', 'user-registration' ) ) );
|
324 |
}
|
325 |
}
|
319 |
if ( $has_confirm_password ) {
|
320 |
if ( empty( $confirm_password ) ) {
|
321 |
array_push( self::$response_array, __( 'Empty confirm password', 'user-registration' ) );
|
322 |
+
} elseif ( strcmp( $confirm_password, $password ) != 0 ) {
|
323 |
array_push( self::$response_array, get_option( 'user_registration_form_submission_error_message_confirm_password', __( 'Password and confirm password not matched', 'user-registration' ) ) );
|
324 |
}
|
325 |
}
|
includes/functions-ur-template.php
CHANGED
@@ -27,9 +27,11 @@ function ur_template_redirect() {
|
|
27 |
|
28 |
if ( isset( $wp->query_vars['user-logout'] ) && ! empty( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'], 'user-logout' ) ) {
|
29 |
// Logout
|
30 |
-
|
|
|
31 |
exit;
|
32 |
} elseif ( isset( $wp->query_vars['user-logout'] ) && 'true' === $wp->query_vars['user-logout'] ) {
|
|
|
33 |
// Redirect to the correct logout endpoint.
|
34 |
wp_safe_redirect( esc_url_raw( ur_get_page_permalink( 'user-logout' ) ) );
|
35 |
exit;
|
@@ -54,7 +56,7 @@ function ur_login_template_redirect() {
|
|
54 |
$redirect_url = trim( $redirect_url, '"' );
|
55 |
$redirect_url = trim( $redirect_url, "'" );
|
56 |
|
57 |
-
if ( ! empty( $redirect_url )
|
58 |
wp_redirect( $redirect_url );
|
59 |
exit();
|
60 |
}
|
@@ -143,11 +145,11 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
143 |
function user_registration_form_field( $key, $args, $value = null ) {
|
144 |
|
145 |
/* Conditional Logic codes */
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
|
152 |
foreach ( $rules['rules'] as $rules_key => $rule ) {
|
153 |
if ( empty( $rule['field'] ) ) {
|
@@ -155,9 +157,9 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
155 |
}
|
156 |
}
|
157 |
|
158 |
-
|
159 |
|
160 |
-
|
161 |
/*Conditonal Logic codes end*/
|
162 |
|
163 |
$defaults = array(
|
@@ -272,7 +274,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
272 |
}
|
273 |
|
274 |
$field .= '<li class="ur-checkbox-list">';
|
275 |
-
$field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" ' . implode( ' ', $custom_attributes ) . ' data-value="' . $choice_index . '" type="' . esc_attr( $args['type'] ) . '" class="input-checkbox ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '[]" id="' . esc_attr( $args['id'] ) . '_' . esc_attr( $choice_index ) . '" value="' . trim( $choice_index ) . '"' . $value . ' /> ';
|
276 |
$field .= '<label class="ur-checkbox-label" for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $choice_index ) . '">' . trim( $choice ) . '</label> </li>';
|
277 |
$checkbox_start++;
|
278 |
}
|
@@ -280,11 +282,27 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
280 |
} else {
|
281 |
$field = '<label class="ur-label checkbox ' . implode( ' ', $custom_attributes ) . '">
|
282 |
<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" ' . implode( ' ', $custom_attributes ) . ' data-value="' . $value . '" type="' . esc_attr( $args['type'] ) . '" class="input-checkbox ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" value="1" ' . checked( $value, 1, false ) . ' /> '
|
283 |
-
|
284 |
}
|
285 |
break;
|
286 |
|
287 |
case 'password':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
case 'text':
|
289 |
case 'email':
|
290 |
case 'tel':
|
@@ -313,7 +331,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
313 |
$value = ! empty( $value ) ? $value : $default_value;
|
314 |
$options = $field .= '';
|
315 |
if ( ! empty( $args['options'] ) ) {
|
316 |
-
|
317 |
if ( ! empty( $args['placeholder'] ) ) {
|
318 |
$options .= '<option value="" selected disabled>' . esc_html( $args['placeholder'] ) . '</option>';
|
319 |
}
|
@@ -377,15 +395,15 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
377 |
$field .= '<label for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_text ) . '" class="radio">';
|
378 |
|
379 |
$field .= wp_kses(
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
}
|
390 |
$field .= '</ul>';
|
391 |
}
|
@@ -402,15 +420,15 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
402 |
$field_html = '';
|
403 |
if ( $args['label'] && 'checkbox' != $args['type'] ) {
|
404 |
$field_html .= '<label for="' . esc_attr( $label_id ) . '" class="ur-label">' . wp_kses(
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
}
|
415 |
|
416 |
$field_html .= $field;
|
@@ -623,10 +641,29 @@ if ( ! function_exists( 'user_registration_account_edit_account' ) ) {
|
|
623 |
*
|
624 |
* @return string
|
625 |
*/
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
630 |
|
631 |
if ( $logout_endpoint ) {
|
632 |
return wp_nonce_url( ur_get_endpoint_url( 'user-logout', '', $redirect ), 'user-logout' );
|
27 |
|
28 |
if ( isset( $wp->query_vars['user-logout'] ) && ! empty( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'], 'user-logout' ) ) {
|
29 |
// Logout
|
30 |
+
$redirect_url = str_replace('/user-logout','', $wp->request );
|
31 |
+
wp_safe_redirect( str_replace( '&', '&', wp_logout_url( $redirect_url ) ) );
|
32 |
exit;
|
33 |
} elseif ( isset( $wp->query_vars['user-logout'] ) && 'true' === $wp->query_vars['user-logout'] ) {
|
34 |
+
|
35 |
// Redirect to the correct logout endpoint.
|
36 |
wp_safe_redirect( esc_url_raw( ur_get_page_permalink( 'user-logout' ) ) );
|
37 |
exit;
|
56 |
$redirect_url = trim( $redirect_url, '"' );
|
57 |
$redirect_url = trim( $redirect_url, "'" );
|
58 |
|
59 |
+
if ( ! empty( $redirect_url )) {
|
60 |
wp_redirect( $redirect_url );
|
61 |
exit();
|
62 |
}
|
145 |
function user_registration_form_field( $key, $args, $value = null ) {
|
146 |
|
147 |
/* Conditional Logic codes */
|
148 |
+
$rules = array();
|
149 |
+
$rules['conditional_rules'] = isset( $args['conditional_rules'] ) ? $args['conditional_rules'] : '';
|
150 |
+
$rules['logic_gate'] = isset( $args['logic_gate'] ) ? $args['logic_gate'] : '';
|
151 |
+
$rules['rules'] = isset( $args['rules'] ) ? $args['rules'] : array();
|
152 |
+
$rules['required'] = isset( $args['required'] ) ? $args['required'] : '';
|
153 |
|
154 |
foreach ( $rules['rules'] as $rules_key => $rule ) {
|
155 |
if ( empty( $rule['field'] ) ) {
|
157 |
}
|
158 |
}
|
159 |
|
160 |
+
$rules['rules'] = array_values( $rules['rules'] );
|
161 |
|
162 |
+
$rules = ( ! empty( $rules['rules'] ) && isset( $args['enable_conditional_logic'] ) ) ? wp_json_encode( $rules ) : '';
|
163 |
/*Conditonal Logic codes end*/
|
164 |
|
165 |
$defaults = array(
|
274 |
}
|
275 |
|
276 |
$field .= '<li class="ur-checkbox-list">';
|
277 |
+
$field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" ' . implode( ' ', $custom_attributes ) . ' data-value="' . esc_attr($choice_index) . '" type="' . esc_attr( $args['type'] ) . '" class="input-checkbox ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '[]" id="' . esc_attr( $args['id'] ) . '_' . esc_attr( $choice_index ) . '" value="' . trim( $choice_index ) . '"' . esc_attr($value) . ' /> ';
|
278 |
$field .= '<label class="ur-checkbox-label" for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $choice_index ) . '">' . trim( $choice ) . '</label> </li>';
|
279 |
$checkbox_start++;
|
280 |
}
|
282 |
} else {
|
283 |
$field = '<label class="ur-label checkbox ' . implode( ' ', $custom_attributes ) . '">
|
284 |
<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" ' . implode( ' ', $custom_attributes ) . ' data-value="' . $value . '" type="' . esc_attr( $args['type'] ) . '" class="input-checkbox ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" value="1" ' . checked( $value, 1, false ) . ' /> '
|
285 |
+
. $args['label'] . $required . '</label>';
|
286 |
}
|
287 |
break;
|
288 |
|
289 |
case 'password':
|
290 |
+
$extra_params_key = str_replace( 'user_registration_', 'ur_', $key ) . '_params';
|
291 |
+
$extra_params = json_decode( get_user_meta( get_current_user_id(), $extra_params_key, true ) );
|
292 |
+
|
293 |
+
if ( empty( $extra_params ) ) {
|
294 |
+
$field_container = '<div class="form-row %1$s hide_show_password" id="%2$s" data-priority="' . esc_attr( $sort ) . '">%3$s</div>';
|
295 |
+
$field .= '<span class="password-input-group">';
|
296 |
+
$field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="' . esc_attr( $args['type'] ) . '" class="input-text input-' . esc_attr( $args['type'] ) . ' ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" value="' . esc_attr( $value ) . '" ' . implode( ' ', $custom_attributes ) . ' />';
|
297 |
+
if ( 'yes' === get_option( 'user_registration_login_option_hide_show_password', 'no' ) ) {
|
298 |
+
$field .= '<a href="javaScript:void(0)" class="password_preview dashicons dashicons-hidden" title=" Show password "></a>';
|
299 |
+
}
|
300 |
+
$field .= '</span>';
|
301 |
+
} else {
|
302 |
+
$field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="' . esc_attr( $args['type'] ) . '" class="input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" value="' . esc_attr( $value ) . '" ' . implode( ' ', $custom_attributes ) . ' />';
|
303 |
+
}
|
304 |
+
break;
|
305 |
+
|
306 |
case 'text':
|
307 |
case 'email':
|
308 |
case 'tel':
|
331 |
$value = ! empty( $value ) ? $value : $default_value;
|
332 |
$options = $field .= '';
|
333 |
if ( ! empty( $args['options'] ) ) {
|
334 |
+
// If we have a blank option, select2 needs a placeholder
|
335 |
if ( ! empty( $args['placeholder'] ) ) {
|
336 |
$options .= '<option value="" selected disabled>' . esc_html( $args['placeholder'] ) . '</option>';
|
337 |
}
|
395 |
$field .= '<label for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_text ) . '" class="radio">';
|
396 |
|
397 |
$field .= wp_kses(
|
398 |
+
trim( $option_text ),
|
399 |
+
array(
|
400 |
+
'a' => array(
|
401 |
+
'href' => array(),
|
402 |
+
'title' => array(),
|
403 |
+
),
|
404 |
+
'span' => array(),
|
405 |
+
)
|
406 |
+
) . '</label></li>';
|
407 |
}
|
408 |
$field .= '</ul>';
|
409 |
}
|
420 |
$field_html = '';
|
421 |
if ( $args['label'] && 'checkbox' != $args['type'] ) {
|
422 |
$field_html .= '<label for="' . esc_attr( $label_id ) . '" class="ur-label">' . wp_kses(
|
423 |
+
$args['label'],
|
424 |
+
array(
|
425 |
+
'a' => array(
|
426 |
+
'href' => array(),
|
427 |
+
'title' => array(),
|
428 |
+
),
|
429 |
+
'span' => array(),
|
430 |
+
)
|
431 |
+
) . $required . '</label>';
|
432 |
}
|
433 |
|
434 |
$field_html .= $field;
|
641 |
*
|
642 |
* @return string
|
643 |
*/
|
644 |
+
|
645 |
+
function ur_logout_url( $redirect = '' )
|
646 |
+
{
|
647 |
+
$logout_endpoint = get_option('user_registration_logout_endpoint');
|
648 |
+
if (( ur_post_content_has_shortcode('user_registration_login') || ur_post_content_has_shortcode( 'user_registration_my_account')) && is_user_logged_in()) {
|
649 |
+
global $post;
|
650 |
+
$post_content = isset( $post->post_content ) ? $post->post_content : '';
|
651 |
+
preg_match('/' . get_shortcode_regex() . '/s', $post_content, $matches);
|
652 |
+
|
653 |
+
$attributes = shortcode_parse_atts( $matches[3] );
|
654 |
+
/**
|
655 |
+
* Introduced logout_redirect parameter in user_registration_my_account shortcode.
|
656 |
+
* @since 1.7.5
|
657 |
+
*/
|
658 |
+
if( isset( $attributes['logout_redirect'] ) ) {
|
659 |
+
$redirect = isset( $attributes['logout_redirect']) ? $attributes['logout_redirect'] : '';
|
660 |
+
$redirect = trim( $redirect, ']' );
|
661 |
+
$redirect = trim( $redirect, '"' );
|
662 |
+
$redirect = trim( $redirect, "'" );
|
663 |
+
$redirect = '' != $redirect ? home_url( $redirect ) : ur_get_page_permalink( 'myaccount' );
|
664 |
+
}
|
665 |
+
}
|
666 |
+
$redirect = apply_filters( 'user_registration_redirect_after_logout', $redirect );
|
667 |
|
668 |
if ( $logout_endpoint ) {
|
669 |
return wp_nonce_url( ur_get_endpoint_url( 'user-logout', '', $redirect ), 'user-logout' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: user registration, registration, user profile, registration form, login fo
|
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -141,6 +141,14 @@ Yes, the plugin has a shortcode for the login form.
|
|
141 |
|
142 |
== Changelog ==
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
= 1.7.4 - 21/11/2019 =
|
145 |
* Feature - WPML Plugin Compatibility.
|
146 |
* Tweak - Country Field Default Value.
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 1.7.5
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
141 |
|
142 |
== Changelog ==
|
143 |
|
144 |
+
= 1.7.5 - 13/12/2019 =
|
145 |
+
* Enhancement - Redirect URL after logout.
|
146 |
+
* Enhancement - Password field eye icon.
|
147 |
+
* Fix - Escaping attribute in checkbox field.
|
148 |
+
* Fix - Remove admin notice from form builder.
|
149 |
+
* Fix - Case sensitive in confirm password.
|
150 |
+
* Fix - Invite code field name made non editable.
|
151 |
+
|
152 |
= 1.7.4 - 21/11/2019 =
|
153 |
* Feature - WPML Plugin Compatibility.
|
154 |
* Tweak - Country Field Default Value.
|
user-registration.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration form and login form builder.
|
6 |
-
* Version: 1.7.
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
@@ -31,7 +31,7 @@ if ( ! class_exists( 'UserRegistration' ) ) :
|
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
-
public $version = '1.7.
|
35 |
|
36 |
/**
|
37 |
* Session instance.
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration form and login form builder.
|
6 |
+
* Version: 1.7.5
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
+
public $version = '1.7.5';
|
35 |
|
36 |
/**
|
37 |
* Session instance.
|