Version Description
- 02/05/2018 =
- Refactor - Options for select, checkbox and radio field.
- Add - Placeholder for select and country field.
- Fix - Confirmaction of export/erase personal data from custom login form.
- Fix - Privacy policy made required by default.
- Fix - Formatting of form title display.
- Fix - Validate for same email as password.
- Dev - Action hook for enqueuing scripts.
Download this release
Release Info
Developer | wpeverest |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.5.7 |
Comparing to | |
See all releases |
Code changes from version 1.5.6 to 1.5.7
- assets/css/admin-rtl.css +1 -1
- assets/css/admin.css +1 -1
- assets/css/admin.scss +71 -1
- assets/js/admin/admin.js +191 -24
- assets/js/admin/admin.min.js +1 -1
- assets/js/frontend/password-strength-meter.js +5 -1
- assets/js/frontend/password-strength-meter.min.js +1 -1
- includes/abstracts/abstract-ur-field-settings.php +0 -1
- includes/abstracts/abstract-ur-form-field.php +116 -30
- includes/admin/class-ur-admin-profile.php +16 -8
- includes/admin/views/html-admin-page-forms.php +2 -10
- includes/class-ur-ajax.php +41 -1
- includes/class-ur-cache-helper.php +112 -0
- includes/class-ur-form-handler.php +41 -0
- includes/class-ur-shortcodes.php +6 -0
- includes/form/class-ur-form-field-checkbox.php +5 -0
- includes/form/class-ur-form-field-radio.php +5 -0
- includes/form/class-ur-form-field-select.php +5 -0
- includes/form/settings/class-ur-setting-checkbox.php +0 -12
- includes/form/settings/class-ur-setting-radio.php +0 -10
- includes/form/settings/class-ur-setting-select.php +0 -10
- includes/form/views/admin/admin-checkbox.php +13 -5
- includes/form/views/admin/admin-privacy-policy.php +1 -2
- includes/form/views/admin/admin-radio.php +10 -5
- includes/form/views/admin/admin-select.php +9 -3
- includes/frontend/class-ur-frontend-form-handler.php +31 -0
- includes/functions-ur-core.php +53 -2
- includes/functions-ur-template.php +51 -26
- languages/user-registration.pot +117 -101
- package-lock.json +1 -1
- readme.txt +10 -1
- user-registration.php +3 -2
assets/css/admin-rtl.css
CHANGED
@@ -1,2 +1,2 @@
|
|
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-export-users-page{margin-top:15px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox{width:50%;-webkit-box-flex:1;-webkit-flex:1;flex:1;margin:0 15px 10px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .hndle,.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .stuffbox .hndle{margin:10px}.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 .major-publishing-actions #copy-shortcode{margin-right:-5px;border-radius:3px 0 0 3px}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode svg{fill:#fff;margin-top:4px}.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:-webkit-flex;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:-webkit-flex;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;height:calc(100vh - 85px);overflow-y:auto}.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;height:calc(100vh - 50px);overflow-y:auto}.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:-webkit-flex;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content: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;-webkit-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=phone],.ur-registered-from input[type=text],.ur-registered-from input[type=timepicker],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{border:1px solid #ddd;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=phone]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=timepicker]: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;-webkit-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;-webkit-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}.dashicons,.user-registration table.form-table dashicons .dashicons{line-height:inherit}#smart-tags{text-align:center}.form-settings-tab{padding:10px 15px;cursor:pointer;background:#c4c4c4;margin-bottom:10px}.form-settings-tab.active{background:#217dbb;color:#fff}#profile-page form#your-profile .flatpickr-input[readonly]{background-color:#fff}#ur-tab-registered-fields h2{cursor:pointer}#ur-tab-registered-fields h2:before{content:'\f142';cursor:pointer;display:block;font:400 20px/1 Dashicons;line-height:.5!important;padding:4px;position:relative;left:0;top:0;float:left}#ur-tab-registered-fields h2.closed:before{content:""!important}
|
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-export-users-page{margin-top:15px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox{width:50%;-webkit-box-flex:1;-webkit-flex:1;flex:1;margin:0 15px 10px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .hndle,.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .stuffbox .hndle{margin:10px}.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 .major-publishing-actions #copy-shortcode{margin-right:-5px;border-radius:3px 0 0 3px}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode svg{fill:#fff;margin-top:4px}.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:-webkit-flex;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 a{text-decoration:none}.ur-registered-from .ur-field{line-height:2}.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:-webkit-flex;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;height:calc(100vh - 85px);overflow-y:auto}.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;height:calc(100vh - 50px);overflow-y:auto}.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:-webkit-flex;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content: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;-webkit-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=phone],.ur-registered-from input[type=text],.ur-registered-from input[type=timepicker],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{border:1px solid #ddd;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=phone]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=timepicker]: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}.ur-registered-from .ur-options-list li{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ur-registered-from .ur-options-list li .editor-block-mover__control-drag-handle{margin-left:10px;cursor:-webkit-grab;cursor:grab}.ur-registered-from .ur-options-list li input{margin-left:10px}.ur-registered-from .ur-options-list li .add,.ur-registered-from .ur-options-list li .remove{background:#fff;border:1px solid #ddd;color:#666;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1 0 35px;flex:1 0 35px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:35px;position:relative}.ur-registered-from .ur-options-list li .add:hover,.ur-registered-from .ur-options-list li .remove:hover{background:#3498db;border-color:#3498db;color:#fff}.ur-registered-from .ur-options-list li .add i,.ur-registered-from .ur-options-list li .remove i{line-height:22px}.ur-registered-from .ur-options-list li .add{margin-left:10px}.ur-registered-from .ur-options-list .ui-sortable-handle{padding:5px;border:1px solid transparent}.ur-registered-from .ur-options-list .ui-sortable-handle:active{background:#f2f2f2;border:1px solid #3498db;padding:5px;box-shadow:0 0 20px rgba(0,0,0,.2)}.ur-registered-from .ur-options-list .ui-sortable-handle.ui-sortable-placeholder{border:1px dashed #217dbb;background-color:#e1f0fa;visibility:visible!important}#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;-webkit-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;-webkit-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}.dashicons,.user-registration table.form-table dashicons .dashicons{line-height:inherit}#smart-tags{text-align:center}.form-settings-tab{padding:10px 15px;cursor:pointer;background:#c4c4c4;margin-bottom:10px}.form-settings-tab.active{background:#217dbb;color:#fff}#profile-page form#your-profile .flatpickr-input[readonly]{background-color:#fff}#ur-tab-registered-fields h2{cursor:pointer}#ur-tab-registered-fields h2:before{content:'\f142';cursor:pointer;display:block;font:400 20px/1 Dashicons;line-height:.5!important;padding:4px;position:relative;left:0;top:0;float:left}#ur-tab-registered-fields h2.closed:before{content:""!important}
|
assets/css/admin.css
CHANGED
@@ -1,2 +1,2 @@
|
|
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-export-users-page{margin-top:15px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox{width:50%;-webkit-box-flex:1;-webkit-flex:1;flex:1;margin:0 15px 10px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .hndle,.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .stuffbox .hndle{margin:10px}.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 .major-publishing-actions #copy-shortcode{margin-left:-5px;border-radius:0 3px 3px 0}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode svg{fill:#fff;margin-top:4px}.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:-webkit-flex;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:-webkit-flex;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;height:calc(100vh - 85px);overflow-y:auto}.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;height:calc(100vh - 50px);overflow-y:auto}.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:-webkit-flex;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content: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;-webkit-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=phone],.ur-registered-from input[type=text],.ur-registered-from input[type=timepicker],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{border:1px solid #ddd;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=phone]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=timepicker]: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;-webkit-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;-webkit-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}.dashicons,.user-registration table.form-table dashicons .dashicons{line-height:inherit}#smart-tags{text-align:center}.form-settings-tab{padding:10px 15px;cursor:pointer;background:#c4c4c4;margin-bottom:10px}.form-settings-tab.active{background:#217dbb;color:#fff}#profile-page form#your-profile .flatpickr-input[readonly]{background-color:#fff}#ur-tab-registered-fields h2{cursor:pointer}#ur-tab-registered-fields h2:before{content:'\f142';cursor:pointer;display:block;font:400 20px/1 Dashicons;line-height:.5!important;padding:4px;position:relative;right:0;top:0;float:right}#ur-tab-registered-fields h2.closed:before{content:""!important}
|
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-export-users-page{margin-top:15px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox{width:50%;-webkit-box-flex:1;-webkit-flex:1;flex:1;margin:0 15px 10px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .hndle,.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .stuffbox .hndle{margin:10px}.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 .major-publishing-actions #copy-shortcode{margin-left:-5px;border-radius:0 3px 3px 0}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode svg{fill:#fff;margin-top:4px}.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:-webkit-flex;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 a{text-decoration:none}.ur-registered-from .ur-field{line-height:2}.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:-webkit-flex;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;height:calc(100vh - 85px);overflow-y:auto}.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;height:calc(100vh - 50px);overflow-y:auto}.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:-webkit-flex;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content: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;-webkit-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=phone],.ur-registered-from input[type=text],.ur-registered-from input[type=timepicker],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{border:1px solid #ddd;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=phone]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=timepicker]: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}.ur-registered-from .ur-options-list li{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ur-registered-from .ur-options-list li .editor-block-mover__control-drag-handle{margin-right:10px;cursor:-webkit-grab;cursor:grab}.ur-registered-from .ur-options-list li input{margin-right:10px}.ur-registered-from .ur-options-list li .add,.ur-registered-from .ur-options-list li .remove{background:#fff;border:1px solid #ddd;color:#666;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1 0 35px;flex:1 0 35px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:35px;position:relative}.ur-registered-from .ur-options-list li .add:hover,.ur-registered-from .ur-options-list li .remove:hover{background:#3498db;border-color:#3498db;color:#fff}.ur-registered-from .ur-options-list li .add i,.ur-registered-from .ur-options-list li .remove i{line-height:22px}.ur-registered-from .ur-options-list li .add{margin-right:10px}.ur-registered-from .ur-options-list .ui-sortable-handle{padding:5px;border:1px solid transparent}.ur-registered-from .ur-options-list .ui-sortable-handle:active{background:#f2f2f2;border:1px solid #3498db;padding:5px;box-shadow:0 0 20px rgba(0,0,0,.2)}.ur-registered-from .ur-options-list .ui-sortable-handle.ui-sortable-placeholder{border:1px dashed #217dbb;background-color:#e1f0fa;visibility:visible!important}#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;-webkit-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;-webkit-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}.dashicons,.user-registration table.form-table dashicons .dashicons{line-height:inherit}#smart-tags{text-align:center}.form-settings-tab{padding:10px 15px;cursor:pointer;background:#c4c4c4;margin-bottom:10px}.form-settings-tab.active{background:#217dbb;color:#fff}#profile-page form#your-profile .flatpickr-input[readonly]{background-color:#fff}#ur-tab-registered-fields h2{cursor:pointer}#ur-tab-registered-fields h2:before{content:'\f142';cursor:pointer;display:block;font:400 20px/1 Dashicons;line-height:.5!important;padding:4px;position:relative;right:0;top:0;float:right}#ur-tab-registered-fields h2.closed:before{content:""!important}
|
assets/css/admin.scss
CHANGED
@@ -557,6 +557,15 @@
|
|
557 |
*:focus {
|
558 |
outline: 0;
|
559 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
560 |
.ur-registered-inputs {
|
561 |
width: 35%;
|
562 |
background-color: $color_gray_ten;
|
@@ -981,6 +990,67 @@
|
|
981 |
.ur-general-setting label {
|
982 |
display: block;
|
983 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
984 |
}
|
985 |
|
986 |
#sortable {
|
@@ -1327,4 +1397,4 @@ img.tips {
|
|
1327 |
}
|
1328 |
}
|
1329 |
}
|
1330 |
-
}
|
557 |
*:focus {
|
558 |
outline: 0;
|
559 |
}
|
560 |
+
|
561 |
+
a {
|
562 |
+
text-decoration: none;
|
563 |
+
}
|
564 |
+
|
565 |
+
.ur-field {
|
566 |
+
line-height: 2;
|
567 |
+
}
|
568 |
+
|
569 |
.ur-registered-inputs {
|
570 |
width: 35%;
|
571 |
background-color: $color_gray_ten;
|
990 |
.ur-general-setting label {
|
991 |
display: block;
|
992 |
}
|
993 |
+
|
994 |
+
.ur-options-list {
|
995 |
+
|
996 |
+
li {
|
997 |
+
display: flex;
|
998 |
+
align-items: center;
|
999 |
+
|
1000 |
+
.editor-block-mover__control-drag-handle {
|
1001 |
+
margin-right: 10px;
|
1002 |
+
cursor: grab;
|
1003 |
+
}
|
1004 |
+
|
1005 |
+
input {
|
1006 |
+
margin-right: 10px;
|
1007 |
+
}
|
1008 |
+
|
1009 |
+
.add, .remove {
|
1010 |
+
background: $white;
|
1011 |
+
border: 1px solid $color_gray_six;
|
1012 |
+
color: $color_gray_two;
|
1013 |
+
display: flex;
|
1014 |
+
flex: 1 0 35px;
|
1015 |
+
align-items: center;
|
1016 |
+
justify-content: center;
|
1017 |
+
height: 35px;
|
1018 |
+
position: relative;
|
1019 |
+
|
1020 |
+
&:hover {
|
1021 |
+
background: $primary_color;
|
1022 |
+
border-color: $primary_color;
|
1023 |
+
color: $white;
|
1024 |
+
}
|
1025 |
+
|
1026 |
+
i {
|
1027 |
+
line-height: 22px;
|
1028 |
+
}
|
1029 |
+
}
|
1030 |
+
|
1031 |
+
.add {
|
1032 |
+
margin-right: 10px;
|
1033 |
+
}
|
1034 |
+
}
|
1035 |
+
|
1036 |
+
.ui-sortable-handle {
|
1037 |
+
padding: 5px;
|
1038 |
+
border: 1px solid transparent;
|
1039 |
+
|
1040 |
+
&:active{
|
1041 |
+
background: $color_gray_eight;
|
1042 |
+
border: 1px solid $primary_color;
|
1043 |
+
padding: 5px;
|
1044 |
+
box-shadow: 0 0 20px rgba(0,0,0,.2);
|
1045 |
+
}
|
1046 |
+
|
1047 |
+
&.ui-sortable-placeholder {
|
1048 |
+
border: 1px dashed $primary_dark;
|
1049 |
+
background-color: $primary_light;
|
1050 |
+
visibility: visible !important;
|
1051 |
+
}
|
1052 |
+
}
|
1053 |
+
}
|
1054 |
}
|
1055 |
|
1056 |
#sortable {
|
1397 |
}
|
1398 |
}
|
1399 |
}
|
1400 |
+
}
|
assets/js/admin/admin.js
CHANGED
@@ -477,6 +477,9 @@ jQuery(function ($) {
|
|
477 |
$('.ur-tabs').tabs('enable', 1);
|
478 |
$('.ur-tabs').find('a').eq(1).trigger('click');
|
479 |
}
|
|
|
|
|
|
|
480 |
}
|
481 |
|
482 |
$('.ur_save_form_action_button').on('click', function () {
|
@@ -485,10 +488,10 @@ jQuery(function ($) {
|
|
485 |
show_message(validation_response.message);
|
486 |
return;
|
487 |
}
|
|
|
488 |
var form_data = get_form_data();
|
489 |
var ur_form_id = $('#ur_form_id').val();
|
490 |
var ur_form_id_localization = user_registration_admin_data.post_id;
|
491 |
-
|
492 |
if (ur_parse_int(ur_form_id_localization, 0) !== ur_parse_int(ur_form_id, 0)) {
|
493 |
ur_form_id = 0;
|
494 |
}
|
@@ -638,6 +641,7 @@ jQuery(function ($) {
|
|
638 |
var grid_wise_data = get_grid_wise_data(grid_item);
|
639 |
single_row_data.push(grid_wise_data);
|
640 |
});
|
|
|
641 |
form_data.push(single_row_data);
|
642 |
});
|
643 |
return form_data;
|
@@ -654,17 +658,46 @@ jQuery(function ($) {
|
|
654 |
general_setting: get_field_general_setting($this_item),
|
655 |
advance_setting: get_field_advance_setting($this_item)
|
656 |
};
|
|
|
657 |
all_field_data.push(single_field_data);
|
658 |
});
|
659 |
return all_field_data;
|
660 |
}
|
661 |
|
662 |
function get_field_general_setting($single_item) {
|
|
|
663 |
var general_setting_field = $single_item.find('.ur-general-setting-block').find('.ur-general-setting-field');
|
664 |
var general_setting_data = {};
|
|
|
|
|
|
|
665 |
$.each(general_setting_field, function () {
|
666 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
667 |
});
|
|
|
|
|
668 |
return general_setting_data;
|
669 |
}
|
670 |
|
@@ -710,6 +743,33 @@ jQuery(function ($) {
|
|
710 |
$this_obj.on('change', function () {
|
711 |
trigger_general_setting_field_name($(this));
|
712 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
713 |
break;
|
714 |
case 'placeholder':
|
715 |
$this_obj.on('keyup', function () {
|
@@ -794,41 +854,84 @@ jQuery(function ($) {
|
|
794 |
break;
|
795 |
}
|
796 |
}
|
797 |
-
function render_check_box(
|
798 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
799 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
800 |
var checkbox = wrapper.find('.ur-field');
|
801 |
checkbox.html('');
|
802 |
-
|
803 |
for (var i = 0; i < array_value.length; i++) {
|
804 |
if (array_value[i] !== '') {
|
805 |
-
checkbox.append('<label><input value="' + array_value[i].trim() + '" type="checkbox">' + array_value[i].trim() + '</label>');
|
806 |
}
|
807 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
808 |
}
|
809 |
-
|
810 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
811 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
812 |
var radio = wrapper.find('.ur-field');
|
813 |
radio.html('');
|
814 |
-
|
815 |
for (var i = 0; i < array_value.length; i++) {
|
816 |
if (array_value[i] !== '') {
|
817 |
-
radio.append('<label><input value="' + array_value[i].trim() + '" type="radio">' + array_value[i].trim() + '</label>');
|
818 |
}
|
819 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
820 |
}
|
821 |
-
|
822 |
-
|
|
|
823 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
|
|
824 |
var select = wrapper.find('.ur-field').find('select');
|
|
|
825 |
select.html('');
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
}
|
831 |
-
}
|
832 |
}
|
833 |
|
834 |
function trigger_general_setting_field_name($label) {
|
@@ -836,6 +939,15 @@ jQuery(function ($) {
|
|
836 |
wrapper.find('.ur-general-setting-block').find('input[data-field="' + $label.attr('data-field') + '"]').attr('value', $label.val());
|
837 |
}
|
838 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
839 |
function trigger_general_setting_label($label) {
|
840 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
841 |
wrapper.find('.ur-label').find('label').text($label.val());
|
@@ -886,9 +998,7 @@ jQuery(function ($) {
|
|
886 |
field_node.closest('.ur-selected-item').find('select[data-field="required"]').val('yes').trigger('change');
|
887 |
field_node.closest('.ur-selected-item').find('select[data-field="required"]').find('option[value="yes"]').attr('selected', 'selected');
|
888 |
field_node.closest('.ur-selected-item').find('select[data-field="required"]').attr('disabled', 'disabled');
|
889 |
-
|
890 |
}
|
891 |
-
|
892 |
}
|
893 |
|
894 |
var label_node = selected_inputs.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest('.ur-selected-item').find('.ur-label').find('label');
|
@@ -911,14 +1021,10 @@ jQuery(function ($) {
|
|
911 |
if ($.inArray(data_field_id, single_draggable_fields) >= 0) {
|
912 |
|
913 |
if ($('.ur-selected-inputs').find('.ur-field[data-field-key="' + data_field_id + '"]').length > 0) {
|
914 |
-
|
915 |
-
|
916 |
$this.draggable('disable');
|
917 |
} else {
|
918 |
-
|
919 |
$this.draggable('enable');
|
920 |
}
|
921 |
-
|
922 |
}
|
923 |
});
|
924 |
}
|
@@ -982,4 +1088,65 @@ jQuery(function ($) {
|
|
982 |
$(field_list).slideToggle();
|
983 |
});
|
984 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
985 |
}(jQuery, window.user_registration_admin_data));
|
477 |
$('.ur-tabs').tabs('enable', 1);
|
478 |
$('.ur-tabs').find('a').eq(1).trigger('click');
|
479 |
}
|
480 |
+
$('.ur-options-list').sortable({
|
481 |
+
containment: '.ur-general-setting-options',
|
482 |
+
});
|
483 |
}
|
484 |
|
485 |
$('.ur_save_form_action_button').on('click', function () {
|
488 |
show_message(validation_response.message);
|
489 |
return;
|
490 |
}
|
491 |
+
|
492 |
var form_data = get_form_data();
|
493 |
var ur_form_id = $('#ur_form_id').val();
|
494 |
var ur_form_id_localization = user_registration_admin_data.post_id;
|
|
|
495 |
if (ur_parse_int(ur_form_id_localization, 0) !== ur_parse_int(ur_form_id, 0)) {
|
496 |
ur_form_id = 0;
|
497 |
}
|
641 |
var grid_wise_data = get_grid_wise_data(grid_item);
|
642 |
single_row_data.push(grid_wise_data);
|
643 |
});
|
644 |
+
|
645 |
form_data.push(single_row_data);
|
646 |
});
|
647 |
return form_data;
|
658 |
general_setting: get_field_general_setting($this_item),
|
659 |
advance_setting: get_field_advance_setting($this_item)
|
660 |
};
|
661 |
+
|
662 |
all_field_data.push(single_field_data);
|
663 |
});
|
664 |
return all_field_data;
|
665 |
}
|
666 |
|
667 |
function get_field_general_setting($single_item) {
|
668 |
+
|
669 |
var general_setting_field = $single_item.find('.ur-general-setting-block').find('.ur-general-setting-field');
|
670 |
var general_setting_data = {};
|
671 |
+
|
672 |
+
var option_values = [];
|
673 |
+
var default_values = [];
|
674 |
$.each(general_setting_field, function () {
|
675 |
+
|
676 |
+
var is_checkbox = $(this).closest('.ur-general-setting-block').hasClass('ur-general-setting-checkbox');
|
677 |
+
|
678 |
+
if( 'options' === $(this).attr('data-field') ) {
|
679 |
+
general_setting_data['options'] = option_values.push( get_ur_data($(this) ) );
|
680 |
+
general_setting_data['options'] = option_values;
|
681 |
+
} else {
|
682 |
+
|
683 |
+
if( 'default_value' === $(this).attr('data-field') ) {
|
684 |
+
|
685 |
+
if( is_checkbox === true ) {
|
686 |
+
if( $(this).is(":checked") ) {
|
687 |
+
general_setting_data['default_value'] = default_values.push( get_ur_data( $(this)));
|
688 |
+
general_setting_data['default_value'] = default_values;
|
689 |
+
}
|
690 |
+
} else if( $(this).is(":checked") ) {
|
691 |
+
general_setting_data['default_value'] = get_ur_data($(this) );
|
692 |
+
}
|
693 |
+
|
694 |
+
} else {
|
695 |
+
general_setting_data[$(this).attr('data-field')] = get_ur_data($(this)) ;
|
696 |
+
}
|
697 |
+
}
|
698 |
});
|
699 |
+
|
700 |
+
|
701 |
return general_setting_data;
|
702 |
}
|
703 |
|
743 |
$this_obj.on('change', function () {
|
744 |
trigger_general_setting_field_name($(this));
|
745 |
});
|
746 |
+
case 'default_value':
|
747 |
+
$this_obj.on('change', function () {
|
748 |
+
|
749 |
+
if ( 'default_value' === $this_obj.attr('data-field') ) {
|
750 |
+
if( $this_obj.closest('.ur-general-setting-block').hasClass('ur-general-setting-select') ) {
|
751 |
+
render_select_box( $(this) );
|
752 |
+
} else if ( $this_obj.closest('.ur-general-setting-block').hasClass('ur-general-setting-radio') ) {
|
753 |
+
render_radio( $(this) );
|
754 |
+
} else if ( $this_obj.closest('.ur-general-setting-block').hasClass('ur-general-setting-checkbox') ) {
|
755 |
+
render_check_box( $(this) );
|
756 |
+
}
|
757 |
+
}
|
758 |
+
});
|
759 |
+
break;
|
760 |
+
case 'options':
|
761 |
+
$this_obj.on('keyup', function () {
|
762 |
+
|
763 |
+
if( $this_obj.closest('.ur-general-setting-block').hasClass('ur-general-setting-select') && $this_obj.siblings('input[data-field="default_value"]').is(':checked') ) {
|
764 |
+
render_select_box( $(this) );
|
765 |
+
} else if ( $this_obj.closest('.ur-general-setting-block').hasClass('ur-general-setting-radio') ) {
|
766 |
+
render_radio( $(this) );
|
767 |
+
} else if ( $this_obj.closest('.ur-general-setting-block').hasClass('ur-general-setting-checkbox') ) {
|
768 |
+
render_check_box( $(this) );
|
769 |
+
}
|
770 |
+
|
771 |
+
trigger_general_setting_options($(this));
|
772 |
+
});
|
773 |
break;
|
774 |
case 'placeholder':
|
775 |
$this_obj.on('keyup', function () {
|
854 |
break;
|
855 |
}
|
856 |
}
|
857 |
+
function render_check_box(this_node) {
|
858 |
+
|
859 |
+
var array_value = [];
|
860 |
+
var li_elements = this_node.closest('ul').find('li');
|
861 |
+
var checked_index = this_node.closest('li').index();
|
862 |
+
|
863 |
+
li_elements.each( function( index, element) {
|
864 |
+
var value = $( element ).find('input.ur-type-checkbox-label').val();
|
865 |
+
value = $.trim(value);
|
866 |
+
checkbox = $( element ).find('input.ur-type-checkbox-value').is( ':checked' );
|
867 |
+
array_value.push( {value:value, checkbox:checkbox });
|
868 |
+
});
|
869 |
+
|
870 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
871 |
var checkbox = wrapper.find('.ur-field');
|
872 |
checkbox.html('');
|
873 |
+
|
874 |
for (var i = 0; i < array_value.length; i++) {
|
875 |
if (array_value[i] !== '') {
|
876 |
+
checkbox.append('<label><input value="' + array_value[i].value.trim() + '" type="checkbox" ' + ( (array_value[i].checkbox) ? 'checked' : '' ) + ' disabled>' + array_value[i].value.trim() + '</label>');
|
877 |
}
|
878 |
}
|
879 |
+
|
880 |
+
if( this_node.is( ':checked' ) ) {
|
881 |
+
wrapper.find('.ur-general-setting-options li:nth(' + checked_index + ') input[data-field="default_value"]').attr( 'checked', 'checked' );
|
882 |
+
} else {
|
883 |
+
wrapper.find('.ur-general-setting-options li:nth(' + checked_index + ') input[data-field="default_value"]').removeAttr( 'checked' );
|
884 |
+
}
|
885 |
}
|
886 |
+
|
887 |
+
function render_radio(this_node) {
|
888 |
+
var li_elements = this_node.closest('ul').find('li');
|
889 |
+
var checked_index = undefined;
|
890 |
+
var array_value = [];
|
891 |
+
|
892 |
+
li_elements.each( function( index, element) {
|
893 |
+
var value = $( element ).find('input.ur-type-radio-label').val();
|
894 |
+
value = $.trim(value);
|
895 |
+
radio = $( element ).find('input.ur-type-radio-value').is( ':checked' );
|
896 |
+
// Set checked elements index value
|
897 |
+
if( radio === true) {
|
898 |
+
checked_index = index;
|
899 |
+
}
|
900 |
+
array_value.push({value:value, radio:radio });
|
901 |
+
});
|
902 |
+
|
903 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
904 |
var radio = wrapper.find('.ur-field');
|
905 |
radio.html('');
|
906 |
+
|
907 |
for (var i = 0; i < array_value.length; i++) {
|
908 |
if (array_value[i] !== '') {
|
909 |
+
radio.append('<label><input value="' + array_value[i].value.trim() + '" type="radio" ' + ( (array_value[i].radio)? 'checked' : '' ) + ' disabled>' + array_value[i].value.trim() + '</label>');
|
910 |
}
|
911 |
}
|
912 |
+
|
913 |
+
// Loop through options in active fields general setting hidden div.
|
914 |
+
wrapper.find( '.ur-general-setting-options > ul.ur-options-list > li' ).each( function( index, element ) {
|
915 |
+
var radio_input = $(element).find( '[data-field="default_value"]' );
|
916 |
+
if( index === checked_index ){
|
917 |
+
radio_input.attr( 'checked', 'checked' );
|
918 |
+
}else{
|
919 |
+
radio_input.removeAttr( 'checked' );
|
920 |
+
}
|
921 |
+
} );
|
922 |
}
|
923 |
+
|
924 |
+
function render_select_box(this_node) {
|
925 |
+
value = $.trim( this_node.val() );
|
926 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
927 |
+
var checked_index = this_node.closest('li').index();
|
928 |
var select = wrapper.find('.ur-field').find('select');
|
929 |
+
|
930 |
select.html('');
|
931 |
+
select.append('<option value=\'' + value + '\'>' + value + '</option>');
|
932 |
+
|
933 |
+
wrapper.find('.ur-general-setting-options li input[data-field="default_value"]').removeAttr( 'checked' );
|
934 |
+
wrapper.find('.ur-general-setting-options li:nth(' + checked_index + ') input[data-field="default_value"]').attr( 'checked', 'checked' );
|
|
|
|
|
935 |
}
|
936 |
|
937 |
function trigger_general_setting_field_name($label) {
|
939 |
wrapper.find('.ur-general-setting-block').find('input[data-field="' + $label.attr('data-field') + '"]').attr('value', $label.val());
|
940 |
}
|
941 |
|
942 |
+
function trigger_general_setting_options($label) {
|
943 |
+
|
944 |
+
var wrapper = $('.ur-selected-item.ur-item-active');
|
945 |
+
var index = $label.closest('li').index();
|
946 |
+
wrapper.find( '.ur-general-setting-block li:nth(' + index + ') input[data-field="' + $label.attr('data-field') + '"]' ).attr( 'value', $label.val() );
|
947 |
+
wrapper.find( '.ur-general-setting-block li:nth(' + index + ') input[data-field="default_value"]' ).val( $label.val() );
|
948 |
+
$label.closest('li').find('[data-field="default_value"]').val( $label.val() );
|
949 |
+
}
|
950 |
+
|
951 |
function trigger_general_setting_label($label) {
|
952 |
var wrapper = $('.ur-selected-item.ur-item-active');
|
953 |
wrapper.find('.ur-label').find('label').text($label.val());
|
998 |
field_node.closest('.ur-selected-item').find('select[data-field="required"]').val('yes').trigger('change');
|
999 |
field_node.closest('.ur-selected-item').find('select[data-field="required"]').find('option[value="yes"]').attr('selected', 'selected');
|
1000 |
field_node.closest('.ur-selected-item').find('select[data-field="required"]').attr('disabled', 'disabled');
|
|
|
1001 |
}
|
|
|
1002 |
}
|
1003 |
|
1004 |
var label_node = selected_inputs.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest('.ur-selected-item').find('.ur-label').find('label');
|
1021 |
if ($.inArray(data_field_id, single_draggable_fields) >= 0) {
|
1022 |
|
1023 |
if ($('.ur-selected-inputs').find('.ur-field[data-field-key="' + data_field_id + '"]').length > 0) {
|
|
|
|
|
1024 |
$this.draggable('disable');
|
1025 |
} else {
|
|
|
1026 |
$this.draggable('enable');
|
1027 |
}
|
|
|
1028 |
}
|
1029 |
});
|
1030 |
}
|
1088 |
$(field_list).slideToggle();
|
1089 |
});
|
1090 |
|
1091 |
+
$(document).on('click', '.ur-options-list .add', function( e ) {
|
1092 |
+
|
1093 |
+
e.preventDefault();
|
1094 |
+
var $this = $(this),
|
1095 |
+
$wrapper = $( '.ur-selected-item.ur-item-active' ),
|
1096 |
+
this_index = $this.parent('li').index(),
|
1097 |
+
cloning_element = $this.parent('li').clone(true, true);
|
1098 |
+
|
1099 |
+
cloning_element.find('input[data-field="options"]').val('');
|
1100 |
+
cloning_element.find('input[data-field="default_value"]').removeAttr('checked');
|
1101 |
+
|
1102 |
+
$this.parent('li').after( cloning_element );
|
1103 |
+
$wrapper.find( '.ur-general-setting-options .ur-options-list > li:nth( ' + this_index + ' )' ).after( cloning_element.clone(true, true) );
|
1104 |
+
|
1105 |
+
if ( $this.closest('.ur-general-setting-block').hasClass('ur-general-setting-radio') ) {
|
1106 |
+
render_radio( $this );
|
1107 |
+
} else if( $this.closest('.ur-general-setting-block').hasClass('ur-general-setting-checkbox') ) {
|
1108 |
+
render_check_box( $this );
|
1109 |
+
}
|
1110 |
+
});
|
1111 |
+
|
1112 |
+
$(document).on('click', '.ur-options-list .remove', function( e ) {
|
1113 |
+
|
1114 |
+
e.preventDefault();
|
1115 |
+
var $this = $(this),
|
1116 |
+
$parent_ul = $(this).closest('ul');
|
1117 |
+
$any_siblings = $parent_ul.find('li');
|
1118 |
+
$wrapper = $( '.ur-selected-item.ur-item-active' ),
|
1119 |
+
this_index = $this.parent('li').index();
|
1120 |
+
|
1121 |
+
if( $parent_ul.find('li').length > 1 ) {
|
1122 |
+
|
1123 |
+
$this.parent('li').remove();
|
1124 |
+
$wrapper.find( '.ur-general-setting-options .ur-options-list > li:nth( ' + this_index + ' )' ).remove();
|
1125 |
+
|
1126 |
+
if ( $any_siblings.closest('.ur-general-setting-block').hasClass('ur-general-setting-radio') ) {
|
1127 |
+
render_radio( $any_siblings );
|
1128 |
+
} else if( $any_siblings.closest('.ur-general-setting-block').hasClass('ur-general-setting-checkbox') ) {
|
1129 |
+
render_check_box( $any_siblings );
|
1130 |
+
}
|
1131 |
+
}
|
1132 |
+
});
|
1133 |
+
|
1134 |
+
$( document ).on('sortstop', '.ur-options-list', function( event, ui ) {
|
1135 |
+
var $this = $( this );
|
1136 |
+
ur_clone_options( $this );
|
1137 |
+
if ( $this.closest('.ur-general-setting-block').hasClass('ur-general-setting-radio') ) {
|
1138 |
+
render_radio( $this );
|
1139 |
+
} else if( $this.closest('.ur-general-setting-block').hasClass('ur-general-setting-checkbox') ) {
|
1140 |
+
render_check_box( $this );
|
1141 |
+
}
|
1142 |
+
});
|
1143 |
+
|
1144 |
+
function ur_clone_options( $this_obj ) {
|
1145 |
+
var cloning_options = $this_obj.clone( true, true );
|
1146 |
+
var wrapper = $('.ur-selected-item.ur-item-active');
|
1147 |
+
var cloning_element = wrapper.find( '.ur-general-setting-options .ur-options-list');
|
1148 |
+
cloning_element.html('');
|
1149 |
+
cloning_element.replaceWith(cloning_options);
|
1150 |
+
}
|
1151 |
+
|
1152 |
}(jQuery, window.user_registration_admin_data));
|
assets/js/admin/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(e){var i=e(".ur-tab-lists").find("li").last();e(i).on("click",function(){var i=e(".ur-selected-inputs");i.children().hide();var t=e(".ur-registered-inputs nav").find("#ur-tab-field-settings");t.find("form").appendTo(i),i.find("form#ur-field-settings").show();var r=i.find("form #ur-field-all-settings").children();r.hide(),i.find("form #ur-field-all-settings #general-settings").show(),r.each(function(r,a){var n=e(a).find("h3").text(),s=e(a).attr("id");0===t.find("#"+s).length&&t.append('<div id="'+s+'">'+n+"</div>"),t.find("#general-settings").addClass("active"),t.find("#"+s).addClass("form-settings-tab"),e(t.find("#"+s)).on("click",function(){e(this).parent().find(".active").removeClass("active"),e(this).addClass("active"),i.find("form #ur-field-all-settings").children().hide(),i.find("form #ur-field-all-settings").find("#"+s).show()})})});var t=e(".ur-tab-lists").find("li").first();e(t).on("click",function(){fields_panel=e(".ur-selected-inputs"),fields_panel.children().show(),fields_panel.find("form#ur-field-settings").hide()});var r=e("#general-settings").find("#user_registration_form_setting_minimum_password_strength_field"),a=e("#general-settings").find("#user_registration_form_setting_enable_strong_password_field select#user_registration_form_setting_enable_strong_password");"yes"===a.val()?r.show():r.hide(),e(a).change(function(){"yes"===e(this).val()?r.show("slow"):r.hide("slow")}),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, .ur-copy-shortcode").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>'+u.i18n_success+"! </strong>"+i+"</p></div>":'<div class="updated ur-notices" style="border-color: red;"><p><strong>'+u.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 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=function(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:function(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")]=a(e(this))}),r}(i),advance_setting:function(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")]=a(e(this))}),r}(i)};r.push(t)}),r}(e(this));r.push(i)}),i.push(r)}),i}function a(e){var i="";switch(e.get(0).tagName.toLowerCase()){case"input":case"select":case"textarea":i=e.val()}return i}function n(){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(){!function(i){e(".ur-selected-item.ur-item-active").find(".ur-label").find("label").text(i.val());e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+i.attr("data-field")+'"]').attr("value",i.val())}(e(this))});break;case"field_name":case"input_mask":i.on("change",function(){!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())}(e(this))});break;case"placeholder":i.on("keyup",function(){!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())}(e(this))});break;case"required":i.on("change",function(){!function(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")}(e(this))});break;case"hide_label":i.on("change",function(){!function(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-label").find("label").find("span").remove(),t.find(".ur-general-setting-block").find('select[data-field="'+i.attr("data-field")+'"]').find('option[value="'+i.val()+'"]').attr("selected","selected")}(e(this))});break;case"description":case"html":i.on("keyup",function(){!function(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-field").find("textarea").attr("description",i.val()),t.find(".ur-general-setting-block").find('textarea[data-field="'+i.attr("data-field")+'"]').val(i.val())}(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(){s(i,t)}),e(this).on("paste",function(){s(i,t)})})}function s(i,t){var r=e(".ur-selected-item.ur-item-active"),a=i.attr("data-id"),n=r.find(".ur-advance-setting-block").find('[data-id="'+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()),function(i){switch(e(".ur-selected-item.ur-item-active").find(".ur-field").attr("data-field-key")){case"select":!function(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].trim()+"</option>")}(i);break;case"checkbox":!function(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].trim()+"</label>")}(i);break;case"radio":!function(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="radio">'+r[a].trim()+"</label>")}(i)}}(i.val())}}function d(){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 l(e){return Math.ceil(e,0)}function o(e){return parseInt(e,0)}var u=i.i18n_admin;e(function(){({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(),function(){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>')}()},get_grid_button:function(){var i=e('<div class="ur-grid-containner"/>'),t=l(o(r.number_of_grid_list)/o(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 l=this.get_grid_button();t.find(".ur-grids").append(l),t.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var o=this.get_grid_lists(r.active_grid);t.append('<div style="clear:both"></div>'),t.append(o),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)),d()},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()}d();!function(e){jQuery(".ur-grid-lists .ur-selected-item .ur-admin-template").each(function(){var i=jQuery(this).find(".ur-label label").text(),t=jQuery(this).find(".ur-field").attr("data-field-key");"section_title"!=t&&"html"!=t&&"wysiwyg"!=t&&"billing_address_title"!=t&&"shipping_address_title"!=t&&jQuery(this).find(".ur-general-setting-block .ur-general-setting").each(function(){var r=jQuery(this).find("[data-field='field_name']").val();void 0!==r&&(1==!(jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1 option[value='"+r+"']").length>0)?(jQuery('[class*="urcl-settings-rules_field_"]').append('<option value ="'+r+'" data-type="'+t+'">'+i+" </option>"),r==e&&jQuery('.urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields option[value="'+e+'"]').remove()):jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").append('<option value ="'+r+'" data-type="'+t+'">'+i+" </option>"))})}),jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").removeClass("empty-fields")}(r.closest(".ur-selected-item ").find("[data-field='field_name']").val())}})},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>'+u.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(u.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(u.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=o(a)+1;var s=l(o(r.number_of_grid_list)/o(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=o(a)-1;var s=l(o(r.number_of_grid_list)/o(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(u.i18n_user_required_field_already_there),void e(a.helper).remove();var o=e(a.helper),c=e(o).attr("data-field-id");if(void 0!==c){var f=e(a.helper).closest(".ur-grid-list-item").find('li[data-field-id="'+e(this).attr("data-field-id")+'"]');n.populate_dropped_node(f,c)}}}}).disableSelection()},remove_selected_item:function(){var i=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(){var t=e(this).closest(".ur-selected-item ").find("[data-field='field_name']").val();e(this).closest(".ur-selected-item ").remove(),i.check_grid(),n.manage_empty_grid(),d(),jQuery('[class*="urcl-settings-rules_field_"] option[value="'+t+'"]').remove()})},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(u.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=n.val().match(/\d+/g),d=s.length>0?s[s.length-1]:"",l=n.val().replace(d,"");a.find('input[data-field="field_name"]').attr("value",l+(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"),function(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"))}(e(this)),n()}),e(".ur_save_form_action_button").on("click",function(){var a=function(){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=u.i18n_at_least_one_field_need_to_select,a;if(""===e("#ur-form-name").val())return a.validation_status=!1,a.message=u.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=u.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 u.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"]'),u.i18n_empty_field_label;var s=n.match(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm);if(null===s||1!==s.length||s[0]!==n)throw u.i18n_invald_field_name}catch(d){a.validation_status=!1,a.message=d.message===undefined?d:d.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=u.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){if(a.validation_status=!1,0===s)var d=u.i18n_user_email;else 1===s&&(d=u.i18n_user_password);a.message=d+" "+u.i18n_field_is_required;break}return a}();if(!1!==a.validation_status){var n=r(),s=e("#ur_form_id").val();o(i.post_id)!==o(s)&&(s=0);var d=e("#ur-field-settings").serializeArray(),l={action:"user_registration_form_save_action",security:i.ur_form_save,data:{form_data:JSON.stringify(n),form_name:e("#ur-form-name").val(),form_id:s,form_setting_data:d}};e.ajax({url:i.ajax_url,data:l,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(u.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(a.message)})}),setTimeout(function(){var i=e('#profile-page form#your-profile input[type="date"]');i.length>0&&i.addClass("flatpickr-field").attr("type","text").flatpickr({disableMobile:!0})},2),e(document).on("click","#ur-tab-registered-fields h2",function(){e(this).hasClass("closed")?e(this).removeClass("closed"):e(this).addClass("closed");var i=e(this).find(" ~ .ur-registered-list")[0];e(i).slideToggle()})}(jQuery,window.user_registration_admin_data);
|
1 |
+
jQuery(function(e){var t=e(".ur-tab-lists").find("li").last();e(t).on("click",function(){var t=e(".ur-selected-inputs");t.children().hide();var i=e(".ur-registered-inputs nav").find("#ur-tab-field-settings");i.find("form").appendTo(t),t.find("form#ur-field-settings").show();var r=t.find("form #ur-field-all-settings").children();r.hide(),t.find("form #ur-field-all-settings #general-settings").show(),r.each(function(r,a){var n=e(a).find("h3").text(),s=e(a).attr("id");0===i.find("#"+s).length&&i.append('<div id="'+s+'">'+n+"</div>"),i.find("#general-settings").addClass("active"),i.find("#"+s).addClass("form-settings-tab"),e(i.find("#"+s)).on("click",function(){e(this).parent().find(".active").removeClass("active"),e(this).addClass("active"),t.find("form #ur-field-all-settings").children().hide(),t.find("form #ur-field-all-settings").find("#"+s).show()})})});var i=e(".ur-tab-lists").find("li").first();e(i).on("click",function(){fields_panel=e(".ur-selected-inputs"),fields_panel.children().show(),fields_panel.find("form#ur-field-settings").hide()});var r=e("#general-settings").find("#user_registration_form_setting_minimum_password_strength_field"),a=e("#general-settings").find("#user_registration_form_setting_enable_strong_password_field select#user_registration_form_setting_enable_strong_password");"yes"===a.val()?r.show():r.hide(),e(a).change(function(){"yes"===e(this).val()?r.show("slow"):r.hide("slow")}),e(document.body).on("init_tooltips",function(){var t={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0};e(".tips, .help_tip, .user-registration-help-tip, .ur-copy-shortcode").tipTip(t),e(".parent-tips").each(function(){e(this).closest("a, th").attr("data-tip",e(this).data("tip")).tipTip(t).css("cursor","help")})}).trigger("init_tooltips"),e("body").on("keypress","#ur-form-name",function(t){13===t.which&&e("#save_form_footer").eq(0).trigger("click")})}),function(e,t){function i(t,i){var r;r="success"===i?'<div class="updated ur-notices" style="border-color: green;"><p><strong>'+g.i18n_success+"! </strong>"+t+"</p></div>":'<div class="updated ur-notices" style="border-color: red;"><p><strong>'+g.i18n_error+"!!! </strong>"+t+"</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=[],i=e(".ur-selected-inputs .ur-single-row");return e.each(i,function(){var i=e(this).find(".ur-grid-list-item"),r=[];e.each(i,function(){var t=function(t){var i=t.find(".ur-selected-item"),r=[];return e.each(i,function(){var t=e(this),i={field_key:t.find(".ur-field").attr("data-field-key"),general_setting:function(t){var i=t.find(".ur-general-setting-block").find(".ur-general-setting-field"),r={},n=[],s=[];return e.each(i,function(){var t=e(this).closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox");"options"===e(this).attr("data-field")?(r.options=n.push(a(e(this))),r.options=n):"default_value"===e(this).attr("data-field")?!0===t?e(this).is(":checked")&&(r.default_value=s.push(a(e(this))),r.default_value=s):e(this).is(":checked")&&(r.default_value=a(e(this))):r[e(this).attr("data-field")]=a(e(this))}),r}(t),advance_setting:function(t){var i=t.find(".ur-advance-setting-block").find(".ur_advance_setting"),r={};return e.each(i,function(){r[e(this).attr("data-advance-field")]=a(e(this))}),r}(t)};r.push(i)}),r}(e(this));r.push(t)}),t.push(r)}),t}function a(e){var t="";switch(e.get(0).tagName.toLowerCase()){case"input":case"select":case"textarea":t=e.val()}return t}function n(){var t=e(".ur-general-setting-field");e.each(t,function(){var t=e(this);switch(t.attr("data-field")){case"label":t.on("keyup",function(){!function(t){e(".ur-selected-item.ur-item-active").find(".ur-label").find("label").text(t.val());e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val())}(e(this))});break;case"field_name":case"input_mask":t.on("change",function(){!function(t){e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val())}(e(this))});case"default_value":t.on("change",function(){"default_value"===t.attr("data-field")&&(t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")?o(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l(e(this)))});break;case"options":t.on("keyup",function(){t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")&&t.siblings('input[data-field="default_value"]').is(":checked")?o(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l(e(this)),function(t){var i=e(".ur-selected-item.ur-item-active"),r=t.closest("li").index();i.find(".ur-general-setting-block li:nth("+r+') input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val()),i.find(".ur-general-setting-block li:nth("+r+') input[data-field="default_value"]').val(t.val()),t.closest("li").find('[data-field="default_value"]').val(t.val())}(e(this))});break;case"placeholder":t.on("keyup",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("input").attr("placeholder",t.val()),i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').val(t.val())}(e(this))});break;case"required":t.on("change",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-label").find("label").find("span").remove(),"yes"===t.val()&&i.find(".ur-label").find("label").append('<span style="color:red">*</span>');i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected","selected")}(e(this))});break;case"hide_label":t.on("change",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-label").find("label").find("span").remove(),i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected","selected")}(e(this))});break;case"description":case"html":t.on("keyup",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("textarea").attr("description",t.val()),i.find(".ur-general-setting-block").find('textarea[data-field="'+t.attr("data-field")+'"]').val(t.val())}(e(this))})}});var i=e(".ur_advance_setting");e.each(i,function(){var t=e(this),i=t.get(0).tagName.toLowerCase(),r="change";switch(i){case"input":r="keyup";break;case"select":r="change";break;case"textarea":r="keyup";break;default:r="change"}e(this).on(r,function(){s(t,i)}),e(this).on("paste",function(){s(t,i)})})}function s(t,i){var r=e(".ur-selected-item.ur-item-active"),a=t.attr("data-id"),n=r.find(".ur-advance-setting-block").find('[data-id="'+a+'"]');switch(i){case"input":n.val(t.val());break;case"select":n.find('option[value="'+t.val()+'"]').attr("selected","selected");break;case"textarea":n.val(t.val()),function(t){switch(e(".ur-selected-item.ur-item-active").find(".ur-field").attr("data-field-key")){case"select":o(t);break;case"checkbox":l(t);break;case"radio":d(t)}}(t.val())}}function l(t){var i=[],r=t.closest("ul").find("li"),a=t.closest("li").index();r.each(function(t,r){var a=e(r).find("input.ur-type-checkbox-label").val();a=e.trim(a),s=e(r).find("input.ur-type-checkbox-value").is(":checked"),i.push({value:a,checkbox:s})});var n=e(".ur-selected-item.ur-item-active"),s=n.find(".ur-field");s.html("");for(var l=0;l<i.length;l++)""!==i[l]&&s.append('<label><input value="'+i[l].value.trim()+'" type="checkbox" '+(i[l].checkbox?"checked":"")+" disabled>"+i[l].value.trim()+"</label>");t.is(":checked")?n.find(".ur-general-setting-options li:nth("+a+') input[data-field="default_value"]').attr("checked","checked"):n.find(".ur-general-setting-options li:nth("+a+') input[data-field="default_value"]').removeAttr("checked")}function d(t){var i=t.closest("ul").find("li"),r=undefined,a=[];i.each(function(t,i){var n=e(i).find("input.ur-type-radio-label").val();n=e.trim(n),!0===(s=e(i).find("input.ur-type-radio-value").is(":checked"))&&(r=t),a.push({value:n,radio:s})});var n=e(".ur-selected-item.ur-item-active"),s=n.find(".ur-field");s.html("");for(var l=0;l<a.length;l++)""!==a[l]&&s.append('<label><input value="'+a[l].value.trim()+'" type="radio" '+(a[l].radio?"checked":"")+" disabled>"+a[l].value.trim()+"</label>");n.find(".ur-general-setting-options > ul.ur-options-list > li").each(function(t,i){var a=e(i).find('[data-field="default_value"]');t===r?a.attr("checked","checked"):a.removeAttr("checked")})}function o(t){value=e.trim(t.val());var i=e(".ur-selected-item.ur-item-active"),r=t.closest("li").index(),a=i.find(".ur-field").find("select");a.html(""),a.append("<option value='"+value+"'>"+value+"</option>"),i.find('.ur-general-setting-options li input[data-field="default_value"]').removeAttr("checked"),i.find(".ur-general-setting-options li:nth("+r+') input[data-field="default_value"]').attr("checked","checked")}function u(){var i=t.form_one_time_draggable_fields,r=e("#ur-tab-registered-fields").find("ul.ur-registered-list");e.each(r.find("li"),function(){var t=e(this),r=e(this).attr("data-field-id").replace("user_registration_","");e.inArray(r,i)>=0&&(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0?t.draggable("disable"):t.draggable("enable"))})}function c(e){return Math.ceil(e,0)}function f(e){return parseInt(e,0)}var g=t.i18n_admin;e(function(){({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(t){return t.preventDefault(),e(this).URBackboneModal({template:"test-demo"}),!1},backbone:{init:function(e,t){},response:function(e,t){}}}).init(),e.fn.ur_form_builder=function(){var r={active_grid:t.active_grid,number_of_grid_list:t.number_of_grid,min_grid_height:70};return this.each(function(){var a=e(this),n={init:function(){this.single_row(),function(){var i=t.form_required_fields,r=e(".ur-selected-inputs");if(e.isArray(i))for(var a=0;a<i.length;a++){var n=r.find('.ur-field[data-field-key="'+i[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>')}()},get_grid_button:function(){var t=e('<div class="ur-grid-containner"/>'),i=c(f(r.number_of_grid_list)/f(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+'">'+i+'</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 t.html(a),t.html()},single_row:function(){var i=e("<div class='ur-single-row'/>");i.append(e("<div class='ur-grids'/>"));var l=this.get_grid_button();i.find(".ur-grids").append(l),i.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var d=this.get_grid_lists(r.active_grid);i.append('<div style="clear:both"></div>'),i.append(d),i.append('<div style="clear:both"></div>'),a.append(i),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"===t.is_edit_form&&e(".ur-single-row").eq(e(".ur-single-row").length-1).remove(),"1"!==t.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(t.required_form_html)),u()},get_grid_lists:function(t){for(var i=e('<div class="ur-grid-lists"/>'),a=1;a<=t;a++){var n=e("<div ur-grid-id='"+a+"' class='ur-grid-list-item'></div>"),s=Math.floor(100/t)-t;s,n.css({width:s+"%","min-height":r.min_grid_height+"px"}),i.append(n)}return i.append('<div style="clear:both"></div>'),i.find(".ur-grid-list-item").eq("0").css({}),i},populate_dropped_node:function(i,r){var a={action:"user_registration_user_input_dropped",security:t.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>';i.closest(".ur-single-row").find(".user-registration-dragged-me").fadeOut(),e.ajax({url:t.ajax_url,data:a,type:"POST",beforeSend:function(){i.removeAttr("class").removeAttr("id").removeAttr("data-field-id").addClass("ur-selected-item").css({width:"auto"}),i.html('<small class="spinner is-active"></small>'),i.addClass("ur-item-dragged")},complete:function(t){if(n.manage_empty_grid(),!0===t.responseJSON.success){var r=e(s.replace("(content)",t.responseJSON.data.template));r.removeClass("ajax_added"),r.removeClass("ur-item-dragged"),i.find(".ajax_added").find(".spinner").remove(),i.find(".ajax_added").remove(),e(r).insertBefore(i),i.remove()}u();!function(e){jQuery(".ur-grid-lists .ur-selected-item .ur-admin-template").each(function(){var t=jQuery(this).find(".ur-label label").text(),i=jQuery(this).find(".ur-field").attr("data-field-key");"section_title"!=i&&"html"!=i&&"wysiwyg"!=i&&"billing_address_title"!=i&&"shipping_address_title"!=i&&jQuery(this).find(".ur-general-setting-block .ur-general-setting").each(function(){var r=jQuery(this).find("[data-field='field_name']").val();void 0!==r&&(1==!(jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1 option[value='"+r+"']").length>0)?(jQuery('[class*="urcl-settings-rules_field_"]').append('<option value ="'+r+'" data-type="'+i+'">'+t+" </option>"),r==e&&jQuery('.urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields option[value="'+e+'"]').remove()):jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").append('<option value ="'+r+'" data-type="'+i+'">'+t+" </option>"))})}),jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").removeClass("empty-fields")}(r.closest(".ur-selected-item ").find("[data-field='field_name']").val())}})},manage_empty_grid:function(){var t=e(".ur-selected-inputs"),i=e('<div class="user-registration-dragged-me"/>');i.html('<div class="user-registration-dragged-me-text"><p>'+g.i18n_drag_your_first_item_here+"</p></div>"),t.find(".user-registration-dragged-me").remove(),e.each(t.find(".ur-grid-list-item"),function(){var t=e(this);0===e(this).find(".ur-selected-item").length&&t.append(i.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 t=this;e("body").on("click",".ur-add-new-row",function(){var i=e(this).closest(".ur-selected-inputs").find(".ur-single-row").eq(0).clone();i.find(".ur-grid-lists").html(""),i.find(".ur-grids").find("span").removeClass("ur-active-grid"),i.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var a=n.get_grid_lists(r.active_grid);i.find(".ur-grid-lists").append(a.html()),i.insertBefore(".ur-add-new-row"),t.render_draggable_sortable(),n.manage_empty_grid()})},register_remove_row:function(){var t=this;e("body").on("click",".ur-remove-row",function(){if(e(".ur-selected-inputs").find(".ur-single-row").length>1){if(window.confirm(g.i18n_are_you_sure_want_to_delete)){var i,r=e(this).prev();(i=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(i),e(this).closest(".ur-single-row").remove(),t.check_grid()}}else window.alert(g.i18n_at_least_one_row_need_to_select)})},change_ur_grids:function(){var t=this;e("body").on("click",".ur-single-row .ur-nav-right",function(){var i=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=f(a)+1;var s=c(f(r.number_of_grid_list)/f(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 l=n.get_grid_lists(a);e.each(i.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){l.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),i.find(".ur-grid-lists").eq(0).hide(),l.clone().insertAfter(i.find(".ur-grid-lists")),i.find(".ur-grid-lists").eq(0).remove(),t.render_draggable_sortable(),n.manage_empty_grid()}}),e("body").on("click",".ur-single-row .ur-nav-left",function(){var i=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a<=1)){a=f(a)-1;var s=c(f(r.number_of_grid_list)/f(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 l=n.get_grid_lists(a);e.each(i.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){l.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),i.find(".ur-grid-lists").eq(0).hide(),l.clone().insertAfter(i.find(".ur-grid-lists")),i.find(".ur-grid-lists").eq(0).remove(),t.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_","")),l=e(".ur-selected-inputs").find('.ur-field[data-field-key="'+s+'"]').length,d=e.makeArray(t.form_one_time_draggable_fields);if(l>0&&e.inArray(s,d)>=0)return i(g.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 t=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(){var i=e(this).closest(".ur-selected-item ").find("[data-field='field_name']").val();e(this).closest(".ur-selected-item ").remove(),t.check_grid(),n.manage_empty_grid(),u(),jQuery('[class*="urcl-settings-rules_field_"] option[value="'+i+'"]').remove()})},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,t.form_one_time_draggable_fields)>-1)i(g.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=n.val().match(/\d+/g),l=s.length>0?s[s.length-1]:"",d=n.val().replace(l,"");a.find('input[data-field="field_name"]').attr("value",d+(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"),function(t){var i=t.find(".ur-advance-setting-block").clone(),r=t.find(".ur-general-setting-block").clone(),a=e("<form id='ur-setting-form'/>");e("#ur-tab-field-options").html(""),a.append(r),a.append(i),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")),e(".ur-options-list").sortable({containment:".ur-general-setting-options"})}(e(this)),n()}),e(".ur_save_form_action_button").on("click",function(){var a=function(){var i=e.makeArray(t.form_one_time_draggable_fields),r=e.makeArray(t.form_required_fields),a={validation_status:!0,message:""};if(0===e(".ur-selected-item").length)return a.validation_status=!1,a.message=g.i18n_at_least_one_field_need_to_select,a;if(""===e("#ur-form-name").val())return a.validation_status=!1,a.message=g.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=g.i18n_previous_save_action_ongoing,a;e.each(e('.ur-selected-inputs .ur-general-setting-block input[data-field="field_name"]'),function(){var t,i=e(this),r=!1;try{var n=i.val();if(e(".ur-selected-inputs .ur-general-setting-block").find('input[data-field="field_name"][value="'+n+'"]').length>1)throw g.i18n_duplicate_field_name;if(""===i.closest(".ur-general-setting-block").find('input[data-field="label"]').val())throw i=i.closest(".ur-general-setting-block").find('input[data-field="label"]'),g.i18n_empty_field_label;var s=n.match(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm);if(null===s||1!==s.length||s[0]!==n)throw g.i18n_invald_field_name}catch(l){a.validation_status=!1,a.message=l.message===undefined?l:l.message,i.closest(".ur-selected-item").trigger("click"),t=i.attr("data-field"),e("#ur-setting-form").find('input[data-field="'+t+'"]').css({border:"1px solid red"}),setTimeout(function(){e("#ur-setting-form").find('input[data-field="'+t+'"]').removeAttr("style")},2e3),r=!0}if(r)return!1});for(var n=0;n<i.length;n++)if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+i[n]+'"]').length>1){a.validation_status=!1,a.message=g.i18n_multiple_field_key+i[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){if(a.validation_status=!1,0===s)var l=g.i18n_user_email;else 1===s&&(l=g.i18n_user_password);a.message=l+" "+g.i18n_field_is_required;break}return a}();if(!1!==a.validation_status){var n=r(),s=e("#ur_form_id").val();f(t.post_id)!==f(s)&&(s=0);var l=e("#ur-field-settings").serializeArray(),d={action:"user_registration_form_save_action",security:t.ur_form_save,data:{form_data:JSON.stringify(n),form_name:e("#ur-form-name").val(),form_id:s,form_setting_data:l}};e.ajax({url:t.ajax_url,data:d,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){i(g.i18n_form_successfully_saved,"success");var a=t.admin_url+r.responseJSON.data.post_id;window.location=a}else{i(r.responseJSON.data.message)}}})}else i(a.message)})}),setTimeout(function(){var t=e('#profile-page form#your-profile input[type="date"]');t.length>0&&t.addClass("flatpickr-field").attr("type","text").flatpickr({disableMobile:!0})},2),e(document).on("click","#ur-tab-registered-fields h2",function(){e(this).hasClass("closed")?e(this).removeClass("closed"):e(this).addClass("closed");var t=e(this).find(" ~ .ur-registered-list")[0];e(t).slideToggle()}),e(document).on("click",".ur-options-list .add",function(t){t.preventDefault();var i=e(this),r=e(".ur-selected-item.ur-item-active"),a=i.parent("li").index(),n=i.parent("li").clone(!0,!0);n.find('input[data-field="options"]').val(""),n.find('input[data-field="default_value"]').removeAttr("checked"),i.parent("li").after(n),r.find(".ur-general-setting-options .ur-options-list > li:nth( "+a+" )").after(n.clone(!0,!0)),i.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d(i):i.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l(i)}),e(document).on("click",".ur-options-list .remove",function(t){t.preventDefault();var i=e(this),r=e(this).closest("ul");$any_siblings=r.find("li"),$wrapper=e(".ur-selected-item.ur-item-active"),this_index=i.parent("li").index(),r.find("li").length>1&&(i.parent("li").remove(),$wrapper.find(".ur-general-setting-options .ur-options-list > li:nth( "+this_index+" )").remove(),$any_siblings.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d($any_siblings):$any_siblings.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l($any_siblings))}),e(document).on("sortstop",".ur-options-list",function(t,i){var r=e(this);!function(t){var i=t.clone(!0,!0),r=e(".ur-selected-item.ur-item-active").find(".ur-general-setting-options .ur-options-list");r.html(""),r.replaceWith(i)}(r),r.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d(r):r.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l(r)})}(jQuery,window.user_registration_admin_data);
|
assets/js/frontend/password-strength-meter.js
CHANGED
@@ -62,7 +62,11 @@ jQuery(function ( $ ) {
|
|
62 |
var meter = wrapper.find('.user-registration-password-strength');
|
63 |
var hint = wrapper.find('.user-registration-password-hint');
|
64 |
var hint_html = '<small class="user-registration-password-hint">' + ur_password_strength_meter_params.i18n_password_hint + '</small>';
|
65 |
-
var
|
|
|
|
|
|
|
|
|
66 |
var error = '';
|
67 |
// Reset
|
68 |
meter.removeClass('short bad good strong');
|
62 |
var meter = wrapper.find('.user-registration-password-strength');
|
63 |
var hint = wrapper.find('.user-registration-password-hint');
|
64 |
var hint_html = '<small class="user-registration-password-hint">' + ur_password_strength_meter_params.i18n_password_hint + '</small>';
|
65 |
+
var blacklistArray = wp.passwordStrength.userInputBlacklist();
|
66 |
+
blacklistArray.push( wrapper.find('input[data-id="user_email"]').val() ); // Add email address in blacklist.
|
67 |
+
blacklistArray.push( wrapper.find('input[data-id="user_login"]').val() ); // Add username in blacklist.
|
68 |
+
|
69 |
+
var strength = wp.passwordStrength.meter(field.val(), blacklistArray);
|
70 |
var error = '';
|
71 |
// Reset
|
72 |
meter.removeClass('short bad good strong');
|
assets/js/frontend/password-strength-meter.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(t){var s=ur_password_strength_meter_params.pwsL10n,r={init:function(){var s=this;t(document.body).on("keyup change",'input[name="user_pass"]',function(){"no"!==t(this).closest("form").attr("data-enable-strength-password")&&s.strengthMeter(t(this))})},strengthMeter:function(s){var
|
1 |
+
jQuery(function(t){var s=ur_password_strength_meter_params.pwsL10n,r={init:function(){var s=this;t(document.body).on("keyup change",'input[name="user_pass"]',function(){"no"!==t(this).closest("form").attr("data-enable-strength-password")&&s.strengthMeter(t(this))})},strengthMeter:function(s){var a=s.closest("form"),e=t(s,a);r.includeMeter(a,e),r.checkPasswordStrength(a,e)},includeMeter:function(s,r){var a=s.attr("data-minimum-password-strength"),e=s.find(".user-registration-password-strength");""===r.val()?(e.remove(),t(document.body).trigger("ur-password-strength-removed")):0===e.length&&(r.after('<div class="user-registration-password-strength" aria-live="polite" data-min-strength="'+a+'"></div>'),t(document.body).trigger("ur-password-strength-added"))},checkPasswordStrength:function(t,r){var a=t.find(".user-registration-password-strength"),e=t.find(".user-registration-password-hint"),n='<small class="user-registration-password-hint">'+ur_password_strength_meter_params.i18n_password_hint+"</small>",d=wp.passwordStrength.userInputBlacklist();d.push(t.find('input[data-id="user_email"]').val()),d.push(t.find('input[data-id="user_login"]').val());var o=wp.passwordStrength.meter(r.val(),d);switch(a.removeClass("short bad good strong"),e.remove(),t.find(".user-registration-password-strength").attr("data-current-strength",o),o){case 0:a.addClass("short").html(s.shortpw),a.after(n);break;case 1:case 2:a.addClass("bad").html(s.bad),a.after(n);break;case 3:a.addClass("good").html(s.good);break;case 4:a.addClass("strong").html(s.strong);break;case 5:a.addClass("short").html(s.mismatch)}return o}};r.init()});
|
includes/abstracts/abstract-ur-field-settings.php
CHANGED
@@ -97,7 +97,6 @@ abstract class UR_Field_Settings {
|
|
97 |
|
98 |
$this->fields_html .= '>' . esc_html( $value ) . '</textarea>';
|
99 |
break;
|
100 |
-
|
101 |
default:
|
102 |
}
|
103 |
|
97 |
|
98 |
$this->fields_html .= '>' . esc_html( $value ) . '</textarea>';
|
99 |
break;
|
|
|
100 |
default:
|
101 |
}
|
102 |
|
includes/abstracts/abstract-ur-form-field.php
CHANGED
@@ -74,7 +74,6 @@ abstract class UR_Form_Field {
|
|
74 |
* Includes any classes we need within frontend.
|
75 |
*/
|
76 |
public function frontend_includes( $data = array(), $form_id, $field_type, $field_key ) {
|
77 |
-
|
78 |
$this->form_id = $form_id;
|
79 |
|
80 |
$form_data = (array) $data['general_setting'];
|
@@ -110,39 +109,50 @@ abstract class UR_Form_Field {
|
|
110 |
|
111 |
$form_data['custom_attributes']['data-label'] = $data['general_setting']->label;
|
112 |
|
113 |
-
if ( 'country'
|
114 |
$form_data['options'] = UR_Form_Field_Country::get_instance()->get_country();
|
115 |
}
|
116 |
|
117 |
-
|
118 |
-
|
|
|
|
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
$
|
|
|
|
|
|
|
123 |
}
|
124 |
}
|
125 |
-
}
|
126 |
|
127 |
-
|
128 |
-
|
|
|
129 |
|
130 |
-
|
131 |
-
|
132 |
-
$
|
|
|
|
|
|
|
133 |
}
|
134 |
}
|
135 |
-
}
|
136 |
|
137 |
-
|
138 |
-
|
|
|
139 |
|
140 |
-
|
141 |
-
|
142 |
-
$
|
|
|
|
|
|
|
143 |
}
|
144 |
}
|
145 |
-
|
146 |
|
147 |
$filter_data = array(
|
148 |
'form_data' => $form_data,
|
@@ -161,7 +171,7 @@ abstract class UR_Form_Field {
|
|
161 |
|
162 |
/**
|
163 |
* Inlcude advance settings file if exists
|
164 |
-
|
165 |
public function get_field_advance_settings() {
|
166 |
|
167 |
$file_name = str_replace( 'user_registration_', '', $this->id );
|
@@ -221,22 +231,83 @@ abstract class UR_Form_Field {
|
|
221 |
break;
|
222 |
|
223 |
case 'radio':
|
224 |
-
|
225 |
-
|
|
|
|
|
|
|
226 |
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
}
|
231 |
-
|
232 |
-
$general_setting_wrapper .= '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
|
234 |
if ( true == $setting_value['required'] ) {
|
235 |
$general_setting_wrapper .= ' required ';
|
236 |
}
|
237 |
|
238 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
}
|
|
|
240 |
break;
|
241 |
|
242 |
case 'select':
|
@@ -264,6 +335,20 @@ abstract class UR_Form_Field {
|
|
264 |
$general_setting_wrapper .= $this->get_general_setting_data( $setting_key ) . '</textarea>';
|
265 |
break;
|
266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
default:
|
268 |
}// End switch().
|
269 |
|
@@ -287,7 +372,7 @@ abstract class UR_Form_Field {
|
|
287 |
$class = 'ur-general-setting-' . $strip_prefix;
|
288 |
|
289 |
echo "<div class='ur-general-setting-block " . esc_attr( $class ) . "'>";
|
290 |
-
echo '<h2>' .
|
291 |
echo $this->get_field_general_settings();
|
292 |
echo '</div>';
|
293 |
|
@@ -299,6 +384,7 @@ abstract class UR_Form_Field {
|
|
299 |
echo $advance_settings;
|
300 |
echo '</div>';
|
301 |
}
|
|
|
302 |
do_action( 'user_registration_after_advance_settings', $this->id, $this->admin_data );
|
303 |
}
|
304 |
|
74 |
* Includes any classes we need within frontend.
|
75 |
*/
|
76 |
public function frontend_includes( $data = array(), $form_id, $field_type, $field_key ) {
|
|
|
77 |
$this->form_id = $form_id;
|
78 |
|
79 |
$form_data = (array) $data['general_setting'];
|
109 |
|
110 |
$form_data['custom_attributes']['data-label'] = $data['general_setting']->label;
|
111 |
|
112 |
+
if ( 'country' === $field_key ) {
|
113 |
$form_data['options'] = UR_Form_Field_Country::get_instance()->get_country();
|
114 |
}
|
115 |
|
116 |
+
/** Redundant codes. **/
|
117 |
+
if ( 'select' === $field_key ) {
|
118 |
+
$option_data = isset( $data['advance_setting']->options ) ? explode( ',', $data['advance_setting']->options ) : array(); // Backward compatibility. Modified since 1.5.7
|
119 |
+
$option_data = isset( $data['general_setting']->options ) ? $data['general_setting']->options : $option_data;
|
120 |
|
121 |
+
$options = array();
|
122 |
+
if ( is_array( $option_data ) ) {
|
123 |
+
foreach ( $option_data as $index_data => $option ) {
|
124 |
+
$options[ $option ] = $option;
|
125 |
+
$form_data['options'] = $options;
|
126 |
+
}
|
127 |
}
|
128 |
}
|
|
|
129 |
|
130 |
+
if ( 'radio' === $field_key ) {
|
131 |
+
$option_data = isset( $data['advance_setting']->options ) ? explode( ',', $data['advance_setting']->options ) : array(); // Backward compatibility. Modified since 1.5.7
|
132 |
+
$option_data = isset( $data['general_setting']->options ) ? $data['general_setting']->options : $option_data;
|
133 |
|
134 |
+
$options = array();
|
135 |
+
if ( is_array( $option_data ) ) {
|
136 |
+
foreach ( $option_data as $index_data => $option ) {
|
137 |
+
$options[ $option ] = $option;
|
138 |
+
$form_data['options'] = $options;
|
139 |
+
}
|
140 |
}
|
141 |
}
|
|
|
142 |
|
143 |
+
if ( 'checkbox' === $field_key ) {
|
144 |
+
$choices = isset( $data['advance_setting']->choices ) ? explode( ',', $data['advance_setting']->choices ) : array(); // Backward compatibility. Modified since 1.5.7
|
145 |
+
$option_data = isset( $data['general_setting']->options ) ? $data['general_setting']->options : $choices;
|
146 |
|
147 |
+
$options = array();
|
148 |
+
if ( is_array( $option_data ) ) {
|
149 |
+
foreach ( $option_data as $index_data => $option ) {
|
150 |
+
$options[ $option ] = $option;
|
151 |
+
$form_data['options'] = $options;
|
152 |
+
}
|
153 |
}
|
154 |
}
|
155 |
+
/** Redundant Codes End. **/
|
156 |
|
157 |
$filter_data = array(
|
158 |
'form_data' => $form_data,
|
171 |
|
172 |
/**
|
173 |
* Inlcude advance settings file if exists
|
174 |
+
*/
|
175 |
public function get_field_advance_settings() {
|
176 |
|
177 |
$file_name = str_replace( 'user_registration_', '', $this->id );
|
231 |
break;
|
232 |
|
233 |
case 'radio':
|
234 |
+
// Compatibility for older version. Get string value from options in advanced settings. Modified since @1.5.7
|
235 |
+
$default_options = isset( $this->field_defaults['default_options'] ) ? $this->field_defaults['default_options'] : array();
|
236 |
+
$old_options = isset( $this->admin_data->advance_setting->options ) ? explode( ',', trim( $this->admin_data->advance_setting->options, ',' ) ) : $default_options;
|
237 |
+
$options = isset( $this->admin_data->general_setting->options ) ? $this->admin_data->general_setting->options : $old_options;
|
238 |
+
$options = array_map( 'trim', $options );
|
239 |
|
240 |
+
$default_value = $this->get_general_setting_data( 'default_value' );
|
241 |
+
$default_value = ! empty( $default_value ) ? $default_value : '';
|
242 |
+
|
243 |
+
$general_setting_wrapper .= '<ul class="ur-options-list">';
|
244 |
+
$unique = uniqid();
|
245 |
+
|
246 |
+
foreach ( $options as $option ) {
|
247 |
+
|
248 |
+
$general_setting_wrapper .= '<li>';
|
249 |
+
$general_setting_wrapper .= '<div class="editor-block-mover__control-drag-handle editor-block-mover__control">
|
250 |
+
<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" role="img" aria-hidden="true" focusable="false"><path d="M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"></path></svg>
|
251 |
+
</div>';
|
252 |
+
$general_setting_wrapper .= '<input value="' . esc_attr( $option ) . '" data-field="default_value" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '-value" type="radio" name="' . $unique . '_value" ';
|
253 |
+
|
254 |
+
if ( true == $setting_value['required'] ) {
|
255 |
+
$general_setting_wrapper .= ' required ';
|
256 |
}
|
257 |
+
|
258 |
+
$general_setting_wrapper .= '' . checked( $option, $default_value, false ) . ' />';
|
259 |
+
$general_setting_wrapper .= '<input value="' . esc_attr( $option ) . '" data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '-label" type="text" name="' . $setting_value['name'] . '_label" >';
|
260 |
+
|
261 |
+
$general_setting_wrapper .= '<a class="add" href="#"><i class="dashicons dashicons-plus"></i></a>';
|
262 |
+
$general_setting_wrapper .= '<a class="remove" href="#"><i class="dashicons dashicons-minus"></i></a><br/>';
|
263 |
+
$general_setting_wrapper .= '</li>';
|
264 |
+
|
265 |
+
}
|
266 |
+
$general_setting_wrapper .= '</ul>';
|
267 |
+
break;
|
268 |
+
|
269 |
+
case 'checkbox':
|
270 |
+
|
271 |
+
// Compatibility for older version. Get string value from options in advanced settings. Modified since @1.5.7
|
272 |
+
$default_options = isset( $this->field_defaults['default_options'] ) ? $this->field_defaults['default_options'] : array();
|
273 |
+
$old_options = isset( $this->admin_data->advance_setting->choices ) ? explode( ',', trim( $this->admin_data->advance_setting->choices, ',' ) ) : $default_options;
|
274 |
+
$options = isset( $this->admin_data->general_setting->options ) ? $this->admin_data->general_setting->options : $old_options;
|
275 |
+
|
276 |
+
$options = array_map( 'trim', $options );
|
277 |
+
|
278 |
+
$default_values = $this->get_general_setting_data( 'default_value' );
|
279 |
+
$default_values = ! empty( $default_values ) ? $default_values : array();
|
280 |
+
$default_values = array_map( 'trim', $default_values );
|
281 |
+
|
282 |
+
$general_setting_wrapper .= '<ul class="ur-options-list">';
|
283 |
+
$unique = uniqid();
|
284 |
+
|
285 |
+
foreach ( $options as $option ) {
|
286 |
+
|
287 |
+
$general_setting_wrapper .= '<li>';
|
288 |
+
$general_setting_wrapper .= '<div class="editor-block-mover__control-drag-handle editor-block-mover__control">
|
289 |
+
<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" role="img" aria-hidden="true" focusable="false"><path d="M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"></path></svg>
|
290 |
+
</div>';
|
291 |
+
$general_setting_wrapper .= '<input value="' . esc_attr( $option ) . '" data-field="default_value" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '-value" type="checkbox" name="' . $unique . '_value" ';
|
292 |
|
293 |
if ( true == $setting_value['required'] ) {
|
294 |
$general_setting_wrapper .= ' required ';
|
295 |
}
|
296 |
|
297 |
+
if( in_array( $option, $default_values ) ) {
|
298 |
+
$general_setting_wrapper .= 'checked ="checked" />';
|
299 |
+
} else {
|
300 |
+
$general_setting_wrapper .= '/>';
|
301 |
+
}
|
302 |
+
|
303 |
+
$general_setting_wrapper .= '<input value="' . esc_attr( $option ) . '" data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '-label" type="text" name="' . $setting_value['name'] . '_label" >';
|
304 |
+
|
305 |
+
$general_setting_wrapper .= '<a class="add" href="#"><i class="dashicons dashicons-plus"></i></a>';
|
306 |
+
$general_setting_wrapper .= '<a class="remove" href="#"><i class="dashicons dashicons-minus"></i></a><br/>';
|
307 |
+
$general_setting_wrapper .= '</li>';
|
308 |
+
|
309 |
}
|
310 |
+
$general_setting_wrapper .= '</ul>';
|
311 |
break;
|
312 |
|
313 |
case 'select':
|
335 |
$general_setting_wrapper .= $this->get_general_setting_data( $setting_key ) . '</textarea>';
|
336 |
break;
|
337 |
|
338 |
+
case 'hidden':
|
339 |
+
$value = isset( $setting_value['default'] ) ? $setting_value['default'] : '';
|
340 |
+
if ( ! empty( $value ) ) {
|
341 |
+
|
342 |
+
$general_setting_wrapper .= '<input value="' . $value . '" data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" type="hidden" name="' . $setting_value['name'] . '" placeholder="' . $setting_value['placeholder'] . '"';
|
343 |
+
|
344 |
+
if ( true == $setting_value['required'] ) {
|
345 |
+
$general_setting_wrapper .= ' required ';
|
346 |
+
}
|
347 |
+
|
348 |
+
$general_setting_wrapper .= '/>';
|
349 |
+
}
|
350 |
+
break;
|
351 |
+
|
352 |
default:
|
353 |
}// End switch().
|
354 |
|
372 |
$class = 'ur-general-setting-' . $strip_prefix;
|
373 |
|
374 |
echo "<div class='ur-general-setting-block " . esc_attr( $class ) . "'>";
|
375 |
+
echo '<h2>' . esc_html__( 'General Settings', 'user-registration' ) . '</h2>';
|
376 |
echo $this->get_field_general_settings();
|
377 |
echo '</div>';
|
378 |
|
384 |
echo $advance_settings;
|
385 |
echo '</div>';
|
386 |
}
|
387 |
+
|
388 |
do_action( 'user_registration_after_advance_settings', $this->id, $this->admin_data );
|
389 |
}
|
390 |
|
includes/admin/class-ur-admin-profile.php
CHANGED
@@ -80,7 +80,6 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
80 |
}
|
81 |
|
82 |
$show_fields = $this->get_user_meta_by_form_fields( $user->ID );
|
83 |
-
|
84 |
foreach ( $show_fields as $fieldset_key => $fieldset ) :
|
85 |
?>
|
86 |
<h2><?php echo $fieldset['title']; ?></h2>
|
@@ -133,7 +132,7 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
133 |
class="<?php echo esc_attr( $field['class'] ); ?>" style="width: 25em;">
|
134 |
<option><?php echo __( 'Select', 'user-registration' ); ?></option>
|
135 |
<?php
|
136 |
-
$selected =
|
137 |
foreach ( $field['options'] as $option_key => $option_value ) :
|
138 |
?>
|
139 |
<option value="<?php echo esc_attr( trim( $option_key ) ); ?>" <?php selected( $selected, trim( $option_key ), true ); ?>><?php echo esc_attr( trim( $option_value ) ); ?></option>
|
@@ -182,7 +181,7 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
182 |
name="<?php echo esc_attr( $key ); ?>[]"
|
183 |
id="<?php echo esc_attr( $key ); ?>"
|
184 |
value="<?php echo esc_attr( trim( $choice ) ); ?>"
|
185 |
-
class="<?php echo esc_attr( $field['class'] ); ?>"
|
186 |
<?php
|
187 |
if ( is_array( $value ) && in_array( trim( $choice ), $value ) ) {
|
188 |
echo 'checked="checked"';
|
@@ -197,7 +196,7 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
197 |
?>
|
198 |
<input type="checkbox" name="<?php echo esc_attr( $key ); ?>"
|
199 |
id="<?php echo esc_attr( $key ); ?>" value="1"
|
200 |
-
class="<?php echo esc_attr( $field['class'] ); ?>"
|
201 |
<?php
|
202 |
if ( $value == '1' ) {
|
203 |
echo 'checked="checked"';
|
@@ -424,7 +423,10 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
424 |
switch ( $field_key ) {
|
425 |
|
426 |
case 'select':
|
427 |
-
|
|
|
|
|
|
|
428 |
|
429 |
if ( is_array( $option_data ) && $field_index != '' ) {
|
430 |
foreach ( $option_data as $index_data => $option ) {
|
@@ -436,7 +438,10 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
436 |
break;
|
437 |
|
438 |
case 'radio':
|
439 |
-
|
|
|
|
|
|
|
440 |
|
441 |
if ( is_array( $option_data ) && $field_index != '' ) {
|
442 |
foreach ( $option_data as $index_data => $option ) {
|
@@ -461,8 +466,11 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
461 |
|
462 |
case 'mailchimp':
|
463 |
case 'checkbox':
|
464 |
-
|
465 |
-
$
|
|
|
|
|
|
|
466 |
$fields[ $field_index ]['choices'] = $choices_data;
|
467 |
$fields[ $field_index ]['type'] = 'checkbox';
|
468 |
$fields[ $field_index ]['class'] = '';
|
80 |
}
|
81 |
|
82 |
$show_fields = $this->get_user_meta_by_form_fields( $user->ID );
|
|
|
83 |
foreach ( $show_fields as $fieldset_key => $fieldset ) :
|
84 |
?>
|
85 |
<h2><?php echo $fieldset['title']; ?></h2>
|
132 |
class="<?php echo esc_attr( $field['class'] ); ?>" style="width: 25em;">
|
133 |
<option><?php echo __( 'Select', 'user-registration' ); ?></option>
|
134 |
<?php
|
135 |
+
$selected = get_user_meta( $user->ID, $key, true );
|
136 |
foreach ( $field['options'] as $option_key => $option_value ) :
|
137 |
?>
|
138 |
<option value="<?php echo esc_attr( trim( $option_key ) ); ?>" <?php selected( $selected, trim( $option_key ), true ); ?>><?php echo esc_attr( trim( $option_value ) ); ?></option>
|
181 |
name="<?php echo esc_attr( $key ); ?>[]"
|
182 |
id="<?php echo esc_attr( $key ); ?>"
|
183 |
value="<?php echo esc_attr( trim( $choice ) ); ?>"
|
184 |
+
class="<?php echo esc_attr( $field['class'] ); ?>"
|
185 |
<?php
|
186 |
if ( is_array( $value ) && in_array( trim( $choice ), $value ) ) {
|
187 |
echo 'checked="checked"';
|
196 |
?>
|
197 |
<input type="checkbox" name="<?php echo esc_attr( $key ); ?>"
|
198 |
id="<?php echo esc_attr( $key ); ?>" value="1"
|
199 |
+
class="<?php echo esc_attr( $field['class'] ); ?>"
|
200 |
<?php
|
201 |
if ( $value == '1' ) {
|
202 |
echo 'checked="checked"';
|
423 |
switch ( $field_key ) {
|
424 |
|
425 |
case 'select':
|
426 |
+
// Backward compatibility. Modified since 1.5.7.
|
427 |
+
$options = isset( $field->advance_setting->options ) ? explode( ',', $field->advance_setting->options ) : array();
|
428 |
+
$option_data = isset( $field->general_setting->options ) ? $field->general_setting->options : $options;
|
429 |
+
$option_data = array_map( 'trim', $option_data );
|
430 |
|
431 |
if ( is_array( $option_data ) && $field_index != '' ) {
|
432 |
foreach ( $option_data as $index_data => $option ) {
|
438 |
break;
|
439 |
|
440 |
case 'radio':
|
441 |
+
// Backward compatibility. Modified since 1.5.7.
|
442 |
+
$options = isset( $field->advance_setting->options ) ? explode( ',', $field->advance_setting->options ) : array();
|
443 |
+
$option_data = isset( $field->general_setting->options ) ? $field->general_setting->options : $options;
|
444 |
+
$option_data = array_map( 'trim', $option_data );
|
445 |
|
446 |
if ( is_array( $option_data ) && $field_index != '' ) {
|
447 |
foreach ( $option_data as $index_data => $option ) {
|
466 |
|
467 |
case 'mailchimp':
|
468 |
case 'checkbox':
|
469 |
+
// Backward compatibility. Modified since 1.5.7.
|
470 |
+
$options = isset( $field->advance_setting->choices ) ? explode( ',', $field->advance_setting->choices ) : array();
|
471 |
+
$choices_data = isset( $field->general_setting->options ) ? $field->general_setting->options : $options;
|
472 |
+
$choices_data = array_map( 'trim', $choices_data );
|
473 |
+
|
474 |
$fields[ $field_index ]['choices'] = $choices_data;
|
475 |
$fields[ $field_index ]['type'] = 'checkbox';
|
476 |
$fields[ $field_index ]['class'] = '';
|
includes/admin/views/html-admin-page-forms.php
CHANGED
@@ -14,17 +14,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
<div class="major-publishing-actions wp-clearfix">
|
15 |
<label class="ur-form-name-label"
|
16 |
for="ur-form-name"><?php esc_html_e( 'Form Name', 'user-registration' ); ?></label>
|
|
|
17 |
<input name="ur-form-name" id="ur-form-name" type="text"
|
18 |
-
class="ur-form-name regular-text menu-item-textbox" value="
|
19 |
-
<?php
|
20 |
-
if ( isset( $post_data[0] ) ) {
|
21 |
-
|
22 |
-
echo $post_data[0]->post_title;
|
23 |
-
|
24 |
-
}
|
25 |
-
|
26 |
-
?>
|
27 |
-
">
|
28 |
<?php
|
29 |
if ( isset( $post_data[0] ) ) {
|
30 |
|
14 |
<div class="major-publishing-actions wp-clearfix">
|
15 |
<label class="ur-form-name-label"
|
16 |
for="ur-form-name"><?php esc_html_e( 'Form Name', 'user-registration' ); ?></label>
|
17 |
+
<?php $form_title = isset( $post_data[0]->post_title ) ? trim( $post_data[0]->post_title ) : ''; ?>
|
18 |
<input name="ur-form-name" id="ur-form-name" type="text"
|
19 |
+
class="ur-form-name regular-text menu-item-textbox" value="<?php echo esc_html( $form_title ); ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
<?php
|
21 |
if ( isset( $post_data[0] ) ) {
|
22 |
|
includes/class-ur-ajax.php
CHANGED
@@ -201,6 +201,8 @@ class UR_AJAX {
|
|
201 |
|
202 |
$post_data = json_decode( stripslashes( $_POST['data']['form_data'] ) );
|
203 |
|
|
|
|
|
204 |
self::sweep_array( $post_data );
|
205 |
|
206 |
if ( isset( self::$failed_key_value['value'] ) && self::$failed_key_value['value'] != '' ) {
|
@@ -315,7 +317,7 @@ class UR_AJAX {
|
|
315 |
|
316 |
} else {
|
317 |
|
318 |
-
if ( $key
|
319 |
$regex_status = self::is_regex_pass( $value );
|
320 |
|
321 |
if ( ! $regex_status || in_array( $value, self::$field_key_aray ) ) {
|
@@ -368,6 +370,44 @@ class UR_AJAX {
|
|
368 |
update_option( 'user_registration_admin_footer_text_rated', 1 );
|
369 |
wp_die();
|
370 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
}
|
372 |
|
373 |
UR_AJAX::init();
|
201 |
|
202 |
$post_data = json_decode( stripslashes( $_POST['data']['form_data'] ) );
|
203 |
|
204 |
+
$post_data = self::ur_add_to_advanced_settings( $post_data ); // Backward compatibility method. Since @1.5.7.
|
205 |
+
|
206 |
self::sweep_array( $post_data );
|
207 |
|
208 |
if ( isset( self::$failed_key_value['value'] ) && self::$failed_key_value['value'] != '' ) {
|
317 |
|
318 |
} else {
|
319 |
|
320 |
+
if ( $key === 'field_name' ) {
|
321 |
$regex_status = self::is_regex_pass( $value );
|
322 |
|
323 |
if ( ! $regex_status || in_array( $value, self::$field_key_aray ) ) {
|
370 |
update_option( 'user_registration_admin_footer_text_rated', 1 );
|
371 |
wp_die();
|
372 |
}
|
373 |
+
|
374 |
+
/**
|
375 |
+
* Migrate the choices/options from the general settings to advanced settings.
|
376 |
+
*
|
377 |
+
* Backward compatibility code. Modified @since 1.5.7.
|
378 |
+
*
|
379 |
+
* @param array $post_data All fields data.
|
380 |
+
* @return array Modified fields data.
|
381 |
+
*/
|
382 |
+
private static function ur_add_to_advanced_settings( $post_data ) {
|
383 |
+
|
384 |
+
$modifiying_keys = array( 'radio', 'select', 'checkbox' );
|
385 |
+
|
386 |
+
foreach ( $post_data as $post_content_row ) {
|
387 |
+
foreach ( $post_content_row as $post_content_grid ) {
|
388 |
+
foreach ( $post_content_grid as $field ) {
|
389 |
+
if( isset( $field->field_key ) ) {
|
390 |
+
if( ! in_array( $field->field_key, $modifiying_keys ) ) {
|
391 |
+
continue;
|
392 |
+
}
|
393 |
+
|
394 |
+
if( isset( $field->general_setting->options ) ) {
|
395 |
+
|
396 |
+
$options = implode( ',', $field->general_setting->options );
|
397 |
+
|
398 |
+
if( 'checkbox' === $field->field_key ) {
|
399 |
+
$field->advance_setting->choices = $options;
|
400 |
+
} else {
|
401 |
+
$field->advance_setting->options = $options;
|
402 |
+
}
|
403 |
+
}
|
404 |
+
}
|
405 |
+
}
|
406 |
+
}
|
407 |
+
}
|
408 |
+
|
409 |
+
return $post_data;
|
410 |
+
}
|
411 |
}
|
412 |
|
413 |
UR_AJAX::init();
|
includes/class-ur-cache-helper.php
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Cache Helper Class
|
4 |
+
*
|
5 |
+
* @class UR_Cache_Helper
|
6 |
+
* @since 1.5.7
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit;
|
11 |
+
}
|
12 |
+
|
13 |
+
/**
|
14 |
+
* UR_Cache_Helper Class.
|
15 |
+
*/
|
16 |
+
class UR_Cache_Helper {
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Hook in methods.
|
20 |
+
*/
|
21 |
+
public static function init() {
|
22 |
+
add_action( 'admin_notices', array( __CLASS__, 'notices' ) );
|
23 |
+
add_action( 'wp', array( __CLASS__, 'prevent_caching' ) );
|
24 |
+
add_action( 'user_registration_before_registration_form', array( __CLASS__, 'flush_w3tc_cache' ) );
|
25 |
+
add_action( 'user_registration_before_registration_form', array( __CLASS__, 'flush_wpsuper_cache' ) );
|
26 |
+
add_action( 'user_registration_before_registration_form', array( __CLASS__, 'flush_wprocket_cache' ) );
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Prevent caching on certain pages
|
31 |
+
*/
|
32 |
+
public static function prevent_caching( $id = '' ) {
|
33 |
+
|
34 |
+
if ( ! is_blog_installed() ) {
|
35 |
+
return;
|
36 |
+
}
|
37 |
+
|
38 |
+
$id = is_integer( $id ) ? $id : -1;
|
39 |
+
$page_ids = array_filter( array( ur_get_page_id( 'myaccount' ), $id ) );
|
40 |
+
|
41 |
+
if ( is_page( $page_ids ) ) {
|
42 |
+
self::set_nocache_constants();
|
43 |
+
nocache_headers();
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Flush already set cache by w3total cache plugin on registration page.
|
49 |
+
*/
|
50 |
+
public static function flush_w3tc_cache() {
|
51 |
+
if ( function_exists( 'w3tc_pgcache_flush' ) ) {
|
52 |
+
$post_id = get_the_ID();
|
53 |
+
w3tc_pgcache_flush_post( $post_id );
|
54 |
+
}
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Flush already set cache by wp super cache plugin on registration page.
|
59 |
+
*/
|
60 |
+
public static function flush_wpsuper_cache() {
|
61 |
+
if ( function_exists( 'wpsc_delete_post_cache' ) ) {
|
62 |
+
$post_id = get_the_ID();
|
63 |
+
wpsc_delete_post_cache( $post_id );
|
64 |
+
}
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Flush already set cache by wp rocket cache plugin on registration page.
|
69 |
+
*/
|
70 |
+
public static function flush_wprocket_cache() {
|
71 |
+
if ( function_exists( 'rocket_clean_post' ) ) {
|
72 |
+
$post_id = get_the_ID();
|
73 |
+
rocket_clean_post( $post_id );
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* Set constants to prevent caching by some plugins.
|
79 |
+
*
|
80 |
+
* @param mixed $return Value to return. Previously hooked into a filter.
|
81 |
+
* @return mixed
|
82 |
+
*/
|
83 |
+
public static function set_nocache_constants( $return = true ) {
|
84 |
+
ur_maybe_define_constant( 'DONOTCACHEPAGE', true );
|
85 |
+
ur_maybe_define_constant( 'DONOTCACHEOBJECT', true );
|
86 |
+
ur_maybe_define_constant( 'DONOTCACHEDB', true );
|
87 |
+
return $return;
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Notices function.
|
92 |
+
*/
|
93 |
+
public static function notices() {
|
94 |
+
if ( ! function_exists( 'w3tc_pgcache_flush' ) || ! function_exists( 'w3_instance' ) ) {
|
95 |
+
return;
|
96 |
+
}
|
97 |
+
|
98 |
+
$config = w3_instance( 'W3_Config' );
|
99 |
+
$enabled = $config->get_integer( 'dbcache.enabled' );
|
100 |
+
$settings = array_map( 'trim', $config->get_array( 'dbcache.reject.sql' ) );
|
101 |
+
|
102 |
+
if ( $enabled && ! in_array( '_ur_session_', $settings, true ) ) {
|
103 |
+
?>
|
104 |
+
<div class="error">
|
105 |
+
<p><?php echo wp_kses_post( sprintf( __( 'In order for <strong>database caching</strong> to work with User Registration you must add %1$s to the "Ignored Query Strings" option in <a href="%2$s">W3 Total Cache settings</a>.', 'user-registration' ), '<code>_ur_session_</code>', esc_url( admin_url( 'admin.php?page=w3tc_dbcache' ) ) ) ); ?></p>
|
106 |
+
</div>
|
107 |
+
<?php
|
108 |
+
}
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
UR_Cache_Helper::init();
|
includes/class-ur-form-handler.php
CHANGED
@@ -25,6 +25,7 @@ class UR_Form_Handler {
|
|
25 |
add_action( 'wp_loaded', array( __CLASS__, 'process_login' ), 20 );
|
26 |
add_action( 'wp_loaded', array( __CLASS__, 'process_lost_password' ), 20 );
|
27 |
add_action( 'wp_loaded', array( __CLASS__, 'process_reset_password' ), 20 );
|
|
|
28 |
}
|
29 |
|
30 |
/**
|
@@ -410,6 +411,46 @@ class UR_Form_Handler {
|
|
410 |
}
|
411 |
}
|
412 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
}
|
414 |
|
415 |
UR_Form_Handler::init();
|
25 |
add_action( 'wp_loaded', array( __CLASS__, 'process_login' ), 20 );
|
26 |
add_action( 'wp_loaded', array( __CLASS__, 'process_lost_password' ), 20 );
|
27 |
add_action( 'wp_loaded', array( __CLASS__, 'process_reset_password' ), 20 );
|
28 |
+
add_action( 'user_registration_before_customer_login_form', array( __CLASS__, 'export_confirmation_request' ) );
|
29 |
}
|
30 |
|
31 |
/**
|
411 |
}
|
412 |
}
|
413 |
}
|
414 |
+
|
415 |
+
/**
|
416 |
+
* Handle Export Personal data confirmation request.
|
417 |
+
*/
|
418 |
+
public static function export_confirmation_request() {
|
419 |
+
if ( isset( $_REQUEST['action'] ) && 'confirmaction' === $_REQUEST['action'] ) {
|
420 |
+
if ( ! isset( $_GET['request_id'] ) ) {
|
421 |
+
return;
|
422 |
+
}
|
423 |
+
|
424 |
+
$request_id = (int) $_GET['request_id'];
|
425 |
+
|
426 |
+
if ( isset( $_GET['confirm_key'] ) ) {
|
427 |
+
$key = sanitize_text_field( wp_unslash( $_GET['confirm_key'] ) );
|
428 |
+
$result = wp_validate_user_request_key( $request_id, $key );
|
429 |
+
} else {
|
430 |
+
$result = new WP_Error( 'invalid_key', __( 'Invalid Key', 'user-registration' ) );
|
431 |
+
}
|
432 |
+
|
433 |
+
if ( is_wp_error( $result ) ) {
|
434 |
+
ur_add_notice( $result->get_error_message(), 'error' );
|
435 |
+
ur_print_notices();
|
436 |
+
return;
|
437 |
+
}
|
438 |
+
|
439 |
+
do_action( 'user_request_action_confirmed', $request_id );
|
440 |
+
|
441 |
+
$request = wp_get_user_request_data( $request_id );
|
442 |
+
|
443 |
+
if ( $request && in_array( $request->action_name, _wp_privacy_action_request_types(), true ) ) {
|
444 |
+
if ( 'export_personal_data' === $request->action_name ) {
|
445 |
+
$message = apply_filters( 'user_registration_export_personal_data_confirmation_message', __( 'Thanks for confirming your export request.', 'user-registration' ) );
|
446 |
+
} elseif ( 'remove_personal_data' === $request->action_name ) {
|
447 |
+
$message = apply_filters( 'user_registration_remove_personal_data_confirmation_message', __( 'Thanks for confirming your erasure request.', 'user-registration' ) );
|
448 |
+
}
|
449 |
+
ur_add_notice( $message, 'success' );
|
450 |
+
ur_print_notices();
|
451 |
+
}
|
452 |
+
}
|
453 |
+
}
|
454 |
}
|
455 |
|
456 |
UR_Form_Handler::init();
|
includes/class-ur-shortcodes.php
CHANGED
@@ -157,6 +157,10 @@ class UR_Shortcodes {
|
|
157 |
* @since 1.0.1 Recaptcha only
|
158 |
*/
|
159 |
private static function render_form( $form_id ) {
|
|
|
|
|
|
|
|
|
160 |
$args = array(
|
161 |
'post_type' => 'user_registration',
|
162 |
'post_status' => 'publish',
|
@@ -182,6 +186,8 @@ class UR_Shortcodes {
|
|
182 |
// Enqueue script.
|
183 |
wp_enqueue_script( 'user-registration' );
|
184 |
|
|
|
|
|
185 |
$has_date = ur_has_date_field( $form_id );
|
186 |
|
187 |
if ( true === $has_date ) {
|
157 |
* @since 1.0.1 Recaptcha only
|
158 |
*/
|
159 |
private static function render_form( $form_id ) {
|
160 |
+
|
161 |
+
$page_id = get_the_ID();
|
162 |
+
UR_Cache_Helper::prevent_caching( $page_id );
|
163 |
+
|
164 |
$args = array(
|
165 |
'post_type' => 'user_registration',
|
166 |
'post_status' => 'publish',
|
186 |
// Enqueue script.
|
187 |
wp_enqueue_script( 'user-registration' );
|
188 |
|
189 |
+
do_action( 'user_registration_enqueue_scripts', $form_data_array, $form_id );
|
190 |
+
|
191 |
$has_date = ur_has_date_field( $form_id );
|
192 |
|
193 |
if ( true === $has_date ) {
|
includes/form/class-ur-form-field-checkbox.php
CHANGED
@@ -39,6 +39,11 @@ class UR_Form_Field_Checkbox extends UR_Form_Field {
|
|
39 |
$this->field_defaults = array(
|
40 |
'default_label' => __( 'Checkbox', 'user-registration' ),
|
41 |
'default_field_name' => 'check_box_' . ur_get_random_number(),
|
|
|
|
|
|
|
|
|
|
|
42 |
);
|
43 |
}
|
44 |
|
39 |
$this->field_defaults = array(
|
40 |
'default_label' => __( 'Checkbox', 'user-registration' ),
|
41 |
'default_field_name' => 'check_box_' . ur_get_random_number(),
|
42 |
+
'default_options' => array(
|
43 |
+
__( 'First Choice', 'user-registration' ),
|
44 |
+
__( 'Second Choice', 'user-registration' ),
|
45 |
+
__( 'Third Choice', 'user-registration' ),
|
46 |
+
),
|
47 |
);
|
48 |
}
|
49 |
|
includes/form/class-ur-form-field-radio.php
CHANGED
@@ -42,6 +42,11 @@ class UR_Form_Field_Radio extends UR_Form_Field {
|
|
42 |
$this->field_defaults = array(
|
43 |
'default_label' => __( 'Radio', 'user-registration' ),
|
44 |
'default_field_name' => 'radio_' . ur_get_random_number(),
|
|
|
|
|
|
|
|
|
|
|
45 |
);
|
46 |
}
|
47 |
|
42 |
$this->field_defaults = array(
|
43 |
'default_label' => __( 'Radio', 'user-registration' ),
|
44 |
'default_field_name' => 'radio_' . ur_get_random_number(),
|
45 |
+
'default_options' => array(
|
46 |
+
__( 'First Choice', 'user-registration' ),
|
47 |
+
__( 'Second Choice', 'user-registration' ),
|
48 |
+
__( 'Third Choice', 'user-registration' ),
|
49 |
+
),
|
50 |
);
|
51 |
}
|
52 |
|
includes/form/class-ur-form-field-select.php
CHANGED
@@ -39,6 +39,11 @@ class UR_Form_Field_Select extends UR_Form_Field {
|
|
39 |
$this->field_defaults = array(
|
40 |
'default_label' => __( 'Select', 'user-registration' ),
|
41 |
'default_field_name' => 'select_' . ur_get_random_number(),
|
|
|
|
|
|
|
|
|
|
|
42 |
);
|
43 |
}
|
44 |
|
39 |
$this->field_defaults = array(
|
40 |
'default_label' => __( 'Select', 'user-registration' ),
|
41 |
'default_field_name' => 'select_' . ur_get_random_number(),
|
42 |
+
'default_options' => array(
|
43 |
+
__( 'First Choice', 'user-registration' ),
|
44 |
+
__( 'Second Choice', 'user-registration' ),
|
45 |
+
__( 'Third Choice', 'user-registration' ),
|
46 |
+
),
|
47 |
);
|
48 |
}
|
49 |
|
includes/form/settings/class-ur-setting-checkbox.php
CHANGED
@@ -28,7 +28,6 @@ class UR_Setting_Checkbox extends UR_Field_Settings {
|
|
28 |
}
|
29 |
|
30 |
public function register_fields() {
|
31 |
-
|
32 |
$fields = array(
|
33 |
|
34 |
'custom_class' => array(
|
@@ -41,17 +40,6 @@ class UR_Setting_Checkbox extends UR_Field_Settings {
|
|
41 |
'default' => '',
|
42 |
'placeholder' => __( 'Custom Class', 'user-registration' ),
|
43 |
),
|
44 |
-
|
45 |
-
'choices' => array(
|
46 |
-
'label' => __( 'Choices', 'user-registration' ),
|
47 |
-
'data-id' => $this->field_id . '_choices',
|
48 |
-
'name' => $this->field_id . '[choices]',
|
49 |
-
'class' => $this->default_class . ' ur-settings-choices',
|
50 |
-
'type' => 'textarea',
|
51 |
-
'required' => false,
|
52 |
-
'default' => '',
|
53 |
-
'placeholder' => __( "Please input your text here to create the checkbox list like:\nCheckbox 1,\nCheckbox 2,\nCheckbox 3", 'user-registration' ),
|
54 |
-
),
|
55 |
);
|
56 |
|
57 |
$this->render_html( $fields );
|
28 |
}
|
29 |
|
30 |
public function register_fields() {
|
|
|
31 |
$fields = array(
|
32 |
|
33 |
'custom_class' => array(
|
40 |
'default' => '',
|
41 |
'placeholder' => __( 'Custom Class', 'user-registration' ),
|
42 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
);
|
44 |
|
45 |
$this->render_html( $fields );
|
includes/form/settings/class-ur-setting-radio.php
CHANGED
@@ -36,16 +36,6 @@ class UR_Setting_Radio extends UR_Field_Settings {
|
|
36 |
'placeholder' => __( 'Custom Class', 'user-registration' ),
|
37 |
|
38 |
),
|
39 |
-
'options' => array(
|
40 |
-
'label' => __( 'Options ', 'user-registration' ),
|
41 |
-
'data-id' => $this->field_id . '_options',
|
42 |
-
'name' => $this->field_id . '[options]',
|
43 |
-
'class' => $this->default_class . ' ur-settings-options',
|
44 |
-
'type' => 'textarea',
|
45 |
-
'required' => false,
|
46 |
-
'default' => '',
|
47 |
-
'placeholder' => __( "Please input your text here to create the radio choices list like:\nOption 1,\nOption 2,\nOption 3", 'user-registration' ),
|
48 |
-
),
|
49 |
);
|
50 |
$this->render_html( $fields );
|
51 |
}
|
36 |
'placeholder' => __( 'Custom Class', 'user-registration' ),
|
37 |
|
38 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
);
|
40 |
$this->render_html( $fields );
|
41 |
}
|
includes/form/settings/class-ur-setting-select.php
CHANGED
@@ -39,16 +39,6 @@ class UR_Setting_Select extends UR_Field_Settings {
|
|
39 |
'placeholder' => __( 'Custom Class', 'user-registration' ),
|
40 |
|
41 |
),
|
42 |
-
'options' => array(
|
43 |
-
'label' => __( 'Options ', 'user-registration' ),
|
44 |
-
'data-id' => $this->field_id . '_options',
|
45 |
-
'name' => $this->field_id . '[options]',
|
46 |
-
'class' => $this->default_class . ' ur-settings-options',
|
47 |
-
'type' => 'textarea',
|
48 |
-
'required' => false,
|
49 |
-
'default' => '',
|
50 |
-
'placeholder' => __( "Please input your text here to create the dropdown list like:\nOption 1,\nOption 2,\nOption 3", 'user-registration' ),
|
51 |
-
),
|
52 |
);
|
53 |
|
54 |
$this->render_html( $fields );
|
39 |
'placeholder' => __( 'Custom Class', 'user-registration' ),
|
40 |
|
41 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
);
|
43 |
|
44 |
$this->render_html( $fields );
|
includes/form/views/admin/admin-checkbox.php
CHANGED
@@ -7,7 +7,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
7 |
exit;
|
8 |
}
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
11 |
?>
|
12 |
|
13 |
<div class="ur-input-type-checkbox ur-admin-template">
|
@@ -18,12 +23,15 @@ $choices = isset( $this->admin_data->advance_setting->choices ) ? explode( ',',
|
|
18 |
|
19 |
<div class="ur-field" data-field-key="checkbox">
|
20 |
<?php
|
21 |
-
if ( count( $
|
22 |
-
echo "<input type = 'checkbox' value='1' disabled
|
23 |
}
|
24 |
|
25 |
-
foreach ( $
|
26 |
-
|
|
|
|
|
|
|
27 |
}
|
28 |
?>
|
29 |
|
7 |
exit;
|
8 |
}
|
9 |
|
10 |
+
// Compatibility for older version. Get string value from options in advanced settings. Modified since @1.5.7
|
11 |
+
$default_options = isset( $this->field_defaults['default_options'] ) ? $this->field_defaults['default_options'] : array();
|
12 |
+
$old_options = isset( $this->admin_data->advance_setting->choices ) ? explode( ',', trim( $this->admin_data->advance_setting->choices, ',' ) ) : $default_options;
|
13 |
+
$options = isset( $this->admin_data->general_setting->options ) ? $this->admin_data->general_setting->options : $old_options;
|
14 |
+
$default_values = isset( $this->admin_data->general_setting->default_value ) ? $this->admin_data->general_setting->default_value : array();
|
15 |
+
$options = array_map( 'trim', $options );
|
16 |
?>
|
17 |
|
18 |
<div class="ur-input-type-checkbox ur-admin-template">
|
23 |
|
24 |
<div class="ur-field" data-field-key="checkbox">
|
25 |
<?php
|
26 |
+
if ( count( $options ) < 1 ) {
|
27 |
+
echo "<label><input type = 'checkbox' value='1' disabled/></label>";
|
28 |
}
|
29 |
|
30 |
+
foreach ( $options as $option ) {
|
31 |
+
|
32 |
+
$checked = in_array( $option, $default_values ) ? 'checked' : '';
|
33 |
+
|
34 |
+
echo "<label><input type = 'checkbox' value='" . esc_attr( trim( $option ) ) . "' ". $checked ." disabled/>" . esc_html( trim( $option ) ) . '</label>';
|
35 |
}
|
36 |
?>
|
37 |
|
includes/form/views/admin/admin-privacy-policy.php
CHANGED
@@ -11,7 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
11 |
<div class="ur-input-type-privacy-policy ur-admin-template">
|
12 |
|
13 |
<div class="ur-label">
|
14 |
-
<label><?php echo esc_html(
|
15 |
</div>
|
16 |
|
17 |
<div class="ur-field" data-field-key="privacy_policy">
|
@@ -23,4 +23,3 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
23 |
UR_Form_Field_Privacy_Policy::get_instance()->get_setting();
|
24 |
?>
|
25 |
</div>
|
26 |
-
|
11 |
<div class="ur-input-type-privacy-policy ur-admin-template">
|
12 |
|
13 |
<div class="ur-label">
|
14 |
+
<label><?php echo esc_html($this->get_general_setting_data( 'label' )); ?><span style="color:red">*</span></label>
|
15 |
</div>
|
16 |
|
17 |
<div class="ur-field" data-field-key="privacy_policy">
|
23 |
UR_Form_Field_Privacy_Policy::get_instance()->get_setting();
|
24 |
?>
|
25 |
</div>
|
|
includes/form/views/admin/admin-radio.php
CHANGED
@@ -7,9 +7,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
7 |
exit; // Exit if accessed directly.
|
8 |
}
|
9 |
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
12 |
?>
|
|
|
13 |
<div class="ur-input-type-select ur-admin-template">
|
14 |
|
15 |
<div class="ur-label">
|
@@ -19,17 +24,17 @@ $options = isset( $this->admin_data->advance_setting->options ) ? explode( ',',
|
|
19 |
<div class="ur-field" data-field-key="radio">
|
20 |
<?php
|
21 |
if ( count( $options ) < 1 ) {
|
22 |
-
echo "<input type = 'radio' value='1' disabled
|
23 |
}
|
24 |
|
25 |
foreach ( $options as $option ) {
|
26 |
-
echo "<input type = 'radio' value='" . esc_attr( trim( $option ) ) . "' disabled/>" . esc_html( trim( $option ) ) . '
|
27 |
}
|
28 |
?>
|
29 |
</div>
|
30 |
|
31 |
<?php
|
32 |
-
|
33 |
?>
|
34 |
</div>
|
35 |
|
7 |
exit; // Exit if accessed directly.
|
8 |
}
|
9 |
|
10 |
+
// Compatibility for older version. Get string value from options in advanced settings. Modified since @1.5.7
|
11 |
+
$default_options = isset( $this->field_defaults['default_options'] ) ? $this->field_defaults['default_options'] : array();
|
12 |
+
$old_options = isset( $this->admin_data->advance_setting->options ) ? explode( ',', trim( $this->admin_data->advance_setting->options, ',' ) ) : $default_options;
|
13 |
+
$options = isset( $this->admin_data->general_setting->options ) ? $this->admin_data->general_setting->options : $old_options;
|
14 |
+
$default_value = isset( $this->admin_data->general_setting->default_value ) ? $this->admin_data->general_setting->default_value : '';
|
15 |
+
$options = array_map( 'trim', $options );
|
16 |
?>
|
17 |
+
|
18 |
<div class="ur-input-type-select ur-admin-template">
|
19 |
|
20 |
<div class="ur-label">
|
24 |
<div class="ur-field" data-field-key="radio">
|
25 |
<?php
|
26 |
if ( count( $options ) < 1 ) {
|
27 |
+
echo "<label><input type = 'radio' value='1' disabled/></label>";
|
28 |
}
|
29 |
|
30 |
foreach ( $options as $option ) {
|
31 |
+
echo "<label><input type = 'radio' value='" . esc_attr( trim( $option ) ) . "' '" . checked( $option, $default_value, false ) . "' disabled/>" . esc_html( trim( $option ) ) . '</label>';
|
32 |
}
|
33 |
?>
|
34 |
</div>
|
35 |
|
36 |
<?php
|
37 |
+
UR_Form_Field_Radio::get_instance()->get_setting();
|
38 |
?>
|
39 |
</div>
|
40 |
|
includes/form/views/admin/admin-select.php
CHANGED
@@ -7,7 +7,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
7 |
exit; // Exit if accessed directly.
|
8 |
}
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
?>
|
13 |
<div class="ur-input-type-select ur-admin-template">
|
@@ -17,15 +22,16 @@ $options = isset( $this->admin_data->advance_setting->options ) ? explode( ',',
|
|
17 |
</div>
|
18 |
|
19 |
<div class="ur-field" data-field-key="select">
|
20 |
-
<select id="ur-input-type-select">
|
21 |
<?php
|
22 |
foreach ( $options as $option ) {
|
23 |
-
echo "<option value='" . esc_attr( trim( $option ) ) . "'>" . esc_html( trim( $option ) ) . '</option>';
|
24 |
}
|
25 |
?>
|
26 |
</select>
|
27 |
</div>
|
28 |
|
|
|
29 |
<?php
|
30 |
UR_Form_Field_Select::get_instance()->get_setting();
|
31 |
?>
|
7 |
exit; // Exit if accessed directly.
|
8 |
}
|
9 |
|
10 |
+
// Compatibility for older version. Get string value from options in advanced settings. Modified since @1.5.7
|
11 |
+
$default_options = isset( $this->field_defaults['default_options'] ) ? $this->field_defaults['default_options'] : array();
|
12 |
+
$old_options = isset( $this->admin_data->advance_setting->options ) ? explode( ',', trim( $this->admin_data->advance_setting->options, ',' ) ) : $default_options;
|
13 |
+
$options = isset( $this->admin_data->general_setting->options ) ? $this->admin_data->general_setting->options : $old_options;
|
14 |
+
$default_value = isset( $this->admin_data->general_setting->default_value ) ? $this->admin_data->general_setting->default_value : '';
|
15 |
+
$options = array_map( 'trim', $options );
|
16 |
|
17 |
?>
|
18 |
<div class="ur-input-type-select ur-admin-template">
|
22 |
</div>
|
23 |
|
24 |
<div class="ur-field" data-field-key="select">
|
25 |
+
<select id="ur-input-type-select" disabled>
|
26 |
<?php
|
27 |
foreach ( $options as $option ) {
|
28 |
+
echo "<option value='" . esc_attr( trim( $option ) ) . "' '" . selected( $option, $default_value, false ) . "'>" . esc_html( trim( $option ) ) . '</option>';
|
29 |
}
|
30 |
?>
|
31 |
</select>
|
32 |
</div>
|
33 |
|
34 |
+
|
35 |
<?php
|
36 |
UR_Form_Field_Select::get_instance()->get_setting();
|
37 |
?>
|
includes/frontend/class-ur-frontend-form-handler.php
CHANGED
@@ -49,6 +49,8 @@ class UR_Frontend_Form_Handler {
|
|
49 |
self::add_hook( $form_field_data, $form_data );
|
50 |
self::validate_form_data( $form_field_data, $form_data );
|
51 |
|
|
|
|
|
52 |
self::$response_array = apply_filters( 'user_registration_response_array', self::$response_array, $form_data, $form_id );
|
53 |
|
54 |
if ( count( self::$response_array ) == 0 ) {
|
@@ -331,6 +333,35 @@ class UR_Frontend_Form_Handler {
|
|
331 |
}
|
332 |
return $form_data;
|
333 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
}
|
335 |
|
336 |
return new UR_Frontend_Form_Handler();
|
49 |
self::add_hook( $form_field_data, $form_data );
|
50 |
self::validate_form_data( $form_field_data, $form_data );
|
51 |
|
52 |
+
self::validate_password_data( $form_field_data, $form_data );
|
53 |
+
|
54 |
self::$response_array = apply_filters( 'user_registration_response_array', self::$response_array, $form_data, $form_id );
|
55 |
|
56 |
if ( count( self::$response_array ) == 0 ) {
|
333 |
}
|
334 |
return $form_data;
|
335 |
}
|
336 |
+
|
337 |
+
/**
|
338 |
+
* Validate password to check if match username or email address.
|
339 |
+
*
|
340 |
+
* @param array $form_field_data Form field data.
|
341 |
+
* @param array $form_data Form data to validate.
|
342 |
+
*/
|
343 |
+
private static function validate_password_data( $form_field_data = array(), $form_data = array() ) {
|
344 |
+
$email_value = '';
|
345 |
+
$username_value = '';
|
346 |
+
$password_value = '';
|
347 |
+
|
348 |
+
// Find email, username and password value.
|
349 |
+
foreach ( $form_data as $data ) {
|
350 |
+
if ( 'user_email' === $data->extra_params['field_key'] ) {
|
351 |
+
$email_value = strtolower( $data->value );
|
352 |
+
}
|
353 |
+
if ( 'user_login' === $data->extra_params['field_key'] ) {
|
354 |
+
$username_value = strtolower( $data->value );
|
355 |
+
}
|
356 |
+
if ( 'user_pass' === $data->extra_params['field_key'] ) {
|
357 |
+
$password_value = strtolower( $data->value );
|
358 |
+
}
|
359 |
+
}
|
360 |
+
|
361 |
+
if ( $password_value === $email_value || $password_value === $username_value ) {
|
362 |
+
array_push( self::$response_array, __( '<label>Week Password!</label><br />Hint: To make password stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ & ).', 'user-registration' ) );
|
363 |
+
}
|
364 |
+
}
|
365 |
}
|
366 |
|
367 |
return new UR_Frontend_Form_Handler();
|
includes/functions-ur-core.php
CHANGED
@@ -614,11 +614,9 @@ function ur_get_general_settings( $id ) {
|
|
614 |
'user_registration_exclude_placeholder',
|
615 |
array(
|
616 |
'checkbox',
|
617 |
-
'country',
|
618 |
'date',
|
619 |
'privacy_policy',
|
620 |
'radio',
|
621 |
-
'select',
|
622 |
'file',
|
623 |
'mailchimp',
|
624 |
)
|
@@ -629,9 +627,62 @@ function ur_get_general_settings( $id ) {
|
|
629 |
unset( $general_settings['placeholder'] );
|
630 |
}
|
631 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
return apply_filters( 'user_registration_field_options_general_settings', $general_settings, $id );
|
633 |
}
|
634 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
635 |
/**
|
636 |
* Load form field class.
|
637 |
*
|
614 |
'user_registration_exclude_placeholder',
|
615 |
array(
|
616 |
'checkbox',
|
|
|
617 |
'date',
|
618 |
'privacy_policy',
|
619 |
'radio',
|
|
|
620 |
'file',
|
621 |
'mailchimp',
|
622 |
)
|
627 |
unset( $general_settings['placeholder'] );
|
628 |
}
|
629 |
|
630 |
+
$choices_fields = array( 'radio', 'select', 'checkbox' );
|
631 |
+
|
632 |
+
if ( in_array( $strip_id, $choices_fields ) ) {
|
633 |
+
|
634 |
+
$settings['options'] = array(
|
635 |
+
'type' => $strip_id === 'checkbox' ? 'checkbox' : 'radio',
|
636 |
+
'label' => __( 'Options', 'user-registration' ),
|
637 |
+
'name' => 'ur_general_setting[options]',
|
638 |
+
'placeholder' => '',
|
639 |
+
'required' => true,
|
640 |
+
'options' => array(
|
641 |
+
__( 'First Choice', 'user-registration' ),
|
642 |
+
__( 'Second Choice', 'user-registration' ),
|
643 |
+
__( 'Third Choice', 'user-registration' ),
|
644 |
+
),
|
645 |
+
);
|
646 |
+
|
647 |
+
$general_settings = ur_insert_after_helper( $general_settings, $settings, 'field_name' );
|
648 |
+
}
|
649 |
+
|
650 |
+
if ( $strip_id === 'privacy_policy' ) {
|
651 |
+
$general_settings['required'] = array(
|
652 |
+
'type' => 'hidden',
|
653 |
+
'label' => '',
|
654 |
+
'name' => 'ur_general_setting[required]',
|
655 |
+
'placeholder' => '',
|
656 |
+
'default' => 'yes',
|
657 |
+
'required' => true,
|
658 |
+
);
|
659 |
+
}
|
660 |
return apply_filters( 'user_registration_field_options_general_settings', $general_settings, $id );
|
661 |
}
|
662 |
|
663 |
+
/**
|
664 |
+
* Insert in between the indexes in multidimensional array.
|
665 |
+
*
|
666 |
+
* @since 1.5.7
|
667 |
+
* @param array $items An array of items
|
668 |
+
* @param array $new_items New items to insert inbetween
|
669 |
+
* @param string $after Index to insert after
|
670 |
+
*
|
671 |
+
* @return array Ordered array of items.
|
672 |
+
*/
|
673 |
+
function ur_insert_after_helper( $items, $new_items, $after ) {
|
674 |
+
|
675 |
+
// Search for the item position and +1 since is after the selected item key.
|
676 |
+
$position = array_search( $after, array_keys( $items ) ) + 1;
|
677 |
+
|
678 |
+
// Insert the new item.
|
679 |
+
$return_items = array_slice( $items, 0, $position, true );
|
680 |
+
$return_items += $new_items;
|
681 |
+
$return_items += array_slice( $items, $position, count( $items ) - $position, true );
|
682 |
+
|
683 |
+
return $return_items;
|
684 |
+
}
|
685 |
+
|
686 |
/**
|
687 |
* Load form field class.
|
688 |
*
|
includes/functions-ur-template.php
CHANGED
@@ -231,34 +231,39 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
231 |
break;
|
232 |
|
233 |
case 'checkbox':
|
234 |
-
$field_key = isset( $args['field_key'] ) ? $args['field_key'] : '';
|
235 |
-
$default = $args['default'];
|
236 |
|
237 |
-
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
if ( ! empty( $default ) ) {
|
240 |
$default = ( is_serialized( $default ) ) ? unserialize( $default ) : $default;
|
241 |
}
|
242 |
|
243 |
-
$choices = isset( $
|
244 |
|
245 |
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">';
|
246 |
$field .= $args['label'] . $required . '</label>';
|
247 |
if ( $args['description'] ) {
|
248 |
$field .= '<span class="description">' . $args['description'] . '</span>';
|
249 |
}
|
|
|
250 |
$checkbox_start = 0;
|
|
|
251 |
foreach ( $choices as $choice_index => $choice ) {
|
252 |
|
253 |
$value = '';
|
254 |
-
if ( is_array( $default ) && in_array( trim( $
|
255 |
$value = 'checked="checked"';
|
256 |
-
} elseif ( $default === $
|
257 |
$value = 'checked="checked"';
|
258 |
}
|
259 |
|
260 |
$field .= '<label>';
|
261 |
-
$field .= ' <input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" ' . implode( ' ', $custom_attributes ) . ' data-value="' . $choice_index . '" type="' . esc_attr( $args['type'] ) . '" class="input-checkbox ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '[]" id="' . esc_attr( $args['id'] ) . '_' . esc_attr( $choice_index ) . '" value="' . trim( $
|
262 |
$field .= trim( $choice ) . ' </label>';
|
263 |
$checkbox_start++;
|
264 |
}
|
@@ -292,17 +297,19 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
292 |
break;
|
293 |
|
294 |
case 'select':
|
|
|
|
|
|
|
295 |
$options = $field .= '';
|
296 |
if ( ! empty( $args['options'] ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
foreach ( $args['options'] as $option_key => $option_text ) {
|
298 |
|
299 |
-
if ( '' === $option_key ) {
|
300 |
-
// If we have a blank option, select2 needs a placeholder
|
301 |
-
if ( empty( $args['placeholder'] ) ) {
|
302 |
-
$args['placeholder'] = $option_text ? $option_text : __( 'Choose an option', 'user-registration' );
|
303 |
-
}
|
304 |
-
$custom_attributes[] = 'data-allow_clear="true"';
|
305 |
-
}
|
306 |
$options .= '<option value="' . esc_attr( trim( $option_key ) ) . '" ' . selected( $value, trim( $option_key ), false ) . '>' . esc_attr( trim( $option_text ) ) . '</option>';
|
307 |
}
|
308 |
|
@@ -346,13 +353,16 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
346 |
break;
|
347 |
|
348 |
case 'radio':
|
|
|
|
|
|
|
349 |
$label_id = current( array_keys( $args['options'] ) );
|
350 |
if ( ! empty( $args['options'] ) ) {
|
351 |
-
foreach ( $args['options'] as $
|
352 |
|
353 |
-
$field .= '<label for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $
|
354 |
|
355 |
-
$field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="radio" class="input-radio ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" value="' . esc_attr( trim( $
|
356 |
trim( $option_text ),
|
357 |
array(
|
358 |
'a' => array(
|
@@ -436,6 +446,8 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
436 |
$field_name = isset( $field->general_setting->field_name ) ? $field->general_setting->field_name : '';
|
437 |
$field_label = isset( $field->general_setting->label ) ? $field->general_setting->label : '';
|
438 |
$field_description = isset( $field->general_setting->description ) ? $field->general_setting->description : '';
|
|
|
|
|
439 |
$field_key = isset( $field->field_key ) ? ( $field->field_key ) : '';
|
440 |
$field_type = isset( $field->field_key ) ? ur_get_field_type( $field_key ) : '';
|
441 |
$required = isset( $field->general_setting->required ) ? $field->general_setting->required : '';
|
@@ -453,23 +465,34 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
453 |
|
454 |
case 'radio':
|
455 |
case 'select':
|
456 |
-
$
|
|
|
|
|
|
|
|
|
457 |
foreach ( $extra_params['options'] as $key => $value ) {
|
458 |
$extra_params['options'][ $value ] = $value;
|
459 |
unset( $extra_params['options'][ $key ] );
|
460 |
}
|
461 |
break;
|
|
|
462 |
case 'checkbox':
|
463 |
-
$
|
464 |
-
|
465 |
-
|
466 |
-
|
|
|
|
|
|
|
|
|
467 |
}
|
468 |
break;
|
|
|
469 |
case 'country':
|
470 |
$class_name = ur_load_form_field_class( $field_key );
|
471 |
$extra_params['options'] = $class_name::get_instance()->get_country();
|
472 |
break;
|
|
|
473 |
default:
|
474 |
break;
|
475 |
}
|
@@ -478,17 +501,19 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
478 |
|
479 |
if ( in_array( 'user_registration_' . $field_name, $all_meta_value_keys ) ) {
|
480 |
$fields[ 'user_registration_' . $field_name ] = array(
|
481 |
-
'label' =>
|
482 |
-
'description' =>
|
483 |
'type' => $field_type,
|
|
|
484 |
'field_key' => $field_key,
|
485 |
'required' => $required,
|
486 |
);
|
487 |
} elseif ( in_array( $field_key, ur_get_user_profile_field_only() ) ) {
|
488 |
$fields[ 'user_registration_' . $field_name ] = array(
|
489 |
-
'label' =>
|
490 |
-
'description' =>
|
491 |
'type' => $field_type,
|
|
|
492 |
'field_key' => $field_key,
|
493 |
'required' => $required,
|
494 |
);
|
231 |
break;
|
232 |
|
233 |
case 'checkbox':
|
|
|
|
|
234 |
|
235 |
+
$field_key = isset( $args['field_key'] ) ? $args['field_key'] : '';
|
236 |
+
$default_value = isset( $args['default_value'] ) ? $args['default_value'] : ''; // Backward compatibility. Modified since 1.5.7
|
237 |
+
$default = ! empty( $value ) ? $value : $default_value;
|
238 |
+
$options = isset( $args['options'] ) ? $args['options'] : ( $args['choices'] ? $args['choices'] : array() ); // $args['choices'] for backward compatibility. Modified since 1.5.7.
|
239 |
+
|
240 |
+
if ( isset( $options ) && array_filter( $options ) ) {
|
241 |
|
242 |
if ( ! empty( $default ) ) {
|
243 |
$default = ( is_serialized( $default ) ) ? unserialize( $default ) : $default;
|
244 |
}
|
245 |
|
246 |
+
$choices = isset( $options ) ? $options : array();
|
247 |
|
248 |
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">';
|
249 |
$field .= $args['label'] . $required . '</label>';
|
250 |
if ( $args['description'] ) {
|
251 |
$field .= '<span class="description">' . $args['description'] . '</span>';
|
252 |
}
|
253 |
+
|
254 |
$checkbox_start = 0;
|
255 |
+
|
256 |
foreach ( $choices as $choice_index => $choice ) {
|
257 |
|
258 |
$value = '';
|
259 |
+
if ( is_array( $default ) && in_array( trim( $choice_index ), $default ) ) {
|
260 |
$value = 'checked="checked"';
|
261 |
+
} elseif ( $default === $choice_index ) {
|
262 |
$value = 'checked="checked"';
|
263 |
}
|
264 |
|
265 |
$field .= '<label>';
|
266 |
+
$field .= ' <input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" ' . implode( ' ', $custom_attributes ) . ' data-value="' . $choice_index . '" type="' . esc_attr( $args['type'] ) . '" class="input-checkbox ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '[]" id="' . esc_attr( $args['id'] ) . '_' . esc_attr( $choice_index ) . '" value="' . trim( $choice_index ) . '"' . $value . ' /> ';
|
267 |
$field .= trim( $choice ) . ' </label>';
|
268 |
$checkbox_start++;
|
269 |
}
|
297 |
break;
|
298 |
|
299 |
case 'select':
|
300 |
+
$default_value = isset( $args['default_value'] ) ? $args['default_value'] : ''; // Backward compatibility. Modified since 1.5.7
|
301 |
+
|
302 |
+
$value = ! empty( $value ) ? $value : $default_value;
|
303 |
$options = $field .= '';
|
304 |
if ( ! empty( $args['options'] ) ) {
|
305 |
+
// If we have a blank option, select2 needs a placeholder
|
306 |
+
if ( ! empty( $args['placeholder'] ) ) {
|
307 |
+
$options .= '<option value="" selected disabled>'. esc_html( $args['placeholder'] ) .'</option>';
|
308 |
+
}
|
309 |
+
|
310 |
+
$custom_attributes[] = 'data-allow_clear="true"';
|
311 |
foreach ( $args['options'] as $option_key => $option_text ) {
|
312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
$options .= '<option value="' . esc_attr( trim( $option_key ) ) . '" ' . selected( $value, trim( $option_key ), false ) . '>' . esc_attr( trim( $option_text ) ) . '</option>';
|
314 |
}
|
315 |
|
353 |
break;
|
354 |
|
355 |
case 'radio':
|
356 |
+
|
357 |
+
$default_value = isset( $args['default_value'] ) ? $args['default_value'] : ''; // Backward compatibility. Modified since 1.5.7
|
358 |
+
$value = ! empty( $value ) ? $value : $default_value;
|
359 |
$label_id = current( array_keys( $args['options'] ) );
|
360 |
if ( ! empty( $args['options'] ) ) {
|
361 |
+
foreach ( $args['options'] as $option_index => $option_text ) {
|
362 |
|
363 |
+
$field .= '<label for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_text ) . '" class="radio">';
|
364 |
|
365 |
+
$field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="radio" class="input-radio ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" value="' . esc_attr( trim( $option_index ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_text ) . '" ' . implode( ' ', $custom_attributes ) . ' / ' . checked( $value, trim( $option_index ), false ) . ' />' . wp_kses(
|
366 |
trim( $option_text ),
|
367 |
array(
|
368 |
'a' => array(
|
446 |
$field_name = isset( $field->general_setting->field_name ) ? $field->general_setting->field_name : '';
|
447 |
$field_label = isset( $field->general_setting->label ) ? $field->general_setting->label : '';
|
448 |
$field_description = isset( $field->general_setting->description ) ? $field->general_setting->description : '';
|
449 |
+
$placeholder = isset( $field->general_setting->placeholder ) ? $field->general_setting->placeholder : '';
|
450 |
+
$options = isset( $field->general_setting->options ) ? $field->general_setting->options : array();
|
451 |
$field_key = isset( $field->field_key ) ? ( $field->field_key ) : '';
|
452 |
$field_type = isset( $field->field_key ) ? ur_get_field_type( $field_key ) : '';
|
453 |
$required = isset( $field->general_setting->required ) ? $field->general_setting->required : '';
|
465 |
|
466 |
case 'radio':
|
467 |
case 'select':
|
468 |
+
$advanced_options = isset( $field->advance_setting->options ) ? $field->advance_setting->options : '';
|
469 |
+
$advanced_options = explode( ',', $advanced_options );
|
470 |
+
$extra_params['options'] = ! empty( $options ) ? $options : $advanced_options;
|
471 |
+
$extra_params['options'] = array_map( 'trim', $extra_params['options'] );
|
472 |
+
|
473 |
foreach ( $extra_params['options'] as $key => $value ) {
|
474 |
$extra_params['options'][ $value ] = $value;
|
475 |
unset( $extra_params['options'][ $key ] );
|
476 |
}
|
477 |
break;
|
478 |
+
|
479 |
case 'checkbox':
|
480 |
+
$advanced_options = isset( $field->advance_setting->choices ) ? $field->advance_setting->choices : '';
|
481 |
+
$advanced_options = explode( ',', $advanced_options );
|
482 |
+
$extra_params['options'] = ! empty( $options ) ? $options : $advanced_options;
|
483 |
+
$extra_params['options'] = array_map( 'trim', $extra_params['options'] );
|
484 |
+
|
485 |
+
foreach ( $extra_params['options'] as $key => $value ) {
|
486 |
+
$extra_params['options'][ $value ] = $value;
|
487 |
+
unset( $extra_params['options'][ $key ] );
|
488 |
}
|
489 |
break;
|
490 |
+
|
491 |
case 'country':
|
492 |
$class_name = ur_load_form_field_class( $field_key );
|
493 |
$extra_params['options'] = $class_name::get_instance()->get_country();
|
494 |
break;
|
495 |
+
|
496 |
default:
|
497 |
break;
|
498 |
}
|
501 |
|
502 |
if ( in_array( 'user_registration_' . $field_name, $all_meta_value_keys ) ) {
|
503 |
$fields[ 'user_registration_' . $field_name ] = array(
|
504 |
+
'label' => $field_label,
|
505 |
+
'description' => $field_description,
|
506 |
'type' => $field_type,
|
507 |
+
'placeholder' => $placeholder,
|
508 |
'field_key' => $field_key,
|
509 |
'required' => $required,
|
510 |
);
|
511 |
} elseif ( in_array( $field_key, ur_get_user_profile_field_only() ) ) {
|
512 |
$fields[ 'user_registration_' . $field_name ] = array(
|
513 |
+
'label' => $field_label,
|
514 |
+
'description' => $field_description,
|
515 |
'type' => $field_type,
|
516 |
+
'placeholder' => $placeholder,
|
517 |
'field_key' => $field_key,
|
518 |
'required' => $required,
|
519 |
);
|
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.5.
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
-
"POT-Creation-Date: 2019-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -13,12 +13,12 @@ msgstr ""
|
|
13 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
14 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
15 |
|
16 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
17 |
#: includes/admin/functions-ur-admin.php:327
|
18 |
msgid "General Settings"
|
19 |
msgstr ""
|
20 |
|
21 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
22 |
msgid "Advance Settings"
|
23 |
msgstr ""
|
24 |
|
@@ -184,8 +184,8 @@ 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-form-field-select.php:35
|
190 |
#: includes/form/class-ur-form-field-select.php:40
|
191 |
msgid "Select"
|
@@ -570,7 +570,7 @@ msgid "Success Messages"
|
|
570 |
msgstr ""
|
571 |
|
572 |
#: includes/admin/settings/class-ur-settings-general.php:212
|
573 |
-
#: includes/functions-ur-core.php:
|
574 |
msgid "Manual login after registration"
|
575 |
msgstr ""
|
576 |
|
@@ -586,7 +586,7 @@ msgid "User successfully registered."
|
|
586 |
msgstr ""
|
587 |
|
588 |
#: includes/admin/settings/class-ur-settings-general.php:222
|
589 |
-
#: includes/functions-ur-core.php:
|
590 |
msgid "Email confirmation to login"
|
591 |
msgstr ""
|
592 |
|
@@ -604,7 +604,7 @@ msgid ""
|
|
604 |
msgstr ""
|
605 |
|
606 |
#: includes/admin/settings/class-ur-settings-general.php:232
|
607 |
-
#: includes/functions-ur-core.php:
|
608 |
msgid "Admin approval after registration"
|
609 |
msgstr ""
|
610 |
|
@@ -697,13 +697,13 @@ msgid "Enter the error message in form submission on google recaptcha."
|
|
697 |
msgstr ""
|
698 |
|
699 |
#: includes/admin/settings/class-ur-settings-general.php:310
|
700 |
-
#: includes/class-ur-ajax.php:88 includes/class-ur-form-handler.php:
|
701 |
#: includes/class-ur-frontend-scripts.php:333
|
702 |
msgid "Captcha code error, please try again."
|
703 |
msgstr ""
|
704 |
|
705 |
#: includes/admin/settings/class-ur-settings-general.php:341
|
706 |
-
#: includes/functions-ur-core.php:
|
707 |
msgid "Form Template"
|
708 |
msgstr ""
|
709 |
|
@@ -712,27 +712,27 @@ msgid "Choose the login form template."
|
|
712 |
msgstr ""
|
713 |
|
714 |
#: includes/admin/settings/class-ur-settings-general.php:349
|
715 |
-
#: includes/functions-ur-core.php:
|
716 |
msgid "Default"
|
717 |
msgstr ""
|
718 |
|
719 |
#: includes/admin/settings/class-ur-settings-general.php:350
|
720 |
-
#: includes/functions-ur-core.php:
|
721 |
msgid "Bordered"
|
722 |
msgstr ""
|
723 |
|
724 |
#: includes/admin/settings/class-ur-settings-general.php:351
|
725 |
-
#: includes/functions-ur-core.php:
|
726 |
msgid "Flat"
|
727 |
msgstr ""
|
728 |
|
729 |
#: includes/admin/settings/class-ur-settings-general.php:352
|
730 |
-
#: includes/functions-ur-core.php:
|
731 |
msgid "Rounded"
|
732 |
msgstr ""
|
733 |
|
734 |
#: includes/admin/settings/class-ur-settings-general.php:353
|
735 |
-
#: includes/functions-ur-core.php:
|
736 |
msgid "Rounded Edge"
|
737 |
msgstr ""
|
738 |
|
@@ -1198,31 +1198,31 @@ msgstr ""
|
|
1198 |
msgid "Form Name"
|
1199 |
msgstr ""
|
1200 |
|
1201 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1202 |
msgid "Copy Shortcode!"
|
1203 |
msgstr ""
|
1204 |
|
1205 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1206 |
msgid "Copied!"
|
1207 |
msgstr ""
|
1208 |
|
1209 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1210 |
msgid "Fields"
|
1211 |
msgstr ""
|
1212 |
|
1213 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1214 |
msgid "Field Options"
|
1215 |
msgstr ""
|
1216 |
|
1217 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1218 |
msgid "Form Setting"
|
1219 |
msgstr ""
|
1220 |
|
1221 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1222 |
msgid "Default User Fields"
|
1223 |
msgstr ""
|
1224 |
|
1225 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1226 |
msgid "Extra Fields"
|
1227 |
msgstr ""
|
1228 |
|
@@ -1335,7 +1335,7 @@ msgstr ""
|
|
1335 |
msgid "Taking a while? Click here to run it now."
|
1336 |
msgstr ""
|
1337 |
|
1338 |
-
#: includes/class-ur-ajax.php:81 includes/class-ur-form-handler.php:
|
1339 |
msgid "Error on google reCaptcha. Contact your site administrator."
|
1340 |
msgstr ""
|
1341 |
|
@@ -1364,10 +1364,17 @@ msgstr ""
|
|
1364 |
msgid "post data not set"
|
1365 |
msgstr ""
|
1366 |
|
1367 |
-
#: includes/class-ur-ajax.php:
|
1368 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
1369 |
msgstr ""
|
1370 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1371 |
#: includes/class-ur-email-confirmation.php:157
|
1372 |
msgid "Verified"
|
1373 |
msgstr ""
|
@@ -1393,11 +1400,11 @@ msgid "User doesnot exist!"
|
|
1393 |
msgstr ""
|
1394 |
|
1395 |
#: includes/class-ur-email-confirmation.php:351
|
1396 |
-
#: includes/class-ur-form-handler.php:
|
1397 |
-
#: includes/class-ur-form-handler.php:
|
1398 |
-
#: includes/class-ur-form-handler.php:
|
1399 |
-
#: includes/class-ur-form-handler.php:
|
1400 |
-
#: includes/class-ur-form-handler.php:
|
1401 |
#: includes/class-ur-user-approval.php:183
|
1402 |
#: includes/class-ur-user-approval.php:188 includes/functions-ur-account.php:32
|
1403 |
#: includes/functions-ur-account.php:35
|
@@ -1440,79 +1447,91 @@ msgstr ""
|
|
1440 |
msgid "Form"
|
1441 |
msgstr ""
|
1442 |
|
1443 |
-
#: includes/class-ur-form-handler.php:
|
1444 |
msgid "%s is a required field."
|
1445 |
msgstr ""
|
1446 |
|
1447 |
-
#: includes/class-ur-form-handler.php:
|
1448 |
msgid "%s is not a valid email address."
|
1449 |
msgstr ""
|
1450 |
|
1451 |
-
#: includes/class-ur-form-handler.php:
|
1452 |
msgid "User profile updated successfully."
|
1453 |
msgstr ""
|
1454 |
|
1455 |
-
#: includes/class-ur-form-handler.php:
|
1456 |
msgid "Please fill out all password fields."
|
1457 |
msgstr ""
|
1458 |
|
1459 |
-
#: includes/class-ur-form-handler.php:
|
1460 |
msgid "Please enter your current password."
|
1461 |
msgstr ""
|
1462 |
|
1463 |
-
#: includes/class-ur-form-handler.php:
|
1464 |
msgid "Please re-enter your password."
|
1465 |
msgstr ""
|
1466 |
|
1467 |
-
#: includes/class-ur-form-handler.php:
|
1468 |
msgid "New passwords do not match."
|
1469 |
msgstr ""
|
1470 |
|
1471 |
-
#: includes/class-ur-form-handler.php:
|
1472 |
msgid "Your current password is incorrect."
|
1473 |
msgstr ""
|
1474 |
|
1475 |
-
#: includes/class-ur-form-handler.php:
|
1476 |
msgid "Password changed successfully."
|
1477 |
msgstr ""
|
1478 |
|
1479 |
-
#: includes/class-ur-form-handler.php:
|
1480 |
msgid "Username is required."
|
1481 |
msgstr ""
|
1482 |
|
1483 |
-
#: includes/class-ur-form-handler.php:
|
1484 |
msgid "A user could not be found with this email address."
|
1485 |
msgstr ""
|
1486 |
|
1487 |
-
#: includes/class-ur-form-handler.php:
|
1488 |
msgid "Please enter your password."
|
1489 |
msgstr ""
|
1490 |
|
1491 |
-
#: includes/class-ur-form-handler.php:
|
1492 |
msgid "Passwords do not match."
|
1493 |
msgstr ""
|
1494 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1495 |
#: includes/class-ur-frontend-scripts.php:341
|
1496 |
msgid "Please enter a stronger password."
|
1497 |
msgstr ""
|
1498 |
|
1499 |
#: includes/class-ur-frontend-scripts.php:343
|
1500 |
-
#: includes/functions-ur-core.php:
|
1501 |
msgid "Very Weak"
|
1502 |
msgstr ""
|
1503 |
|
1504 |
#: includes/class-ur-frontend-scripts.php:344
|
1505 |
-
#: includes/functions-ur-core.php:
|
1506 |
msgid "Weak"
|
1507 |
msgstr ""
|
1508 |
|
1509 |
#: includes/class-ur-frontend-scripts.php:345
|
1510 |
-
#: includes/functions-ur-core.php:
|
1511 |
msgid "Medium"
|
1512 |
msgstr ""
|
1513 |
|
1514 |
#: includes/class-ur-frontend-scripts.php:346
|
1515 |
-
#: includes/functions-ur-core.php:
|
1516 |
msgid "Strong"
|
1517 |
msgstr ""
|
1518 |
|
@@ -1887,6 +1906,27 @@ msgstr ""
|
|
1887 |
msgid "Checkbox"
|
1888 |
msgstr ""
|
1889 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1890 |
#: includes/form/class-ur-form-field-country.php:35
|
1891 |
msgid "Afghanistan"
|
1892 |
msgstr ""
|
@@ -2999,8 +3039,8 @@ msgstr ""
|
|
2999 |
msgid "Website"
|
3000 |
msgstr ""
|
3001 |
|
3002 |
-
#: includes/form/settings/class-ur-setting-checkbox.php:
|
3003 |
-
#: includes/form/settings/class-ur-setting-checkbox.php:
|
3004 |
#: includes/form/settings/class-ur-setting-country.php:34
|
3005 |
#: includes/form/settings/class-ur-setting-country.php:41
|
3006 |
#: includes/form/settings/class-ur-setting-email.php:31
|
@@ -3016,44 +3056,11 @@ msgstr ""
|
|
3016 |
msgid "Custom Class"
|
3017 |
msgstr ""
|
3018 |
|
3019 |
-
#: includes/form/settings/class-ur-setting-checkbox.php:46
|
3020 |
-
msgid "Choices"
|
3021 |
-
msgstr ""
|
3022 |
-
|
3023 |
-
#: includes/form/settings/class-ur-setting-checkbox.php:53
|
3024 |
-
msgid ""
|
3025 |
-
"Please input your text here to create the checkbox list like:\n"
|
3026 |
-
"Checkbox 1,\n"
|
3027 |
-
"Checkbox 2,\n"
|
3028 |
-
"Checkbox 3"
|
3029 |
-
msgstr ""
|
3030 |
-
|
3031 |
#: includes/form/settings/class-ur-setting-password.php:31
|
3032 |
#: includes/form/settings/class-ur-setting-password.php:38
|
3033 |
msgid "Password Size"
|
3034 |
msgstr ""
|
3035 |
|
3036 |
-
#: includes/form/settings/class-ur-setting-radio.php:40
|
3037 |
-
#: includes/form/settings/class-ur-setting-select.php:43
|
3038 |
-
msgid "Options "
|
3039 |
-
msgstr ""
|
3040 |
-
|
3041 |
-
#: includes/form/settings/class-ur-setting-radio.php:47
|
3042 |
-
msgid ""
|
3043 |
-
"Please input your text here to create the radio choices list like:\n"
|
3044 |
-
"Option 1,\n"
|
3045 |
-
"Option 2,\n"
|
3046 |
-
"Option 3"
|
3047 |
-
msgstr ""
|
3048 |
-
|
3049 |
-
#: includes/form/settings/class-ur-setting-select.php:50
|
3050 |
-
msgid ""
|
3051 |
-
"Please input your text here to create the dropdown list like:\n"
|
3052 |
-
"Option 1,\n"
|
3053 |
-
"Option 2,\n"
|
3054 |
-
"Option 3"
|
3055 |
-
msgstr ""
|
3056 |
-
|
3057 |
#: includes/form/settings/class-ur-setting-text.php:31
|
3058 |
#: includes/form/settings/class-ur-setting-text.php:38
|
3059 |
msgid "Size"
|
@@ -3066,26 +3073,32 @@ msgstr ""
|
|
3066 |
msgid "Default Value"
|
3067 |
msgstr ""
|
3068 |
|
3069 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
3070 |
msgid "Something went wrong! please try again"
|
3071 |
msgstr ""
|
3072 |
|
3073 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
3074 |
msgid "Duplicate field key in form, please contact site administrator."
|
3075 |
msgstr ""
|
3076 |
|
3077 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
3078 |
msgid "Required form field not found."
|
3079 |
msgstr ""
|
3080 |
|
3081 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
3082 |
msgid "Empty confirm password"
|
3083 |
msgstr ""
|
3084 |
|
3085 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
3086 |
msgid "Password and confirm password not matched"
|
3087 |
msgstr ""
|
3088 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3089 |
#: includes/functions-ur-account.php:32
|
3090 |
msgid "The password you entered for username %1$1s is incorrect. %2$2s"
|
3091 |
msgstr ""
|
@@ -3119,12 +3132,12 @@ msgid "Placeholder"
|
|
3119 |
msgstr ""
|
3120 |
|
3121 |
#: includes/functions-ur-core.php:596 includes/functions-ur-core.php:607
|
3122 |
-
#: includes/functions-ur-core.php:
|
3123 |
msgid "No"
|
3124 |
msgstr ""
|
3125 |
|
3126 |
#: includes/functions-ur-core.php:597 includes/functions-ur-core.php:608
|
3127 |
-
#: includes/functions-ur-core.php:
|
3128 |
msgid "Yes"
|
3129 |
msgstr ""
|
3130 |
|
@@ -3132,45 +3145,49 @@ msgstr ""
|
|
3132 |
msgid "Hide Label"
|
3133 |
msgstr ""
|
3134 |
|
3135 |
-
#: includes/functions-ur-core.php:
|
|
|
|
|
|
|
|
|
3136 |
msgid "Default User Role"
|
3137 |
msgstr ""
|
3138 |
|
3139 |
-
#: includes/functions-ur-core.php:
|
3140 |
msgid "Enable Strong Password"
|
3141 |
msgstr ""
|
3142 |
|
3143 |
-
#: includes/functions-ur-core.php:
|
3144 |
msgid "Minimum Password Strength"
|
3145 |
msgstr ""
|
3146 |
|
3147 |
-
#: includes/functions-ur-core.php:
|
3148 |
msgid "Form Submit Button Label"
|
3149 |
msgstr ""
|
3150 |
|
3151 |
-
#: includes/functions-ur-core.php:
|
3152 |
msgid "Enable %1$s %2$s reCaptcha %3$s Support"
|
3153 |
msgstr ""
|
3154 |
|
3155 |
-
#: includes/functions-ur-core.php:
|
3156 |
msgid "Custom CSS class"
|
3157 |
msgstr ""
|
3158 |
|
3159 |
-
#: includes/functions-ur-core.php:
|
3160 |
msgid "Auto login after registration"
|
3161 |
msgstr ""
|
3162 |
|
3163 |
-
#: includes/functions-ur-core.php:
|
3164 |
msgid ""
|
3165 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
3166 |
"filter must implement <code>UR_Logger_Interface</code>."
|
3167 |
msgstr ""
|
3168 |
|
3169 |
-
#: includes/functions-ur-core.php:
|
3170 |
msgid "Disable emails"
|
3171 |
msgstr ""
|
3172 |
|
3173 |
-
#: includes/functions-ur-core.php:
|
3174 |
msgid "Disable all emails sent after registration."
|
3175 |
msgstr ""
|
3176 |
|
@@ -3185,8 +3202,7 @@ msgstr ""
|
|
3185 |
msgid "required"
|
3186 |
msgstr ""
|
3187 |
|
3188 |
-
#: includes/functions-ur-template.php:
|
3189 |
-
#: includes/functions-ur-template.php:330
|
3190 |
msgid "Choose an option"
|
3191 |
msgstr ""
|
3192 |
|
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.5.7\n"
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
+
"POT-Creation-Date: 2019-02-05 07:13:12+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-i18n 1.0.3\n"
|
15 |
|
16 |
+
#: includes/abstracts/abstract-ur-form-field.php:375
|
17 |
#: includes/admin/functions-ur-admin.php:327
|
18 |
msgid "General Settings"
|
19 |
msgstr ""
|
20 |
|
21 |
+
#: includes/abstracts/abstract-ur-form-field.php:383
|
22 |
msgid "Advance Settings"
|
23 |
msgstr ""
|
24 |
|
184 |
msgid "User Extra Information %s"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: includes/admin/class-ur-admin-profile.php:133
|
188 |
+
#: includes/admin/class-ur-admin-profile.php:145
|
189 |
#: includes/form/class-ur-form-field-select.php:35
|
190 |
#: includes/form/class-ur-form-field-select.php:40
|
191 |
msgid "Select"
|
570 |
msgstr ""
|
571 |
|
572 |
#: includes/admin/settings/class-ur-settings-general.php:212
|
573 |
+
#: includes/functions-ur-core.php:880
|
574 |
msgid "Manual login after registration"
|
575 |
msgstr ""
|
576 |
|
586 |
msgstr ""
|
587 |
|
588 |
#: includes/admin/settings/class-ur-settings-general.php:222
|
589 |
+
#: includes/functions-ur-core.php:881
|
590 |
msgid "Email confirmation to login"
|
591 |
msgstr ""
|
592 |
|
604 |
msgstr ""
|
605 |
|
606 |
#: includes/admin/settings/class-ur-settings-general.php:232
|
607 |
+
#: includes/functions-ur-core.php:883
|
608 |
msgid "Admin approval after registration"
|
609 |
msgstr ""
|
610 |
|
697 |
msgstr ""
|
698 |
|
699 |
#: includes/admin/settings/class-ur-settings-general.php:310
|
700 |
+
#: includes/class-ur-ajax.php:88 includes/class-ur-form-handler.php:276
|
701 |
#: includes/class-ur-frontend-scripts.php:333
|
702 |
msgid "Captcha code error, please try again."
|
703 |
msgstr ""
|
704 |
|
705 |
#: includes/admin/settings/class-ur-settings-general.php:341
|
706 |
+
#: includes/functions-ur-core.php:835
|
707 |
msgid "Form Template"
|
708 |
msgstr ""
|
709 |
|
712 |
msgstr ""
|
713 |
|
714 |
#: includes/admin/settings/class-ur-settings-general.php:349
|
715 |
+
#: includes/functions-ur-core.php:842
|
716 |
msgid "Default"
|
717 |
msgstr ""
|
718 |
|
719 |
#: includes/admin/settings/class-ur-settings-general.php:350
|
720 |
+
#: includes/functions-ur-core.php:843
|
721 |
msgid "Bordered"
|
722 |
msgstr ""
|
723 |
|
724 |
#: includes/admin/settings/class-ur-settings-general.php:351
|
725 |
+
#: includes/functions-ur-core.php:844
|
726 |
msgid "Flat"
|
727 |
msgstr ""
|
728 |
|
729 |
#: includes/admin/settings/class-ur-settings-general.php:352
|
730 |
+
#: includes/functions-ur-core.php:845
|
731 |
msgid "Rounded"
|
732 |
msgstr ""
|
733 |
|
734 |
#: includes/admin/settings/class-ur-settings-general.php:353
|
735 |
+
#: includes/functions-ur-core.php:846
|
736 |
msgid "Rounded Edge"
|
737 |
msgstr ""
|
738 |
|
1198 |
msgid "Form Name"
|
1199 |
msgstr ""
|
1200 |
|
1201 |
+
#: includes/admin/views/html-admin-page-forms.php:28
|
1202 |
msgid "Copy Shortcode!"
|
1203 |
msgstr ""
|
1204 |
|
1205 |
+
#: includes/admin/views/html-admin-page-forms.php:28
|
1206 |
msgid "Copied!"
|
1207 |
msgstr ""
|
1208 |
|
1209 |
+
#: includes/admin/views/html-admin-page-forms.php:50
|
1210 |
msgid "Fields"
|
1211 |
msgstr ""
|
1212 |
|
1213 |
+
#: includes/admin/views/html-admin-page-forms.php:53
|
1214 |
msgid "Field Options"
|
1215 |
msgstr ""
|
1216 |
|
1217 |
+
#: includes/admin/views/html-admin-page-forms.php:56
|
1218 |
msgid "Form Setting"
|
1219 |
msgstr ""
|
1220 |
|
1221 |
+
#: includes/admin/views/html-admin-page-forms.php:62
|
1222 |
msgid "Default User Fields"
|
1223 |
msgstr ""
|
1224 |
|
1225 |
+
#: includes/admin/views/html-admin-page-forms.php:65
|
1226 |
msgid "Extra Fields"
|
1227 |
msgstr ""
|
1228 |
|
1335 |
msgid "Taking a while? Click here to run it now."
|
1336 |
msgstr ""
|
1337 |
|
1338 |
+
#: includes/class-ur-ajax.php:81 includes/class-ur-form-handler.php:273
|
1339 |
msgid "Error on google reCaptcha. Contact your site administrator."
|
1340 |
msgstr ""
|
1341 |
|
1364 |
msgid "post data not set"
|
1365 |
msgstr ""
|
1366 |
|
1367 |
+
#: includes/class-ur-ajax.php:216
|
1368 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
1369 |
msgstr ""
|
1370 |
|
1371 |
+
#: includes/class-ur-cache-helper.php:105
|
1372 |
+
msgid ""
|
1373 |
+
"In order for <strong>database caching</strong> to work with User "
|
1374 |
+
"Registration you must add %1$s to the \"Ignored Query Strings\" option in "
|
1375 |
+
"<a href=\"%2$s\">W3 Total Cache settings</a>."
|
1376 |
+
msgstr ""
|
1377 |
+
|
1378 |
#: includes/class-ur-email-confirmation.php:157
|
1379 |
msgid "Verified"
|
1380 |
msgstr ""
|
1400 |
msgstr ""
|
1401 |
|
1402 |
#: includes/class-ur-email-confirmation.php:351
|
1403 |
+
#: includes/class-ur-form-handler.php:273
|
1404 |
+
#: includes/class-ur-form-handler.php:276
|
1405 |
+
#: includes/class-ur-form-handler.php:281
|
1406 |
+
#: includes/class-ur-form-handler.php:285
|
1407 |
+
#: includes/class-ur-form-handler.php:294
|
1408 |
#: includes/class-ur-user-approval.php:183
|
1409 |
#: includes/class-ur-user-approval.php:188 includes/functions-ur-account.php:32
|
1410 |
#: includes/functions-ur-account.php:35
|
1447 |
msgid "Form"
|
1448 |
msgstr ""
|
1449 |
|
1450 |
+
#: includes/class-ur-form-handler.php:97
|
1451 |
msgid "%s is a required field."
|
1452 |
msgstr ""
|
1453 |
|
1454 |
+
#: includes/class-ur-form-handler.php:110
|
1455 |
msgid "%s is not a valid email address."
|
1456 |
msgstr ""
|
1457 |
|
1458 |
+
#: includes/class-ur-form-handler.php:153
|
1459 |
msgid "User profile updated successfully."
|
1460 |
msgstr ""
|
1461 |
|
1462 |
+
#: includes/class-ur-form-handler.php:199
|
1463 |
msgid "Please fill out all password fields."
|
1464 |
msgstr ""
|
1465 |
|
1466 |
+
#: includes/class-ur-form-handler.php:202
|
1467 |
msgid "Please enter your current password."
|
1468 |
msgstr ""
|
1469 |
|
1470 |
+
#: includes/class-ur-form-handler.php:205
|
1471 |
msgid "Please re-enter your password."
|
1472 |
msgstr ""
|
1473 |
|
1474 |
+
#: includes/class-ur-form-handler.php:208
|
1475 |
msgid "New passwords do not match."
|
1476 |
msgstr ""
|
1477 |
|
1478 |
+
#: includes/class-ur-form-handler.php:211
|
1479 |
msgid "Your current password is incorrect."
|
1480 |
msgstr ""
|
1481 |
|
1482 |
+
#: includes/class-ur-form-handler.php:232
|
1483 |
msgid "Password changed successfully."
|
1484 |
msgstr ""
|
1485 |
|
1486 |
+
#: includes/class-ur-form-handler.php:285
|
1487 |
msgid "Username is required."
|
1488 |
msgstr ""
|
1489 |
|
1490 |
+
#: includes/class-ur-form-handler.php:294
|
1491 |
msgid "A user could not be found with this email address."
|
1492 |
msgstr ""
|
1493 |
|
1494 |
+
#: includes/class-ur-form-handler.php:391
|
1495 |
msgid "Please enter your password."
|
1496 |
msgstr ""
|
1497 |
|
1498 |
+
#: includes/class-ur-form-handler.php:395
|
1499 |
msgid "Passwords do not match."
|
1500 |
msgstr ""
|
1501 |
|
1502 |
+
#: includes/class-ur-form-handler.php:430
|
1503 |
+
msgid "Invalid Key"
|
1504 |
+
msgstr ""
|
1505 |
+
|
1506 |
+
#: includes/class-ur-form-handler.php:445
|
1507 |
+
msgid "Thanks for confirming your export request."
|
1508 |
+
msgstr ""
|
1509 |
+
|
1510 |
+
#: includes/class-ur-form-handler.php:447
|
1511 |
+
msgid "Thanks for confirming your erasure request."
|
1512 |
+
msgstr ""
|
1513 |
+
|
1514 |
#: includes/class-ur-frontend-scripts.php:341
|
1515 |
msgid "Please enter a stronger password."
|
1516 |
msgstr ""
|
1517 |
|
1518 |
#: includes/class-ur-frontend-scripts.php:343
|
1519 |
+
#: includes/functions-ur-core.php:799
|
1520 |
msgid "Very Weak"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
#: includes/class-ur-frontend-scripts.php:344
|
1524 |
+
#: includes/functions-ur-core.php:800
|
1525 |
msgid "Weak"
|
1526 |
msgstr ""
|
1527 |
|
1528 |
#: includes/class-ur-frontend-scripts.php:345
|
1529 |
+
#: includes/functions-ur-core.php:801
|
1530 |
msgid "Medium"
|
1531 |
msgstr ""
|
1532 |
|
1533 |
#: includes/class-ur-frontend-scripts.php:346
|
1534 |
+
#: includes/functions-ur-core.php:802
|
1535 |
msgid "Strong"
|
1536 |
msgstr ""
|
1537 |
|
1906 |
msgid "Checkbox"
|
1907 |
msgstr ""
|
1908 |
|
1909 |
+
#: includes/form/class-ur-form-field-checkbox.php:43
|
1910 |
+
#: includes/form/class-ur-form-field-radio.php:46
|
1911 |
+
#: includes/form/class-ur-form-field-select.php:43
|
1912 |
+
#: includes/functions-ur-core.php:641
|
1913 |
+
msgid "First Choice"
|
1914 |
+
msgstr ""
|
1915 |
+
|
1916 |
+
#: includes/form/class-ur-form-field-checkbox.php:44
|
1917 |
+
#: includes/form/class-ur-form-field-radio.php:47
|
1918 |
+
#: includes/form/class-ur-form-field-select.php:44
|
1919 |
+
#: includes/functions-ur-core.php:642
|
1920 |
+
msgid "Second Choice"
|
1921 |
+
msgstr ""
|
1922 |
+
|
1923 |
+
#: includes/form/class-ur-form-field-checkbox.php:45
|
1924 |
+
#: includes/form/class-ur-form-field-radio.php:48
|
1925 |
+
#: includes/form/class-ur-form-field-select.php:45
|
1926 |
+
#: includes/functions-ur-core.php:643
|
1927 |
+
msgid "Third Choice"
|
1928 |
+
msgstr ""
|
1929 |
+
|
1930 |
#: includes/form/class-ur-form-field-country.php:35
|
1931 |
msgid "Afghanistan"
|
1932 |
msgstr ""
|
3039 |
msgid "Website"
|
3040 |
msgstr ""
|
3041 |
|
3042 |
+
#: includes/form/settings/class-ur-setting-checkbox.php:34
|
3043 |
+
#: includes/form/settings/class-ur-setting-checkbox.php:41
|
3044 |
#: includes/form/settings/class-ur-setting-country.php:34
|
3045 |
#: includes/form/settings/class-ur-setting-country.php:41
|
3046 |
#: includes/form/settings/class-ur-setting-email.php:31
|
3056 |
msgid "Custom Class"
|
3057 |
msgstr ""
|
3058 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3059 |
#: includes/form/settings/class-ur-setting-password.php:31
|
3060 |
#: includes/form/settings/class-ur-setting-password.php:38
|
3061 |
msgid "Password Size"
|
3062 |
msgstr ""
|
3063 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3064 |
#: includes/form/settings/class-ur-setting-text.php:31
|
3065 |
#: includes/form/settings/class-ur-setting-text.php:38
|
3066 |
msgid "Size"
|
3073 |
msgid "Default Value"
|
3074 |
msgstr ""
|
3075 |
|
3076 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:101
|
3077 |
msgid "Something went wrong! please try again"
|
3078 |
msgstr ""
|
3079 |
|
3080 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:165
|
3081 |
msgid "Duplicate field key in form, please contact site administrator."
|
3082 |
msgstr ""
|
3083 |
|
3084 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:171
|
3085 |
msgid "Required form field not found."
|
3086 |
msgstr ""
|
3087 |
|
3088 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:329
|
3089 |
msgid "Empty confirm password"
|
3090 |
msgstr ""
|
3091 |
|
3092 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:331
|
3093 |
msgid "Password and confirm password not matched"
|
3094 |
msgstr ""
|
3095 |
|
3096 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:362
|
3097 |
+
msgid ""
|
3098 |
+
"<label>Week Password!</label><br />Hint: To make password stronger, use "
|
3099 |
+
"upper and lower case letters, numbers, and symbols like ! \" ? $ % ^ & )."
|
3100 |
+
msgstr ""
|
3101 |
+
|
3102 |
#: includes/functions-ur-account.php:32
|
3103 |
msgid "The password you entered for username %1$1s is incorrect. %2$2s"
|
3104 |
msgstr ""
|
3132 |
msgstr ""
|
3133 |
|
3134 |
#: includes/functions-ur-core.php:596 includes/functions-ur-core.php:607
|
3135 |
+
#: includes/functions-ur-core.php:785 includes/functions-ur-core.php:828
|
3136 |
msgid "No"
|
3137 |
msgstr ""
|
3138 |
|
3139 |
#: includes/functions-ur-core.php:597 includes/functions-ur-core.php:608
|
3140 |
+
#: includes/functions-ur-core.php:784 includes/functions-ur-core.php:827
|
3141 |
msgid "Yes"
|
3142 |
msgstr ""
|
3143 |
|
3145 |
msgid "Hide Label"
|
3146 |
msgstr ""
|
3147 |
|
3148 |
+
#: includes/functions-ur-core.php:636
|
3149 |
+
msgid "Options"
|
3150 |
+
msgstr ""
|
3151 |
+
|
3152 |
+
#: includes/functions-ur-core.php:765
|
3153 |
msgid "Default User Role"
|
3154 |
msgstr ""
|
3155 |
|
3156 |
+
#: includes/functions-ur-core.php:777
|
3157 |
msgid "Enable Strong Password"
|
3158 |
msgstr ""
|
3159 |
|
3160 |
+
#: includes/functions-ur-core.php:792
|
3161 |
msgid "Minimum Password Strength"
|
3162 |
msgstr ""
|
3163 |
|
3164 |
+
#: includes/functions-ur-core.php:809
|
3165 |
msgid "Form Submit Button Label"
|
3166 |
msgstr ""
|
3167 |
|
3168 |
+
#: includes/functions-ur-core.php:820
|
3169 |
msgid "Enable %1$s %2$s reCaptcha %3$s Support"
|
3170 |
msgstr ""
|
3171 |
|
3172 |
+
#: includes/functions-ur-core.php:853
|
3173 |
msgid "Custom CSS class"
|
3174 |
msgstr ""
|
3175 |
|
3176 |
+
#: includes/functions-ur-core.php:882
|
3177 |
msgid "Auto login after registration"
|
3178 |
msgstr ""
|
3179 |
|
3180 |
+
#: includes/functions-ur-core.php:1064
|
3181 |
msgid ""
|
3182 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
3183 |
"filter must implement <code>UR_Logger_Interface</code>."
|
3184 |
msgstr ""
|
3185 |
|
3186 |
+
#: includes/functions-ur-core.php:1165
|
3187 |
msgid "Disable emails"
|
3188 |
msgstr ""
|
3189 |
|
3190 |
+
#: includes/functions-ur-core.php:1166
|
3191 |
msgid "Disable all emails sent after registration."
|
3192 |
msgstr ""
|
3193 |
|
3202 |
msgid "required"
|
3203 |
msgstr ""
|
3204 |
|
3205 |
+
#: includes/functions-ur-template.php:337
|
|
|
3206 |
msgid "Choose an option"
|
3207 |
msgstr ""
|
3208 |
|
package-lock.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "user-registration",
|
3 |
-
"version": "1.5.
|
4 |
"lockfileVersion": 1,
|
5 |
"requires": true,
|
6 |
"dependencies": {
|
1 |
{
|
2 |
"name": "user-registration",
|
3 |
+
"version": "1.5.7",
|
4 |
"lockfileVersion": 1,
|
5 |
"requires": true,
|
6 |
"dependencies": {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: user registration, registration, user profile, registration form, login fo
|
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 5.0
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -111,6 +111,15 @@ Yes, the plugin is designed to work with any themes that have been coded followi
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
= 1.5.6 - 11/01/2018 =
|
115 |
* Fix - Authenticated XSS. Thanks wpvulndb.com for nofifying.
|
116 |
* Fix - Smart tag bug on resend confirmation email
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 1.5.7
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= 1.5.7 - 02/05/2018 =
|
115 |
+
* Refactor - Options for select, checkbox and radio field.
|
116 |
+
* Add - Placeholder for select and country field.
|
117 |
+
* Fix - Confirmaction of export/erase personal data from custom login form.
|
118 |
+
* Fix - Privacy policy made required by default.
|
119 |
+
* Fix - Formatting of form title display.
|
120 |
+
* Fix - Validate for same email as password.
|
121 |
+
* Dev - Action hook for enqueuing scripts.
|
122 |
+
|
123 |
= 1.5.6 - 11/01/2018 =
|
124 |
* Fix - Authenticated XSS. Thanks wpvulndb.com for nofifying.
|
125 |
* Fix - Smart tag bug on resend confirmation email
|
user-registration.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration and login form builder.
|
6 |
-
* Version: 1.5.
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
@@ -31,7 +31,7 @@ if ( ! class_exists( 'UserRegistration' ) ) :
|
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
-
public $version = '1.5.
|
35 |
|
36 |
/**
|
37 |
* Session instance.
|
@@ -191,6 +191,7 @@ if ( ! class_exists( 'UserRegistration' ) ) :
|
|
191 |
include_once UR_ABSPATH . 'includes/class-ur-email-confirmation.php';
|
192 |
include_once UR_ABSPATH . 'includes/class-ur-privacy.php';
|
193 |
include_once UR_ABSPATH . 'includes/class-ur-form-block.php';
|
|
|
194 |
|
195 |
/**
|
196 |
* 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.5.7
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
+
public $version = '1.5.7';
|
35 |
|
36 |
/**
|
37 |
* Session instance.
|
191 |
include_once UR_ABSPATH . 'includes/class-ur-email-confirmation.php';
|
192 |
include_once UR_ABSPATH . 'includes/class-ur-privacy.php';
|
193 |
include_once UR_ABSPATH . 'includes/class-ur-form-block.php';
|
194 |
+
include_once UR_ABSPATH . 'includes/class-ur-cache-helper.php';
|
195 |
|
196 |
/**
|
197 |
* Config classes.
|