Version Description
- 03/12/2017 =
- Feature - Introduced Checkbox form field
- Feature - Email confirmation option for login
- Feature - Disable Email option
- Fix - Select box issue in user profile
- Fix - Shortcode content appearing on top
- Fix - Administrator status set to pending in admin approval
Download this release
Release Info
Developer | wpeverest |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.5
- assets/css/admin-rtl.css +1 -2
- assets/css/admin.css +1 -2
- assets/js/admin/admin.js +49 -3
- assets/js/admin/admin.min.js +1 -1
- assets/js/frontend/user-registration.js +80 -6
- assets/js/frontend/user-registration.min.js +1 -1
- includes/abstracts/abstract-ur-field-settings.php +1 -0
- includes/abstracts/abstract-ur-form-field.php +13 -0
- includes/admin/class-ur-admin-profile.php +59 -12
- includes/admin/class-ur-admin-user-manager.php +4 -0
- includes/admin/class-ur-admin.php +1 -1
- includes/admin/settings/class-ur-settings-general.php +10 -1
- includes/class-ur-email-confirmation.php +168 -0
- includes/class-ur-emailer.php +29 -1
- includes/class-ur-form-handler.php +8 -0
- includes/class-ur-frontend-scripts.php +3 -1
- includes/class-ur-shortcodes.php +5 -0
- includes/class-ur-user-approval.php +1 -2
- includes/form/class-ur-checkbox.php +80 -0
- includes/form/settings/class-ur-setting-checkbox.php +85 -0
- includes/form/views/admin/admin-checkbox.php +38 -0
- includes/form/views/admin/admin-select.php +0 -3
- includes/frontend/class-ur-frontend-form-handler.php +4 -114
- includes/functions-ur-core.php +3 -1
- includes/functions-ur-template.php +44 -11
- includes/shortcodes/class-ur-shortcode-login.php +3 -1
- languages/user-registration.pot +149 -91
- package-lock.json +1 -1
- readme.txt +28 -3
- templates/myaccount/form-edit-profile.php +1 -0
- user-registration.php +4 -3
assets/css/admin-rtl.css
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #0073aa}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected],.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#0073aa}
|
2 |
-
@charset "UTF-8";.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;right:50%;margin-right:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.ur_addons_wrap .products{overflow:hidden}.ur_addons_wrap .products li{margin:0 0 1% 1%!important;padding:0;vertical-align:top;width:19.2%;float:right}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:right;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:left}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:right;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;right:50%;top:50%;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;left:0;text-align:center;border:0;border-right:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;right:0;left:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:left;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 5px 0 0;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-left:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-left:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 0 0 -24px;float:left}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 5px 0 0}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-right:20px;border:1px solid #ddd;border-left:0}.user-registration table.form-table .colorpick{border-right:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-right:10px}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 1%!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-left:0 none;border-right:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;padding:10px 45px 10px 15px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;right:0;line-height:2.9;font-size:16px;height:auto;margin-left:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:left}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-right:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-left:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:left;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:right;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-right:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;right:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-left:2px dotted #217dbb;border-right:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#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-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;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}#tiptip_arrow{right:50%;margin-right:-6px}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em -1em 0 1px;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;position:absolute;top:-3px;right:50%;margin:-1em -3px 0 0}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-left:24px}.select2-container .select2-selection--single .select2-selection__arrow{left:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
1 |
+
@charset "UTF-8";.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #0073aa}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected],.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#0073aa}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;right:50%;margin-right:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.ur_addons_wrap .products{overflow:hidden}.ur_addons_wrap .products li{margin:0 0 1% 1%!important;padding:0;vertical-align:top;width:19.2%;float:right}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:right;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:left}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:right;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;right:50%;top:50%;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;left:0;text-align:center;border:0;border-right:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;right:0;left:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:left;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 5px 0 0;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-left:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-left:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 0 0 -24px;float:left}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 5px 0 0}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-right:20px;border:1px solid #ddd;border-left:0}.user-registration table.form-table .colorpick{border-right:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-right:10px}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 1%!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-left:0 none;border-right:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;padding:10px 45px 10px 15px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;right:0;line-height:2.9;font-size:16px;height:auto;margin-left:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:left}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-right:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-left:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:left;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:right;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-right:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;right:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-left:2px dotted #217dbb;border-right:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#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-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;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}#tiptip_arrow{right:50%;margin-right:-6px}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em -1em 0 1px;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;position:absolute;top:-3px;right:50%;margin:-1em -3px 0 0}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-left:24px}.select2-container .select2-selection--single .select2-selection__arrow{left:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
|
assets/css/admin.css
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #0073aa}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected],.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#0073aa}
|
2 |
-
@charset "UTF-8";.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;left:50%;margin-left:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.ur_addons_wrap .products{overflow:hidden}.ur_addons_wrap .products li{margin:0 1% 1% 0!important;padding:0;vertical-align:top;width:19.2%;float:left}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:left;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:right}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:left;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:right;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-right:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-right:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-left:20px;border:1px solid #ddd;border-right:0}.user-registration table.form-table .colorpick{border-left:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-left:10px}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 1% 1% 0!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-right:0 none;border-left:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;padding:10px 15px 10px 45px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;left:0;line-height:2.9;font-size:16px;height:auto;margin-right:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:right}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-left:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-right:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:right;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:left;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-left:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;left:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-right:2px dotted #217dbb;border-left:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#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:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;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_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em 1px 0 -1em;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-right:24px}.select2-container .select2-selection--single .select2-selection__arrow{right:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
1 |
+
@charset "UTF-8";.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #0073aa}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected],.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#0073aa}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;left:50%;margin-left:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.ur_addons_wrap .products{overflow:hidden}.ur_addons_wrap .products li{margin:0 1% 1% 0!important;padding:0;vertical-align:top;width:19.2%;float:left}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:left;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:right}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:left;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:right;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-right:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-right:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-left:20px;border:1px solid #ddd;border-right:0}.user-registration table.form-table .colorpick{border-left:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-left:10px}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 1% 1% 0!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-right:0 none;border-left:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;padding:10px 15px 10px 45px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;left:0;line-height:2.9;font-size:16px;height:auto;margin-right:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:right}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-left:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-right:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:right;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:left;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-left:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;left:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-right:2px dotted #217dbb;border-left:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#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:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;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_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em 1px 0 -1em;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-right:24px}.select2-container .select2-selection--single .select2-selection__arrow{right:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
|
assets/js/admin/admin.js
CHANGED
@@ -2,6 +2,28 @@
|
|
2 |
* UserRegistration Admin JS
|
3 |
* global i18n_admin
|
4 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
jQuery(function ( $ ) {
|
6 |
// Tooltips
|
7 |
$(document.body).on('init_tooltips', function () {
|
@@ -18,7 +40,7 @@ jQuery(function ( $ ) {
|
|
18 |
$(this).closest('a, th').attr('data-tip', $(this).data('tip')).tipTip(tiptip_args).css('cursor', 'help');
|
19 |
});
|
20 |
}).trigger('init_tooltips');
|
21 |
-
$('body').on('keypress','#ur-form-name', function (e) {
|
22 |
if ( 13 === e.which ) {
|
23 |
$('#save_form_footer').eq(0).trigger('click');
|
24 |
}
|
@@ -640,7 +662,7 @@ jQuery(function ( $ ) {
|
|
640 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
641 |
var this_node_id = $this_node.attr('id');
|
642 |
var hidden_node = wrapper.find('.ur-advance-setting-block').find('#' + this_node_id);
|
643 |
-
|
644 |
case 'input':
|
645 |
hidden_node.val($this_node.val());
|
646 |
break;
|
@@ -649,11 +671,35 @@ jQuery(function ( $ ) {
|
|
649 |
break;
|
650 |
case 'textarea':
|
651 |
hidden_node.val($this_node.val());
|
652 |
-
|
653 |
break;
|
654 |
}
|
655 |
}
|
656 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
function render_select_box ( value ) {
|
658 |
value = $.trim(value);
|
659 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
2 |
* UserRegistration Admin JS
|
3 |
* global i18n_admin
|
4 |
*/
|
5 |
+
|
6 |
+
jQuery(function () {
|
7 |
+
|
8 |
+
var mySelect = jQuery('#user_registration_general_setting_login_options option:selected').val();
|
9 |
+
if ( mySelect == 'email_confirmation' ) {
|
10 |
+
jQuery('#user_registration_general_setting_disable_email').attr('checked', false);
|
11 |
+
jQuery("#user_registration_general_setting_disable_email").attr("disabled", true);
|
12 |
+
}
|
13 |
+
|
14 |
+
jQuery("body").on('select2:select', "#user_registration_general_setting_login_options", function () {
|
15 |
+
|
16 |
+
if ( jQuery(this).find('option:selected').val() == "email_confirmation" ) {
|
17 |
+
jQuery('#user_registration_general_setting_disable_email').attr('checked', false);
|
18 |
+
jQuery("#user_registration_general_setting_disable_email").attr("disabled", true);
|
19 |
+
}
|
20 |
+
else {
|
21 |
+
jQuery("#user_registration_general_setting_disable_email").attr("disabled", false);
|
22 |
+
}
|
23 |
+
});
|
24 |
+
});
|
25 |
+
|
26 |
+
|
27 |
jQuery(function ( $ ) {
|
28 |
// Tooltips
|
29 |
$(document.body).on('init_tooltips', function () {
|
40 |
$(this).closest('a, th').attr('data-tip', $(this).data('tip')).tipTip(tiptip_args).css('cursor', 'help');
|
41 |
});
|
42 |
}).trigger('init_tooltips');
|
43 |
+
$('body').on('keypress', '#ur-form-name', function ( e ) {
|
44 |
if ( 13 === e.which ) {
|
45 |
$('#save_form_footer').eq(0).trigger('click');
|
46 |
}
|
662 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
663 |
var this_node_id = $this_node.attr('id');
|
664 |
var hidden_node = wrapper.find('.ur-advance-setting-block').find('#' + this_node_id);
|
665 |
+
switch ( node_type ) {
|
666 |
case 'input':
|
667 |
hidden_node.val($this_node.val());
|
668 |
break;
|
671 |
break;
|
672 |
case 'textarea':
|
673 |
hidden_node.val($this_node.val());
|
674 |
+
render_text_area($this_node.val());
|
675 |
break;
|
676 |
}
|
677 |
}
|
678 |
|
679 |
+
function render_text_area (value) {
|
680 |
+
var wrapper = $('.ur-selected-item.ur-item-active');
|
681 |
+
var field_type = wrapper.find('.ur-field');
|
682 |
+
switch ( field_type.attr('data-field-key') ) {
|
683 |
+
case 'select':
|
684 |
+
render_select_box(value);
|
685 |
+
break;
|
686 |
+
case 'checkbox':
|
687 |
+
render_check_box(value);
|
688 |
+
break;
|
689 |
+
}
|
690 |
+
}
|
691 |
+
function render_check_box ( value ) {
|
692 |
+
value = $.trim(value);
|
693 |
+
var wrapper = $('.ur-selected-item.ur-item-active');
|
694 |
+
var checkbox = wrapper.find('.ur-field');
|
695 |
+
checkbox.html('');
|
696 |
+
var array_value = value.split(',');
|
697 |
+
for ( var i = 0; i < array_value.length; i++ ) {
|
698 |
+
if ( array_value[ i ] !== '' ) {
|
699 |
+
checkbox.append('<label><input value="' + array_value[ i ].trim() + '" type="checkbox">' + array_value[ i ] +'</label>' );
|
700 |
+
}
|
701 |
+
}
|
702 |
+
}
|
703 |
function render_select_box ( value ) {
|
704 |
value = $.trim(value);
|
705 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
assets/js/admin/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(e){e(document.body).on("init_tooltips",function(){var i={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0};e(".tips, .help_tip, .user-registration-help-tip").tipTip(i),e(".parent-tips").each(function(){e(this).closest("a, th").attr("data-tip",e(this).data("tip")).tipTip(i).css("cursor","help")})}).trigger("init_tooltips"),e("body").on("keypress","#ur-form-name",function(i){13===i.which&&e("#save_form_footer").eq(0).trigger("click")})}),function(e,i){function t(i,t){var r;r="success"===t?'<div class="updated ur-notices" style="border-color: green;"><p><strong>'+y.i18n_success+"! </strong>"+i+"</p></div>":'<div class="updated ur-notices" style="border-color: red;"><p><strong>'+y.i18n_error+"!!! </strong>"+i+"</p></div>",e(".ur-form-subcontainer").find(".ur-notices").remove(),e(".ur-form-subcontainer").prepend(r),e("html, body").animate({scrollTop:e(".ur-notices").offset().top-50},600)}function r(){var t=e.makeArray(i.form_one_time_draggable_fields),r=e.makeArray(i.form_required_fields),a={validation_status:!0,message:""};if(0===e(".ur-selected-item").length)return a.validation_status=!1,a.message=y.i18n_at_least_one_field_need_to_select,a;if(""===e("#ur-form-name").val())return a.validation_status=!1,a.message=y.i18n_empty_form_name,a;if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").length>0)return a.validation_status=!1,a.message=y.i18n_previous_save_action_ongoing,a;e.each(e('.ur-selected-inputs .ur-general-setting-block input[data-field="field_name"]'),function(){var i,t=e(this),r=!1;try{var n=t.val();if(e(".ur-selected-inputs .ur-general-setting-block").find('input[data-field="field_name"][value="'+n+'"]').length>1)throw y.i18n_duplicate_field_name;if(""===t.closest(".ur-general-setting-block").find('input[data-field="label"]').val())throw t=t.closest(".ur-general-setting-block").find('input[data-field="label"]'),y.i18n_empty_field_label;var s=/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm,d=n.match(s);if(null===d||1!==d.length||d[0]!==n)throw y.i18n_invald_field_name}catch(l){a.validation_status=!1,a.message=l.message===undefined?l:l.message,t.closest(".ur-selected-item").trigger("click"),i=t.attr("data-field"),e("#ur-setting-form").find('input[data-field="'+i+'"]').css({border:"1px solid red"}),setTimeout(function(){e("#ur-setting-form").find('input[data-field="'+i+'"]').removeAttr("style")},2e3),r=!0}if(r)return!1});for(var n=0;n<t.length;n++)if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+t[n]+'"]').length>1){a.validation_status=!1,a.message=y.i18n_multiple_field_key+t[n];break}for(var s=0;s<r.length;s++)if(0===e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r[s]+'"]').length){a.validation_status=!1,a.message=y.i18n_at_least_one_field_is_required+r[s];break}return a}function a(){var i=[],t=e(".ur-selected-inputs .ur-single-row");return e.each(t,function(){var t=e(this).find(".ur-grid-list-item"),r=[];e.each(t,function(){var i=n(e(this));r.push(i)}),i.push(r)}),i}function n(i){var t=i.find(".ur-selected-item"),r=[];return e.each(t,function(){var i=e(this),t={field_key:i.find(".ur-field").attr("data-field-key"),general_setting:s(i),advance_setting:d(i)};r.push(t)}),r}function s(i){var t=i.find(".ur-general-setting-block").find(".ur-general-setting-field"),r={};return e.each(t,function(){r[e(this).attr("data-field")]=l(e(this))}),r}function d(i){var t=i.find(".ur-advance-setting-block").find(".ur_advance_setting"),r={};return e.each(t,function(){r[e(this).attr("data-advance-field")]=l(e(this))}),r}function l(e){var i="";switch(e.get(0).tagName.toLowerCase()){case"input":case"select":case"textarea":i=e.val()}return i}function o(){var i=e(".ur-general-setting-field");e.each(i,function(){var i=e(this);switch(i.attr("data-field")){case"label":i.on("keyup",function(){g(e(this))});break;case"field_name":i.on("change",function(){f(e(this))});break;case"placeholder":i.on("keyup",function(){_(e(this))});break;case"required":i.on("change",function(){v(e(this))})}});var t=e(".ur_advance_setting");e.each(t,function(){var i=e(this),t=i.get(0).tagName.toLowerCase(),r="change";switch(t){case"input":r="keyup";break;case"select":r="change";break;case"textarea":r="keyup";break;default:r="change"}e(this).on(r,function(){u(i,t)}),e(this).on("paste",function(){u(i,t)})})}function u(i,t){var r=e(".ur-selected-item.ur-item-active"),a=i.attr("id"),n=r.find(".ur-advance-setting-block").find("#"+a);switch(t){case"input":n.val(i.val());break;case"select":n.find('option[value="'+i.val()+'"]').attr("selected","selected");break;case"textarea":n.val(i.val()),c(i.val())}}function c(i){i=e.trim(i);var t=e(".ur-selected-item.ur-item-active").find(".ur-field").find("select");t.html("");for(var r=i.split(","),a=0;a<r.length;a++)""!==r[a]&&t.append("<option value='"+r[a]+"'>"+r[a]+"</option>")}function f(i){e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+i.attr("data-field")+'"]').attr("value",i.val())}function g(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-label").find("label").text(i.val());var r=i.attr("id");t.find(".ur-general-setting-block").find("#"+r).val(i.val())}function _(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-field").find("input").attr("placeholder",i.val()),t.find(".ur-general-setting-block").find('input[data-field="'+i.attr("data-field")+'"]').val(i.val())}function v(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-label").find("label").find("span").remove(),"yes"===i.val()&&t.find(".ur-label").find("label").append('<span style="color:red">*</span>'),t.find(".ur-general-setting-block").find('select[data-field="'+i.attr("data-field")+'"]').find('option[value="'+i.val()+'"]').attr("selected","selected")}function m(){var t=i.form_required_fields,r=e(".ur-selected-inputs");if(e.isArray(t))for(var a=0;a<t.length;a++){var n=r.find('.ur-field[data-field-key="'+t[a]+'"]');n.closest(".ur-selected-item").find('select[data-field="required"]').val("yes").trigger("change"),n.closest(".ur-selected-item").find('select[data-field="required"]').find('option[value="yes"]').attr("selected","selected"),n.closest(".ur-selected-item").find('select[data-field="required"]').attr("disabled","disabled")}var s=r.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest(".ur-selected-item").find(".ur-label").find("label");s.find("span").remove(),s.append('<span style="color:red">*</span>')}function p(){var t=i.form_one_time_draggable_fields,r=e("#ur-tab-registered-fields").find("ul.ur-registered-list");e.each(r.find("li"),function(){var i=e(this),r=e(this).attr("data-field-id").replace("user_registration_","");e.inArray(r,t)>=0&&(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0?i.draggable("disable"):i.draggable("enable"))})}function h(e){return Math.ceil(e,0)}function b(e){return parseInt(e,0)}var y=i.i18n_admin;e(function(){function n(i){var t=i.find(".ur-advance-setting-block").clone(),r=i.find(".ur-general-setting-block").clone(),a=e("<form id='ur-setting-form'/>");e("#ur-tab-field-options").html(""),a.append(r),a.append(t),e("#ur-tab-field-options").append(a),e("#ur-tab-field-options").find(".ur-advance-setting-block").show(),e("#ur-tab-field-options").find(".ur-general-setting-block").show(),1===e(".ur-item-active").length&&(e(".ur-tabs").tabs("enable",1),e(".ur-tabs").find("a").eq(1).trigger("click"))}({init:function(){e(document.body).on("click",".column-data_link a",this.add_item).on("ur_backbone_modal_loaded",this.backbone.init).on("ur_backbone_modal_response",this.backbone.response)},add_item:function(i){return i.preventDefault(),e(this).URBackboneModal({template:"test-demo"}),!1},backbone:{init:function(e,i){},response:function(e,i){}}}).init(),e.fn.ur_form_builder=function(){var r={active_grid:i.active_grid,number_of_grid_list:i.number_of_grid,min_grid_height:70};return this.each(function(){var a=e(this),n={init:function(){this.single_row(),m()},get_grid_button:function(){var i=e('<div class="ur-grid-containner"/>'),t=h(b(r.number_of_grid_list)/b(r.active_grid))+"/"+r.number_of_grid_list,a='<div class="ur-grid-navigation ur-nav-right dashicons dashicons-arrow-left-alt2"></div><div class="ur-grid-size" data-active-grid="'+r.active_grid+'">'+t+'</div><div class="ur-grid-navigation ur-nav-left dashicons dashicons-arrow-right-alt2"></div><button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>';return i.html(a),i.html()},single_row:function(){var t=e("<div class='ur-single-row'/>");t.append(e("<div class='ur-grids'/>"));var d=this.get_grid_button();t.find(".ur-grids").append(d),t.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var l=this.get_grid_lists(r.active_grid);t.append('<div style="clear:both"></div>'),t.append(l),t.append('<div style="clear:both"></div>'),a.append(t),a.find(".ur-add-new-row").remove(),a.append('<button type="button" class="dashicons dashicons-plus-alt ur-add-new-row ui-sortable-handle"></button>'),s.render_draggable_sortable(),n.manage_empty_grid(),"1"===i.is_edit_form&&e(".ur-single-row").eq(e(".ur-single-row").length-1).remove(),"1"!==i.is_edit_form&&(e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).find(".user-registration-dragged-me").remove(),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).append(i.required_form_html)),p()},get_grid_lists:function(i){for(var t=e('<div class="ur-grid-lists"/>'),a=1;a<=i;a++){var n=e("<div ur-grid-id='"+a+"' class='ur-grid-list-item'></div>"),s=Math.floor(100/i)-i;s,n.css({width:s+"%","min-height":r.min_grid_height+"px"}),t.append(n)}return t.append('<div style="clear:both"></div>'),t.find(".ur-grid-list-item").eq("0").css({}),t},populate_dropped_node:function(t,r){var a={action:"user_registration_user_input_dropped",security:i.user_input_dropped,form_field_id:r},s='<div class="ur-selected-item ajax_added"><div class="ur-action-buttons"><span title="Clone" class="dashicons dashicons-admin-page ur-clone"></span><span title="Trash" class="dashicons dashicons-trash ur-trash"></span></div>(content)</div>';t.closest(".ur-single-row").find(".user-registration-dragged-me").fadeOut(),e.ajax({url:i.ajax_url,data:a,type:"POST",beforeSend:function(){t.removeAttr("class").removeAttr("id").removeAttr("data-field-id").addClass("ur-selected-item").css({width:"auto"}),t.html('<small class="spinner is-active"></small>'),t.addClass("ur-item-dragged")},complete:function(i){if(n.manage_empty_grid(),!0===i.responseJSON.success){var r=e(s.replace("(content)",i.responseJSON.data.template));r.removeClass("ajax_added"),r.removeClass("ur-item-dragged"),t.find(".ajax_added").find(".spinner").remove(),t.find(".ajax_added").remove(),e(r).insertBefore(t),t.remove()}p()}})},manage_empty_grid:function(){var i=e(".ur-selected-inputs"),t=e('<div class="user-registration-dragged-me"/>');t.html('<div class="user-registration-dragged-me-text"><p>'+y.i18n_drag_your_first_item_here+"</p></div>"),i.find(".user-registration-dragged-me").remove(),e.each(i.find(".ur-grid-list-item"),function(){var i=e(this);0===e(this).find(".ur-selected-item").length&&i.append(t.clone())})}},s={register:function(){this.register_add_new_row(),this.register_remove_row(),this.change_ur_grids(),this.remove_selected_item(),this.clone_selected_item()},register_add_new_row:function(){var i=this;e("body").on("click",".ur-add-new-row",function(){var t=e(this).closest(".ur-selected-inputs").find(".ur-single-row").eq(0).clone();t.find(".ur-grid-lists").html(""),t.find(".ur-grids").find("span").removeClass("ur-active-grid"),t.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var a=n.get_grid_lists(r.active_grid);t.find(".ur-grid-lists").append(a.html()),t.insertBefore(".ur-add-new-row"),i.render_draggable_sortable(),n.manage_empty_grid()})},register_remove_row:function(){var i=this;e("body").on("click",".ur-remove-row",function(){if(e(".ur-selected-inputs").find(".ur-single-row").length>1){if(window.confirm(y.i18n_are_you_sure_want_to_delete)){var t,r=e(this).prev();(t=r.hasClass("ur-add-new-row")?r.clone():e(this).clone().attr("class","dashicons-minus ur-remove-row")).hasClass("ur-add-new-row")&&e(this).closest(".ur-single-row").prev().find(".ur-remove-row").before(t),e(this).closest(".ur-single-row").remove(),i.check_grid()}}else window.alert(y.i18n_at_least_one_row_need_to_select)})},change_ur_grids:function(){var i=this;e("body").on("click",".ur-single-row .ur-nav-right",function(){var t=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a>=r.number_of_grid_list)){a=b(a)+1;var s=h(b(r.number_of_grid_list)/b(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var d=n.get_grid_lists(a);e.each(t.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){d.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),t.find(".ur-grid-lists").eq(0).hide(),d.clone().insertAfter(t.find(".ur-grid-lists")),t.find(".ur-grid-lists").eq(0).remove(),i.render_draggable_sortable(),n.manage_empty_grid()}}),e("body").on("click",".ur-single-row .ur-nav-left",function(){var t=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a<=1)){a=b(a)-1;var s=h(b(r.number_of_grid_list)/b(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var d=n.get_grid_lists(a);e.each(t.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){d.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),t.find(".ur-grid-lists").eq(0).hide(),d.clone().insertAfter(t.find(".ur-grid-lists")),t.find(".ur-grid-lists").eq(0).remove(),i.render_draggable_sortable(),n.manage_empty_grid()}})},render_draggable_sortable:function(){e(".ur-grid-list-item").sortable({containment:".ur-selected-inputs",over:function(){e(this).addClass("ur-sortable-active"),n.manage_empty_grid()},out:function(){e(this).removeClass("ur-sortable-active"),n.manage_empty_grid()},revert:!0,connectWith:".ur-grid-list-item"}).disableSelection(),e(".ur-selected-inputs").sortable({containment:".ur-selected-inputs",tolerance:"pointer",revert:"invalid",placeholder:"ur-single-row",forceHelperSize:!0,over:function(){e(this).addClass("ur-sortable-active")},out:function(){e(this).removeClass("ur-sortable-active")}}),e("#ur-draggabled li").draggable({connectToSortable:".ur-grid-list-item",containment:".ur-registered-from",helper:"clone",revert:"invalid",stop:function(r,a){if(0!==e(a.helper).closest(".ur-grid-list-item").length){var s=e.trim(e(a.helper).attr("data-field-id").replace("user_registration_","")),d=e(".ur-selected-inputs").find('.ur-field[data-field-key="'+s+'"]').length,l=e.makeArray(i.form_one_time_draggable_fields);if(d>0&&e.inArray(s,l)>=0)return t(y.i18n_user_required_field_already_there),void e(a.helper).remove();var o=e(a.helper),u=e(o).attr("data-field-id");if(void 0!==u){var c=e(a.helper).closest(".ur-grid-list-item").find('li[data-field-id="'+e(this).attr("data-field-id")+'"]');n.populate_dropped_node(c,u)}}}}).disableSelection()},remove_selected_item:function(){var i=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(){e(this).closest(".ur-selected-item ").remove(),i.check_grid(),n.manage_empty_grid(),p()})},clone_selected_item:function(){e("body").on("click",".ur-selected-item .ur-action-buttons .ur-clone",function(){var r=e(this).closest(".ur-selected-item ").find(".ur-field").attr("data-field-key");if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0&&e.inArray(r,i.form_one_time_draggable_fields)>-1)t(y.i18n_user_required_field_already_there_could_not_clone);else{var a=e(this).closest(".ur-selected-item ").clone(),n=a.find('input[data-field="field_name"]'),s=/\d+/g,d=n.val().match(s),l=d.length>0?d[d.length-1]:"",o=n.val().replace(l,"");a.find('input[data-field="field_name"]').attr("value",o+(new Date).getTime()),e(this).closest(".ur-grid-list-item").append(a)}})},check_grid:function(){e(".ur-tabs").tabs({disabled:[1]}),e(".ur-tabs").find("a").eq(0).trigger("click")}};n.init(),s.register()})},e(".ur-selected-inputs").ur_form_builder(),e(".ur-tabs").find("a").click(function(){e(".ur-tabs").find("a").removeClass("active"),e(this).addClass("active")}),e(".ur-tabs").tabs(),e(".ur-tabs").find("a").eq(0).trigger("click"),e(".ur-tabs").tabs({disabled:[1]}),e("body").on("click",".ur-selected-item",function(){e(".ur-registered-inputs").find("ul li.ur-no-pointer").removeClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active"),e(this).addClass("ur-item-active"),n(e(this)),o()}),e(".ur_save_form_action_button").on("click",function(){var n=r();if(!1!==n.validation_status){var s=a(),d=e("#ur_form_id").val();b(i.post_id)!==b(d)&&(d=0);var l=e("#ur-field-settings").serializeArray(),o={action:"user_registration_form_save_action",security:i.ur_form_save,data:{form_data:JSON.stringify(s),form_name:e("#ur-form-name").val(),form_id:d,form_setting_data:l}};e.ajax({url:i.ajax_url,data:o,type:"POST",beforeSend:function(){e(".ur_save_form_action_button").closest(".publishing-action").append('<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>'),e(".ur-notices").remove()},complete:function(r){if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").remove(),!0===r.responseJSON.success){t(y.i18n_form_successfully_saved,"success");var a=i.admin_url+r.responseJSON.data.post_id;window.location=a}else t(r.responseJSON.data.message)}})}else t(n.message)})})}(jQuery,window.user_registration_admin_data);
|
1 |
+
jQuery(function(){"email_confirmation"==jQuery("#user_registration_general_setting_login_options option:selected").val()&&(jQuery("#user_registration_general_setting_disable_email").attr("checked",!1),jQuery("#user_registration_general_setting_disable_email").attr("disabled",!0)),jQuery("body").on("select2:select","#user_registration_general_setting_login_options",function(){"email_confirmation"==jQuery(this).find("option:selected").val()?(jQuery("#user_registration_general_setting_disable_email").attr("checked",!1),jQuery("#user_registration_general_setting_disable_email").attr("disabled",!0)):jQuery("#user_registration_general_setting_disable_email").attr("disabled",!1)})}),jQuery(function(e){e(document.body).on("init_tooltips",function(){var i={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0};e(".tips, .help_tip, .user-registration-help-tip").tipTip(i),e(".parent-tips").each(function(){e(this).closest("a, th").attr("data-tip",e(this).data("tip")).tipTip(i).css("cursor","help")})}).trigger("init_tooltips"),e("body").on("keypress","#ur-form-name",function(i){13===i.which&&e("#save_form_footer").eq(0).trigger("click")})}),function(e,i){function t(i,t){var r;r="success"===t?'<div class="updated ur-notices" style="border-color: green;"><p><strong>'+w.i18n_success+"! </strong>"+i+"</p></div>":'<div class="updated ur-notices" style="border-color: red;"><p><strong>'+w.i18n_error+"!!! </strong>"+i+"</p></div>",e(".ur-form-subcontainer").find(".ur-notices").remove(),e(".ur-form-subcontainer").prepend(r),e("html, body").animate({scrollTop:e(".ur-notices").offset().top-50},600)}function r(){var t=e.makeArray(i.form_one_time_draggable_fields),r=e.makeArray(i.form_required_fields),a={validation_status:!0,message:""};if(0===e(".ur-selected-item").length)return a.validation_status=!1,a.message=w.i18n_at_least_one_field_need_to_select,a;if(""===e("#ur-form-name").val())return a.validation_status=!1,a.message=w.i18n_empty_form_name,a;if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").length>0)return a.validation_status=!1,a.message=w.i18n_previous_save_action_ongoing,a;e.each(e('.ur-selected-inputs .ur-general-setting-block input[data-field="field_name"]'),function(){var i,t=e(this),r=!1;try{var n=t.val();if(e(".ur-selected-inputs .ur-general-setting-block").find('input[data-field="field_name"][value="'+n+'"]').length>1)throw w.i18n_duplicate_field_name;if(""===t.closest(".ur-general-setting-block").find('input[data-field="label"]').val())throw t=t.closest(".ur-general-setting-block").find('input[data-field="label"]'),w.i18n_empty_field_label;var s=/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm,d=n.match(s);if(null===d||1!==d.length||d[0]!==n)throw w.i18n_invald_field_name}catch(l){a.validation_status=!1,a.message=l.message===undefined?l:l.message,t.closest(".ur-selected-item").trigger("click"),i=t.attr("data-field"),e("#ur-setting-form").find('input[data-field="'+i+'"]').css({border:"1px solid red"}),setTimeout(function(){e("#ur-setting-form").find('input[data-field="'+i+'"]').removeAttr("style")},2e3),r=!0}if(r)return!1});for(var n=0;n<t.length;n++)if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+t[n]+'"]').length>1){a.validation_status=!1,a.message=w.i18n_multiple_field_key+t[n];break}for(var s=0;s<r.length;s++)if(0===e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r[s]+'"]').length){a.validation_status=!1,a.message=w.i18n_at_least_one_field_is_required+r[s];break}return a}function a(){var i=[],t=e(".ur-selected-inputs .ur-single-row");return e.each(t,function(){var t=e(this).find(".ur-grid-list-item"),r=[];e.each(t,function(){var i=n(e(this));r.push(i)}),i.push(r)}),i}function n(i){var t=i.find(".ur-selected-item"),r=[];return e.each(t,function(){var i=e(this),t={field_key:i.find(".ur-field").attr("data-field-key"),general_setting:s(i),advance_setting:d(i)};r.push(t)}),r}function s(i){var t=i.find(".ur-general-setting-block").find(".ur-general-setting-field"),r={};return e.each(t,function(){r[e(this).attr("data-field")]=l(e(this))}),r}function d(i){var t=i.find(".ur-advance-setting-block").find(".ur_advance_setting"),r={};return e.each(t,function(){r[e(this).attr("data-advance-field")]=l(e(this))}),r}function l(e){var i="";switch(e.get(0).tagName.toLowerCase()){case"input":case"select":case"textarea":i=e.val()}return i}function o(){var i=e(".ur-general-setting-field");e.each(i,function(){var i=e(this);switch(i.attr("data-field")){case"label":i.on("keyup",function(){m(e(this))});break;case"field_name":i.on("change",function(){_(e(this))});break;case"placeholder":i.on("keyup",function(){v(e(this))});break;case"required":i.on("change",function(){p(e(this))})}});var t=e(".ur_advance_setting");e.each(t,function(){var i=e(this),t=i.get(0).tagName.toLowerCase(),r="change";switch(t){case"input":r="keyup";break;case"select":r="change";break;case"textarea":r="keyup";break;default:r="change"}e(this).on(r,function(){u(i,t)}),e(this).on("paste",function(){u(i,t)})})}function u(i,t){var r=e(".ur-selected-item.ur-item-active"),a=i.attr("id"),n=r.find(".ur-advance-setting-block").find("#"+a);switch(t){case"input":n.val(i.val());break;case"select":n.find('option[value="'+i.val()+'"]').attr("selected","selected");break;case"textarea":n.val(i.val()),c(i.val())}}function c(i){switch(e(".ur-selected-item.ur-item-active").find(".ur-field").attr("data-field-key")){case"select":g(i);break;case"checkbox":f(i)}}function f(i){i=e.trim(i);var t=e(".ur-selected-item.ur-item-active").find(".ur-field");t.html("");for(var r=i.split(","),a=0;a<r.length;a++)""!==r[a]&&t.append('<label><input value="'+r[a].trim()+'" type="checkbox">'+r[a]+"</label>")}function g(i){i=e.trim(i);var t=e(".ur-selected-item.ur-item-active").find(".ur-field").find("select");t.html("");for(var r=i.split(","),a=0;a<r.length;a++)""!==r[a]&&t.append("<option value='"+r[a]+"'>"+r[a]+"</option>")}function _(i){e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+i.attr("data-field")+'"]').attr("value",i.val())}function m(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-label").find("label").text(i.val());var r=i.attr("id");t.find(".ur-general-setting-block").find("#"+r).val(i.val())}function v(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-field").find("input").attr("placeholder",i.val()),t.find(".ur-general-setting-block").find('input[data-field="'+i.attr("data-field")+'"]').val(i.val())}function p(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-label").find("label").find("span").remove(),"yes"===i.val()&&t.find(".ur-label").find("label").append('<span style="color:red">*</span>'),t.find(".ur-general-setting-block").find('select[data-field="'+i.attr("data-field")+'"]').find('option[value="'+i.val()+'"]').attr("selected","selected")}function h(){var t=i.form_required_fields,r=e(".ur-selected-inputs");if(e.isArray(t))for(var a=0;a<t.length;a++){var n=r.find('.ur-field[data-field-key="'+t[a]+'"]');n.closest(".ur-selected-item").find('select[data-field="required"]').val("yes").trigger("change"),n.closest(".ur-selected-item").find('select[data-field="required"]').find('option[value="yes"]').attr("selected","selected"),n.closest(".ur-selected-item").find('select[data-field="required"]').attr("disabled","disabled")}var s=r.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest(".ur-selected-item").find(".ur-label").find("label");s.find("span").remove(),s.append('<span style="color:red">*</span>')}function b(){var t=i.form_one_time_draggable_fields,r=e("#ur-tab-registered-fields").find("ul.ur-registered-list");e.each(r.find("li"),function(){var i=e(this),r=e(this).attr("data-field-id").replace("user_registration_","");e.inArray(r,t)>=0&&(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0?i.draggable("disable"):i.draggable("enable"))})}function y(e){return Math.ceil(e,0)}function k(e){return parseInt(e,0)}var w=i.i18n_admin;e(function(){function n(i){var t=i.find(".ur-advance-setting-block").clone(),r=i.find(".ur-general-setting-block").clone(),a=e("<form id='ur-setting-form'/>");e("#ur-tab-field-options").html(""),a.append(r),a.append(t),e("#ur-tab-field-options").append(a),e("#ur-tab-field-options").find(".ur-advance-setting-block").show(),e("#ur-tab-field-options").find(".ur-general-setting-block").show(),1===e(".ur-item-active").length&&(e(".ur-tabs").tabs("enable",1),e(".ur-tabs").find("a").eq(1).trigger("click"))}({init:function(){e(document.body).on("click",".column-data_link a",this.add_item).on("ur_backbone_modal_loaded",this.backbone.init).on("ur_backbone_modal_response",this.backbone.response)},add_item:function(i){return i.preventDefault(),e(this).URBackboneModal({template:"test-demo"}),!1},backbone:{init:function(e,i){},response:function(e,i){}}}).init(),e.fn.ur_form_builder=function(){var r={active_grid:i.active_grid,number_of_grid_list:i.number_of_grid,min_grid_height:70};return this.each(function(){var a=e(this),n={init:function(){this.single_row(),h()},get_grid_button:function(){var i=e('<div class="ur-grid-containner"/>'),t=y(k(r.number_of_grid_list)/k(r.active_grid))+"/"+r.number_of_grid_list,a='<div class="ur-grid-navigation ur-nav-right dashicons dashicons-arrow-left-alt2"></div><div class="ur-grid-size" data-active-grid="'+r.active_grid+'">'+t+'</div><div class="ur-grid-navigation ur-nav-left dashicons dashicons-arrow-right-alt2"></div><button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>';return i.html(a),i.html()},single_row:function(){var t=e("<div class='ur-single-row'/>");t.append(e("<div class='ur-grids'/>"));var d=this.get_grid_button();t.find(".ur-grids").append(d),t.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var l=this.get_grid_lists(r.active_grid);t.append('<div style="clear:both"></div>'),t.append(l),t.append('<div style="clear:both"></div>'),a.append(t),a.find(".ur-add-new-row").remove(),a.append('<button type="button" class="dashicons dashicons-plus-alt ur-add-new-row ui-sortable-handle"></button>'),s.render_draggable_sortable(),n.manage_empty_grid(),"1"===i.is_edit_form&&e(".ur-single-row").eq(e(".ur-single-row").length-1).remove(),"1"!==i.is_edit_form&&(e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).find(".user-registration-dragged-me").remove(),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).append(i.required_form_html)),b()},get_grid_lists:function(i){for(var t=e('<div class="ur-grid-lists"/>'),a=1;a<=i;a++){var n=e("<div ur-grid-id='"+a+"' class='ur-grid-list-item'></div>"),s=Math.floor(100/i)-i;s,n.css({width:s+"%","min-height":r.min_grid_height+"px"}),t.append(n)}return t.append('<div style="clear:both"></div>'),t.find(".ur-grid-list-item").eq("0").css({}),t},populate_dropped_node:function(t,r){var a={action:"user_registration_user_input_dropped",security:i.user_input_dropped,form_field_id:r},s='<div class="ur-selected-item ajax_added"><div class="ur-action-buttons"><span title="Clone" class="dashicons dashicons-admin-page ur-clone"></span><span title="Trash" class="dashicons dashicons-trash ur-trash"></span></div>(content)</div>';t.closest(".ur-single-row").find(".user-registration-dragged-me").fadeOut(),e.ajax({url:i.ajax_url,data:a,type:"POST",beforeSend:function(){t.removeAttr("class").removeAttr("id").removeAttr("data-field-id").addClass("ur-selected-item").css({width:"auto"}),t.html('<small class="spinner is-active"></small>'),t.addClass("ur-item-dragged")},complete:function(i){if(n.manage_empty_grid(),!0===i.responseJSON.success){var r=e(s.replace("(content)",i.responseJSON.data.template));r.removeClass("ajax_added"),r.removeClass("ur-item-dragged"),t.find(".ajax_added").find(".spinner").remove(),t.find(".ajax_added").remove(),e(r).insertBefore(t),t.remove()}b()}})},manage_empty_grid:function(){var i=e(".ur-selected-inputs"),t=e('<div class="user-registration-dragged-me"/>');t.html('<div class="user-registration-dragged-me-text"><p>'+w.i18n_drag_your_first_item_here+"</p></div>"),i.find(".user-registration-dragged-me").remove(),e.each(i.find(".ur-grid-list-item"),function(){var i=e(this);0===e(this).find(".ur-selected-item").length&&i.append(t.clone())})}},s={register:function(){this.register_add_new_row(),this.register_remove_row(),this.change_ur_grids(),this.remove_selected_item(),this.clone_selected_item()},register_add_new_row:function(){var i=this;e("body").on("click",".ur-add-new-row",function(){var t=e(this).closest(".ur-selected-inputs").find(".ur-single-row").eq(0).clone();t.find(".ur-grid-lists").html(""),t.find(".ur-grids").find("span").removeClass("ur-active-grid"),t.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var a=n.get_grid_lists(r.active_grid);t.find(".ur-grid-lists").append(a.html()),t.insertBefore(".ur-add-new-row"),i.render_draggable_sortable(),n.manage_empty_grid()})},register_remove_row:function(){var i=this;e("body").on("click",".ur-remove-row",function(){if(e(".ur-selected-inputs").find(".ur-single-row").length>1){if(window.confirm(w.i18n_are_you_sure_want_to_delete)){var t,r=e(this).prev();(t=r.hasClass("ur-add-new-row")?r.clone():e(this).clone().attr("class","dashicons-minus ur-remove-row")).hasClass("ur-add-new-row")&&e(this).closest(".ur-single-row").prev().find(".ur-remove-row").before(t),e(this).closest(".ur-single-row").remove(),i.check_grid()}}else window.alert(w.i18n_at_least_one_row_need_to_select)})},change_ur_grids:function(){var i=this;e("body").on("click",".ur-single-row .ur-nav-right",function(){var t=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a>=r.number_of_grid_list)){a=k(a)+1;var s=y(k(r.number_of_grid_list)/k(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var d=n.get_grid_lists(a);e.each(t.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){d.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),t.find(".ur-grid-lists").eq(0).hide(),d.clone().insertAfter(t.find(".ur-grid-lists")),t.find(".ur-grid-lists").eq(0).remove(),i.render_draggable_sortable(),n.manage_empty_grid()}}),e("body").on("click",".ur-single-row .ur-nav-left",function(){var t=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a<=1)){a=k(a)-1;var s=y(k(r.number_of_grid_list)/k(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var d=n.get_grid_lists(a);e.each(t.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){d.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),t.find(".ur-grid-lists").eq(0).hide(),d.clone().insertAfter(t.find(".ur-grid-lists")),t.find(".ur-grid-lists").eq(0).remove(),i.render_draggable_sortable(),n.manage_empty_grid()}})},render_draggable_sortable:function(){e(".ur-grid-list-item").sortable({containment:".ur-selected-inputs",over:function(){e(this).addClass("ur-sortable-active"),n.manage_empty_grid()},out:function(){e(this).removeClass("ur-sortable-active"),n.manage_empty_grid()},revert:!0,connectWith:".ur-grid-list-item"}).disableSelection(),e(".ur-selected-inputs").sortable({containment:".ur-selected-inputs",tolerance:"pointer",revert:"invalid",placeholder:"ur-single-row",forceHelperSize:!0,over:function(){e(this).addClass("ur-sortable-active")},out:function(){e(this).removeClass("ur-sortable-active")}}),e("#ur-draggabled li").draggable({connectToSortable:".ur-grid-list-item",containment:".ur-registered-from",helper:"clone",revert:"invalid",stop:function(r,a){if(0!==e(a.helper).closest(".ur-grid-list-item").length){var s=e.trim(e(a.helper).attr("data-field-id").replace("user_registration_","")),d=e(".ur-selected-inputs").find('.ur-field[data-field-key="'+s+'"]').length,l=e.makeArray(i.form_one_time_draggable_fields);if(d>0&&e.inArray(s,l)>=0)return t(w.i18n_user_required_field_already_there),void e(a.helper).remove();var o=e(a.helper),u=e(o).attr("data-field-id");if(void 0!==u){var c=e(a.helper).closest(".ur-grid-list-item").find('li[data-field-id="'+e(this).attr("data-field-id")+'"]');n.populate_dropped_node(c,u)}}}}).disableSelection()},remove_selected_item:function(){var i=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(){e(this).closest(".ur-selected-item ").remove(),i.check_grid(),n.manage_empty_grid(),b()})},clone_selected_item:function(){e("body").on("click",".ur-selected-item .ur-action-buttons .ur-clone",function(){var r=e(this).closest(".ur-selected-item ").find(".ur-field").attr("data-field-key");if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0&&e.inArray(r,i.form_one_time_draggable_fields)>-1)t(w.i18n_user_required_field_already_there_could_not_clone);else{var a=e(this).closest(".ur-selected-item ").clone(),n=a.find('input[data-field="field_name"]'),s=/\d+/g,d=n.val().match(s),l=d.length>0?d[d.length-1]:"",o=n.val().replace(l,"");a.find('input[data-field="field_name"]').attr("value",o+(new Date).getTime()),e(this).closest(".ur-grid-list-item").append(a)}})},check_grid:function(){e(".ur-tabs").tabs({disabled:[1]}),e(".ur-tabs").find("a").eq(0).trigger("click")}};n.init(),s.register()})},e(".ur-selected-inputs").ur_form_builder(),e(".ur-tabs").find("a").click(function(){e(".ur-tabs").find("a").removeClass("active"),e(this).addClass("active")}),e(".ur-tabs").tabs(),e(".ur-tabs").find("a").eq(0).trigger("click"),e(".ur-tabs").tabs({disabled:[1]}),e("body").on("click",".ur-selected-item",function(){e(".ur-registered-inputs").find("ul li.ur-no-pointer").removeClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active"),e(this).addClass("ur-item-active"),n(e(this)),o()}),e(".ur_save_form_action_button").on("click",function(){var n=r();if(!1!==n.validation_status){var s=a(),d=e("#ur_form_id").val();k(i.post_id)!==k(d)&&(d=0);var l=e("#ur-field-settings").serializeArray(),o={action:"user_registration_form_save_action",security:i.ur_form_save,data:{form_data:JSON.stringify(s),form_name:e("#ur-form-name").val(),form_id:d,form_setting_data:l}};e.ajax({url:i.ajax_url,data:o,type:"POST",beforeSend:function(){e(".ur_save_form_action_button").closest(".publishing-action").append('<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>'),e(".ur-notices").remove()},complete:function(r){if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").remove(),!0===r.responseJSON.success){t(w.i18n_form_successfully_saved,"success");var a=i.admin_url+r.responseJSON.data.post_id;window.location=a}else t(r.responseJSON.data.message)}})}else t(n.message)})})}(jQuery,window.user_registration_admin_data);
|
assets/js/frontend/user-registration.js
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
/* global grecaptcha */
|
4 |
(function ( $ ) {
|
5 |
var ursL10n = user_registration_params.ursL10n;
|
|
|
6 |
$.fn.ur_form_submission = function () {
|
7 |
// traverse all nodes
|
8 |
return this.each(function () {
|
@@ -18,24 +19,88 @@
|
|
18 |
var this_instance = this;
|
19 |
var form_data = [];
|
20 |
var frontend_field = $this.closest('.ur-frontend-form').find('.ur-form-grid').find('.ur-frontend-field');
|
|
|
21 |
$.each(frontend_field, function () {
|
22 |
-
var
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
$(document).trigger("user_registration_frontend_form_data_filter", [ form_data ]);
|
26 |
return form_data;
|
27 |
},
|
28 |
get_fieldwise_data: function ( field ) {
|
|
|
29 |
var formwise_data = {};
|
30 |
var node_type = field.get(0).tagName.toLowerCase();
|
31 |
var field_type = 'undefined' !== field.attr('type') ? field.attr('type') : 'null';
|
32 |
formwise_data.value = '';
|
|
|
33 |
switch ( node_type ) {
|
34 |
case 'input':
|
35 |
switch ( field_type ) {
|
36 |
case 'checkbox':
|
37 |
case 'radio':
|
38 |
-
formwise_data.value = field.prop('checked') ? field.val() :
|
39 |
break;
|
40 |
default:
|
41 |
formwise_data.value = field.val();
|
@@ -108,6 +173,7 @@
|
|
108 |
if ( $(this).closest('form').find('input[name="ur_frontend_form_nonce"]').length === 1 ) {
|
109 |
form_nonce = $(this).closest('form').find('input[name="ur_frontend_form_nonce"]').val();
|
110 |
}
|
|
|
111 |
var data = {
|
112 |
action: 'user_registration_user_form_submit',
|
113 |
security: user_registration_params.user_registration_form_data_save,
|
@@ -161,12 +227,20 @@
|
|
161 |
}
|
162 |
if ( type === 'message' ) {
|
163 |
|
164 |
-
message.append('<li>' + ursL10n.user_successfully_saved + '</li>');
|
165 |
-
$this[ 0 ].reset();
|
166 |
-
|
167 |
$('.user-registration-password-hint').remove();
|
168 |
$('.user-registration-password-strength').remove();
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
if ( user_registration_params.redirect_url !== '' ) {
|
171 |
window.setTimeout(function () {
|
172 |
window.location = user_registration_params.redirect_url;
|
3 |
/* global grecaptcha */
|
4 |
(function ( $ ) {
|
5 |
var ursL10n = user_registration_params.ursL10n;
|
6 |
+
|
7 |
$.fn.ur_form_submission = function () {
|
8 |
// traverse all nodes
|
9 |
return this.each(function () {
|
19 |
var this_instance = this;
|
20 |
var form_data = [];
|
21 |
var frontend_field = $this.closest('.ur-frontend-form').find('.ur-form-grid').find('.ur-frontend-field');
|
22 |
+
var multi_value_field = new Array();
|
23 |
$.each(frontend_field, function () {
|
24 |
+
var field_name = $(this).attr('name');
|
25 |
+
var single_field = $this.closest('.ur-frontend-form').find('.ur-form-grid').find('.ur-frontend-field[name="' + field_name + '"]');
|
26 |
+
if ( single_field.length < 2 ) {
|
27 |
+
var single_data = this_instance.get_fieldwise_data($(this));
|
28 |
+
form_data.push(single_data);
|
29 |
+
} else {
|
30 |
+
if ( $.inArray(field_name, multi_value_field) < 0 ) {
|
31 |
+
multi_value_field.push(field_name);
|
32 |
+
|
33 |
+
}
|
34 |
+
}
|
35 |
});
|
36 |
+
|
37 |
+
|
38 |
+
for ( var multi_start = 0; multi_start < multi_value_field.length; multi_start++ ) {
|
39 |
+
|
40 |
+
var field = $this.closest('.ur-frontend-form').find('.ur-form-grid').find('.ur-frontend-field[name="' + multi_value_field[ multi_start ] + '"]');
|
41 |
+
|
42 |
+
var node_type = field.get(0).tagName.toLowerCase();
|
43 |
+
var field_type = 'undefined' !== field.eq(0).attr('type') ? field.eq(0).attr('type') : 'null';
|
44 |
+
var field_value = new Array();
|
45 |
+
$.each(field, function () {
|
46 |
+
var this_field = $(this);
|
47 |
+
|
48 |
+
var this_field_value = '';
|
49 |
+
|
50 |
+
switch ( this_field.get(0).tagName.toLowerCase() ) {
|
51 |
+
|
52 |
+
case 'input':
|
53 |
+
switch ( field_type ) {
|
54 |
+
case 'checkbox':
|
55 |
+
case 'radio':
|
56 |
+
this_field_value = this_field.prop('checked') ? this_field.val() : '';
|
57 |
+
break;
|
58 |
+
default:
|
59 |
+
this_field_value = this_field.val();
|
60 |
+
|
61 |
+
}
|
62 |
+
break;
|
63 |
+
case 'select':
|
64 |
+
this_field_value = this_field.val();
|
65 |
+
break;
|
66 |
+
case 'textarea':
|
67 |
+
this_field_value = this_field.val();
|
68 |
+
break;
|
69 |
+
default:
|
70 |
+
}
|
71 |
+
if ( this_field_value !== '' ) {
|
72 |
+
field_value.push(this_field_value);
|
73 |
+
}
|
74 |
+
});
|
75 |
+
var field_value_json = JSON.stringify(field_value);
|
76 |
+
var single_form_field_name = multi_value_field[ multi_start ];
|
77 |
+
single_form_field_name = single_form_field_name.replace('[]', '');
|
78 |
+
var field_data = {
|
79 |
+
value: field_value_json,
|
80 |
+
field_type: field.eq(0).attr('id').replace('ur-input-type-', ''),
|
81 |
+
label: field.eq(0).attr('data-label'),
|
82 |
+
field_name: single_form_field_name,
|
83 |
+
};
|
84 |
+
|
85 |
+
form_data.push(field_data);
|
86 |
+
}
|
87 |
+
|
88 |
$(document).trigger("user_registration_frontend_form_data_filter", [ form_data ]);
|
89 |
return form_data;
|
90 |
},
|
91 |
get_fieldwise_data: function ( field ) {
|
92 |
+
|
93 |
var formwise_data = {};
|
94 |
var node_type = field.get(0).tagName.toLowerCase();
|
95 |
var field_type = 'undefined' !== field.attr('type') ? field.attr('type') : 'null';
|
96 |
formwise_data.value = '';
|
97 |
+
|
98 |
switch ( node_type ) {
|
99 |
case 'input':
|
100 |
switch ( field_type ) {
|
101 |
case 'checkbox':
|
102 |
case 'radio':
|
103 |
+
formwise_data.value = field.prop('checked') ? field.val() : '';
|
104 |
break;
|
105 |
default:
|
106 |
formwise_data.value = field.val();
|
173 |
if ( $(this).closest('form').find('input[name="ur_frontend_form_nonce"]').length === 1 ) {
|
174 |
form_nonce = $(this).closest('form').find('input[name="ur_frontend_form_nonce"]').val();
|
175 |
}
|
176 |
+
|
177 |
var data = {
|
178 |
action: 'user_registration_user_form_submit',
|
179 |
security: user_registration_params.user_registration_form_data_save,
|
227 |
}
|
228 |
if ( type === 'message' ) {
|
229 |
|
|
|
|
|
|
|
230 |
$('.user-registration-password-hint').remove();
|
231 |
$('.user-registration-password-strength').remove();
|
232 |
|
233 |
+
if ( user_registration_params.login_option == 'admin_approval' ) {
|
234 |
+
message.append('<li>' + ursL10n.user_under_approval + '</li>');
|
235 |
+
}
|
236 |
+
else if ( user_registration_params.login_option == 'email_confirmation' ) {
|
237 |
+
message.append('<li>' + ursL10n.user_email_pending + '</li>');
|
238 |
+
}
|
239 |
+
else {
|
240 |
+
message.append('<li>' + ursL10n.user_successfully_saved + '</li>');
|
241 |
+
}
|
242 |
+
$this[ 0 ].reset();
|
243 |
+
|
244 |
if ( user_registration_params.redirect_url !== '' ) {
|
245 |
window.setTimeout(function () {
|
246 |
window.location = user_registration_params.redirect_url;
|
assets/js/frontend/user-registration.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var t=e(this),a=[],n=user_registration_params.form_required_fields,
|
1 |
+
!function(e){var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var t=e(this),a=[],n=user_registration_params.form_required_fields,i={init:function(){},get_form_data:function(){var r=this,a=[],n=t.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field"),i=new Array;e.each(n,function(){var n=e(this).attr("name");if(t.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+n+'"]').length<2){var s=r.get_fieldwise_data(e(this));a.push(s)}else e.inArray(n,i)<0&&i.push(n)});for(var s=0;s<i.length;s++){var o=t.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+i[s]+'"]'),u=(o.get(0).tagName.toLowerCase(),"undefined"!==o.eq(0).attr("type")?o.eq(0).attr("type"):"null"),d=new Array;e.each(o,function(){var r=e(this),t="";switch(r.get(0).tagName.toLowerCase()){case"input":switch(u){case"checkbox":case"radio":t=r.prop("checked")?r.val():"";break;default:t=r.val()}break;case"select":case"textarea":t=r.val()}""!==t&&d.push(t)});var f=JSON.stringify(d),l=i[s];l=l.replace("[]","");var c={value:f,field_type:o.eq(0).attr("id").replace("ur-input-type-",""),label:o.eq(0).attr("data-label"),field_name:l};a.push(c)}return e(document).trigger("user_registration_frontend_form_data_filter",[a]),a},get_fieldwise_data:function(r){var t={},i=r.get(0).tagName.toLowerCase(),s="undefined"!==r.attr("type")?r.attr("type"):"null";switch(t.value="",i){case"input":switch(s){case"checkbox":case"radio":t.value=r.prop("checked")?r.val():"";break;default:t.value=r.val()}break;case"select":case"textarea":t.value=r.val()}return e(document).trigger("user_registration_frontend_form_data_render",[r,t]),t.field_type=r.attr("id").replace("ur-input-type-",""),r.attr("data-label")!==undefined?t.label=r.attr("data-label"):"label"===r.prev().get(0).tagName.toLowerCase()?t.label=r.prev().text():t.label=t.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?t.field_name=r.attr("name"):t.field_name="",e.inArray(t.field_name,e.trim(n))>=0&&a.push(t.field_name),t},show_message:function(r,t,a){a.find(".ur-message").remove();var n=e('<div class="ur-message user-registration-'+t+'" id="ur-submit-message-node"/>');n.append(r),a.append(n)}},s={init:function(){this.form_submit_event()},form_submit_event:function(){t.on("submit",function(a){if(t.find(".user-registration-password-strength").length>0){var n=t.find(".user-registration-password-strength").attr("data-current-strength"),s=t.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(n,0)<parseInt(s,0))return!1}a.preventDefault();var o;try{o=JSON.stringify(i.get_form_data())}catch(l){o=""}var u=0;1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(u=e(this).closest("form").find('input[name="ur-user-form-id"]').val());var d="0";1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(d=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var f={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:o,form_id:u,ur_frontend_form_nonce:d};if(e(document).trigger("user_registration_frontend_before_form_submit",[f,t]),"undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===t.find("#g-recaptcha-response").val().length)return void i.show_message("<p>"+r.captcha_error+"</p>","error",t);grecaptcha.reset()}t.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:f,type:"POST",async:!0,beforeSend:function(){},complete:function(a){t.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var n=e('<ul class=""/>'),s="error";try{var o=e.parseJSON(a.responseText);"undefined"!=typeof o.success&&!0===o.success&&(s="message"),"object"==typeof o.data.message&&e.each(o.data.message,function(){e("<li/>").text(this).appendTo(n)}),"message"===s&&(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>"):n.append("<li>"+r.user_successfully_saved+"</li>"),t[0].reset(),""!==user_registration_params.redirect_url?window.setTimeout(function(){window.location=user_registration_params.redirect_url},1e3):"undefined"!=typeof o.data.auto_login&&o.data.auto_login&&location.reload())}catch(u){n.append("<li>"+u.message+"</li>")}i.show_message(n,s,t),e(document).trigger("user_registration_frontend_after_ajax_complete",[a.responseText,s,t])}})})}};i.init(),s.init()})},e(function(){e(".ur-frontend-form form.register").ur_form_submission();var r=e('.ur-frontend-form input[type="date"]');r.length>0&&r.addClass("ur-date").attr("type","text").attr("placeholder","yy-mm-dd").datepicker({dateFormat:"yy-mm-dd",changeMonth:!0,changeYear:!0})})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){google_recaptcha_user_registration=grecaptcha.render("node_recaptcha",{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-field-settings.php
CHANGED
@@ -88,6 +88,7 @@ abstract class UR_Field_Settings {
|
|
88 |
$this->fields_html .= ' required ';
|
89 |
|
90 |
}
|
|
|
91 |
$field_options = isset( $field['options'] ) ? $field['options'] : array();
|
92 |
|
93 |
$this->fields_html .= '>';
|
88 |
$this->fields_html .= ' required ';
|
89 |
|
90 |
}
|
91 |
+
|
92 |
$field_options = isset( $field['options'] ) ? $field['options'] : array();
|
93 |
|
94 |
$this->fields_html .= '>';
|
includes/abstracts/abstract-ur-form-field.php
CHANGED
@@ -137,6 +137,19 @@ abstract class UR_Form_Field {
|
|
137 |
}
|
138 |
}
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
$filter_data = array(
|
141 |
'form_data' => $form_data,
|
142 |
'data' => $data
|
137 |
}
|
138 |
}
|
139 |
|
140 |
+
if( 'checkbox' == $field_key) {
|
141 |
+
$choices = isset( $data['advance_setting']->choices ) ? explode( ',', $data['advance_setting']->choices ) : array();
|
142 |
+
|
143 |
+
if ( is_array( $choices ) ) {
|
144 |
+
|
145 |
+
foreach ( $choices as $index_data => $choice ) {
|
146 |
+
|
147 |
+
$form_data['choices'][ $index_data . '__' . $choice ] = $choice;
|
148 |
+
|
149 |
+
}
|
150 |
+
}
|
151 |
+
}
|
152 |
+
|
153 |
$filter_data = array(
|
154 |
'form_data' => $form_data,
|
155 |
'data' => $data
|
includes/admin/class-ur-admin-profile.php
CHANGED
@@ -67,7 +67,6 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
67 |
|
68 |
$show_fields = $this->get_customer_meta_fields( $user->ID );
|
69 |
|
70 |
-
|
71 |
foreach ( $show_fields as $fieldset_key => $fieldset ) :
|
72 |
?>
|
73 |
<h2><?php echo $fieldset['title']; ?></h2>
|
@@ -117,11 +116,8 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
117 |
class="<?php echo esc_attr( $field['class'] ); ?>" style="width: 25em;">
|
118 |
<option><?php echo __( 'Select', 'user-registration' ); ?></option>
|
119 |
<?php
|
120 |
-
$selected
|
121 |
-
foreach ( $field['options'] as $option_key => $option_value ) :
|
122 |
-
$option_key_array = explode( '__', $option_key );
|
123 |
-
$option_key = isset( $option_key_array[0] ) ? $option_key_array[0] : $option_key;
|
124 |
-
?>
|
125 |
<option data-val="<?php echo $selected; ?>"
|
126 |
value="<?php echo esc_attr( $option_key ); ?>" <?php selected( $selected, $option_key, true ); ?>><?php echo esc_attr( $option_value ); ?></option>
|
127 |
<?php endforeach; ?>
|
@@ -138,9 +134,36 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
138 |
<?php endforeach; ?>
|
139 |
</select>
|
140 |
<?php elseif ( ! empty( $field['type'] ) && 'checkbox' === $field['type'] ) : ?>
|
141 |
-
|
142 |
-
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
<?php elseif ( ! empty( $field['type'] ) && 'button' === $field['type'] ) : ?>
|
145 |
<button id="<?php echo esc_attr( $key ); ?>"
|
146 |
class="button <?php echo esc_attr( $field['class'] ); ?>"><?php echo esc_html( $field['text'] ); ?></button>
|
@@ -210,6 +233,21 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
210 |
echo __( 'Attachment not found.', 'user-registration' );
|
211 |
}
|
212 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
default:
|
215 |
$type = 'text';
|
@@ -237,9 +275,13 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
237 |
foreach ( $save_fields as $fieldset ) {
|
238 |
|
239 |
foreach ( $fieldset['fields'] as $key => $field ) {
|
240 |
-
|
241 |
if ( isset( $field['type'] ) && 'checkbox' === $field['type'] ) {
|
242 |
-
|
|
|
|
|
|
|
|
|
|
|
243 |
} elseif ( isset( $_POST[ $key ] ) ) {
|
244 |
update_user_meta( $user_id, $key, sanitize_text_field( $_POST[ $key ] ) );
|
245 |
}
|
@@ -413,8 +455,13 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
413 |
case 'mailchimp':
|
414 |
case 'checkbox':
|
415 |
|
416 |
-
$
|
|
|
|
|
|
|
|
|
417 |
|
|
|
418 |
$fields[ $field_index ]['class'] = '';
|
419 |
|
420 |
break;
|
67 |
|
68 |
$show_fields = $this->get_customer_meta_fields( $user->ID );
|
69 |
|
|
|
70 |
foreach ( $show_fields as $fieldset_key => $fieldset ) :
|
71 |
?>
|
72 |
<h2><?php echo $fieldset['title']; ?></h2>
|
116 |
class="<?php echo esc_attr( $field['class'] ); ?>" style="width: 25em;">
|
117 |
<option><?php echo __( 'Select', 'user-registration' ); ?></option>
|
118 |
<?php
|
119 |
+
$selected = esc_attr( get_user_meta( $user->ID, $key, true ) );
|
120 |
+
foreach ( $field['options'] as $option_key => $option_value ) : ?>
|
|
|
|
|
|
|
121 |
<option data-val="<?php echo $selected; ?>"
|
122 |
value="<?php echo esc_attr( $option_key ); ?>" <?php selected( $selected, $option_key, true ); ?>><?php echo esc_attr( $option_value ); ?></option>
|
123 |
<?php endforeach; ?>
|
134 |
<?php endforeach; ?>
|
135 |
</select>
|
136 |
<?php elseif ( ! empty( $field['type'] ) && 'checkbox' === $field['type'] ) : ?>
|
137 |
+
<?php
|
138 |
+
|
139 |
+
$json = get_user_meta( $user->ID, $key, true );
|
140 |
+
|
141 |
+
$array = (array) json_decode( $json, true );
|
142 |
+
if ( count( $field['choices'] ) > 1 && is_array( $field['choices'] ) ) {
|
143 |
+
foreach ( $field['choices'] as $choice ) {
|
144 |
+
?><label><input type="checkbox"
|
145 |
+
name="<?php echo esc_attr( $key ); ?>[]"
|
146 |
+
id="<?php echo esc_attr( $key ); ?>"
|
147 |
+
value="<?php echo esc_attr( trim( $choice ) ); ?>"
|
148 |
+
class="<?php echo esc_attr( $field['class'] ); ?>" <?php if ( in_array( trim( $choice ), $array ) ) {
|
149 |
+
echo 'checked="checked"';
|
150 |
+
} ?> ><?php echo $choice; ?></label><br/>
|
151 |
+
<?php
|
152 |
+
}
|
153 |
+
} else {
|
154 |
+
?>
|
155 |
+
<input type="checkbox" name="<?php echo esc_attr( $key ); ?>"
|
156 |
+
id="<?php echo esc_attr( $key ); ?>" value="1"
|
157 |
+
class="<?php echo esc_attr( $field['class'] ); ?>" <?php if ( $json == '1' ) {
|
158 |
+
echo 'checked="checked"';
|
159 |
+
} ?> >
|
160 |
+
<?php
|
161 |
+
}
|
162 |
+
|
163 |
+
|
164 |
+
?>
|
165 |
+
|
166 |
+
|
167 |
<?php elseif ( ! empty( $field['type'] ) && 'button' === $field['type'] ) : ?>
|
168 |
<button id="<?php echo esc_attr( $key ); ?>"
|
169 |
class="button <?php echo esc_attr( $field['class'] ); ?>"><?php echo esc_html( $field['text'] ); ?></button>
|
233 |
echo __( 'Attachment not found.', 'user-registration' );
|
234 |
}
|
235 |
break;
|
236 |
+
case "checkbox":
|
237 |
+
|
238 |
+
$checkbox_array = json_decode( $value, true );
|
239 |
+
if ( is_array( $checkbox_array ) && ! empty( $checkbox_array ) ) {
|
240 |
+
|
241 |
+
foreach ( $checkbox_array as $check ) {
|
242 |
+
|
243 |
+
echo '<label><input checked type="checkbox" disabled="disabled"/>' . esc_html($check) . '</label><br/>';
|
244 |
+
}
|
245 |
+
} else {
|
246 |
+
echo '<label><input checked type="checkbox" disabled="disabled"/>' . esc_html($value) . '</label>';
|
247 |
+
|
248 |
+
}
|
249 |
+
|
250 |
+
break;
|
251 |
|
252 |
default:
|
253 |
$type = 'text';
|
275 |
foreach ( $save_fields as $fieldset ) {
|
276 |
|
277 |
foreach ( $fieldset['fields'] as $key => $field ) {
|
|
|
278 |
if ( isset( $field['type'] ) && 'checkbox' === $field['type'] ) {
|
279 |
+
if ( isset( $_POST[ $key ] ) && is_array( $_POST[ $key ] ) ) {
|
280 |
+
$values = json_encode( $_POST[ $key ] );
|
281 |
+
update_user_meta( $user_id, $key, $values );
|
282 |
+
} else {
|
283 |
+
update_user_meta( $user_id, $key, isset( $_POST[ $key ] ) );
|
284 |
+
}
|
285 |
} elseif ( isset( $_POST[ $key ] ) ) {
|
286 |
update_user_meta( $user_id, $key, sanitize_text_field( $_POST[ $key ] ) );
|
287 |
}
|
455 |
case 'mailchimp':
|
456 |
case 'checkbox':
|
457 |
|
458 |
+
$choices_data = isset( $field->advance_setting->choices ) ? ( $field->advance_setting->choices ) : '';
|
459 |
+
|
460 |
+
$choices_data = explode( ",", $choices_data );
|
461 |
+
|
462 |
+
$fields[ $field_index ]['choices'] = $choices_data;
|
463 |
|
464 |
+
$fields[ $field_index ]['type'] = 'checkbox';
|
465 |
$fields[ $field_index ]['class'] = '';
|
466 |
|
467 |
break;
|
includes/admin/class-ur-admin-user-manager.php
CHANGED
@@ -87,6 +87,10 @@ class UR_Admin_User_Manager {
|
|
87 |
|
88 |
$this->user_status = $status;
|
89 |
|
|
|
|
|
|
|
|
|
90 |
return update_user_meta( $this->user->ID, 'ur_user_status', $status );
|
91 |
}
|
92 |
|
87 |
|
88 |
$this->user_status = $status;
|
89 |
|
90 |
+
if( is_super_admin( $this->user->ID ) ){
|
91 |
+
return;
|
92 |
+
}
|
93 |
+
|
94 |
return update_user_meta( $this->user->ID, 'ur_user_status', $status );
|
95 |
}
|
96 |
|
includes/admin/class-ur-admin.php
CHANGED
@@ -116,7 +116,7 @@ class UR_Admin {
|
|
116 |
/* translators: 1: WooCommerce 2:: five stars */
|
117 |
__( 'If you like %1$s please leave us a %2$s rating. A huge thanks in advance!', 'user-registration' ),
|
118 |
sprintf( '<strong>%s</strong>', esc_html__( 'User Registration', 'user-registration' ) ),
|
119 |
-
'<a href="https://wordpress.org/support/plugin/user-registration/reviews?rate=5#new-post" target="_blank" class="ur-rating-link" data-rated="' . esc_attr__( '
|
120 |
);
|
121 |
ur_enqueue_js( "
|
122 |
jQuery( 'a.ur-rating-link' ).click( function() {
|
116 |
/* translators: 1: WooCommerce 2:: five stars */
|
117 |
__( 'If you like %1$s please leave us a %2$s rating. A huge thanks in advance!', 'user-registration' ),
|
118 |
sprintf( '<strong>%s</strong>', esc_html__( 'User Registration', 'user-registration' ) ),
|
119 |
+
'<a href="https://wordpress.org/support/plugin/user-registration/reviews?rate=5#new-post" target="_blank" class="ur-rating-link" data-rated="' . esc_attr__( 'Thank You!', 'user-registration' ) . '">★★★★★</a>'
|
120 |
);
|
121 |
ur_enqueue_js( "
|
122 |
jQuery( 'a.ur-rating-link' ).click( function() {
|
includes/admin/settings/class-ur-settings-general.php
CHANGED
@@ -137,13 +137,22 @@ if ( ! class_exists( 'UR_Settings_General' ) ) :
|
|
137 |
|
138 |
array(
|
139 |
'title' => __( 'Enable strong password', 'user-registration' ),
|
140 |
-
'desc' => __( '
|
141 |
'id' => 'user_registration_general_setting_enable_strong_password',
|
142 |
'default' => 'yes',
|
143 |
'type' => 'checkbox',
|
144 |
'autoload' => false,
|
145 |
),
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
array(
|
148 |
'title' => __( 'Form submit button label', 'user-registration' ),
|
149 |
'desc' => __( 'This option let you change the submit button label.', 'user-registration' ),
|
137 |
|
138 |
array(
|
139 |
'title' => __( 'Enable strong password', 'user-registration' ),
|
140 |
+
'desc' => __( 'Check to use strong password on user registration form.', 'user-registration' ),
|
141 |
'id' => 'user_registration_general_setting_enable_strong_password',
|
142 |
'default' => 'yes',
|
143 |
'type' => 'checkbox',
|
144 |
'autoload' => false,
|
145 |
),
|
146 |
|
147 |
+
array(
|
148 |
+
'title' => __( 'Disable emails', 'user-registration' ),
|
149 |
+
'desc' => __( 'Disable emails sent after registration.', 'user-registration' ),
|
150 |
+
'id' => 'user_registration_general_setting_disable_email',
|
151 |
+
'default' => 'no',
|
152 |
+
'type' => 'checkbox',
|
153 |
+
'autoload' => false,
|
154 |
+
),
|
155 |
+
|
156 |
array(
|
157 |
'title' => __( 'Form submit button label', 'user-registration' ),
|
158 |
'desc' => __( 'This option let you change the submit button label.', 'user-registration' ),
|
includes/class-ur-email-confirmation.php
ADDED
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* User Registration Email Confirmation.
|
4 |
+
*
|
5 |
+
* @class UR_Email_Confirmation
|
6 |
+
* @version 1.0.0
|
7 |
+
* @package UserRegistration/Classes
|
8 |
+
* @category Class
|
9 |
+
* @author WPEverest
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
exit;
|
14 |
+
}
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class UR_Email_Confirmation
|
18 |
+
*/
|
19 |
+
|
20 |
+
class UR_Email_Confirmation {
|
21 |
+
|
22 |
+
public function __construct() {
|
23 |
+
|
24 |
+
if('email_confirmation' !== get_option('user_registration_general_setting_login_options')){
|
25 |
+
return;
|
26 |
+
}
|
27 |
+
|
28 |
+
add_filter( 'wp_authenticate_user', array( $this, 'check_email_status' ),10,2);
|
29 |
+
add_filter( 'allow_password_reset', array( $this, 'allow_password_reset' ), 10, 2 );
|
30 |
+
add_action( 'user_register', array( $this, 'set_email_status' ) );
|
31 |
+
add_action( 'wp_authenticate', array($this, 'check_token_before_authenticate'), 30, 2);
|
32 |
+
}
|
33 |
+
|
34 |
+
public function ur_enqueue_script()
|
35 |
+
{
|
36 |
+
wp_register_style( 'user-registration-css', UR()->plugin_url().'/assets/css/user-registration.css', array(), UR_VERSION );
|
37 |
+
wp_enqueue_style('user-registration-css');
|
38 |
+
}
|
39 |
+
|
40 |
+
public function custom_registration_message()
|
41 |
+
{
|
42 |
+
$message = ur_print_notice(__('User successfully registered. Login to continue.','user-registration'));
|
43 |
+
|
44 |
+
return $message;
|
45 |
+
}
|
46 |
+
|
47 |
+
public function check_token_before_authenticate()
|
48 |
+
{
|
49 |
+
if(!isset($_GET['ur_token'])){
|
50 |
+
return;
|
51 |
+
}
|
52 |
+
else
|
53 |
+
{
|
54 |
+
$output = str_split($_GET['ur_token'], 50);
|
55 |
+
|
56 |
+
$user_id = $this->my_simple_crypt($output[1],'d');
|
57 |
+
|
58 |
+
$user_token = get_user_meta($user_id,'ur_confirm_email_token',true);
|
59 |
+
|
60 |
+
if($user_token == $_GET['ur_token'])
|
61 |
+
{
|
62 |
+
update_user_meta($user_id,'ur_confirm_email',1);
|
63 |
+
add_action( 'login_enqueue_scripts', array($this, 'ur_enqueue_script'), 1 );
|
64 |
+
add_filter('login_message', array($this,'custom_registration_message'));
|
65 |
+
|
66 |
+
}
|
67 |
+
else
|
68 |
+
{
|
69 |
+
$message = '<strong>' . __( 'ERROR:', 'user-registration' ) . '</strong> ' . __( 'Token Mismatch!', 'user-registration' );
|
70 |
+
|
71 |
+
return new WP_Error( 'user_email_not_verified', $message );
|
72 |
+
}
|
73 |
+
}
|
74 |
+
|
75 |
+
do_action('user_registration_check_token_complete');
|
76 |
+
|
77 |
+
}
|
78 |
+
|
79 |
+
public function my_simple_crypt( $string, $action = 'e' ) {
|
80 |
+
|
81 |
+
$secret_key = 'my_simple_secret_key';
|
82 |
+
$secret_iv = 'my_simple_secret_iv';
|
83 |
+
|
84 |
+
$output = false;
|
85 |
+
$encrypt_method = "AES-256-CBC";
|
86 |
+
$key = hash( 'sha256', $secret_key );
|
87 |
+
$iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );
|
88 |
+
|
89 |
+
if( $action == 'e' ) {
|
90 |
+
$output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );
|
91 |
+
}
|
92 |
+
else if( $action == 'd' ){
|
93 |
+
$output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );
|
94 |
+
}
|
95 |
+
|
96 |
+
return $output;
|
97 |
+
}
|
98 |
+
|
99 |
+
public function getToken($user_id)
|
100 |
+
{
|
101 |
+
$length = 50;
|
102 |
+
$token = "";
|
103 |
+
$codeAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
104 |
+
$codeAlphabet.= "abcdefghijklmnopqrstuvwxyz";
|
105 |
+
$codeAlphabet.= "0123456789";
|
106 |
+
$max = strlen($codeAlphabet);
|
107 |
+
|
108 |
+
for ($i=0; $i < $length; $i++) {
|
109 |
+
$token .= $codeAlphabet[random_int(0, $max-1)];
|
110 |
+
}
|
111 |
+
|
112 |
+
$token .=$this->my_simple_crypt($user_id,'e');
|
113 |
+
|
114 |
+
return $token;
|
115 |
+
|
116 |
+
do_action('user_registration_get_token');
|
117 |
+
}
|
118 |
+
|
119 |
+
public function set_email_status( $user_id ) {
|
120 |
+
|
121 |
+
if('email_confirmation' === get_option('user_registration_general_setting_login_options'))
|
122 |
+
{
|
123 |
+
$token = $this->getToken($user_id);
|
124 |
+
update_user_meta( $user_id, 'ur_confirm_email', 0);
|
125 |
+
update_user_meta( $user_id, 'ur_confirm_email_token', $token);
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
public function check_email_status( WP_User $user )
|
130 |
+
{
|
131 |
+
$email_status = get_user_meta($user->ID, 'ur_confirm_email', true);
|
132 |
+
|
133 |
+
do_action( 'ur_user_before_check_email_status_on_login', $email_status, $user );
|
134 |
+
|
135 |
+
if( $email_status === '0' )
|
136 |
+
{
|
137 |
+
$message = '<strong>' . __( 'ERROR:', 'user-registration' ) . '</strong> ' . __( 'Your account is still pending approval. Verifiy your email by clicking on the link sent to your email.', 'user-registration' );
|
138 |
+
|
139 |
+
return new WP_Error( 'user_email_not_verified', $message );
|
140 |
+
}
|
141 |
+
|
142 |
+
return $user;
|
143 |
+
}
|
144 |
+
|
145 |
+
/**
|
146 |
+
* If the user is not approved, disalow to reset the password fom Lost Passwod form and display an error message
|
147 |
+
*
|
148 |
+
* @param $result
|
149 |
+
* @param $user_id
|
150 |
+
*
|
151 |
+
* @return \WP_Error
|
152 |
+
*/
|
153 |
+
|
154 |
+
public function allow_password_reset( $result, $user_id ) {
|
155 |
+
|
156 |
+
$email_status = get_user_meta($user_id, 'ur_confirm_email', true);
|
157 |
+
|
158 |
+
if ( $email_status === '0' ) {
|
159 |
+
|
160 |
+
$error_message = 'Email not verified!';
|
161 |
+
$result = new WP_Error( 'user_email_not_verified', $error_message );
|
162 |
+
}
|
163 |
+
|
164 |
+
return $result;
|
165 |
+
}
|
166 |
+
}
|
167 |
+
|
168 |
+
new UR_Email_Confirmation();
|
includes/class-ur-emailer.php
CHANGED
@@ -26,6 +26,10 @@ class UR_Emailer {
|
|
26 |
*/
|
27 |
public static function init() {
|
28 |
|
|
|
|
|
|
|
|
|
29 |
add_action( 'user_registration_after_register_user_action', array(
|
30 |
__CLASS__,
|
31 |
'ur_after_register_mail'
|
@@ -60,15 +64,39 @@ class UR_Emailer {
|
|
60 |
/**
|
61 |
* @param $email
|
62 |
*/
|
|
|
63 |
private static function send_mail_to_user( $email, $username, $user_id ) {
|
64 |
|
65 |
$status = ur_get_user_approval_status( $user_id );
|
66 |
|
|
|
|
|
|
|
|
|
67 |
$blog_info = get_bloginfo();
|
68 |
|
69 |
$headers = array( 'Content-Type: text/html; charset=UTF-8' );
|
70 |
|
71 |
-
if
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
$subject = __( sprintf( 'Thank you for Registration on %s', $blog_info ), 'user-registration' );
|
74 |
|
26 |
*/
|
27 |
public static function init() {
|
28 |
|
29 |
+
if('yes' == get_option('user_registration_general_setting_disable_email')){
|
30 |
+
return;
|
31 |
+
}
|
32 |
+
|
33 |
add_action( 'user_registration_after_register_user_action', array(
|
34 |
__CLASS__,
|
35 |
'ur_after_register_mail'
|
64 |
/**
|
65 |
* @param $email
|
66 |
*/
|
67 |
+
|
68 |
private static function send_mail_to_user( $email, $username, $user_id ) {
|
69 |
|
70 |
$status = ur_get_user_approval_status( $user_id );
|
71 |
|
72 |
+
$email_status = get_user_meta($user_id, 'ur_confirm_email', true);
|
73 |
+
|
74 |
+
$email_token = get_user_meta($user_id, 'ur_confirm_email_token', true);
|
75 |
+
|
76 |
$blog_info = get_bloginfo();
|
77 |
|
78 |
$headers = array( 'Content-Type: text/html; charset=UTF-8' );
|
79 |
|
80 |
+
if( $email_status === '0' ) {
|
81 |
+
|
82 |
+
$subject = __( sprintf( 'Please confirm your registration on %s', $blog_info ), 'user-registration' );
|
83 |
+
|
84 |
+
$message = apply_filters( 'user_registration_user_email_message', __( sprintf(
|
85 |
+
|
86 |
+
'Hi %s,
|
87 |
+
<br/>
|
88 |
+
<br/>
|
89 |
+
You have registered on <a href="%s">%s</a>.
|
90 |
+
<br/>
|
91 |
+
<br/>
|
92 |
+
Please click on this verification link '.get_home_url().'/wp-login.php/?ur_token='. $email_token .' to confirm registration.
|
93 |
+
<br/>
|
94 |
+
<br/>
|
95 |
+
Thank You!',
|
96 |
+
$username, get_home_url(), $blog_info, get_home_url(), $blog_info ), 'user-registration' ) );
|
97 |
+
}
|
98 |
+
|
99 |
+
else if ( $status == 0 ) {
|
100 |
|
101 |
$subject = __( sprintf( 'Thank you for Registration on %s', $blog_info ), 'user-registration' );
|
102 |
|
includes/class-ur-form-handler.php
CHANGED
@@ -79,7 +79,14 @@ class UR_Form_Handler {
|
|
79 |
// Get Value.
|
80 |
switch ( $field['type'] ) {
|
81 |
case 'checkbox' :
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
$_POST[ $key ] = (int) isset( $_POST[ $key ] );
|
|
|
83 |
break;
|
84 |
default :
|
85 |
$_POST[ $key ] = isset( $_POST[ $key ] ) ? ur_clean( $_POST[ $key ] ) : '';
|
@@ -274,6 +281,7 @@ class UR_Form_Handler {
|
|
274 |
* Process the login form.
|
275 |
*/
|
276 |
public static function process_login() {
|
|
|
277 |
$nonce_value = isset( $_POST['_wpnonce'] ) ? $_POST['_wpnonce'] : '';
|
278 |
$nonce_value = isset( $_POST['user-registration-login-nonce'] ) ? $_POST['user-registration-login-nonce'] : $nonce_value;
|
279 |
|
79 |
// Get Value.
|
80 |
switch ( $field['type'] ) {
|
81 |
case 'checkbox' :
|
82 |
+
|
83 |
+
if(isset($_POST[$key]) && is_array($_POST[$key])){
|
84 |
+
$_POST[$key] = json_encode($_POST[$key]);
|
85 |
+
}
|
86 |
+
else{
|
87 |
+
|
88 |
$_POST[ $key ] = (int) isset( $_POST[ $key ] );
|
89 |
+
}
|
90 |
break;
|
91 |
default :
|
92 |
$_POST[ $key ] = isset( $_POST[ $key ] ) ? ur_clean( $_POST[ $key ] ) : '';
|
281 |
* Process the login form.
|
282 |
*/
|
283 |
public static function process_login() {
|
284 |
+
|
285 |
$nonce_value = isset( $_POST['_wpnonce'] ) ? $_POST['_wpnonce'] : '';
|
286 |
$nonce_value = isset( $_POST['user-registration-login-nonce'] ) ? $_POST['user-registration-login-nonce'] : $nonce_value;
|
287 |
|
includes/class-ur-frontend-scripts.php
CHANGED
@@ -288,16 +288,18 @@ class UR_Frontend_Scripts {
|
|
288 |
switch ( $handle ) {
|
289 |
case 'user-registration' :
|
290 |
|
291 |
-
|
292 |
return array(
|
293 |
|
294 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
295 |
'user_registration_form_data_save' => wp_create_nonce( 'user_registration_form_data_save_nonce' ),
|
296 |
'form_required_fields' => ur_get_required_fields(),
|
297 |
'redirect_url' => get_option('user_registration_general_setting_redirect_options'),
|
|
|
298 |
|
299 |
'ursL10n' => array(
|
300 |
'user_successfully_saved' => __( 'User successfully registered.', 'user-registration' ),
|
|
|
|
|
301 |
'captcha_error' => __( 'Captcha code error, please try again.', 'user-registration' ),
|
302 |
|
303 |
),
|
288 |
switch ( $handle ) {
|
289 |
case 'user-registration' :
|
290 |
|
|
|
291 |
return array(
|
292 |
|
293 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
294 |
'user_registration_form_data_save' => wp_create_nonce( 'user_registration_form_data_save_nonce' ),
|
295 |
'form_required_fields' => ur_get_required_fields(),
|
296 |
'redirect_url' => get_option('user_registration_general_setting_redirect_options'),
|
297 |
+
'login_option' => get_option('user_registration_general_setting_login_options'),
|
298 |
|
299 |
'ursL10n' => array(
|
300 |
'user_successfully_saved' => __( 'User successfully registered.', 'user-registration' ),
|
301 |
+
'user_under_approval' => __( 'User registered. Wait until admin approves your registration.', 'user-registration' ),
|
302 |
+
'user_email_pending' => __( 'User registered. Verify your email by clicking on the link sent to your email.', 'user-registration' ),
|
303 |
'captcha_error' => __( 'Captcha code error, please try again.', 'user-registration' ),
|
304 |
|
305 |
),
|
includes/class-ur-shortcodes.php
CHANGED
@@ -133,7 +133,11 @@ class UR_Shortcodes {
|
|
133 |
'id' => '',
|
134 |
), $atts, 'user_registration_form' );
|
135 |
|
|
|
|
|
136 |
self::render_form( $atts['id'] );
|
|
|
|
|
137 |
}
|
138 |
|
139 |
/**
|
@@ -206,6 +210,7 @@ class UR_Shortcodes {
|
|
206 |
$recaptcha_node = '<div id="node_recaptcha" class="g-recaptcha" style="margin-left:11px;transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"></div>';
|
207 |
|
208 |
}
|
|
|
209 |
ur_get_template( 'form-registration.php', array(
|
210 |
'form_data_array' => $form_data_array,
|
211 |
'is_field_exists' => $is_field_exists,
|
133 |
'id' => '',
|
134 |
), $atts, 'user_registration_form' );
|
135 |
|
136 |
+
ob_start();
|
137 |
+
|
138 |
self::render_form( $atts['id'] );
|
139 |
+
|
140 |
+
return ob_get_clean();
|
141 |
}
|
142 |
|
143 |
/**
|
210 |
$recaptcha_node = '<div id="node_recaptcha" class="g-recaptcha" style="margin-left:11px;transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"></div>';
|
211 |
|
212 |
}
|
213 |
+
|
214 |
ur_get_template( 'form-registration.php', array(
|
215 |
'form_data_array' => $form_data_array,
|
216 |
'is_field_exists' => $is_field_exists,
|
includes/class-ur-user-approval.php
CHANGED
@@ -19,7 +19,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
19 |
*/
|
20 |
class UR_User_Approval {
|
21 |
|
22 |
-
|
23 |
/**
|
24 |
* UR_User_Approval constructor.
|
25 |
*/
|
@@ -142,6 +141,7 @@ class UR_User_Approval {
|
|
142 |
* @param $user_id
|
143 |
*/
|
144 |
public function set_user_status( $user_id ) {
|
|
|
145 |
$status = UR_Admin_User_Manager::PENDING;
|
146 |
|
147 |
// If the user is created by admin in the backend, than automatically approve him
|
@@ -190,7 +190,6 @@ class UR_User_Approval {
|
|
190 |
return new WP_Error( 'denied_access', $message );
|
191 |
break;
|
192 |
}
|
193 |
-
|
194 |
}
|
195 |
|
196 |
/**
|
19 |
*/
|
20 |
class UR_User_Approval {
|
21 |
|
|
|
22 |
/**
|
23 |
* UR_User_Approval constructor.
|
24 |
*/
|
141 |
* @param $user_id
|
142 |
*/
|
143 |
public function set_user_status( $user_id ) {
|
144 |
+
|
145 |
$status = UR_Admin_User_Manager::PENDING;
|
146 |
|
147 |
// If the user is created by admin in the backend, than automatically approve him
|
190 |
return new WP_Error( 'denied_access', $message );
|
191 |
break;
|
192 |
}
|
|
|
193 |
}
|
194 |
|
195 |
/**
|
includes/form/class-ur-checkbox.php
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UserRegistration Admin.
|
4 |
+
*
|
5 |
+
* @class UR_Admin
|
6 |
+
* @version 1.0.0
|
7 |
+
* @package UserRegistration/Form
|
8 |
+
* @category Admin
|
9 |
+
* @author WPEverest
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
exit;
|
14 |
+
}
|
15 |
+
|
16 |
+
/**
|
17 |
+
* UR_Admin Class
|
18 |
+
*/
|
19 |
+
class UR_Checkbox extends UR_Form_Field {
|
20 |
+
|
21 |
+
private static $_instance;
|
22 |
+
|
23 |
+
public static function get_instance() {
|
24 |
+
// If the single instance hasn't been set, set it now.
|
25 |
+
if ( is_null( self::$_instance ) ) {
|
26 |
+
self::$_instance = new self();
|
27 |
+
}
|
28 |
+
|
29 |
+
return self::$_instance;
|
30 |
+
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Hook in tabs.
|
34 |
+
*/
|
35 |
+
public function __construct() {
|
36 |
+
|
37 |
+
$this->id = 'user_registration_checkbox';
|
38 |
+
|
39 |
+
$this->form_id = 1;
|
40 |
+
|
41 |
+
$this->registered_fields_config = array(
|
42 |
+
|
43 |
+
'label' => __( 'Checkbox', 'user-registration' ),
|
44 |
+
|
45 |
+
'icon' => 'dashicons dashicons-yes',
|
46 |
+
);
|
47 |
+
|
48 |
+
$this->field_defaults = array(
|
49 |
+
|
50 |
+
'default_label' => __( 'Checkbox', 'user-registration' ),
|
51 |
+
|
52 |
+
'default_field_name' => 'check_box_' . ur_get_random_number(),
|
53 |
+
);
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* @return string
|
58 |
+
*/
|
59 |
+
public function get_registered_admin_fields() {
|
60 |
+
|
61 |
+
return '<li id="' . $this->id . '_list "
|
62 |
+
|
63 |
+
class="ur-registered-item draggable"
|
64 |
+
|
65 |
+
data-field-id="' . $this->id . '"><span class="' . $this->registered_fields_config['icon'] . '"></span>' . $this->registered_fields_config['label'] . '</li>';
|
66 |
+
}
|
67 |
+
|
68 |
+
|
69 |
+
/**
|
70 |
+
* @param $single_form_field
|
71 |
+
* @param $form_data
|
72 |
+
* @param $filter_hook
|
73 |
+
* @param $form_id
|
74 |
+
*/
|
75 |
+
public function validation( $single_form_field, $form_data, $filter_hook, $form_id ) {
|
76 |
+
// TODO: Implement validation() method.
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
+
return UR_Checkbox::get_instance();
|
includes/form/settings/class-ur-setting-checkbox.php
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Abstract UR Setting Select Class
|
8 |
+
*
|
9 |
+
* @version 1.0.0
|
10 |
+
* @package UserRegistration/Form/Settings
|
11 |
+
* @category Abstract Class
|
12 |
+
* @author WPEverest
|
13 |
+
*/
|
14 |
+
class UR_Setting_Checkbox extends UR_Field_Settings {
|
15 |
+
|
16 |
+
|
17 |
+
public function __construct() {
|
18 |
+
|
19 |
+
$this->field_id = 'checkbox_advance_setting';
|
20 |
+
|
21 |
+
}
|
22 |
+
|
23 |
+
public function output( $field_data = array() ) {
|
24 |
+
|
25 |
+
// TODO: Implement output() method.
|
26 |
+
$this->field_data = $field_data;
|
27 |
+
|
28 |
+
$this->register_fields();
|
29 |
+
|
30 |
+
$field_html = $this->fields_html;
|
31 |
+
|
32 |
+
return $field_html;
|
33 |
+
}
|
34 |
+
|
35 |
+
public function register_fields() {
|
36 |
+
// TODO: Implement register_fields() method.
|
37 |
+
$fields = array(
|
38 |
+
|
39 |
+
'custom_class' => array(
|
40 |
+
|
41 |
+
'label' => __( 'Custom Class', 'user-registration' ),
|
42 |
+
|
43 |
+
'id' => $this->field_id . '_custom_class',
|
44 |
+
|
45 |
+
'name' => $this->field_id . '[custom_class]',
|
46 |
+
|
47 |
+
'class' => $this->default_class . ' ur-settings-custom-class',
|
48 |
+
|
49 |
+
'type' => 'text',
|
50 |
+
|
51 |
+
'required' => false,
|
52 |
+
|
53 |
+
'default' => '',
|
54 |
+
|
55 |
+
'placeholder' => __( 'Custom Class', 'user-registration' ),
|
56 |
+
|
57 |
+
),
|
58 |
+
|
59 |
+
'choices' => array(
|
60 |
+
|
61 |
+
'label' => __( 'Choices', 'user-registration' ),
|
62 |
+
|
63 |
+
'id' => $this->field_id . '_choices',
|
64 |
+
|
65 |
+
'name' => $this->field_id . '[choices]',
|
66 |
+
|
67 |
+
'class' => $this->default_class . ' ur-settings-choices',
|
68 |
+
|
69 |
+
'type' => 'textarea',
|
70 |
+
|
71 |
+
'required' => false,
|
72 |
+
|
73 |
+
'default' => '',
|
74 |
+
|
75 |
+
'placeholder' => __( "Please input your text here to create the checkbox list like:\nCheckbox 1,\nCheckbox 2,\nCheckbox 3", 'user-registration' ),
|
76 |
+
|
77 |
+
),
|
78 |
+
|
79 |
+
);
|
80 |
+
|
81 |
+
$this->render_html( $fields );
|
82 |
+
}
|
83 |
+
}
|
84 |
+
|
85 |
+
return new UR_Setting_Checkbox();
|
includes/form/views/admin/admin-checkbox.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Form View: Input Type Checkbox
|
4 |
+
*/
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
|
10 |
+
$choices = isset( $this->admin_data->advance_setting->choices ) ? explode( ',', trim( $this->admin_data->advance_setting->choices, ',' ) ) : array();
|
11 |
+
?>
|
12 |
+
|
13 |
+
<div class="ur-input-type-checkbox ur-admin-template">
|
14 |
+
|
15 |
+
<div class="ur-label">
|
16 |
+
<label><?php echo esc_html( $this->get_general_setting_data( 'label' ) ); ?></label>
|
17 |
+
|
18 |
+
</div>
|
19 |
+
<div class="ur-field" data-field-key="checkbox">
|
20 |
+
|
21 |
+
<?php
|
22 |
+
if(count($choices)<1){
|
23 |
+
echo "<input type = 'checkbox' value='1'/>";
|
24 |
+
}
|
25 |
+
foreach ( $choices as $choice ) {
|
26 |
+
echo "<input type = 'checkbox' value='" . esc_attr( $choice ) . "'>" . esc_html( $choice ) . '</option><br>';
|
27 |
+
|
28 |
+
}
|
29 |
+
?>
|
30 |
+
|
31 |
+
</div>
|
32 |
+
<?php
|
33 |
+
|
34 |
+
UR_Checkbox::get_instance()->get_setting();
|
35 |
+
|
36 |
+
?>
|
37 |
+
</div>
|
38 |
+
|
includes/form/views/admin/admin-select.php
CHANGED
@@ -9,7 +9,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
9 |
|
10 |
$options = isset( $this->admin_data->advance_setting->options ) ? explode( ',', trim( $this->admin_data->advance_setting->options, ',' ) ) : array();
|
11 |
|
12 |
-
|
13 |
?>
|
14 |
<div class="ur-input-type-select ur-admin-template">
|
15 |
|
@@ -19,14 +18,12 @@ $options = isset( $this->admin_data->advance_setting->options ) ? explode( ',',
|
|
19 |
</div>
|
20 |
<div class="ur-field" data-field-key="select">
|
21 |
|
22 |
-
|
23 |
<select id="ur-input-type-select">
|
24 |
|
25 |
<?php
|
26 |
foreach ( $options as $option ) {
|
27 |
|
28 |
echo "<option value='" . esc_attr($option) . "'>" . esc_html($option) . '</option>';
|
29 |
-
|
30 |
}
|
31 |
?>
|
32 |
</select>
|
9 |
|
10 |
$options = isset( $this->admin_data->advance_setting->options ) ? explode( ',', trim( $this->admin_data->advance_setting->options, ',' ) ) : array();
|
11 |
|
|
|
12 |
?>
|
13 |
<div class="ur-input-type-select ur-admin-template">
|
14 |
|
18 |
</div>
|
19 |
<div class="ur-field" data-field-key="select">
|
20 |
|
|
|
21 |
<select id="ur-input-type-select">
|
22 |
|
23 |
<?php
|
24 |
foreach ( $options as $option ) {
|
25 |
|
26 |
echo "<option value='" . esc_attr($option) . "'>" . esc_html($option) . '</option>';
|
|
|
27 |
}
|
28 |
?>
|
29 |
</select>
|
includes/frontend/class-ur-frontend-form-handler.php
CHANGED
@@ -8,82 +8,54 @@
|
|
8 |
* @category Admin
|
9 |
* @author WPEverest
|
10 |
*/
|
11 |
-
|
12 |
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
exit;
|
14 |
}
|
15 |
-
|
16 |
/**
|
17 |
* UR_Frontend_Form_Handler Class
|
18 |
*/
|
19 |
class UR_Frontend_Form_Handler {
|
20 |
-
|
21 |
-
|
22 |
public static $form_id = 0;
|
23 |
-
|
24 |
public static $response_array = array();
|
25 |
-
|
26 |
private static $valid_form_data = array();
|
27 |
|
28 |
public static function handle_form( $form_data, $form_id ) {
|
29 |
|
30 |
self::$form_id = $form_id;
|
31 |
-
|
32 |
$post_content = self::get_post_content( $form_id );
|
33 |
-
|
34 |
$post_content_array = array();
|
35 |
-
|
36 |
if ( ! empty( $post_content ) ) {
|
37 |
-
|
38 |
$post_content_array = json_decode( $post_content );
|
39 |
}
|
40 |
if ( gettype( $form_data ) != 'array' && gettype( $form_data ) != 'object' ) {
|
41 |
-
|
42 |
$form_data = array();
|
43 |
}
|
44 |
self::match_password( $form_data );
|
45 |
-
|
46 |
$form_field_data = self::get_form_field_data( $post_content_array );
|
47 |
|
48 |
self::add_hook( $form_field_data, $form_data );
|
49 |
-
|
50 |
self::validate_form_data( $form_field_data, $form_data );
|
51 |
-
|
52 |
if ( count( self::$response_array ) == 0 ) {
|
53 |
-
|
54 |
$user_role = ! in_array( ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_default_user_role' ), array_keys( ur_get_default_admin_roles() ) ) ? 'subscriber' : ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_default_user_role' );
|
55 |
-
|
56 |
$userdata = array(
|
57 |
-
|
58 |
'user_login' => self::$valid_form_data['user_username']->value,
|
59 |
-
|
60 |
'user_pass' => self::$valid_form_data['user_password']->value,
|
61 |
-
|
62 |
'user_email' => self::$valid_form_data['user_email']->value,
|
63 |
-
|
64 |
'display_name' => isset( self::$valid_form_data['user_display_name']->value ) ? self::$valid_form_data['user_display_name']->value : '',
|
65 |
-
|
66 |
'user_url' => isset( self::$valid_form_data['user_url']->value ) ? self::$valid_form_data['user_url']->value : '',
|
67 |
// When creating an user, `user_pass` is expected.
|
68 |
'role' => $user_role,
|
69 |
);
|
70 |
|
71 |
-
|
72 |
-
|
73 |
do_action( 'user_registration_before_register_user_action', self::$valid_form_data, $form_id );
|
74 |
-
|
75 |
$user_id = wp_insert_user( $userdata );
|
76 |
|
77 |
-
self::ur_update_user_meta( $user_id, self::$valid_form_data, $form_id );
|
78 |
|
|
|
79 |
do_action( 'user_registration_after_register_user_action', self::$valid_form_data, $form_id, $user_id );
|
80 |
-
|
81 |
-
|
82 |
if ( $user_id > 0 ) {
|
83 |
-
|
84 |
-
|
85 |
$login_option = get_option( 'user_registration_general_setting_login_options', 'default' );
|
86 |
-
|
87 |
$success_params = array(
|
88 |
'username' => self::$valid_form_data['user_username']->value,
|
89 |
);
|
@@ -92,155 +64,99 @@ class UR_Frontend_Form_Handler {
|
|
92 |
wp_set_auth_cookie( $user_id );
|
93 |
$success_params['auto_login'] = true;
|
94 |
}
|
95 |
-
wp_send_json_success( $success_params );
|
96 |
|
|
|
97 |
}
|
98 |
-
|
99 |
wp_send_json_error( array(
|
100 |
'message' => __( 'Someting error! please try again', 'user-registration' ),
|
101 |
) );
|
102 |
-
|
103 |
} else {
|
104 |
-
|
105 |
wp_send_json_error( array(
|
106 |
'message' => array_unique(self::$response_array),
|
107 |
) );
|
108 |
}// End if().
|
109 |
}
|
110 |
-
|
111 |
private static function get_form_field_data( $post_content_array ) {
|
112 |
-
|
113 |
$form_field_data_array = array();
|
114 |
-
|
115 |
foreach ( $post_content_array as $row_index => $row ) {
|
116 |
-
|
117 |
foreach ( $row as $grid_index => $grid ) {
|
118 |
-
|
119 |
foreach ( $grid as $field_index => $field ) {
|
120 |
-
|
121 |
if ( 'confirm_user_password' != $field->general_setting->field_name ) {
|
122 |
-
|
123 |
array_push( $form_field_data_array, $field );
|
124 |
}
|
125 |
}
|
126 |
}
|
127 |
}
|
128 |
-
|
129 |
return ( $form_field_data_array );
|
130 |
}
|
131 |
-
|
132 |
private static function get_post_content( $form_id ) {
|
133 |
-
|
134 |
$args = array(
|
135 |
'post_type' => 'user_registration',
|
136 |
-
|
137 |
'post_status' => 'publish',
|
138 |
-
|
139 |
'post__in' => array( $form_id ),
|
140 |
);
|
141 |
$post_data = get_posts( $args );
|
142 |
-
|
143 |
if ( isset( $post_data[0]->post_content ) ) {
|
144 |
-
|
145 |
return $post_data[0]->post_content;
|
146 |
-
|
147 |
} else {
|
148 |
-
|
149 |
return '';
|
150 |
}
|
151 |
}
|
152 |
-
|
153 |
private static function validate_form_data( $form_field_data = array(), $form_data = array() ) {
|
154 |
-
|
155 |
$form_data_field = wp_list_pluck( $form_data, 'field_name' );
|
156 |
|
157 |
$form_key_list = wp_list_pluck( wp_list_pluck( $form_field_data, 'general_setting' ), 'field_name' );
|
158 |
-
|
159 |
$duplicate_field_key = array_diff_key( $form_data_field, array_unique( $form_data_field ) );
|
160 |
-
|
161 |
if ( count( $duplicate_field_key ) > 0 ) {
|
162 |
-
|
163 |
array_push( self::$response_array, __( 'Duplicate field key in form, please contact site administrator.', 'user-registration' ) );
|
164 |
}
|
165 |
|
166 |
$containsSearch = count( array_intersect( ur_get_required_fields(), $form_data_field ) ) == count( ur_get_required_fields() );
|
167 |
|
168 |
if ( false === $containsSearch ) {
|
169 |
-
|
170 |
array_push( self::$response_array, __( 'Required form field not found.', 'user-registration' ) );
|
171 |
-
|
172 |
}
|
173 |
|
174 |
foreach ( $form_data as $data ) {
|
175 |
|
176 |
if ( in_array( $data->field_name, $form_key_list ) ) {
|
177 |
-
|
178 |
self::$valid_form_data[ $data->field_name ] = self::get_sanitize_value( $data );
|
179 |
-
|
180 |
$form_data_index = array_search( $data->field_name, $form_key_list );
|
181 |
-
|
182 |
$single_form_field = $form_field_data[ $form_data_index ];
|
183 |
-
|
184 |
$general_setting = isset( $single_form_field->general_setting ) ? $single_form_field->general_setting : new stdClass();
|
185 |
-
|
186 |
$single_field_key = $single_form_field->field_key;
|
187 |
-
|
188 |
$single_field_label = isset( $general_setting->label ) ? $general_setting->label : '';
|
189 |
-
|
190 |
self::$valid_form_data[ $data->field_name ]->extra_params = array(
|
191 |
'field_key' => $single_field_key,
|
192 |
'label' => $single_field_label
|
193 |
);
|
194 |
-
|
195 |
$hook = "user_registration_validate_{$single_form_field->field_key}";
|
196 |
-
|
197 |
$filter_hook = $hook . '_message';
|
198 |
-
|
199 |
do_action( $hook, $single_form_field, $data, $filter_hook, self::$form_id );
|
200 |
-
|
201 |
$response = apply_filters( $filter_hook, '' );
|
202 |
-
|
203 |
if ( ! empty( $response ) ) {
|
204 |
-
|
205 |
array_push( self::$response_array, $response );
|
206 |
-
|
207 |
}
|
208 |
}
|
209 |
}
|
210 |
-
|
211 |
}
|
212 |
-
|
213 |
public static function add_hook( $form_field_data = array(), $form_data = array() ) {
|
214 |
-
|
215 |
$form_key_list = wp_list_pluck( wp_list_pluck( $form_field_data, 'general_setting' ), 'field_name' );
|
216 |
-
|
217 |
foreach ( $form_data as $data ) {
|
218 |
-
|
219 |
if ( in_array( $data->field_name, $form_key_list ) ) {
|
220 |
-
|
221 |
$form_data_index = array_search( $data->field_name, $form_key_list );
|
222 |
-
|
223 |
$single_form_field = $form_field_data[ $form_data_index ];
|
224 |
-
|
225 |
$class_name = ur_load_form_field_class( $single_form_field->field_key );
|
226 |
-
|
227 |
$hook = "user_registration_validate_{$single_form_field->field_key}";
|
228 |
-
|
229 |
add_action( $hook, array(
|
230 |
-
|
231 |
$class_name::get_instance(),
|
232 |
-
|
233 |
'validation',
|
234 |
), 10, 4 );
|
235 |
}
|
236 |
}
|
237 |
-
|
238 |
}
|
239 |
-
|
240 |
private static function get_sanitize_value( &$form_data ) {
|
241 |
-
|
242 |
$field_name = isset( $form_data->field_name ) ? $form_data->field_name : '';
|
243 |
-
|
244 |
switch ( $field_name ) {
|
245 |
case 'user_email':
|
246 |
$form_data->value = sanitize_email( $form_data->value );
|
@@ -252,80 +168,54 @@ class UR_Frontend_Form_Handler {
|
|
252 |
break;
|
253 |
default:
|
254 |
$form_data->value = sanitize_text_field( $form_data->value );
|
255 |
-
|
256 |
}
|
257 |
-
|
258 |
return $form_data;
|
259 |
}
|
260 |
|
261 |
private static function ur_update_user_meta( $user_id, $valid_form_data, $form_id ) {
|
262 |
|
263 |
foreach ( $valid_form_data as $data ) {
|
264 |
-
|
265 |
if ( ! in_array( trim( $data->field_name ), ur_get_user_table_fields() ) ) {
|
266 |
-
|
267 |
$field_key = $data->field_name;
|
268 |
$field_key_for_param = $data->field_name;
|
269 |
|
270 |
if ( substr( $data->field_name, 0, 5 ) == 'user_' ) {
|
271 |
-
|
272 |
$field_key = trim( str_replace( 'user_', '', $field_key ) );
|
273 |
-
|
274 |
} else {
|
275 |
-
|
276 |
$field_key = 'user_registration_' . $field_key;
|
277 |
-
|
278 |
}
|
279 |
|
280 |
update_user_meta( $user_id, $field_key, $data->value );
|
281 |
if ( isset( $data->extra_params ) ) {
|
282 |
-
update_user_meta( $user_id, 'ur_' . $field_key_for_param . '_params', json_encode( $data->extra_params ) );
|
283 |
|
|
|
284 |
}
|
285 |
}
|
286 |
}
|
287 |
update_user_meta( $user_id, 'ur_form_id', $form_id );
|
288 |
}
|
289 |
-
|
290 |
private static function match_password( &$form_data ) {
|
291 |
-
|
292 |
$confirm_password = '';
|
293 |
$has_confirm_password = false;
|
294 |
$password = '';
|
295 |
-
|
296 |
foreach ( $form_data as $index => $single_data ) {
|
297 |
-
|
298 |
if ( 'user_confirm_password' == $single_data->field_name ) {
|
299 |
-
|
300 |
$confirm_password = $single_data->value;
|
301 |
-
|
302 |
$has_confirm_password = true;
|
303 |
-
|
304 |
unset( $form_data[ $index ] );
|
305 |
}
|
306 |
if ( 'user_password' == $single_data->field_name ) {
|
307 |
-
|
308 |
$password = $single_data->value;
|
309 |
-
|
310 |
}
|
311 |
}
|
312 |
if ( $has_confirm_password ) {
|
313 |
-
|
314 |
if ( empty( $confirm_password ) ) {
|
315 |
-
|
316 |
array_push( self::$response_array, __( 'Empty confirm password', 'user-registration' ) );
|
317 |
-
|
318 |
} elseif ( strcasecmp( $confirm_password, $password ) != 0 ) {
|
319 |
-
|
320 |
array_push( self::$response_array, __( 'Password and confirm password not matched', 'user-registration' ) );
|
321 |
}
|
322 |
}
|
323 |
-
|
324 |
return $form_data;
|
325 |
}
|
326 |
-
|
327 |
-
|
328 |
}
|
329 |
-
|
330 |
-
|
331 |
return new UR_Frontend_Form_Handler();
|
8 |
* @category Admin
|
9 |
* @author WPEverest
|
10 |
*/
|
|
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
exit;
|
13 |
}
|
|
|
14 |
/**
|
15 |
* UR_Frontend_Form_Handler Class
|
16 |
*/
|
17 |
class UR_Frontend_Form_Handler {
|
|
|
|
|
18 |
public static $form_id = 0;
|
|
|
19 |
public static $response_array = array();
|
|
|
20 |
private static $valid_form_data = array();
|
21 |
|
22 |
public static function handle_form( $form_data, $form_id ) {
|
23 |
|
24 |
self::$form_id = $form_id;
|
|
|
25 |
$post_content = self::get_post_content( $form_id );
|
|
|
26 |
$post_content_array = array();
|
|
|
27 |
if ( ! empty( $post_content ) ) {
|
|
|
28 |
$post_content_array = json_decode( $post_content );
|
29 |
}
|
30 |
if ( gettype( $form_data ) != 'array' && gettype( $form_data ) != 'object' ) {
|
|
|
31 |
$form_data = array();
|
32 |
}
|
33 |
self::match_password( $form_data );
|
|
|
34 |
$form_field_data = self::get_form_field_data( $post_content_array );
|
35 |
|
36 |
self::add_hook( $form_field_data, $form_data );
|
|
|
37 |
self::validate_form_data( $form_field_data, $form_data );
|
|
|
38 |
if ( count( self::$response_array ) == 0 ) {
|
|
|
39 |
$user_role = ! in_array( ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_default_user_role' ), array_keys( ur_get_default_admin_roles() ) ) ? 'subscriber' : ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_default_user_role' );
|
|
|
40 |
$userdata = array(
|
|
|
41 |
'user_login' => self::$valid_form_data['user_username']->value,
|
|
|
42 |
'user_pass' => self::$valid_form_data['user_password']->value,
|
|
|
43 |
'user_email' => self::$valid_form_data['user_email']->value,
|
|
|
44 |
'display_name' => isset( self::$valid_form_data['user_display_name']->value ) ? self::$valid_form_data['user_display_name']->value : '',
|
|
|
45 |
'user_url' => isset( self::$valid_form_data['user_url']->value ) ? self::$valid_form_data['user_url']->value : '',
|
46 |
// When creating an user, `user_pass` is expected.
|
47 |
'role' => $user_role,
|
48 |
);
|
49 |
|
50 |
+
self::$valid_form_data = apply_filters( 'user_registration_before_register_user_filter', self::$valid_form_data, $form_id );
|
|
|
51 |
do_action( 'user_registration_before_register_user_action', self::$valid_form_data, $form_id );
|
|
|
52 |
$user_id = wp_insert_user( $userdata );
|
53 |
|
|
|
54 |
|
55 |
+
self::ur_update_user_meta( $user_id, self::$valid_form_data, $form_id );
|
56 |
do_action( 'user_registration_after_register_user_action', self::$valid_form_data, $form_id, $user_id );
|
|
|
|
|
57 |
if ( $user_id > 0 ) {
|
|
|
|
|
58 |
$login_option = get_option( 'user_registration_general_setting_login_options', 'default' );
|
|
|
59 |
$success_params = array(
|
60 |
'username' => self::$valid_form_data['user_username']->value,
|
61 |
);
|
64 |
wp_set_auth_cookie( $user_id );
|
65 |
$success_params['auto_login'] = true;
|
66 |
}
|
|
|
67 |
|
68 |
+
wp_send_json_success( $success_params );
|
69 |
}
|
|
|
70 |
wp_send_json_error( array(
|
71 |
'message' => __( 'Someting error! please try again', 'user-registration' ),
|
72 |
) );
|
|
|
73 |
} else {
|
|
|
74 |
wp_send_json_error( array(
|
75 |
'message' => array_unique(self::$response_array),
|
76 |
) );
|
77 |
}// End if().
|
78 |
}
|
|
|
79 |
private static function get_form_field_data( $post_content_array ) {
|
|
|
80 |
$form_field_data_array = array();
|
|
|
81 |
foreach ( $post_content_array as $row_index => $row ) {
|
|
|
82 |
foreach ( $row as $grid_index => $grid ) {
|
|
|
83 |
foreach ( $grid as $field_index => $field ) {
|
|
|
84 |
if ( 'confirm_user_password' != $field->general_setting->field_name ) {
|
|
|
85 |
array_push( $form_field_data_array, $field );
|
86 |
}
|
87 |
}
|
88 |
}
|
89 |
}
|
|
|
90 |
return ( $form_field_data_array );
|
91 |
}
|
|
|
92 |
private static function get_post_content( $form_id ) {
|
|
|
93 |
$args = array(
|
94 |
'post_type' => 'user_registration',
|
|
|
95 |
'post_status' => 'publish',
|
|
|
96 |
'post__in' => array( $form_id ),
|
97 |
);
|
98 |
$post_data = get_posts( $args );
|
|
|
99 |
if ( isset( $post_data[0]->post_content ) ) {
|
|
|
100 |
return $post_data[0]->post_content;
|
|
|
101 |
} else {
|
|
|
102 |
return '';
|
103 |
}
|
104 |
}
|
|
|
105 |
private static function validate_form_data( $form_field_data = array(), $form_data = array() ) {
|
|
|
106 |
$form_data_field = wp_list_pluck( $form_data, 'field_name' );
|
107 |
|
108 |
$form_key_list = wp_list_pluck( wp_list_pluck( $form_field_data, 'general_setting' ), 'field_name' );
|
|
|
109 |
$duplicate_field_key = array_diff_key( $form_data_field, array_unique( $form_data_field ) );
|
|
|
110 |
if ( count( $duplicate_field_key ) > 0 ) {
|
|
|
111 |
array_push( self::$response_array, __( 'Duplicate field key in form, please contact site administrator.', 'user-registration' ) );
|
112 |
}
|
113 |
|
114 |
$containsSearch = count( array_intersect( ur_get_required_fields(), $form_data_field ) ) == count( ur_get_required_fields() );
|
115 |
|
116 |
if ( false === $containsSearch ) {
|
|
|
117 |
array_push( self::$response_array, __( 'Required form field not found.', 'user-registration' ) );
|
|
|
118 |
}
|
119 |
|
120 |
foreach ( $form_data as $data ) {
|
121 |
|
122 |
if ( in_array( $data->field_name, $form_key_list ) ) {
|
|
|
123 |
self::$valid_form_data[ $data->field_name ] = self::get_sanitize_value( $data );
|
|
|
124 |
$form_data_index = array_search( $data->field_name, $form_key_list );
|
|
|
125 |
$single_form_field = $form_field_data[ $form_data_index ];
|
|
|
126 |
$general_setting = isset( $single_form_field->general_setting ) ? $single_form_field->general_setting : new stdClass();
|
|
|
127 |
$single_field_key = $single_form_field->field_key;
|
|
|
128 |
$single_field_label = isset( $general_setting->label ) ? $general_setting->label : '';
|
|
|
129 |
self::$valid_form_data[ $data->field_name ]->extra_params = array(
|
130 |
'field_key' => $single_field_key,
|
131 |
'label' => $single_field_label
|
132 |
);
|
|
|
133 |
$hook = "user_registration_validate_{$single_form_field->field_key}";
|
|
|
134 |
$filter_hook = $hook . '_message';
|
|
|
135 |
do_action( $hook, $single_form_field, $data, $filter_hook, self::$form_id );
|
|
|
136 |
$response = apply_filters( $filter_hook, '' );
|
|
|
137 |
if ( ! empty( $response ) ) {
|
|
|
138 |
array_push( self::$response_array, $response );
|
|
|
139 |
}
|
140 |
}
|
141 |
}
|
|
|
142 |
}
|
|
|
143 |
public static function add_hook( $form_field_data = array(), $form_data = array() ) {
|
|
|
144 |
$form_key_list = wp_list_pluck( wp_list_pluck( $form_field_data, 'general_setting' ), 'field_name' );
|
|
|
145 |
foreach ( $form_data as $data ) {
|
|
|
146 |
if ( in_array( $data->field_name, $form_key_list ) ) {
|
|
|
147 |
$form_data_index = array_search( $data->field_name, $form_key_list );
|
|
|
148 |
$single_form_field = $form_field_data[ $form_data_index ];
|
|
|
149 |
$class_name = ur_load_form_field_class( $single_form_field->field_key );
|
|
|
150 |
$hook = "user_registration_validate_{$single_form_field->field_key}";
|
|
|
151 |
add_action( $hook, array(
|
|
|
152 |
$class_name::get_instance(),
|
|
|
153 |
'validation',
|
154 |
), 10, 4 );
|
155 |
}
|
156 |
}
|
|
|
157 |
}
|
|
|
158 |
private static function get_sanitize_value( &$form_data ) {
|
|
|
159 |
$field_name = isset( $form_data->field_name ) ? $form_data->field_name : '';
|
|
|
160 |
switch ( $field_name ) {
|
161 |
case 'user_email':
|
162 |
$form_data->value = sanitize_email( $form_data->value );
|
168 |
break;
|
169 |
default:
|
170 |
$form_data->value = sanitize_text_field( $form_data->value );
|
|
|
171 |
}
|
|
|
172 |
return $form_data;
|
173 |
}
|
174 |
|
175 |
private static function ur_update_user_meta( $user_id, $valid_form_data, $form_id ) {
|
176 |
|
177 |
foreach ( $valid_form_data as $data ) {
|
|
|
178 |
if ( ! in_array( trim( $data->field_name ), ur_get_user_table_fields() ) ) {
|
|
|
179 |
$field_key = $data->field_name;
|
180 |
$field_key_for_param = $data->field_name;
|
181 |
|
182 |
if ( substr( $data->field_name, 0, 5 ) == 'user_' ) {
|
|
|
183 |
$field_key = trim( str_replace( 'user_', '', $field_key ) );
|
|
|
184 |
} else {
|
|
|
185 |
$field_key = 'user_registration_' . $field_key;
|
|
|
186 |
}
|
187 |
|
188 |
update_user_meta( $user_id, $field_key, $data->value );
|
189 |
if ( isset( $data->extra_params ) ) {
|
|
|
190 |
|
191 |
+
update_user_meta( $user_id, 'ur_' . $field_key_for_param . '_params', json_encode( $data->extra_params ) );
|
192 |
}
|
193 |
}
|
194 |
}
|
195 |
update_user_meta( $user_id, 'ur_form_id', $form_id );
|
196 |
}
|
|
|
197 |
private static function match_password( &$form_data ) {
|
|
|
198 |
$confirm_password = '';
|
199 |
$has_confirm_password = false;
|
200 |
$password = '';
|
|
|
201 |
foreach ( $form_data as $index => $single_data ) {
|
|
|
202 |
if ( 'user_confirm_password' == $single_data->field_name ) {
|
|
|
203 |
$confirm_password = $single_data->value;
|
|
|
204 |
$has_confirm_password = true;
|
|
|
205 |
unset( $form_data[ $index ] );
|
206 |
}
|
207 |
if ( 'user_password' == $single_data->field_name ) {
|
|
|
208 |
$password = $single_data->value;
|
|
|
209 |
}
|
210 |
}
|
211 |
if ( $has_confirm_password ) {
|
|
|
212 |
if ( empty( $confirm_password ) ) {
|
|
|
213 |
array_push( self::$response_array, __( 'Empty confirm password', 'user-registration' ) );
|
|
|
214 |
} elseif ( strcasecmp( $confirm_password, $password ) != 0 ) {
|
|
|
215 |
array_push( self::$response_array, __( 'Password and confirm password not matched', 'user-registration' ) );
|
216 |
}
|
217 |
}
|
|
|
218 |
return $form_data;
|
219 |
}
|
|
|
|
|
220 |
}
|
|
|
|
|
221 |
return new UR_Frontend_Form_Handler();
|
includes/functions-ur-core.php
CHANGED
@@ -465,6 +465,7 @@ function ur_get_registered_form_fields() {
|
|
465 |
'textarea',
|
466 |
'number',
|
467 |
'date',
|
|
|
468 |
) );
|
469 |
}
|
470 |
|
@@ -683,6 +684,7 @@ function ur_login_option() {
|
|
683 |
return apply_filters( 'user_registration_login_options', array(
|
684 |
|
685 |
'default' => __( 'Manual login after registration', 'user-registration' ),
|
|
|
686 |
'auto_login' => __( 'Auto login after registration', 'user-registration' ),
|
687 |
'admin_approval' => __( 'Admin approval after registration', 'user-registration' )
|
688 |
)
|
@@ -759,7 +761,7 @@ function ur_get_form_setting_by_key( $form_id, $meta_key, $default = '' ) {
|
|
759 |
*/
|
760 |
function ur_get_user_approval_status( $user_id ) {
|
761 |
|
762 |
-
|
763 |
|
764 |
$login_option = get_option( 'user_registration_general_setting_login_options', '' );
|
765 |
|
465 |
'textarea',
|
466 |
'number',
|
467 |
'date',
|
468 |
+
'checkbox'
|
469 |
) );
|
470 |
}
|
471 |
|
684 |
return apply_filters( 'user_registration_login_options', array(
|
685 |
|
686 |
'default' => __( 'Manual login after registration', 'user-registration' ),
|
687 |
+
'email_confirmation' => __('Email confirmation to login', 'user-registration'),
|
688 |
'auto_login' => __( 'Auto login after registration', 'user-registration' ),
|
689 |
'admin_approval' => __( 'Admin approval after registration', 'user-registration' )
|
690 |
)
|
761 |
*/
|
762 |
function ur_get_user_approval_status( $user_id ) {
|
763 |
|
764 |
+
$user_status = 1;
|
765 |
|
766 |
$login_option = get_option( 'user_registration_general_setting_login_options', '' );
|
767 |
|
includes/functions-ur-template.php
CHANGED
@@ -17,6 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
17 |
/**
|
18 |
* Handle redirects before content is output - hooked into template_redirect so is_page works.
|
19 |
*/
|
|
|
20 |
function ur_template_redirect() {
|
21 |
global $wp;
|
22 |
|
@@ -38,21 +39,22 @@ add_action( 'template_redirect', 'ur_template_redirect' );
|
|
38 |
*/
|
39 |
function ur_login_template_redirect() {
|
40 |
global $post;
|
41 |
-
$post_content = isset($post->post_content) ? $post->post_content:'';
|
42 |
if ( has_shortcode( $post_content, 'user_registration_login' ) && is_user_logged_in() ) {
|
43 |
-
|
44 |
-
$
|
45 |
-
|
46 |
-
$redirect_url =
|
|
|
47 |
$redirect_url = trim( $redirect_url, ']' );
|
48 |
$redirect_url = trim( $redirect_url, '"' );
|
49 |
$redirect_url = trim( $redirect_url, "'" );
|
50 |
|
|
|
51 |
if ( ! empty( $redirect_url ) ) {
|
52 |
wp_redirect( $redirect_url );
|
53 |
}
|
54 |
}
|
55 |
-
|
56 |
}
|
57 |
|
58 |
add_action( 'template_redirect', 'ur_login_template_redirect' );
|
@@ -96,7 +98,6 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
96 |
* @return string
|
97 |
*/
|
98 |
function user_registration_form_field( $key, $args, $value = null ) {
|
99 |
-
|
100 |
$defaults = array(
|
101 |
'type' => 'text',
|
102 |
'label' => '',
|
@@ -117,6 +118,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
117 |
'priority' => '',
|
118 |
);
|
119 |
|
|
|
120 |
$args = wp_parse_args( $args, $defaults );
|
121 |
$args = apply_filters( 'user_registration_form_field_args', $args, $key, $value );
|
122 |
|
@@ -170,13 +172,40 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
170 |
$field .= '<textarea name="' . esc_attr( $key ) . '" class="input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" ' . ( empty( $args['custom_attributes']['rows'] ) ? ' rows="2"' : '' ) . ( empty( $args['custom_attributes']['cols'] ) ? ' cols="5"' : '' ) . implode( ' ', $custom_attributes ) . '>' . esc_textarea( $value ) . '</textarea>';
|
171 |
|
172 |
break;
|
|
|
173 |
case 'checkbox' :
|
174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">
|
176 |
<input ' . 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 ) . ' /> '
|
177 |
. $args['label'] . $required . '</label>';
|
|
|
178 |
|
179 |
-
|
180 |
case 'password' :
|
181 |
case 'text' :
|
182 |
case 'email' :
|
@@ -191,7 +220,6 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
191 |
break;
|
192 |
case 'select' :
|
193 |
$options = $field = '';
|
194 |
-
|
195 |
if ( ! empty( $args['options'] ) ) {
|
196 |
foreach ( $args['options'] as $option_key => $option_text ) {
|
197 |
if ( '' === $option_key ) {
|
@@ -305,10 +333,12 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
305 |
$field_label = isset( $field->general_setting->label ) ? $field->general_setting->label : '';
|
306 |
$field_key = isset( $field->field_key ) ? ( $field->field_key ) : '';
|
307 |
$field_type = isset( $field->field_key ) ? ur_get_field_type( $field_key ) : '';
|
308 |
-
$required =
|
|
|
|
|
309 |
|
310 |
if ( empty( $field_label ) ) {
|
311 |
-
$field_label_array = explode( '_', $
|
312 |
$field_label = join( ' ', array_map( 'ucwords', $field_label_array ) );
|
313 |
}
|
314 |
|
@@ -319,6 +349,9 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
319 |
case 'select':
|
320 |
$extra_params['options'] = explode( ',', $field->advance_setting->options );
|
321 |
break;
|
|
|
|
|
|
|
322 |
case 'country':
|
323 |
$class_name = ur_load_form_field_class( $field_key );
|
324 |
$extra_params['options'] = $class_name::get_instance()->get_country();
|
17 |
/**
|
18 |
* Handle redirects before content is output - hooked into template_redirect so is_page works.
|
19 |
*/
|
20 |
+
|
21 |
function ur_template_redirect() {
|
22 |
global $wp;
|
23 |
|
39 |
*/
|
40 |
function ur_login_template_redirect() {
|
41 |
global $post;
|
42 |
+
$post_content = isset( $post->post_content ) ? $post->post_content : '';
|
43 |
if ( has_shortcode( $post_content, 'user_registration_login' ) && is_user_logged_in() ) {
|
44 |
+
preg_match( '/' . get_shortcode_regex() . '/s', $post_content, $matches );
|
45 |
+
$attributes = shortcode_parse_atts( $matches[3] );
|
46 |
+
|
47 |
+
$redirect_url = isset( $attributes['redirect_url'] ) ? $attributes['redirect_url'] : '';
|
48 |
+
|
49 |
$redirect_url = trim( $redirect_url, ']' );
|
50 |
$redirect_url = trim( $redirect_url, '"' );
|
51 |
$redirect_url = trim( $redirect_url, "'" );
|
52 |
|
53 |
+
|
54 |
if ( ! empty( $redirect_url ) ) {
|
55 |
wp_redirect( $redirect_url );
|
56 |
}
|
57 |
}
|
|
|
58 |
}
|
59 |
|
60 |
add_action( 'template_redirect', 'ur_login_template_redirect' );
|
98 |
* @return string
|
99 |
*/
|
100 |
function user_registration_form_field( $key, $args, $value = null ) {
|
|
|
101 |
$defaults = array(
|
102 |
'type' => 'text',
|
103 |
'label' => '',
|
118 |
'priority' => '',
|
119 |
);
|
120 |
|
121 |
+
|
122 |
$args = wp_parse_args( $args, $defaults );
|
123 |
$args = apply_filters( 'user_registration_form_field_args', $args, $key, $value );
|
124 |
|
172 |
$field .= '<textarea name="' . esc_attr( $key ) . '" class="input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" ' . ( empty( $args['custom_attributes']['rows'] ) ? ' rows="2"' : '' ) . ( empty( $args['custom_attributes']['cols'] ) ? ' cols="5"' : '' ) . implode( ' ', $custom_attributes ) . '>' . esc_textarea( $value ) . '</textarea>';
|
173 |
|
174 |
break;
|
175 |
+
|
176 |
case 'checkbox' :
|
177 |
|
178 |
+
if(isset($args['choices']) && count($args['choices'])>1 ){
|
179 |
+
|
180 |
+
$default = !empty($args['default']) ? json_decode( $args['default'] ) : array();
|
181 |
+
|
182 |
+
$choices = isset( $args['choices'] ) ? $args['choices'] : array();
|
183 |
+
|
184 |
+
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">';
|
185 |
+
$field .= $args['label'] . $required . '</label>';
|
186 |
+
$checkbox_start =0;
|
187 |
+
foreach ( $choices as $choice_index => $choice ) {
|
188 |
+
|
189 |
+
$value = '';
|
190 |
+
if ( in_array(trim($choice), $default) ) {
|
191 |
+
$value = 'checked="checked"';
|
192 |
+
}
|
193 |
+
|
194 |
+
$field .= '<label>';
|
195 |
+
$field .= ' <input ' . 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'] ) . '" value="'.trim($choice).'"' . $value . ' /> ';
|
196 |
+
$field .= $choice . ' </label>';
|
197 |
+
|
198 |
+
$checkbox_start++;
|
199 |
+
}
|
200 |
+
}
|
201 |
+
else
|
202 |
+
{
|
203 |
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">
|
204 |
<input ' . 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 ) . ' /> '
|
205 |
. $args['label'] . $required . '</label>';
|
206 |
+
}
|
207 |
|
208 |
+
break;
|
209 |
case 'password' :
|
210 |
case 'text' :
|
211 |
case 'email' :
|
220 |
break;
|
221 |
case 'select' :
|
222 |
$options = $field = '';
|
|
|
223 |
if ( ! empty( $args['options'] ) ) {
|
224 |
foreach ( $args['options'] as $option_key => $option_text ) {
|
225 |
if ( '' === $option_key ) {
|
333 |
$field_label = isset( $field->general_setting->label ) ? $field->general_setting->label : '';
|
334 |
$field_key = isset( $field->field_key ) ? ( $field->field_key ) : '';
|
335 |
$field_type = isset( $field->field_key ) ? ur_get_field_type( $field_key ) : '';
|
336 |
+
$required = isset( $general_setting->required ) ? $general_setting->required :'';
|
337 |
+
|
338 |
+
$required = 'yes' == $required ? true : false;
|
339 |
|
340 |
if ( empty( $field_label ) ) {
|
341 |
+
$field_label_array = explode( '_', $field_name );
|
342 |
$field_label = join( ' ', array_map( 'ucwords', $field_label_array ) );
|
343 |
}
|
344 |
|
349 |
case 'select':
|
350 |
$extra_params['options'] = explode( ',', $field->advance_setting->options );
|
351 |
break;
|
352 |
+
case 'checkbox':
|
353 |
+
$extra_params['choices'] = explode( ',', $field->advance_setting->choices );
|
354 |
+
break;
|
355 |
case 'country':
|
356 |
$class_name = ur_load_form_field_class( $field_key );
|
357 |
$extra_params['options'] = $class_name::get_instance()->get_country();
|
includes/shortcodes/class-ur-shortcode-login.php
CHANGED
@@ -39,13 +39,15 @@ class UR_Shortcode_Login {
|
|
39 |
|
40 |
public static function output( $atts ) {
|
41 |
global $wp, $post;
|
42 |
-
|
|
|
43 |
|
44 |
if ( ! is_user_logged_in() ) {
|
45 |
|
46 |
if ( isset( $wp->query_vars['lost-password'] ) ) {
|
47 |
UR_Shortcode_My_Account::lost_password();
|
48 |
} else {
|
|
|
49 |
ur_get_template( 'myaccount/form-login.php' );
|
50 |
}
|
51 |
|
39 |
|
40 |
public static function output( $atts ) {
|
41 |
global $wp, $post;
|
42 |
+
|
43 |
+
$redirect_url = isset( $atts['redirect_url']) ? $atts['redirect_url'] : '';
|
44 |
|
45 |
if ( ! is_user_logged_in() ) {
|
46 |
|
47 |
if ( isset( $wp->query_vars['lost-password'] ) ) {
|
48 |
UR_Shortcode_My_Account::lost_password();
|
49 |
} else {
|
50 |
+
|
51 |
ur_get_template( 'myaccount/form-login.php' );
|
52 |
}
|
53 |
|
languages/user-registration.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the User Registration package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: User Registration 1.1.
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
-
"POT-Creation-Date: 2017-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -13,11 +13,11 @@ msgstr ""
|
|
13 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
14 |
"X-Generator: grunt-wp-i18n1.0.0\n"
|
15 |
|
16 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
17 |
msgid "General Settings"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
21 |
msgid "Advance Settings"
|
22 |
msgstr ""
|
23 |
|
@@ -158,7 +158,7 @@ msgid "User Registration endpoints"
|
|
158 |
msgstr ""
|
159 |
|
160 |
#: includes/admin/class-ur-admin-menus.php:460
|
161 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
162 |
#: includes/class-ur-query.php:79
|
163 |
msgid "Lost password"
|
164 |
msgstr ""
|
@@ -184,13 +184,13 @@ msgstr ""
|
|
184 |
msgid "User Extra Information %s"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: includes/admin/class-ur-admin-profile.php:
|
188 |
-
#: includes/admin/class-ur-admin-profile.php:
|
189 |
#: includes/form/class-ur-select.php:44 includes/form/class-ur-select.php:51
|
190 |
msgid "Select"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: includes/admin/class-ur-admin-profile.php:
|
194 |
msgid "Attachment not found."
|
195 |
msgstr ""
|
196 |
|
@@ -252,15 +252,15 @@ msgstr ""
|
|
252 |
msgid "Impossible to create an UR_Admin_User_Manager object. Unkwon data type."
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: includes/admin/class-ur-admin-user-manager.php:
|
256 |
msgid "approved"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: includes/admin/class-ur-admin-user-manager.php:
|
260 |
msgid "pending"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: includes/admin/class-ur-admin-user-manager.php:
|
264 |
msgid "denied"
|
265 |
msgstr ""
|
266 |
|
@@ -270,7 +270,7 @@ msgid "If you like %1$s please leave us a %2$s rating. A huge thanks in advance!
|
|
270 |
msgstr ""
|
271 |
|
272 |
#: includes/admin/class-ur-admin.php:119
|
273 |
-
msgid "
|
274 |
msgstr ""
|
275 |
|
276 |
#: includes/admin/class-ur-admin.php:128
|
@@ -363,7 +363,7 @@ msgid "General Options"
|
|
363 |
msgstr ""
|
364 |
|
365 |
#: includes/admin/settings/class-ur-settings-general.php:62
|
366 |
-
#: includes/functions-ur-core.php:
|
367 |
msgid "Default user role"
|
368 |
msgstr ""
|
369 |
|
@@ -427,59 +427,67 @@ msgid "Page contents: [%s]"
|
|
427 |
msgstr ""
|
428 |
|
429 |
#: includes/admin/settings/class-ur-settings-general.php:139
|
430 |
-
#: includes/functions-ur-core.php:
|
431 |
msgid "Enable strong password"
|
432 |
msgstr ""
|
433 |
|
434 |
#: includes/admin/settings/class-ur-settings-general.php:140
|
435 |
-
msgid "
|
436 |
msgstr ""
|
437 |
|
438 |
#: includes/admin/settings/class-ur-settings-general.php:148
|
439 |
-
|
440 |
-
msgid "Form submit button label"
|
441 |
msgstr ""
|
442 |
|
443 |
#: includes/admin/settings/class-ur-settings-general.php:149
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
msgid "This option let you change the submit button label."
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
448 |
msgid "My account endpoints"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
452 |
msgid ""
|
453 |
"Endpoints are appended to your page URLs to handle specific actions on the "
|
454 |
"accounts pages. They should be unique and can be left blank to disable the "
|
455 |
"endpoint."
|
456 |
msgstr ""
|
457 |
|
458 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
459 |
msgid "Edit account"
|
460 |
msgstr ""
|
461 |
|
462 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
463 |
msgid "Endpoint for the \"My account → Edit account\" page."
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
467 |
msgid "Edit profile"
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
471 |
msgid "Endpoint for the \"My account → Edit profile\" page."
|
472 |
msgstr ""
|
473 |
|
474 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
475 |
msgid "Endpoint for the \"My account → Lost password\" page."
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
479 |
msgid "User logout"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
483 |
msgid ""
|
484 |
"Endpoint for the triggering logout. You can add this to your menus via a "
|
485 |
"custom link: yoursite.com/?user-logout=true"
|
@@ -700,100 +708,122 @@ msgstr ""
|
|
700 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: includes/class-ur-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
704 |
msgid "A New User Registered"
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: includes/class-ur-emailer.php:
|
708 |
msgid "Someone has requested a password reset for the following account:"
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: includes/class-ur-emailer.php:
|
712 |
msgid "If this was a mistake, just ignore this email and nothing will happen."
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: includes/class-ur-emailer.php:
|
716 |
msgid "To reset your password, visit the following address:"
|
717 |
msgstr ""
|
718 |
|
719 |
-
#: includes/class-ur-form-handler.php:
|
|
|
720 |
msgid "%s is a required field."
|
721 |
msgstr ""
|
722 |
|
723 |
-
#: includes/class-ur-form-handler.php:
|
724 |
msgid "%s is not a valid email address."
|
725 |
msgstr ""
|
726 |
|
727 |
-
#: includes/class-ur-form-handler.php:
|
728 |
msgid "User profile updated successfully."
|
729 |
msgstr ""
|
730 |
|
731 |
-
#: includes/class-ur-form-handler.php:
|
732 |
#: templates/myaccount/form-edit-account.php:32
|
733 |
msgid "First name"
|
734 |
msgstr ""
|
735 |
|
736 |
-
#: includes/class-ur-form-handler.php:
|
737 |
#: templates/myaccount/form-edit-account.php:36
|
738 |
msgid "Last name"
|
739 |
msgstr ""
|
740 |
|
741 |
-
#: includes/class-ur-form-handler.php:
|
742 |
#: templates/myaccount/form-edit-account.php:42
|
743 |
msgid "Email address"
|
744 |
msgstr ""
|
745 |
|
746 |
-
#: includes/class-ur-form-handler.php:
|
747 |
msgid "Please provide a valid email address."
|
748 |
msgstr ""
|
749 |
|
750 |
-
#: includes/class-ur-form-handler.php:
|
751 |
msgid "This email address is already registered."
|
752 |
msgstr ""
|
753 |
|
754 |
-
#: includes/class-ur-form-handler.php:
|
755 |
msgid "Please fill out all password fields."
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: includes/class-ur-form-handler.php:
|
759 |
msgid "Please enter your current password."
|
760 |
msgstr ""
|
761 |
|
762 |
-
#: includes/class-ur-form-handler.php:
|
763 |
msgid "Please re-enter your password."
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: includes/class-ur-form-handler.php:
|
767 |
msgid "New passwords do not match."
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: includes/class-ur-form-handler.php:
|
771 |
msgid "Your current password is incorrect."
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: includes/class-ur-form-handler.php:
|
775 |
msgid "Account details changed successfully."
|
776 |
msgstr ""
|
777 |
|
778 |
-
#: includes/class-ur-form-handler.php:
|
779 |
-
#: includes/class-ur-form-handler.php:
|
780 |
-
#: includes/class-ur-form-handler.php:
|
781 |
msgid "Error:"
|
782 |
msgstr ""
|
783 |
|
784 |
-
#: includes/class-ur-form-handler.php:
|
785 |
msgid "Username is required."
|
786 |
msgstr ""
|
787 |
|
788 |
-
#: includes/class-ur-form-handler.php:
|
789 |
msgid "A user could not be found with this email address."
|
790 |
msgstr ""
|
791 |
|
792 |
-
#: includes/class-ur-form-handler.php:
|
793 |
msgid "Please enter your password."
|
794 |
msgstr ""
|
795 |
|
796 |
-
#: includes/class-ur-form-handler.php:
|
797 |
msgid "Passwords do not match."
|
798 |
msgstr ""
|
799 |
|
@@ -802,34 +832,44 @@ msgid "User successfully registered."
|
|
802 |
msgstr ""
|
803 |
|
804 |
#: includes/class-ur-frontend-scripts.php:301
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
805 |
msgid "Captcha code error, please try again."
|
806 |
msgstr ""
|
807 |
|
808 |
-
#: includes/class-ur-frontend-scripts.php:
|
809 |
msgid "Confirm password"
|
810 |
msgstr ""
|
811 |
|
812 |
-
#: includes/class-ur-frontend-scripts.php:
|
813 |
msgid "Too short password"
|
814 |
msgstr ""
|
815 |
|
816 |
-
#: includes/class-ur-frontend-scripts.php:
|
817 |
msgid "Bad password"
|
818 |
msgstr ""
|
819 |
|
820 |
-
#: includes/class-ur-frontend-scripts.php:
|
821 |
msgid "Good password"
|
822 |
msgstr ""
|
823 |
|
824 |
-
#: includes/class-ur-frontend-scripts.php:
|
825 |
msgid "Strong password"
|
826 |
msgstr ""
|
827 |
|
828 |
-
#: includes/class-ur-frontend-scripts.php:
|
829 |
msgid "Password with confirm password not matched."
|
830 |
msgstr ""
|
831 |
|
832 |
-
#: includes/class-ur-frontend-scripts.php:
|
833 |
msgid ""
|
834 |
"Hint: The password should be a at least seven characters long. To make it "
|
835 |
"stronger, user upper and lower case letters, numbers and symbol like ! * ? "
|
@@ -985,11 +1025,6 @@ msgstr ""
|
|
985 |
msgid "Profile Details"
|
986 |
msgstr ""
|
987 |
|
988 |
-
#: includes/class-ur-user-approval.php:183
|
989 |
-
#: includes/class-ur-user-approval.php:188
|
990 |
-
msgid "ERROR:"
|
991 |
-
msgstr ""
|
992 |
-
|
993 |
#: includes/class-ur-user-approval.php:183
|
994 |
msgid "Your account is still pending approval."
|
995 |
msgstr ""
|
@@ -998,6 +1033,11 @@ msgstr ""
|
|
998 |
msgid "Your account has been denied."
|
999 |
msgstr ""
|
1000 |
|
|
|
|
|
|
|
|
|
|
|
1001 |
#: includes/form/class-ur-country.php:37
|
1002 |
msgid "Afghanistan"
|
1003 |
msgstr ""
|
@@ -2110,6 +2150,8 @@ msgstr ""
|
|
2110 |
msgid "Username already exists."
|
2111 |
msgstr ""
|
2112 |
|
|
|
|
|
2113 |
#: includes/form/settings/class-ur-setting-country.php:41
|
2114 |
#: includes/form/settings/class-ur-setting-country.php:55
|
2115 |
#: includes/form/settings/class-ur-setting-email.php:41
|
@@ -2123,6 +2165,18 @@ msgstr ""
|
|
2123 |
msgid "Custom Class"
|
2124 |
msgstr ""
|
2125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2126 |
#: includes/form/settings/class-ur-setting-password.php:41
|
2127 |
#: includes/form/settings/class-ur-setting-password.php:55
|
2128 |
msgid "Password Size"
|
@@ -2152,23 +2206,23 @@ msgstr ""
|
|
2152 |
msgid "Default Value"
|
2153 |
msgstr ""
|
2154 |
|
2155 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
2156 |
msgid "Someting error! please try again"
|
2157 |
msgstr ""
|
2158 |
|
2159 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
2160 |
msgid "Duplicate field key in form, please contact site administrator."
|
2161 |
msgstr ""
|
2162 |
|
2163 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
2164 |
msgid "Required form field not found."
|
2165 |
msgstr ""
|
2166 |
|
2167 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
2168 |
msgid "Empty confirm password"
|
2169 |
msgstr ""
|
2170 |
|
2171 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
2172 |
msgid "Password and confirm password not matched"
|
2173 |
msgstr ""
|
2174 |
|
@@ -2176,73 +2230,77 @@ msgstr ""
|
|
2176 |
msgid "Dashboard"
|
2177 |
msgstr ""
|
2178 |
|
2179 |
-
#: includes/functions-ur-core.php:
|
2180 |
msgid "Label"
|
2181 |
msgstr ""
|
2182 |
|
2183 |
-
#: includes/functions-ur-core.php:
|
2184 |
msgid "Field Name"
|
2185 |
msgstr ""
|
2186 |
|
2187 |
-
#: includes/functions-ur-core.php:
|
2188 |
msgid "Placeholder"
|
2189 |
msgstr ""
|
2190 |
|
2191 |
-
#: includes/functions-ur-core.php:
|
2192 |
msgid "Required"
|
2193 |
msgstr ""
|
2194 |
|
2195 |
-
#: includes/functions-ur-core.php:
|
2196 |
-
#: includes/functions-ur-core.php:
|
2197 |
msgid "No"
|
2198 |
msgstr ""
|
2199 |
|
2200 |
-
#: includes/functions-ur-core.php:
|
2201 |
-
#: includes/functions-ur-core.php:
|
2202 |
msgid "Yes"
|
2203 |
msgstr ""
|
2204 |
|
2205 |
-
#: includes/functions-ur-core.php:
|
2206 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
2207 |
msgstr ""
|
2208 |
|
2209 |
-
#: includes/functions-ur-core.php:
|
2210 |
msgid "Template"
|
2211 |
msgstr ""
|
2212 |
|
2213 |
-
#: includes/functions-ur-core.php:
|
2214 |
msgid "Default"
|
2215 |
msgstr ""
|
2216 |
|
2217 |
-
#: includes/functions-ur-core.php:
|
2218 |
msgid "Bordered"
|
2219 |
msgstr ""
|
2220 |
|
2221 |
-
#: includes/functions-ur-core.php:
|
2222 |
msgid "Flat"
|
2223 |
msgstr ""
|
2224 |
|
2225 |
-
#: includes/functions-ur-core.php:
|
2226 |
msgid "Rounded"
|
2227 |
msgstr ""
|
2228 |
|
2229 |
-
#: includes/functions-ur-core.php:
|
2230 |
msgid "Rounded Edge"
|
2231 |
msgstr ""
|
2232 |
|
2233 |
-
#: includes/functions-ur-core.php:
|
2234 |
msgid "Manual login after registration"
|
2235 |
msgstr ""
|
2236 |
|
2237 |
-
#: includes/functions-ur-core.php:
|
|
|
|
|
|
|
|
|
2238 |
msgid "Auto login after registration"
|
2239 |
msgstr ""
|
2240 |
|
2241 |
-
#: includes/functions-ur-core.php:
|
2242 |
msgid "Admin approval after registration"
|
2243 |
msgstr ""
|
2244 |
|
2245 |
-
#: includes/functions-ur-core.php:
|
2246 |
msgid ""
|
2247 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
2248 |
"filter must implement <code>UR_Logger_Interface</code>."
|
@@ -2255,11 +2313,11 @@ msgstr ""
|
|
2255 |
msgid "This function should not be called before user_registration_init."
|
2256 |
msgstr ""
|
2257 |
|
2258 |
-
#: includes/functions-ur-template.php:
|
2259 |
msgid "required"
|
2260 |
msgstr ""
|
2261 |
|
2262 |
-
#: includes/functions-ur-template.php:
|
2263 |
msgid "Choose an option"
|
2264 |
msgstr ""
|
2265 |
|
@@ -2271,7 +2329,7 @@ msgstr ""
|
|
2271 |
msgid "This method should not be called before plugins_loaded."
|
2272 |
msgstr ""
|
2273 |
|
2274 |
-
#: includes/shortcodes/class-ur-shortcode-login.php:
|
2275 |
msgid "You are already logged in. %1$s %2$s?"
|
2276 |
msgstr ""
|
2277 |
|
@@ -2331,7 +2389,7 @@ msgid "Confirm new password"
|
|
2331 |
msgstr ""
|
2332 |
|
2333 |
#: templates/myaccount/form-edit-account.php:68
|
2334 |
-
#: templates/myaccount/form-edit-profile.php:
|
2335 |
msgid "Save changes"
|
2336 |
msgstr ""
|
2337 |
|
2 |
# This file is distributed under the same license as the User Registration package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: User Registration 1.1.5\n"
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
+
"POT-Creation-Date: 2017-12-01 11:51:13+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
14 |
"X-Generator: grunt-wp-i18n1.0.0\n"
|
15 |
|
16 |
+
#: includes/abstracts/abstract-ur-form-field.php:309
|
17 |
msgid "General Settings"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#: includes/abstracts/abstract-ur-form-field.php:321
|
21 |
msgid "Advance Settings"
|
22 |
msgstr ""
|
23 |
|
158 |
msgstr ""
|
159 |
|
160 |
#: includes/admin/class-ur-admin-menus.php:460
|
161 |
+
#: includes/admin/settings/class-ur-settings-general.php:200
|
162 |
#: includes/class-ur-query.php:79
|
163 |
msgid "Lost password"
|
164 |
msgstr ""
|
184 |
msgid "User Extra Information %s"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: includes/admin/class-ur-admin-profile.php:117
|
188 |
+
#: includes/admin/class-ur-admin-profile.php:128
|
189 |
#: includes/form/class-ur-select.php:44 includes/form/class-ur-select.php:51
|
190 |
msgid "Select"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: includes/admin/class-ur-admin-profile.php:233
|
194 |
msgid "Attachment not found."
|
195 |
msgstr ""
|
196 |
|
252 |
msgid "Impossible to create an UR_Admin_User_Manager object. Unkwon data type."
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: includes/admin/class-ur-admin-user-manager.php:312
|
256 |
msgid "approved"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: includes/admin/class-ur-admin-user-manager.php:315
|
260 |
msgid "pending"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: includes/admin/class-ur-admin-user-manager.php:318
|
264 |
msgid "denied"
|
265 |
msgstr ""
|
266 |
|
270 |
msgstr ""
|
271 |
|
272 |
#: includes/admin/class-ur-admin.php:119
|
273 |
+
msgid "Thank You!"
|
274 |
msgstr ""
|
275 |
|
276 |
#: includes/admin/class-ur-admin.php:128
|
363 |
msgstr ""
|
364 |
|
365 |
#: includes/admin/settings/class-ur-settings-general.php:62
|
366 |
+
#: includes/functions-ur-core.php:595
|
367 |
msgid "Default user role"
|
368 |
msgstr ""
|
369 |
|
427 |
msgstr ""
|
428 |
|
429 |
#: includes/admin/settings/class-ur-settings-general.php:139
|
430 |
+
#: includes/functions-ur-core.php:609
|
431 |
msgid "Enable strong password"
|
432 |
msgstr ""
|
433 |
|
434 |
#: includes/admin/settings/class-ur-settings-general.php:140
|
435 |
+
msgid "Check to use strong password on user registration form."
|
436 |
msgstr ""
|
437 |
|
438 |
#: includes/admin/settings/class-ur-settings-general.php:148
|
439 |
+
msgid "Disable emails"
|
|
|
440 |
msgstr ""
|
441 |
|
442 |
#: includes/admin/settings/class-ur-settings-general.php:149
|
443 |
+
msgid "Disable emails sent after registration."
|
444 |
+
msgstr ""
|
445 |
+
|
446 |
+
#: includes/admin/settings/class-ur-settings-general.php:157
|
447 |
+
#: includes/functions-ur-core.php:624
|
448 |
+
msgid "Form submit button label"
|
449 |
+
msgstr ""
|
450 |
+
|
451 |
+
#: includes/admin/settings/class-ur-settings-general.php:158
|
452 |
msgid "This option let you change the submit button label."
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: includes/admin/settings/class-ur-settings-general.php:175
|
456 |
msgid "My account endpoints"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: includes/admin/settings/class-ur-settings-general.php:177
|
460 |
msgid ""
|
461 |
"Endpoints are appended to your page URLs to handle specific actions on the "
|
462 |
"accounts pages. They should be unique and can be left blank to disable the "
|
463 |
"endpoint."
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: includes/admin/settings/class-ur-settings-general.php:182
|
467 |
msgid "Edit account"
|
468 |
msgstr ""
|
469 |
|
470 |
+
#: includes/admin/settings/class-ur-settings-general.php:183
|
471 |
msgid "Endpoint for the \"My account → Edit account\" page."
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: includes/admin/settings/class-ur-settings-general.php:191
|
475 |
msgid "Edit profile"
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: includes/admin/settings/class-ur-settings-general.php:192
|
479 |
msgid "Endpoint for the \"My account → Edit profile\" page."
|
480 |
msgstr ""
|
481 |
|
482 |
+
#: includes/admin/settings/class-ur-settings-general.php:201
|
483 |
msgid "Endpoint for the \"My account → Lost password\" page."
|
484 |
msgstr ""
|
485 |
|
486 |
+
#: includes/admin/settings/class-ur-settings-general.php:209
|
487 |
msgid "User logout"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: includes/admin/settings/class-ur-settings-general.php:210
|
491 |
msgid ""
|
492 |
"Endpoint for the triggering logout. You can add this to your menus via a "
|
493 |
"custom link: yoursite.com/?user-logout=true"
|
708 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: includes/class-ur-email-confirmation.php:42
|
712 |
+
msgid "User successfully registered. Login to continue."
|
713 |
+
msgstr ""
|
714 |
+
|
715 |
+
#: includes/class-ur-email-confirmation.php:69
|
716 |
+
#: includes/class-ur-email-confirmation.php:137
|
717 |
+
#: includes/class-ur-user-approval.php:183
|
718 |
+
#: includes/class-ur-user-approval.php:188
|
719 |
+
msgid "ERROR:"
|
720 |
+
msgstr ""
|
721 |
+
|
722 |
+
#: includes/class-ur-email-confirmation.php:69
|
723 |
+
msgid "Token Mismatch!"
|
724 |
+
msgstr ""
|
725 |
+
|
726 |
+
#: includes/class-ur-email-confirmation.php:137
|
727 |
+
msgid ""
|
728 |
+
"Your account is still pending approval. Verifiy your email by clicking on "
|
729 |
+
"the link sent to your email."
|
730 |
+
msgstr ""
|
731 |
+
|
732 |
+
#: includes/class-ur-emailer.php:171
|
733 |
msgid "A New User Registered"
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: includes/class-ur-emailer.php:271
|
737 |
msgid "Someone has requested a password reset for the following account:"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: includes/class-ur-emailer.php:274
|
741 |
msgid "If this was a mistake, just ignore this email and nothing will happen."
|
742 |
msgstr ""
|
743 |
|
744 |
+
#: includes/class-ur-emailer.php:275
|
745 |
msgid "To reset your password, visit the following address:"
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: includes/class-ur-form-handler.php:102
|
749 |
+
#: includes/class-ur-form-handler.php:223
|
750 |
msgid "%s is a required field."
|
751 |
msgstr ""
|
752 |
|
753 |
+
#: includes/class-ur-form-handler.php:115
|
754 |
msgid "%s is not a valid email address."
|
755 |
msgstr ""
|
756 |
|
757 |
+
#: includes/class-ur-form-handler.php:168
|
758 |
msgid "User profile updated successfully."
|
759 |
msgstr ""
|
760 |
|
761 |
+
#: includes/class-ur-form-handler.php:216
|
762 |
#: templates/myaccount/form-edit-account.php:32
|
763 |
msgid "First name"
|
764 |
msgstr ""
|
765 |
|
766 |
+
#: includes/class-ur-form-handler.php:217
|
767 |
#: templates/myaccount/form-edit-account.php:36
|
768 |
msgid "Last name"
|
769 |
msgstr ""
|
770 |
|
771 |
+
#: includes/class-ur-form-handler.php:218
|
772 |
#: templates/myaccount/form-edit-account.php:42
|
773 |
msgid "Email address"
|
774 |
msgstr ""
|
775 |
|
776 |
+
#: includes/class-ur-form-handler.php:230
|
777 |
msgid "Please provide a valid email address."
|
778 |
msgstr ""
|
779 |
|
780 |
+
#: includes/class-ur-form-handler.php:232
|
781 |
msgid "This email address is already registered."
|
782 |
msgstr ""
|
783 |
|
784 |
+
#: includes/class-ur-form-handler.php:238
|
785 |
msgid "Please fill out all password fields."
|
786 |
msgstr ""
|
787 |
|
788 |
+
#: includes/class-ur-form-handler.php:241
|
789 |
msgid "Please enter your current password."
|
790 |
msgstr ""
|
791 |
|
792 |
+
#: includes/class-ur-form-handler.php:244
|
793 |
msgid "Please re-enter your password."
|
794 |
msgstr ""
|
795 |
|
796 |
+
#: includes/class-ur-form-handler.php:247
|
797 |
msgid "New passwords do not match."
|
798 |
msgstr ""
|
799 |
|
800 |
+
#: includes/class-ur-form-handler.php:250
|
801 |
msgid "Your current password is incorrect."
|
802 |
msgstr ""
|
803 |
|
804 |
+
#: includes/class-ur-form-handler.php:271
|
805 |
msgid "Account details changed successfully."
|
806 |
msgstr ""
|
807 |
|
808 |
+
#: includes/class-ur-form-handler.php:301
|
809 |
+
#: includes/class-ur-form-handler.php:305
|
810 |
+
#: includes/class-ur-form-handler.php:314
|
811 |
msgid "Error:"
|
812 |
msgstr ""
|
813 |
|
814 |
+
#: includes/class-ur-form-handler.php:305
|
815 |
msgid "Username is required."
|
816 |
msgstr ""
|
817 |
|
818 |
+
#: includes/class-ur-form-handler.php:314
|
819 |
msgid "A user could not be found with this email address."
|
820 |
msgstr ""
|
821 |
|
822 |
+
#: includes/class-ur-form-handler.php:404
|
823 |
msgid "Please enter your password."
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: includes/class-ur-form-handler.php:408
|
827 |
msgid "Passwords do not match."
|
828 |
msgstr ""
|
829 |
|
832 |
msgstr ""
|
833 |
|
834 |
#: includes/class-ur-frontend-scripts.php:301
|
835 |
+
msgid "User registered. Wait until admin approves your registration."
|
836 |
+
msgstr ""
|
837 |
+
|
838 |
+
#: includes/class-ur-frontend-scripts.php:302
|
839 |
+
msgid ""
|
840 |
+
"User registered. Verify your email by clicking on the link sent to your "
|
841 |
+
"email."
|
842 |
+
msgstr ""
|
843 |
+
|
844 |
+
#: includes/class-ur-frontend-scripts.php:303
|
845 |
msgid "Captcha code error, please try again."
|
846 |
msgstr ""
|
847 |
|
848 |
+
#: includes/class-ur-frontend-scripts.php:314
|
849 |
msgid "Confirm password"
|
850 |
msgstr ""
|
851 |
|
852 |
+
#: includes/class-ur-frontend-scripts.php:316
|
853 |
msgid "Too short password"
|
854 |
msgstr ""
|
855 |
|
856 |
+
#: includes/class-ur-frontend-scripts.php:317
|
857 |
msgid "Bad password"
|
858 |
msgstr ""
|
859 |
|
860 |
+
#: includes/class-ur-frontend-scripts.php:318
|
861 |
msgid "Good password"
|
862 |
msgstr ""
|
863 |
|
864 |
+
#: includes/class-ur-frontend-scripts.php:319
|
865 |
msgid "Strong password"
|
866 |
msgstr ""
|
867 |
|
868 |
+
#: includes/class-ur-frontend-scripts.php:320
|
869 |
msgid "Password with confirm password not matched."
|
870 |
msgstr ""
|
871 |
|
872 |
+
#: includes/class-ur-frontend-scripts.php:323
|
873 |
msgid ""
|
874 |
"Hint: The password should be a at least seven characters long. To make it "
|
875 |
"stronger, user upper and lower case letters, numbers and symbol like ! * ? "
|
1025 |
msgid "Profile Details"
|
1026 |
msgstr ""
|
1027 |
|
|
|
|
|
|
|
|
|
|
|
1028 |
#: includes/class-ur-user-approval.php:183
|
1029 |
msgid "Your account is still pending approval."
|
1030 |
msgstr ""
|
1033 |
msgid "Your account has been denied."
|
1034 |
msgstr ""
|
1035 |
|
1036 |
+
#: includes/form/class-ur-checkbox.php:43
|
1037 |
+
#: includes/form/class-ur-checkbox.php:50
|
1038 |
+
msgid "Checkbox"
|
1039 |
+
msgstr ""
|
1040 |
+
|
1041 |
#: includes/form/class-ur-country.php:37
|
1042 |
msgid "Afghanistan"
|
1043 |
msgstr ""
|
2150 |
msgid "Username already exists."
|
2151 |
msgstr ""
|
2152 |
|
2153 |
+
#: includes/form/settings/class-ur-setting-checkbox.php:41
|
2154 |
+
#: includes/form/settings/class-ur-setting-checkbox.php:55
|
2155 |
#: includes/form/settings/class-ur-setting-country.php:41
|
2156 |
#: includes/form/settings/class-ur-setting-country.php:55
|
2157 |
#: includes/form/settings/class-ur-setting-email.php:41
|
2165 |
msgid "Custom Class"
|
2166 |
msgstr ""
|
2167 |
|
2168 |
+
#: includes/form/settings/class-ur-setting-checkbox.php:61
|
2169 |
+
msgid "Choices"
|
2170 |
+
msgstr ""
|
2171 |
+
|
2172 |
+
#: includes/form/settings/class-ur-setting-checkbox.php:75
|
2173 |
+
msgid ""
|
2174 |
+
"Please input your text here to create the checkbox list like:\n"
|
2175 |
+
"Checkbox 1,\n"
|
2176 |
+
"Checkbox 2,\n"
|
2177 |
+
"Checkbox 3"
|
2178 |
+
msgstr ""
|
2179 |
+
|
2180 |
#: includes/form/settings/class-ur-setting-password.php:41
|
2181 |
#: includes/form/settings/class-ur-setting-password.php:55
|
2182 |
msgid "Password Size"
|
2206 |
msgid "Default Value"
|
2207 |
msgstr ""
|
2208 |
|
2209 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:71
|
2210 |
msgid "Someting error! please try again"
|
2211 |
msgstr ""
|
2212 |
|
2213 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:111
|
2214 |
msgid "Duplicate field key in form, please contact site administrator."
|
2215 |
msgstr ""
|
2216 |
|
2217 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:117
|
2218 |
msgid "Required form field not found."
|
2219 |
msgstr ""
|
2220 |
|
2221 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:213
|
2222 |
msgid "Empty confirm password"
|
2223 |
msgstr ""
|
2224 |
|
2225 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:215
|
2226 |
msgid "Password and confirm password not matched"
|
2227 |
msgstr ""
|
2228 |
|
2230 |
msgid "Dashboard"
|
2231 |
msgstr ""
|
2232 |
|
2233 |
+
#: includes/functions-ur-core.php:479 includes/functions-ur-core.php:482
|
2234 |
msgid "Label"
|
2235 |
msgstr ""
|
2236 |
|
2237 |
+
#: includes/functions-ur-core.php:487 includes/functions-ur-core.php:490
|
2238 |
msgid "Field Name"
|
2239 |
msgstr ""
|
2240 |
|
2241 |
+
#: includes/functions-ur-core.php:496 includes/functions-ur-core.php:499
|
2242 |
msgid "Placeholder"
|
2243 |
msgstr ""
|
2244 |
|
2245 |
+
#: includes/functions-ur-core.php:504
|
2246 |
msgid "Required"
|
2247 |
msgstr ""
|
2248 |
|
2249 |
+
#: includes/functions-ur-core.php:510 includes/functions-ur-core.php:617
|
2250 |
+
#: includes/functions-ur-core.php:645
|
2251 |
msgid "No"
|
2252 |
msgstr ""
|
2253 |
|
2254 |
+
#: includes/functions-ur-core.php:511 includes/functions-ur-core.php:616
|
2255 |
+
#: includes/functions-ur-core.php:644
|
2256 |
msgid "Yes"
|
2257 |
msgstr ""
|
2258 |
|
2259 |
+
#: includes/functions-ur-core.php:637
|
2260 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
2261 |
msgstr ""
|
2262 |
|
2263 |
+
#: includes/functions-ur-core.php:653
|
2264 |
msgid "Template"
|
2265 |
msgstr ""
|
2266 |
|
2267 |
+
#: includes/functions-ur-core.php:660
|
2268 |
msgid "Default"
|
2269 |
msgstr ""
|
2270 |
|
2271 |
+
#: includes/functions-ur-core.php:661
|
2272 |
msgid "Bordered"
|
2273 |
msgstr ""
|
2274 |
|
2275 |
+
#: includes/functions-ur-core.php:662
|
2276 |
msgid "Flat"
|
2277 |
msgstr ""
|
2278 |
|
2279 |
+
#: includes/functions-ur-core.php:663
|
2280 |
msgid "Rounded"
|
2281 |
msgstr ""
|
2282 |
|
2283 |
+
#: includes/functions-ur-core.php:664
|
2284 |
msgid "Rounded Edge"
|
2285 |
msgstr ""
|
2286 |
|
2287 |
+
#: includes/functions-ur-core.php:686
|
2288 |
msgid "Manual login after registration"
|
2289 |
msgstr ""
|
2290 |
|
2291 |
+
#: includes/functions-ur-core.php:687
|
2292 |
+
msgid "Email confirmation to login"
|
2293 |
+
msgstr ""
|
2294 |
+
|
2295 |
+
#: includes/functions-ur-core.php:688
|
2296 |
msgid "Auto login after registration"
|
2297 |
msgstr ""
|
2298 |
|
2299 |
+
#: includes/functions-ur-core.php:689
|
2300 |
msgid "Admin approval after registration"
|
2301 |
msgstr ""
|
2302 |
|
2303 |
+
#: includes/functions-ur-core.php:914
|
2304 |
msgid ""
|
2305 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
2306 |
"filter must implement <code>UR_Logger_Interface</code>."
|
2313 |
msgid "This function should not be called before user_registration_init."
|
2314 |
msgstr ""
|
2315 |
|
2316 |
+
#: includes/functions-ur-template.php:127
|
2317 |
msgid "required"
|
2318 |
msgstr ""
|
2319 |
|
2320 |
+
#: includes/functions-ur-template.php:228
|
2321 |
msgid "Choose an option"
|
2322 |
msgstr ""
|
2323 |
|
2329 |
msgid "This method should not be called before plugins_loaded."
|
2330 |
msgstr ""
|
2331 |
|
2332 |
+
#: includes/shortcodes/class-ur-shortcode-login.php:62
|
2333 |
msgid "You are already logged in. %1$s %2$s?"
|
2334 |
msgstr ""
|
2335 |
|
2389 |
msgstr ""
|
2390 |
|
2391 |
#: templates/myaccount/form-edit-account.php:68
|
2392 |
+
#: templates/myaccount/form-edit-profile.php:44
|
2393 |
msgid "Save changes"
|
2394 |
msgstr ""
|
2395 |
|
package-lock.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "user-registration",
|
3 |
-
"version": "1.1.
|
4 |
"lockfileVersion": 1,
|
5 |
"requires": true,
|
6 |
"dependencies": {
|
1 |
{
|
2 |
"name": "user-registration",
|
3 |
+
"version": "1.1.5",
|
4 |
"lockfileVersion": 1,
|
5 |
"requires": true,
|
6 |
"dependencies": {
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== User Registration ===
|
2 |
Contributors: WPEverest
|
3 |
-
Tags: user registration, registration, profile-builder, user profile, form, registration form, login form
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.1.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -41,11 +41,26 @@ Check [documentation](http://docs.wpeverest.com/docs/user-registration/)
|
|
41 |
* Profile account page
|
42 |
* Admin approval option
|
43 |
* Auto login option
|
|
|
44 |
* Enable/Disable Strong Password
|
45 |
* Default User Role Selection Option
|
46 |
* Well Documented
|
47 |
* Translation ready
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
== Installation ==
|
50 |
|
51 |
1. Install the plugin either via the WordPress.org plugin directory, or by uploading the files to your server (in the /wp-content/plugins/ directory).
|
@@ -76,10 +91,20 @@ Yes, the plugin is designed to work with any themes that have been coded followi
|
|
76 |
10. Settings
|
77 |
11. Shortcode
|
78 |
|
|
|
79 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
= 1.1.3 - 17/10/2017 =
|
81 |
* Fix - Login shortcode required parameter issue resolved.
|
82 |
= 1.1.2 - 16/10/2017 =
|
|
|
83 |
* Feature - New shortcode for login [user_registration_login]
|
84 |
* Feature - 2 More template added for user registration form
|
85 |
* Feature - WordPress rating link on user registration admin section
|
1 |
=== User Registration ===
|
2 |
Contributors: WPEverest
|
3 |
+
Tags: user registration, registration, profile-builder, user profile, form, registration form, login form, user login
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.9
|
6 |
+
Stable tag: 1.1.5
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
41 |
* Profile account page
|
42 |
* Admin approval option
|
43 |
* Auto login option
|
44 |
+
* Email confirmation to register
|
45 |
* Enable/Disable Strong Password
|
46 |
* Default User Role Selection Option
|
47 |
* Well Documented
|
48 |
* Translation ready
|
49 |
|
50 |
+
### Premium Addons
|
51 |
+
|
52 |
+
User Registration can be easily extended with some premium addons.
|
53 |
+
|
54 |
+
* [Social Connect](https://wpeverest.com/wordpress-plugins/user-registration/social-connect/) - Allows users to register/login to your site with social platforms like Facebook, Twitter, Google+ or LinkedIn.
|
55 |
+
|
56 |
+
* [Content Restriction](https://wpeverest.com/wordpress-plugins/user-registration/content-restriction/) - allows you to restrict full or partial content from page, post to only logged in users or logged in users with specific roles.
|
57 |
+
|
58 |
+
* [File Upload](https://wpeverest.com/wordpress-plugins/user-registration/file-upload/) - Allow you to add upload field in registration form so that users can upload documents, images and more.
|
59 |
+
|
60 |
+
* [WooCommerce Integration](https://wpeverest.com/wordpress-plugins/user-registration/woocommerce-integration/) - Integrate and syncs WooCommerce related information to user registration account page like orders, customer details, Billings.
|
61 |
+
|
62 |
+
* [MailChimp](https://wpeverest.com/wordpress-plugins/user-registration/woocommerce-integration/) - Let you sync your registered users with MailChimp list. Automatically add users to your selected MailChimp list upon registration.
|
63 |
+
|
64 |
== Installation ==
|
65 |
|
66 |
1. Install the plugin either via the WordPress.org plugin directory, or by uploading the files to your server (in the /wp-content/plugins/ directory).
|
91 |
10. Settings
|
92 |
11. Shortcode
|
93 |
|
94 |
+
|
95 |
== Changelog ==
|
96 |
+
= 1.1.5 - 03/12/2017 =
|
97 |
+
* Feature - Introduced Checkbox form field
|
98 |
+
* Feature - Email confirmation option for login
|
99 |
+
* Feature - Disable Email option
|
100 |
+
* Fix - Select box issue in user profile
|
101 |
+
* Fix - Shortcode content appearing on top
|
102 |
+
* Fix - Administrator status set to pending in admin approval
|
103 |
+
|
104 |
= 1.1.3 - 17/10/2017 =
|
105 |
* Fix - Login shortcode required parameter issue resolved.
|
106 |
= 1.1.2 - 16/10/2017 =
|
107 |
+
|
108 |
* Feature - New shortcode for login [user_registration_login]
|
109 |
* Feature - 2 More template added for user registration form
|
110 |
* Feature - WordPress rating link on user registration admin section
|
templates/myaccount/form-edit-profile.php
CHANGED
@@ -32,6 +32,7 @@ do_action( 'user_registration_before_edit_profile_form' ); ?>
|
|
32 |
|
33 |
<div class="user-registration-profile-fields__field-wrapper">
|
34 |
<?php foreach ( $profile as $key => $field ) : ?>
|
|
|
35 |
<?php user_registration_form_field( $key, $field, ! empty( $_POST[ $key ] ) ? ur_clean( $_POST[ $key ] ) : $field['value'] ); ?>
|
36 |
<?php endforeach; ?>
|
37 |
</div>
|
32 |
|
33 |
<div class="user-registration-profile-fields__field-wrapper">
|
34 |
<?php foreach ( $profile as $key => $field ) : ?>
|
35 |
+
|
36 |
<?php user_registration_form_field( $key, $field, ! empty( $_POST[ $key ] ) ? ur_clean( $_POST[ $key ] ) : $field['value'] ); ?>
|
37 |
<?php endforeach; ?>
|
38 |
</div>
|
user-registration.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration and login form builder.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Requires at least: 4.0
|
10 |
-
* Tested up to: 4.
|
11 |
*
|
12 |
* Text Domain: user-registration
|
13 |
* Domain Path: /languages/
|
@@ -35,7 +35,7 @@ final class UserRegistration {
|
|
35 |
* Plugin version.
|
36 |
* @var string
|
37 |
*/
|
38 |
-
public $version = '1.1.
|
39 |
|
40 |
/**
|
41 |
* Session instance.
|
@@ -193,6 +193,7 @@ final class UserRegistration {
|
|
193 |
include_once( UR_ABSPATH . 'includes/class-ur-emailer.php' );
|
194 |
include_once( UR_ABSPATH . 'includes/class-ur-ajax.php' );
|
195 |
include_once( UR_ABSPATH . 'includes/class-ur-query.php' );
|
|
|
196 |
|
197 |
/**
|
198 |
* Config classes.
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration and login form builder.
|
6 |
+
* Version: 1.1.5
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Requires at least: 4.0
|
10 |
+
* Tested up to: 4.9
|
11 |
*
|
12 |
* Text Domain: user-registration
|
13 |
* Domain Path: /languages/
|
35 |
* Plugin version.
|
36 |
* @var string
|
37 |
*/
|
38 |
+
public $version = '1.1.5';
|
39 |
|
40 |
/**
|
41 |
* Session instance.
|
193 |
include_once( UR_ABSPATH . 'includes/class-ur-emailer.php' );
|
194 |
include_once( UR_ABSPATH . 'includes/class-ur-ajax.php' );
|
195 |
include_once( UR_ABSPATH . 'includes/class-ur-query.php' );
|
196 |
+
include_once( UR_ABSPATH . 'includes/class-ur-email-confirmation.php' );
|
197 |
|
198 |
/**
|
199 |
* Config classes.
|