Version Description
- 31/08/2017 =
- Admin approval after registration feature
- Added new filter and action hooks for addon
- Fixed frontpage registration form issue
- Anyone can register issue fixed
Download this release
Release Info
Developer | wpeverest |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- assets/css/admin-rtl.css +1 -1
- assets/css/admin.css +1 -1
- assets/css/user-registration-rtl.css +1 -1
- assets/css/user-registration-smallscreen-rtl.css +1 -1
- assets/css/user-registration-smallscreen.css +1 -1
- assets/css/user-registration.css +1 -1
- assets/js/admin/admin.min.js +1 -1
- assets/js/frontend/user-registration.js +14 -1
- assets/js/frontend/user-registration.min.js +1 -1
- includes/abstracts/abstract-ur-form-field.php +3 -1
- includes/admin/class-ur-admin-menus.php +18 -0
- includes/admin/class-ur-admin-profile.php +30 -9
- includes/admin/class-ur-admin-settings.php +5 -2
- includes/admin/class-ur-admin-user-list-manager.php +433 -0
- includes/admin/class-ur-admin-user-manager.php +330 -0
- includes/admin/class-ur-admin.php +14 -8
- includes/admin/views/html-admin-settings.php +1 -1
- includes/class-ur-ajax.php +34 -0
- includes/class-ur-emailer.php +115 -9
- includes/class-ur-install.php +19 -1
- includes/class-ur-shortcodes.php +31 -0
- includes/class-ur-user-approval.php +311 -0
- includes/frontend/class-ur-frontend.php +8 -15
- includes/functions-ur-core.php +35 -3
- includes/functions-ur-template.php +2 -0
- languages/user-registration.pot +167 -65
- readme.txt +8 -1
- templates/form-registration.php +1 -2
- 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]{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]{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]{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]{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)}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:right;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:left}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:right;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;right:50%;top:50%;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;left:0;text-align:center;border:0;border-right:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;right:0;left:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:left;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 5px 0 0;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-left:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-left:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 0 0 -24px;float:left}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 5px 0 0}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-right:20px;border:1px solid #ddd;border-left:0}.user-registration table.form-table .colorpick{border-right:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-right:10px}@media only screen and (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:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-left:0 none;border-right:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;padding:10px 45px 10px 15px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;right:0;line-height:2.9;font-size:16px;height:auto;margin-left:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:left}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-right:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-left:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:left;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:right;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-right:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;right:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-left:2px dotted #217dbb;border-right:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=email],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_arrow{right:50%;margin-right:-6px}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em -1em 0 1px;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;position:absolute;top:-3px;right:50%;margin:-1em -3px 0 0}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-left:24px}.select2-container .select2-selection--single .select2-selection__arrow{left:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
1 |
.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]{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]{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]{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]{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)}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:right;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:left}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:right;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;right:50%;top:50%;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;left:0;text-align:center;border:0;border-right:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;right:0;left:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:left;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 5px 0 0;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-left:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-left:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 0 0 -24px;float:left}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 5px 0 0}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-right:20px;border:1px solid #ddd;border-left:0}.user-registration table.form-table .colorpick{border-right:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-right:10px}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-left:0 none;border-right:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;padding:10px 45px 10px 15px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;right:0;line-height:2.9;font-size:16px;height:auto;margin-left:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:left}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-right:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-left:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:left;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:right;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-right:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;right:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-left:2px dotted #217dbb;border-right:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=email],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_arrow{right:50%;margin-right:-6px}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em -1em 0 1px;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;position:absolute;top:-3px;right:50%;margin:-1em -3px 0 0}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-left:24px}.select2-container .select2-selection--single .select2-selection__arrow{left:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
assets/css/admin.css
CHANGED
@@ -1,2 +1,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]{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]{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]{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]{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)}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:left;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:right}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:left;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:right;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-right:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-right:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-left:20px;border:1px solid #ddd;border-right:0}.user-registration table.form-table .colorpick{border-left:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-left:10px}@media only screen and (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:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-right:0 none;border-left:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;padding:10px 15px 10px 45px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;left:0;line-height:2.9;font-size:16px;height:auto;margin-right:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:right}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-left:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-right:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:right;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:left;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-left:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;left:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-right:2px dotted #217dbb;border-left:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=email],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em 1px 0 -1em;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-right:24px}.select2-container .select2-selection--single .select2-selection__arrow{right:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
1 |
.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]{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]{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]{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]{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)}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:left;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:right}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:left;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:right;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-right:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-right:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-left:20px;border:1px solid #ddd;border-right:0}.user-registration table.form-table .colorpick{border-left:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-left:10px}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-right:0 none;border-left:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;padding:10px 15px 10px 45px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;left:0;line-height:2.9;font-size:16px;height:auto;margin-right:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:right}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-left:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-right:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:right;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:left;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-left:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;left:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-right:2px dotted #217dbb;border-left:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=email],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em 1px 0 -1em;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-right:24px}.select2-container .select2-selection--single .select2-selection__arrow{right:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
assets/css/user-registration-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.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}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{padding:1.5em 3.5em 1.5em 2em;margin:0 0 2em;position:relative;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;right:.9em;font-size:18px;line-height:1.5}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:left}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-right:0!important;margin-right:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:0;box-shadow:none;background:0 0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-
|
1 |
+
.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}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{padding:1.5em 3.5em 1.5em 2em;margin:0 0 2em;position:relative;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;right:.9em;font-size:18px;line-height:1.5}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:left}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-right:0!important;margin-right:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:0;box-shadow:none;background:0 0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-right:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;vertical-align:top}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:left;padding:10px 20px;line-height:1em;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form form button[type=submit]:hover,.ur-frontend-form form input[type=submit]:hover{background:#3498db}.ur-frontend-form form .ur-submit-button{margin-left:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0!important}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration .user-registration-MyAccount-navigation{overflow:visible}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;border-right:1px solid #fff;border-top:1px solid #fff;border-left:1px solid #fff;position:relative}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;font-family:sans-serif;text-decoration:none}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{background-color:#fcfcfc;border-right:1px solid #ddd;border-top:1px solid #ddd;border-left:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{color:#3498db}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;right:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-right:-40px;float:right}
|
assets/css/user-registration-smallscreen-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@media screen and (max-width:768px){.ur-frontend-form form .ur-form-row{display:-webkit-
|
1 |
+
@media screen and (max-width:768px){.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-frontend-form form .ur-form-row .ur-form-grid{width:100%!important;margin-bottom:20px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-right:1px solid #ddd}.ur-frontend-form form .ur-form-row .ur-form-grid:last-child{margin-bottom:0}}@media screen and (max-width:600px){#user-registration .user-registration-MyAccount-navigation ul{display:block}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{display:block}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{border-top:1px solid #fcfcfc;border-right:1px solid #fcfcfc;border-left:1px solid #fcfcfc}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{display:none}}
|
assets/css/user-registration-smallscreen.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@media screen and (max-width:768px){.ur-frontend-form form .ur-form-row{display:-webkit-
|
1 |
+
@media screen and (max-width:768px){.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-frontend-form form .ur-form-row .ur-form-grid{width:100%!important;margin-bottom:20px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:1px solid #ddd}.ur-frontend-form form .ur-form-row .ur-form-grid:last-child{margin-bottom:0}}@media screen and (max-width:600px){#user-registration .user-registration-MyAccount-navigation ul{display:block}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{display:block}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{border-top:1px solid #fcfcfc;border-left:1px solid #fcfcfc;border-right:1px solid #fcfcfc}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{display:none}}
|
assets/css/user-registration.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.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}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{padding:1.5em 2em 1.5em 3.5em;margin:0 0 2em;position:relative;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;left:.9em;font-size:18px;line-height:1.5}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:right}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:0;box-shadow:none;background:0 0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-
|
1 |
+
.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}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{padding:1.5em 2em 1.5em 3.5em;margin:0 0 2em;position:relative;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;left:.9em;font-size:18px;line-height:1.5}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:right}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:0;box-shadow:none;background:0 0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;vertical-align:top}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:right;padding:10px 20px;line-height:1em;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form form button[type=submit]:hover,.ur-frontend-form form input[type=submit]:hover{background:#3498db}.ur-frontend-form form .ur-submit-button{margin-right:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0!important}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration .user-registration-MyAccount-navigation{overflow:visible}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;border-left:1px solid #fff;border-top:1px solid #fff;border-right:1px solid #fff;position:relative}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;font-family:sans-serif;text-decoration:none}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{background-color:#fcfcfc;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{color:#3498db}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;left:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-left:-40px;float:left}
|
assets/js/admin/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(e){e(document.body).on("init_tooltips",function(){var i={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0};e(".tips, .help_tip, .user-registration-help-tip").tipTip(i),e(".parent-tips").each(function(){e(this).closest("a, th").attr("data-tip",e(this).data("tip")).tipTip(i).css("cursor","help")})}).trigger("init_tooltips"),e("body").on("keypress","#ur-form-name",function(i){13===i.which&&e("#save_form_footer").eq(0).trigger("click")})}),function(e,i){function t(i,t){var r;r="success"===t?'<div class="updated ur-notices" style="border-color: green;"><p><strong>'+y.i18n_success+"! </strong>"+i+"</p></div>":'<div class="updated ur-notices" style="border-color: red;"><p><strong>'+y.i18n_error+"!!! </strong>"+i+"</p></div>",e(".ur-form-subcontainer").find(".ur-notices").remove(),e(".ur-form-subcontainer").prepend(r),e("html, body").animate({scrollTop:e(".ur-notices").offset().top-50},600)}function r(){var t=e.makeArray(i.form_one_time_draggable_fields),r=e.makeArray(i.form_required_fields),a={validation_status:!0,message:""};if(0===e(".ur-selected-item").length)return a.validation_status=!1,a.message=y.i18n_at_least_one_field_need_to_select,a;if(""===e("#ur-form-name").val())return a.validation_status=!1,a.message=y.i18n_empty_form_name,a;if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").length>0)return a.validation_status=!1,a.message=y.i18n_previous_save_action_ongoing,a;e.each(e('.ur-selected-inputs .ur-general-setting-block input[data-field="field_name"]'),function(){var i,t=e(this),r=!1;try{var n=t.val();if(e(".ur-selected-inputs .ur-general-setting-block").find('input[data-field="field_name"][value="'+n+'"]').length>1)throw y.i18n_duplicate_field_name;if(""===t.closest(".ur-general-setting-block").find('input[data-field="label"]').val())throw t=t.closest(".ur-general-setting-block").find('input[data-field="label"]'),y.i18n_empty_field_label;var s=/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm,d=n.match(s);if(null===d||1!==d.length||d[0]!==n)throw y.i18n_invald_field_name}catch(l){a.validation_status=!1,a.message=l.message===undefined?l:l.message,t.closest(".ur-selected-item").trigger("click"),i=t.attr("data-field"),e("#ur-setting-form").find('input[data-field="'+i+'"]').css({border:"1px solid red"}),setTimeout(function(){e("#ur-setting-form").find('input[data-field="'+i+'"]').removeAttr("style")},2e3),r=!0}if(r)return!1});for(var n=0;n<t.length;n++)if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+t[n]+'"]').length>1){a.validation_status=!1,a.message=y.i18n_multiple_field_key+t[n];break}for(var s=0;s<r.length;s++)if(0===e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r[s]+'"]').length){a.validation_status=!1,a.message=y.i18n_at_least_one_field_is_required+r[s];break}return a}function a(){var i=[],t=e(".ur-selected-inputs .ur-single-row");return e.each(t,function(){var t=e(this).find(".ur-grid-list-item"),r=[];e.each(t,function(){var i=n(e(this));r.push(i)}),i.push(r)}),i}function n(i){var t=i.find(".ur-selected-item"),r=[];return e.each(t,function(){var i=e(this),t={field_key:i.find(".ur-field").attr("data-field-key"),general_setting:s(i),advance_setting:d(i)};r.push(t)}),r}function s(i){var t=i.find(".ur-general-setting-block").find(".ur-general-setting-field"),r={};return e.each(t,function(){r[e(this).attr("data-field")]=l(e(this))}),r}function d(i){var t=i.find(".ur-advance-setting-block").find(".ur_advance_setting"),r={};return e.each(t,function(){r[e(this).attr("data-advance-field")]=l(e(this))}),r}function l(e){var i="";switch(e.get(0).tagName.toLowerCase()){case"input":case"select":case"textarea":i=e.val()}return i}function o(){var i=e(".ur-general-setting-field");e.each(i,function(){var i=e(this);switch(i.attr("data-field")){case"label":i.on("keyup",function(){g(e(this))});break;case"field_name":i.on("change",function(){f(e(this))});break;case"placeholder":i.on("keyup",function(){_(e(this))});break;case"required":i.on("change",function(){v(e(this))})}});var t=e(".ur_advance_setting");e.each(t,function(){var i=e(this),t=i.get(0).tagName.toLowerCase(),r="change";switch(t){case"input":r="keyup";break;case"select":r="change";break;case"textarea":r="keyup";break;default:r="change"}e(this).on(r,function(){u(i,t)}),e(this).on("paste",function(){u(i,t)})})}function u(i,t){var r=e(".ur-selected-item.ur-item-active"),a=i.attr("id"),n=r.find(".ur-advance-setting-block").find("#"+a);switch(t){case"input":n.val(i.val());break;case"select":n.find('option[value="'+i.val()+'"]').attr("selected","selected");break;case"textarea":n.val(i.val()),c(i.val())}}function c(i){i=e.trim(i);var t=e(".ur-selected-item.ur-item-active").find(".ur-field").find("select");t.html("");for(var r=i.split(","),a=0;a<r.length;a++)""!==r[a]&&t.append("<option value='"+r[a]+"'>"+r[a]+"</option>")}function f(i){e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+i.attr("data-field")+'"]').attr("value",i.val())}function g(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-label").find("label").text(i.val());var r=i.attr("id");t.find(".ur-general-setting-block").find("#"+r).val(i.val())}function _(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-field").find("input").attr("placeholder",i.val()),t.find(".ur-general-setting-block").find('input[data-field="'+i.attr("data-field")+'"]').val(i.val())}function v(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-label").find("label").find("span").remove(),"yes"===i.val()&&t.find(".ur-label").find("label").append('<span style="color:red">*</span>'),t.find(".ur-general-setting-block").find('select[data-field="'+i.attr("data-field")+'"]').find('option[value="'+i.val()+'"]').attr("selected","selected")}function m(){var t=i.form_required_fields,r=e(".ur-selected-inputs");if(e.isArray(t))for(var a=0;a<t.length;a++){var n=r.find('.ur-field[data-field-key="'+t[a]+'"]');n.closest(".ur-selected-item").find('select[data-field="required"]').val("yes").trigger("change"),n.closest(".ur-selected-item").find('select[data-field="required"]').find('option[value="yes"]').attr("selected","selected"),n.closest(".ur-selected-item").find('select[data-field="required"]').attr("disabled","disabled")}var s=r.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest(".ur-selected-item").find(".ur-label").find("label");s.find("span").remove(),s.append('<span style="color:red">*</span>')}function p(){var t=i.form_one_time_draggable_fields,r=e("#ur-tab-registered-fields").find("ul.ur-registered-list");e.each(r.find("li"),function(){var i=e(this),r=e(this).attr("data-field-id").replace("user_registration_","");e.inArray(r,t)>=0&&(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0?i.draggable("disable"):i.draggable("enable"))})}function h(e){return Math.ceil(e,0)}function b(e){return parseInt(e,0)}var y=i.i18n_admin;e(function(){function n(i){var t=i.find(".ur-advance-setting-block").clone(),r=i.find(".ur-general-setting-block").clone(),a=e("<form id='ur-setting-form'/>");e("#ur-tab-field-options").html(""),a.append(r),a.append(t),e("#ur-tab-field-options").append(a),e("#ur-tab-field-options").find(".ur-advance-setting-block").show(),e("#ur-tab-field-options").find(".ur-general-setting-block").show(),1===e(".ur-item-active").length&&(e(".ur-tabs").tabs("enable",1),e(".ur-tabs").find("a").eq(1).trigger("click"))}({init:function(){e(document.body).on("click",".column-data_link a",this.add_item).on("ur_backbone_modal_loaded",this.backbone.init).on("ur_backbone_modal_response",this.backbone.response)},add_item:function(i){return i.preventDefault(),e(this).URBackboneModal({template:"test-demo"}),!1},backbone:{init:function(e,i){},response:function(e,i){}}}).init(),e.fn.ur_form_builder=function(){var r={active_grid:i.active_grid,number_of_grid_list:i.number_of_grid,min_grid_height:70};return this.each(function(){var a=e(this),n={init:function(){this.single_row(),m()},get_grid_button:function(){var i=e('<div class="ur-grid-containner"/>'),t=h(b(r.number_of_grid_list)/b(r.active_grid))+"/"+r.number_of_grid_list,a='<div class="ur-grid-navigation ur-nav-right dashicons dashicons-arrow-left-alt2"></div><div class="ur-grid-size" data-active-grid="'+r.active_grid+'">'+t+'</div><div class="ur-grid-navigation ur-nav-left dashicons dashicons-arrow-right-alt2"></div><button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>';return i.html(a),i.html()},single_row:function(){var t=e("<div class='ur-single-row'/>");t.append(e("<div class='ur-grids'/>"));var d=this.get_grid_button();t.find(".ur-grids").append(d),t.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var l=this.get_grid_lists(r.active_grid);t.append('<div style="clear:both"></div>'),t.append(l),t.append('<div style="clear:both"></div>'),a.append(t),a.find(".ur-add-new-row").remove(),a.append('<button type="button" class="dashicons dashicons-plus-alt ur-add-new-row ui-sortable-handle"></button>'),s.render_draggable_sortable(),n.manage_empty_grid(),"1"===i.is_edit_form&&e(".ur-single-row").eq(e(".ur-single-row").length-1).remove(),"1"!==i.is_edit_form&&(e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).find(".user-registration-dragged-me").remove(),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).append(i.required_form_html)),p()},get_grid_lists:function(i){for(var t=e('<div class="ur-grid-lists"/>'),a=0,n=1;n<=i;n++){var s=e("<div ur-grid-id='"+n+"' class='ur-grid-list-item'></div>"),d=Math.floor(100/i)-i;a+=d,s.css({width:d+"%","min-height":r.min_grid_height+"px"}),t.append(s)}return t.append('<div style="clear:both"></div>'),t.find(".ur-grid-list-item").eq("0").css({}),t},populate_dropped_node:function(t,r){var a={action:"user_registration_user_input_dropped",security:i.user_input_dropped,form_field_id:r},s='<div class="ur-selected-item ajax_added"><div class="ur-action-buttons"><span title="Clone" class="dashicons dashicons-admin-page ur-clone"></span><span title="Trash" class="dashicons dashicons-trash ur-trash"></span></div>(content)</div>';t.closest(".ur-single-row").find(".user-registration-dragged-me").fadeOut(),e.ajax({url:i.ajax_url,data:a,type:"POST",beforeSend:function(){t.removeAttr("class").removeAttr("id").removeAttr("data-field-id").addClass("ur-selected-item").css({width:"auto"}),t.html('<small class="spinner is-active"></small>'),t.addClass("ur-item-dragged")},complete:function(i){if(n.manage_empty_grid(),!0===i.responseJSON.success){var r=e(s.replace("(content)",i.responseJSON.data.template));r.removeClass("ajax_added"),r.removeClass("ur-item-dragged"),t.find(".ajax_added").find(".spinner").remove(),t.find(".ajax_added").remove(),e(r).insertBefore(t),t.remove()}p()}})},manage_empty_grid:function(){var i=e(".ur-selected-inputs"),t=e('<div class="user-registration-dragged-me"/>');t.html('<div class="user-registration-dragged-me-text"><p>'+y.i18n_drag_your_first_item_here+"</p></div>"),i.find(".user-registration-dragged-me").remove(),e.each(i.find(".ur-grid-list-item"),function(){var i=e(this);0===e(this).find(".ur-selected-item").length&&i.append(t.clone())})}},s={register:function(){this.register_add_new_row(),this.register_remove_row(),this.change_ur_grids(),this.remove_selected_item(),this.clone_selected_item()},register_add_new_row:function(){var i=this;e("body").on("click",".ur-add-new-row",function(){var t=e(this).closest(".ur-selected-inputs").find(".ur-single-row").eq(0).clone();t.find(".ur-grid-lists").html(""),t.find(".ur-grids").find("span").removeClass("ur-active-grid"),t.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var a=n.get_grid_lists(r.active_grid);t.find(".ur-grid-lists").append(a.html()),t.insertBefore(".ur-add-new-row"),i.render_draggable_sortable(),n.manage_empty_grid()})},register_remove_row:function(){var i=this;e("body").on("click",".ur-remove-row",function(){if(e(".ur-selected-inputs").find(".ur-single-row").length>1){if(window.confirm(y.i18n_are_you_sure_want_to_delete)){var t,r=e(this).prev();(t=r.hasClass("ur-add-new-row")?r.clone():e(this).clone().attr("class","dashicons-minus ur-remove-row")).hasClass("ur-add-new-row")&&e(this).closest(".ur-single-row").prev().find(".ur-remove-row").before(t),e(this).closest(".ur-single-row").remove(),i.check_grid()}}else window.alert(y.i18n_at_least_one_row_need_to_select)})},change_ur_grids:function(){var i=this;e("body").on("click",".ur-single-row .ur-nav-right",function(){var t=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a>=r.number_of_grid_list)){a=b(a)+1;var s=h(b(r.number_of_grid_list)/b(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var d=n.get_grid_lists(a);e.each(t.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){d.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),t.find(".ur-grid-lists").eq(0).hide(),d.clone().insertAfter(t.find(".ur-grid-lists")),t.find(".ur-grid-lists").eq(0).remove(),i.render_draggable_sortable(),n.manage_empty_grid()}}),e("body").on("click",".ur-single-row .ur-nav-left",function(){var t=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a<=1)){a=b(a)-1;var s=h(b(r.number_of_grid_list)/b(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var d=n.get_grid_lists(a);e.each(t.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){d.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),t.find(".ur-grid-lists").eq(0).hide(),d.clone().insertAfter(t.find(".ur-grid-lists")),t.find(".ur-grid-lists").eq(0).remove(),i.render_draggable_sortable(),n.manage_empty_grid()}})},render_draggable_sortable:function(){e(".ur-grid-list-item").sortable({containment:".ur-selected-inputs",over:function(){e(this).addClass("ur-sortable-active"),n.manage_empty_grid()},out:function(){e(this).removeClass("ur-sortable-active"),n.manage_empty_grid()},revert:!0,connectWith:".ur-grid-list-item"}).disableSelection(),e(".ur-selected-inputs").sortable({containment:".ur-selected-inputs",tolerance:"pointer",revert:"invalid",placeholder:"ur-single-row",forceHelperSize:!0,over:function(){e(this).addClass("ur-sortable-active")},out:function(){e(this).removeClass("ur-sortable-active")}}),e("#ur-draggabled li").draggable({connectToSortable:".ur-grid-list-item",containment:".ur-registered-from",helper:"clone",revert:"invalid",stop:function(r,a){if(0!==e(a.helper).closest(".ur-grid-list-item").length){var s=e.trim(e(a.helper).attr("data-field-id").replace("user_registration_","")),d=e(".ur-selected-inputs").find('.ur-field[data-field-key="'+s+'"]').length,l=e.makeArray(i.form_one_time_draggable_fields);if(d>0&&e.inArray(s,l)>=0)return t(y.i18n_user_required_field_already_there),void e(a.helper).remove();var o=e(a.helper),u=e(o).attr("data-field-id");if(void 0!==u){var c=e(a.helper).closest(".ur-grid-list-item").find('li[data-field-id="'+e(this).attr("data-field-id")+'"]');n.populate_dropped_node(c,u)}}}}).disableSelection()},remove_selected_item:function(){var i=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(){e(this).closest(".ur-selected-item ").remove(),i.check_grid(),n.manage_empty_grid(),p()})},clone_selected_item:function(){e("body").on("click",".ur-selected-item .ur-action-buttons .ur-clone",function(){var r=e(this).closest(".ur-selected-item ").find(".ur-field").attr("data-field-key");if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0&&e.inArray(r,i.form_one_time_draggable_fields)>-1)t(y.i18n_user_required_field_already_there_could_not_clone);else{var a=e(this).closest(".ur-selected-item ").clone(),n=a.find('input[data-field="field_name"]'),s=/\d+/g,d=n.val().match(s),l=d.length>0?d[d.length-1]:"",o=n.val().replace(l,"");a.find('input[data-field="field_name"]').attr("value",o+(new Date).getTime()),e(this).closest(".ur-grid-list-item").append(a)}})},check_grid:function(){e(".ur-tabs").tabs({disabled:[1]}),e(".ur-tabs").find("a").eq(0).trigger("click")}};n.init(),s.register()})},e(".ur-selected-inputs").ur_form_builder(),e(".ur-tabs").find("a").click(function(){e(".ur-tabs").find("a").removeClass("active"),e(this).addClass("active")}),e(".ur-tabs").tabs(),e(".ur-tabs").find("a").eq(0).trigger("click"),e(".ur-tabs").tabs({disabled:[1]}),e("body").on("click",".ur-selected-item",function(){e(".ur-registered-inputs").find("ul li.ur-no-pointer").removeClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active"),e(this).addClass("ur-item-active"),n(e(this)),o()}),e(".ur_save_form_action_button").on("click",function(){var n=r();if(!1!==n.validation_status){var s=a(),d=e("#ur_form_id").val();b(i.post_id)!==b(d)&&(d=0);var l=e("#ur-field-settings").serializeArray(),o={action:"user_registration_form_save_action",security:i.ur_form_save,data:{form_data:JSON.stringify(s),form_name:e("#ur-form-name").val(),form_id:d,form_setting_data:l}};e.ajax({url:i.ajax_url,data:o,type:"POST",beforeSend:function(){e(".ur_save_form_action_button").closest(".publishing-action").append('<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>'),e(".ur-notices").remove()},complete:function(r){if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").remove(),!0===r.responseJSON.success){t(y.i18n_form_successfully_saved,"success");var a=i.admin_url+r.responseJSON.data.post_id;window.location=a}else t(r.responseJSON.data.message)}})}else t(n.message)})})}(jQuery,window.user_registration_admin_data);
|
1 |
+
jQuery(function(e){e(document.body).on("init_tooltips",function(){var i={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0};e(".tips, .help_tip, .user-registration-help-tip").tipTip(i),e(".parent-tips").each(function(){e(this).closest("a, th").attr("data-tip",e(this).data("tip")).tipTip(i).css("cursor","help")})}).trigger("init_tooltips"),e("body").on("keypress","#ur-form-name",function(i){13===i.which&&e("#save_form_footer").eq(0).trigger("click")})}),function(e,i){function t(i,t){var r;r="success"===t?'<div class="updated ur-notices" style="border-color: green;"><p><strong>'+y.i18n_success+"! </strong>"+i+"</p></div>":'<div class="updated ur-notices" style="border-color: red;"><p><strong>'+y.i18n_error+"!!! </strong>"+i+"</p></div>",e(".ur-form-subcontainer").find(".ur-notices").remove(),e(".ur-form-subcontainer").prepend(r),e("html, body").animate({scrollTop:e(".ur-notices").offset().top-50},600)}function r(){var t=e.makeArray(i.form_one_time_draggable_fields),r=e.makeArray(i.form_required_fields),a={validation_status:!0,message:""};if(0===e(".ur-selected-item").length)return a.validation_status=!1,a.message=y.i18n_at_least_one_field_need_to_select,a;if(""===e("#ur-form-name").val())return a.validation_status=!1,a.message=y.i18n_empty_form_name,a;if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").length>0)return a.validation_status=!1,a.message=y.i18n_previous_save_action_ongoing,a;e.each(e('.ur-selected-inputs .ur-general-setting-block input[data-field="field_name"]'),function(){var i,t=e(this),r=!1;try{var n=t.val();if(e(".ur-selected-inputs .ur-general-setting-block").find('input[data-field="field_name"][value="'+n+'"]').length>1)throw y.i18n_duplicate_field_name;if(""===t.closest(".ur-general-setting-block").find('input[data-field="label"]').val())throw t=t.closest(".ur-general-setting-block").find('input[data-field="label"]'),y.i18n_empty_field_label;var s=/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm,d=n.match(s);if(null===d||1!==d.length||d[0]!==n)throw y.i18n_invald_field_name}catch(l){a.validation_status=!1,a.message=l.message===undefined?l:l.message,t.closest(".ur-selected-item").trigger("click"),i=t.attr("data-field"),e("#ur-setting-form").find('input[data-field="'+i+'"]').css({border:"1px solid red"}),setTimeout(function(){e("#ur-setting-form").find('input[data-field="'+i+'"]').removeAttr("style")},2e3),r=!0}if(r)return!1});for(var n=0;n<t.length;n++)if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+t[n]+'"]').length>1){a.validation_status=!1,a.message=y.i18n_multiple_field_key+t[n];break}for(var s=0;s<r.length;s++)if(0===e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r[s]+'"]').length){a.validation_status=!1,a.message=y.i18n_at_least_one_field_is_required+r[s];break}return a}function a(){var i=[],t=e(".ur-selected-inputs .ur-single-row");return e.each(t,function(){var t=e(this).find(".ur-grid-list-item"),r=[];e.each(t,function(){var i=n(e(this));r.push(i)}),i.push(r)}),i}function n(i){var t=i.find(".ur-selected-item"),r=[];return e.each(t,function(){var i=e(this),t={field_key:i.find(".ur-field").attr("data-field-key"),general_setting:s(i),advance_setting:d(i)};r.push(t)}),r}function s(i){var t=i.find(".ur-general-setting-block").find(".ur-general-setting-field"),r={};return e.each(t,function(){r[e(this).attr("data-field")]=l(e(this))}),r}function d(i){var t=i.find(".ur-advance-setting-block").find(".ur_advance_setting"),r={};return e.each(t,function(){r[e(this).attr("data-advance-field")]=l(e(this))}),r}function l(e){var i="";switch(e.get(0).tagName.toLowerCase()){case"input":case"select":case"textarea":i=e.val()}return i}function o(){var i=e(".ur-general-setting-field");e.each(i,function(){var i=e(this);switch(i.attr("data-field")){case"label":i.on("keyup",function(){g(e(this))});break;case"field_name":i.on("change",function(){f(e(this))});break;case"placeholder":i.on("keyup",function(){_(e(this))});break;case"required":i.on("change",function(){v(e(this))})}});var t=e(".ur_advance_setting");e.each(t,function(){var i=e(this),t=i.get(0).tagName.toLowerCase(),r="change";switch(t){case"input":r="keyup";break;case"select":r="change";break;case"textarea":r="keyup";break;default:r="change"}e(this).on(r,function(){u(i,t)}),e(this).on("paste",function(){u(i,t)})})}function u(i,t){var r=e(".ur-selected-item.ur-item-active"),a=i.attr("id"),n=r.find(".ur-advance-setting-block").find("#"+a);switch(t){case"input":n.val(i.val());break;case"select":n.find('option[value="'+i.val()+'"]').attr("selected","selected");break;case"textarea":n.val(i.val()),c(i.val())}}function c(i){i=e.trim(i);var t=e(".ur-selected-item.ur-item-active").find(".ur-field").find("select");t.html("");for(var r=i.split(","),a=0;a<r.length;a++)""!==r[a]&&t.append("<option value='"+r[a]+"'>"+r[a]+"</option>")}function f(i){e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+i.attr("data-field")+'"]').attr("value",i.val())}function g(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-label").find("label").text(i.val());var r=i.attr("id");t.find(".ur-general-setting-block").find("#"+r).val(i.val())}function _(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-field").find("input").attr("placeholder",i.val()),t.find(".ur-general-setting-block").find('input[data-field="'+i.attr("data-field")+'"]').val(i.val())}function v(i){var t=e(".ur-selected-item.ur-item-active");t.find(".ur-label").find("label").find("span").remove(),"yes"===i.val()&&t.find(".ur-label").find("label").append('<span style="color:red">*</span>'),t.find(".ur-general-setting-block").find('select[data-field="'+i.attr("data-field")+'"]').find('option[value="'+i.val()+'"]').attr("selected","selected")}function m(){var t=i.form_required_fields,r=e(".ur-selected-inputs");if(e.isArray(t))for(var a=0;a<t.length;a++){var n=r.find('.ur-field[data-field-key="'+t[a]+'"]');n.closest(".ur-selected-item").find('select[data-field="required"]').val("yes").trigger("change"),n.closest(".ur-selected-item").find('select[data-field="required"]').find('option[value="yes"]').attr("selected","selected"),n.closest(".ur-selected-item").find('select[data-field="required"]').attr("disabled","disabled")}var s=r.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest(".ur-selected-item").find(".ur-label").find("label");s.find("span").remove(),s.append('<span style="color:red">*</span>')}function p(){var t=i.form_one_time_draggable_fields,r=e("#ur-tab-registered-fields").find("ul.ur-registered-list");e.each(r.find("li"),function(){var i=e(this),r=e(this).attr("data-field-id").replace("user_registration_","");e.inArray(r,t)>=0&&(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0?i.draggable("disable"):i.draggable("enable"))})}function h(e){return Math.ceil(e,0)}function b(e){return parseInt(e,0)}var y=i.i18n_admin;e(function(){function n(i){var t=i.find(".ur-advance-setting-block").clone(),r=i.find(".ur-general-setting-block").clone(),a=e("<form id='ur-setting-form'/>");e("#ur-tab-field-options").html(""),a.append(r),a.append(t),e("#ur-tab-field-options").append(a),e("#ur-tab-field-options").find(".ur-advance-setting-block").show(),e("#ur-tab-field-options").find(".ur-general-setting-block").show(),1===e(".ur-item-active").length&&(e(".ur-tabs").tabs("enable",1),e(".ur-tabs").find("a").eq(1).trigger("click"))}({init:function(){e(document.body).on("click",".column-data_link a",this.add_item).on("ur_backbone_modal_loaded",this.backbone.init).on("ur_backbone_modal_response",this.backbone.response)},add_item:function(i){return i.preventDefault(),e(this).URBackboneModal({template:"test-demo"}),!1},backbone:{init:function(e,i){},response:function(e,i){}}}).init(),e.fn.ur_form_builder=function(){var r={active_grid:i.active_grid,number_of_grid_list:i.number_of_grid,min_grid_height:70};return this.each(function(){var a=e(this),n={init:function(){this.single_row(),m()},get_grid_button:function(){var i=e('<div class="ur-grid-containner"/>'),t=h(b(r.number_of_grid_list)/b(r.active_grid))+"/"+r.number_of_grid_list,a='<div class="ur-grid-navigation ur-nav-right dashicons dashicons-arrow-left-alt2"></div><div class="ur-grid-size" data-active-grid="'+r.active_grid+'">'+t+'</div><div class="ur-grid-navigation ur-nav-left dashicons dashicons-arrow-right-alt2"></div><button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>';return i.html(a),i.html()},single_row:function(){var t=e("<div class='ur-single-row'/>");t.append(e("<div class='ur-grids'/>"));var d=this.get_grid_button();t.find(".ur-grids").append(d),t.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var l=this.get_grid_lists(r.active_grid);t.append('<div style="clear:both"></div>'),t.append(l),t.append('<div style="clear:both"></div>'),a.append(t),a.find(".ur-add-new-row").remove(),a.append('<button type="button" class="dashicons dashicons-plus-alt ur-add-new-row ui-sortable-handle"></button>'),s.render_draggable_sortable(),n.manage_empty_grid(),"1"===i.is_edit_form&&e(".ur-single-row").eq(e(".ur-single-row").length-1).remove(),"1"!==i.is_edit_form&&(e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).find(".user-registration-dragged-me").remove(),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).append(i.required_form_html)),p()},get_grid_lists:function(i){for(var t=e('<div class="ur-grid-lists"/>'),a=1;a<=i;a++){var n=e("<div ur-grid-id='"+a+"' class='ur-grid-list-item'></div>"),s=Math.floor(100/i)-i;s,n.css({width:s+"%","min-height":r.min_grid_height+"px"}),t.append(n)}return t.append('<div style="clear:both"></div>'),t.find(".ur-grid-list-item").eq("0").css({}),t},populate_dropped_node:function(t,r){var a={action:"user_registration_user_input_dropped",security:i.user_input_dropped,form_field_id:r},s='<div class="ur-selected-item ajax_added"><div class="ur-action-buttons"><span title="Clone" class="dashicons dashicons-admin-page ur-clone"></span><span title="Trash" class="dashicons dashicons-trash ur-trash"></span></div>(content)</div>';t.closest(".ur-single-row").find(".user-registration-dragged-me").fadeOut(),e.ajax({url:i.ajax_url,data:a,type:"POST",beforeSend:function(){t.removeAttr("class").removeAttr("id").removeAttr("data-field-id").addClass("ur-selected-item").css({width:"auto"}),t.html('<small class="spinner is-active"></small>'),t.addClass("ur-item-dragged")},complete:function(i){if(n.manage_empty_grid(),!0===i.responseJSON.success){var r=e(s.replace("(content)",i.responseJSON.data.template));r.removeClass("ajax_added"),r.removeClass("ur-item-dragged"),t.find(".ajax_added").find(".spinner").remove(),t.find(".ajax_added").remove(),e(r).insertBefore(t),t.remove()}p()}})},manage_empty_grid:function(){var i=e(".ur-selected-inputs"),t=e('<div class="user-registration-dragged-me"/>');t.html('<div class="user-registration-dragged-me-text"><p>'+y.i18n_drag_your_first_item_here+"</p></div>"),i.find(".user-registration-dragged-me").remove(),e.each(i.find(".ur-grid-list-item"),function(){var i=e(this);0===e(this).find(".ur-selected-item").length&&i.append(t.clone())})}},s={register:function(){this.register_add_new_row(),this.register_remove_row(),this.change_ur_grids(),this.remove_selected_item(),this.clone_selected_item()},register_add_new_row:function(){var i=this;e("body").on("click",".ur-add-new-row",function(){var t=e(this).closest(".ur-selected-inputs").find(".ur-single-row").eq(0).clone();t.find(".ur-grid-lists").html(""),t.find(".ur-grids").find("span").removeClass("ur-active-grid"),t.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var a=n.get_grid_lists(r.active_grid);t.find(".ur-grid-lists").append(a.html()),t.insertBefore(".ur-add-new-row"),i.render_draggable_sortable(),n.manage_empty_grid()})},register_remove_row:function(){var i=this;e("body").on("click",".ur-remove-row",function(){if(e(".ur-selected-inputs").find(".ur-single-row").length>1){if(window.confirm(y.i18n_are_you_sure_want_to_delete)){var t,r=e(this).prev();(t=r.hasClass("ur-add-new-row")?r.clone():e(this).clone().attr("class","dashicons-minus ur-remove-row")).hasClass("ur-add-new-row")&&e(this).closest(".ur-single-row").prev().find(".ur-remove-row").before(t),e(this).closest(".ur-single-row").remove(),i.check_grid()}}else window.alert(y.i18n_at_least_one_row_need_to_select)})},change_ur_grids:function(){var i=this;e("body").on("click",".ur-single-row .ur-nav-right",function(){var t=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a>=r.number_of_grid_list)){a=b(a)+1;var s=h(b(r.number_of_grid_list)/b(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var d=n.get_grid_lists(a);e.each(t.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){d.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),t.find(".ur-grid-lists").eq(0).hide(),d.clone().insertAfter(t.find(".ur-grid-lists")),t.find(".ur-grid-lists").eq(0).remove(),i.render_draggable_sortable(),n.manage_empty_grid()}}),e("body").on("click",".ur-single-row .ur-nav-left",function(){var t=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a<=1)){a=b(a)-1;var s=h(b(r.number_of_grid_list)/b(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var d=n.get_grid_lists(a);e.each(t.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){d.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),t.find(".ur-grid-lists").eq(0).hide(),d.clone().insertAfter(t.find(".ur-grid-lists")),t.find(".ur-grid-lists").eq(0).remove(),i.render_draggable_sortable(),n.manage_empty_grid()}})},render_draggable_sortable:function(){e(".ur-grid-list-item").sortable({containment:".ur-selected-inputs",over:function(){e(this).addClass("ur-sortable-active"),n.manage_empty_grid()},out:function(){e(this).removeClass("ur-sortable-active"),n.manage_empty_grid()},revert:!0,connectWith:".ur-grid-list-item"}).disableSelection(),e(".ur-selected-inputs").sortable({containment:".ur-selected-inputs",tolerance:"pointer",revert:"invalid",placeholder:"ur-single-row",forceHelperSize:!0,over:function(){e(this).addClass("ur-sortable-active")},out:function(){e(this).removeClass("ur-sortable-active")}}),e("#ur-draggabled li").draggable({connectToSortable:".ur-grid-list-item",containment:".ur-registered-from",helper:"clone",revert:"invalid",stop:function(r,a){if(0!==e(a.helper).closest(".ur-grid-list-item").length){var s=e.trim(e(a.helper).attr("data-field-id").replace("user_registration_","")),d=e(".ur-selected-inputs").find('.ur-field[data-field-key="'+s+'"]').length,l=e.makeArray(i.form_one_time_draggable_fields);if(d>0&&e.inArray(s,l)>=0)return t(y.i18n_user_required_field_already_there),void e(a.helper).remove();var o=e(a.helper),u=e(o).attr("data-field-id");if(void 0!==u){var c=e(a.helper).closest(".ur-grid-list-item").find('li[data-field-id="'+e(this).attr("data-field-id")+'"]');n.populate_dropped_node(c,u)}}}}).disableSelection()},remove_selected_item:function(){var i=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(){e(this).closest(".ur-selected-item ").remove(),i.check_grid(),n.manage_empty_grid(),p()})},clone_selected_item:function(){e("body").on("click",".ur-selected-item .ur-action-buttons .ur-clone",function(){var r=e(this).closest(".ur-selected-item ").find(".ur-field").attr("data-field-key");if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0&&e.inArray(r,i.form_one_time_draggable_fields)>-1)t(y.i18n_user_required_field_already_there_could_not_clone);else{var a=e(this).closest(".ur-selected-item ").clone(),n=a.find('input[data-field="field_name"]'),s=/\d+/g,d=n.val().match(s),l=d.length>0?d[d.length-1]:"",o=n.val().replace(l,"");a.find('input[data-field="field_name"]').attr("value",o+(new Date).getTime()),e(this).closest(".ur-grid-list-item").append(a)}})},check_grid:function(){e(".ur-tabs").tabs({disabled:[1]}),e(".ur-tabs").find("a").eq(0).trigger("click")}};n.init(),s.register()})},e(".ur-selected-inputs").ur_form_builder(),e(".ur-tabs").find("a").click(function(){e(".ur-tabs").find("a").removeClass("active"),e(this).addClass("active")}),e(".ur-tabs").tabs(),e(".ur-tabs").find("a").eq(0).trigger("click"),e(".ur-tabs").tabs({disabled:[1]}),e("body").on("click",".ur-selected-item",function(){e(".ur-registered-inputs").find("ul li.ur-no-pointer").removeClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active"),e(this).addClass("ur-item-active"),n(e(this)),o()}),e(".ur_save_form_action_button").on("click",function(){var n=r();if(!1!==n.validation_status){var s=a(),d=e("#ur_form_id").val();b(i.post_id)!==b(d)&&(d=0);var l=e("#ur-field-settings").serializeArray(),o={action:"user_registration_form_save_action",security:i.ur_form_save,data:{form_data:JSON.stringify(s),form_name:e("#ur-form-name").val(),form_id:d,form_setting_data:l}};e.ajax({url:i.ajax_url,data:o,type:"POST",beforeSend:function(){e(".ur_save_form_action_button").closest(".publishing-action").append('<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>'),e(".ur-notices").remove()},complete:function(r){if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").remove(),!0===r.responseJSON.success){t(y.i18n_form_successfully_saved,"success");var a=i.admin_url+r.responseJSON.data.post_id;window.location=a}else t(r.responseJSON.data.message)}})}else t(n.message)})})}(jQuery,window.user_registration_admin_data);
|
assets/js/frontend/user-registration.js
CHANGED
@@ -22,6 +22,8 @@
|
|
22 |
var single_data = this_instance.get_fieldwise_data($(this));
|
23 |
form_data.push(single_data);
|
24 |
});
|
|
|
|
|
25 |
return form_data;
|
26 |
},
|
27 |
get_fieldwise_data: function ( field ) {
|
@@ -30,6 +32,7 @@
|
|
30 |
formwise_data.value = '';
|
31 |
switch ( node_type ) {
|
32 |
case 'input':
|
|
|
33 |
formwise_data.value = field.val();
|
34 |
break;
|
35 |
case 'select':
|
@@ -40,6 +43,8 @@
|
|
40 |
break;
|
41 |
default:
|
42 |
}
|
|
|
|
|
43 |
formwise_data.field_type = field.attr('id').replace('ur-input-type-', '');
|
44 |
if ( field.attr('data-label') !== undefined ) {
|
45 |
formwise_data.label = field.attr('data-label');
|
@@ -96,6 +101,8 @@
|
|
96 |
ur_frontend_form_nonce: form_nonce
|
97 |
};
|
98 |
|
|
|
|
|
99 |
if ( 'undefined' !== typeof (ur_google_recaptcha_code) ) {
|
100 |
|
101 |
if ( '1' === ur_google_recaptcha_code.is_captcha_enable ) {
|
@@ -112,10 +119,13 @@
|
|
112 |
}
|
113 |
|
114 |
$this.find('.ur-submit-button').find('span').addClass('ur-front-spinner');
|
|
|
115 |
$.ajax({
|
116 |
url: user_registration_params.ajax_url,
|
117 |
data: data,
|
118 |
type: 'POST',
|
|
|
|
|
119 |
beforeSend: function () {
|
120 |
},
|
121 |
complete: function ( ajax_response ) {
|
@@ -139,7 +149,7 @@
|
|
139 |
$this[ 0 ].reset();
|
140 |
$('.user-registration-password-hint').remove();
|
141 |
$('.user-registration-password-strength').remove();
|
142 |
-
if(typeof response.data.auto_login !== 'undefined' && response.data.auto_login) {
|
143 |
location.reload();
|
144 |
}
|
145 |
|
@@ -150,6 +160,9 @@
|
|
150 |
}
|
151 |
//message.addClass(type);
|
152 |
form.show_message(message, type, $this);
|
|
|
|
|
|
|
153 |
}
|
154 |
});
|
155 |
});
|
22 |
var single_data = this_instance.get_fieldwise_data($(this));
|
23 |
form_data.push(single_data);
|
24 |
});
|
25 |
+
$(document).trigger("user_registration_frontend_form_data_filter", [ form_data ]);
|
26 |
+
|
27 |
return form_data;
|
28 |
},
|
29 |
get_fieldwise_data: function ( field ) {
|
32 |
formwise_data.value = '';
|
33 |
switch ( node_type ) {
|
34 |
case 'input':
|
35 |
+
|
36 |
formwise_data.value = field.val();
|
37 |
break;
|
38 |
case 'select':
|
43 |
break;
|
44 |
default:
|
45 |
}
|
46 |
+
|
47 |
+
$(document).trigger("user_registration_frontend_form_data_render", [ field, formwise_data ]);
|
48 |
formwise_data.field_type = field.attr('id').replace('ur-input-type-', '');
|
49 |
if ( field.attr('data-label') !== undefined ) {
|
50 |
formwise_data.label = field.attr('data-label');
|
101 |
ur_frontend_form_nonce: form_nonce
|
102 |
};
|
103 |
|
104 |
+
$(document).trigger("user_registration_frontend_before_form_submit", [ data, $this ]);
|
105 |
+
|
106 |
if ( 'undefined' !== typeof (ur_google_recaptcha_code) ) {
|
107 |
|
108 |
if ( '1' === ur_google_recaptcha_code.is_captcha_enable ) {
|
119 |
}
|
120 |
|
121 |
$this.find('.ur-submit-button').find('span').addClass('ur-front-spinner');
|
122 |
+
|
123 |
$.ajax({
|
124 |
url: user_registration_params.ajax_url,
|
125 |
data: data,
|
126 |
type: 'POST',
|
127 |
+
async: true,
|
128 |
+
|
129 |
beforeSend: function () {
|
130 |
},
|
131 |
complete: function ( ajax_response ) {
|
149 |
$this[ 0 ].reset();
|
150 |
$('.user-registration-password-hint').remove();
|
151 |
$('.user-registration-password-strength').remove();
|
152 |
+
if ( typeof response.data.auto_login !== 'undefined' && response.data.auto_login ) {
|
153 |
location.reload();
|
154 |
}
|
155 |
|
160 |
}
|
161 |
//message.addClass(type);
|
162 |
form.show_message(message, type, $this);
|
163 |
+
|
164 |
+
$(document).trigger("user_registration_frontend_after_ajax_complete", [ ajax_response.responseText, type, $this ]);
|
165 |
+
|
166 |
}
|
167 |
});
|
168 |
});
|
assets/js/frontend/user-registration.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var t=e(this),a=[],n=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(){var r=this,a=[],n=t.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field");return e.each(n,function(){var t=r.get_fieldwise_data(e(this));a.push(t)}),a},get_fieldwise_data:function(r){var t={},s=r.get(0).tagName.toLowerCase();switch(t.value="",s){case"input":case"select":case"textarea":t.value=r.val()}return t.field_type=r.attr("id").replace("ur-input-type-",""),r.attr("data-label")!==undefined?t.label=r.attr("data-label"):"label"===r.prev().get(0).tagName.toLowerCase()?t.label=r.prev().text():t.label=t.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?t.field_name=r.attr("name"):t.field_name="",e.inArray(t.field_name,e.trim(n))>=0&&a.push(t.field_name),t},show_message:function(r,t,a){a.find(".ur-message").remove();var n=e('<div class="ur-message user-registration-'+t+'" id="ur-submit-message-node"/>');n.append(r),a.append(n)}},i={init:function(){this.form_submit_event()},form_submit_event:function(){t.on("submit",function(a){a.preventDefault();var n;try{n=JSON.stringify(s.get_form_data())}catch(f){n=""}var i=0;1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(i=e(this).closest("form").find('input[name="ur-user-form-id"]').val());var o="0";1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(o=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var u={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:n,form_id:i,ur_frontend_form_nonce:o};if("undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===t.find("#g-recaptcha-response").val().length)return void s.show_message("<p>"+r.captcha_error+"</p>","error",t);grecaptcha.reset()}t.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:u,type:"POST",beforeSend:function(){},complete:function(a){t.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var n=e('<ul class=""/>'),i="error";try{var o=e.parseJSON(a.responseText);"undefined"!=typeof o.success&&!0===o.success&&(i="message"),"object"==typeof o.data.message&&e.each(o.data.message,function(){e("<li/>").text(this).appendTo(n)}),"message"===i&&(n.append("<li>"+r.user_successfully_saved+"</li>"),t[0].reset(),e(".user-registration-password-hint").remove(),e(".user-registration-password-strength").remove(),"undefined"!=typeof o.data.auto_login&&o.data.auto_login&&location.reload())}catch(u){n.append("<li>"+u.message+"</li>")}s.show_message(n,i,t)}})})}};s.init(),i.init()})},e(function(){e(".ur-frontend-form form.register").ur_form_submission()})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){google_recaptcha_user_registration=grecaptcha.render("node_recaptcha",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"})};
|
1 |
+
!function(e){var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var t=e(this),a=[],n=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(){var r=this,a=[],n=t.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field");return e.each(n,function(){var t=r.get_fieldwise_data(e(this));a.push(t)}),e(document).trigger("user_registration_frontend_form_data_filter",[a]),a},get_fieldwise_data:function(r){var t={},s=r.get(0).tagName.toLowerCase();switch(t.value="",s){case"input":case"select":case"textarea":t.value=r.val()}return e(document).trigger("user_registration_frontend_form_data_render",[r,t]),t.field_type=r.attr("id").replace("ur-input-type-",""),r.attr("data-label")!==undefined?t.label=r.attr("data-label"):"label"===r.prev().get(0).tagName.toLowerCase()?t.label=r.prev().text():t.label=t.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?t.field_name=r.attr("name"):t.field_name="",e.inArray(t.field_name,e.trim(n))>=0&&a.push(t.field_name),t},show_message:function(r,t,a){a.find(".ur-message").remove();var n=e('<div class="ur-message user-registration-'+t+'" id="ur-submit-message-node"/>');n.append(r),a.append(n)}},i={init:function(){this.form_submit_event()},form_submit_event:function(){t.on("submit",function(a){a.preventDefault();var n;try{n=JSON.stringify(s.get_form_data())}catch(f){n=""}var i=0;1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(i=e(this).closest("form").find('input[name="ur-user-form-id"]').val());var o="0";1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(o=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var u={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:n,form_id:i,ur_frontend_form_nonce:o};if(e(document).trigger("user_registration_frontend_before_form_submit",[u,t]),"undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===t.find("#g-recaptcha-response").val().length)return void s.show_message("<p>"+r.captcha_error+"</p>","error",t);grecaptcha.reset()}t.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:u,type:"POST",async:!0,beforeSend:function(){},complete:function(a){t.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var n=e('<ul class=""/>'),i="error";try{var o=e.parseJSON(a.responseText);"undefined"!=typeof o.success&&!0===o.success&&(i="message"),"object"==typeof o.data.message&&e.each(o.data.message,function(){e("<li/>").text(this).appendTo(n)}),"message"===i&&(n.append("<li>"+r.user_successfully_saved+"</li>"),t[0].reset(),e(".user-registration-password-hint").remove(),e(".user-registration-password-strength").remove(),"undefined"!=typeof o.data.auto_login&&o.data.auto_login&&location.reload())}catch(u){n.append("<li>"+u.message+"</li>")}s.show_message(n,i,t),e(document).trigger("user_registration_frontend_after_ajax_complete",[a.responseText,i,t])}})})}};s.init(),i.init()})},e(function(){e(".ur-frontend-form form.register").ur_form_submission()})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){google_recaptcha_user_registration=grecaptcha.render("node_recaptcha",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"})};
|
includes/abstracts/abstract-ur-form-field.php
CHANGED
@@ -65,7 +65,9 @@ abstract class UR_Form_Field {
|
|
65 |
|
66 |
$template_path = str_replace( '_', '-', str_replace( 'user_registration_', 'admin-', $this->id ) );
|
67 |
|
68 |
-
|
|
|
|
|
69 |
|
70 |
$this->admin_data = array();
|
71 |
|
65 |
|
66 |
$template_path = str_replace( '_', '-', str_replace( 'user_registration_', 'admin-', $this->id ) );
|
67 |
|
68 |
+
$admin_template_path = apply_filters( $this->id . '_admin_template', UR_FORM_PATH . 'views' . UR_DS . 'admin' . UR_DS . $template_path . '.php' );
|
69 |
+
|
70 |
+
include( $admin_template_path );
|
71 |
|
72 |
$this->admin_data = array();
|
73 |
|
includes/admin/class-ur-admin-menus.php
CHANGED
@@ -178,6 +178,24 @@ if ( ! class_exists( 'UR_Admin_Menus', false ) ) :
|
|
178 |
$wpdb->query($sql_query);
|
179 |
}
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
/*
|
182 |
* finally, redirect to the edit post screen for the new draft
|
183 |
*/
|
178 |
$wpdb->query($sql_query);
|
179 |
}
|
180 |
|
181 |
+
/*
|
182 |
+
* duplicate all post meta just in two SQL queries
|
183 |
+
*/
|
184 |
+
global $wpdb;
|
185 |
+
$post_meta_infos = $wpdb->get_results($wpdb->prepare( "SELECT meta_key, meta_value FROM {$wpdb->postmeta} WHERE post_id = %d",$form_id));
|
186 |
+
|
187 |
+
if (count($post_meta_infos)!=0) {
|
188 |
+
$sql_query = "INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value) ";
|
189 |
+
foreach ($post_meta_infos as $meta_info) {
|
190 |
+
$meta_key = $meta_info->meta_key;
|
191 |
+
if( $meta_key == '_wp_old_slug' ) continue;
|
192 |
+
$meta_value = addslashes($meta_info->meta_value);
|
193 |
+
$sql_query_sel[]= "SELECT $new_post_id, '$meta_key', '$meta_value'";
|
194 |
+
}
|
195 |
+
$sql_query.= implode(" UNION ALL ", $sql_query_sel);
|
196 |
+
$wpdb->query($sql_query);
|
197 |
+
}
|
198 |
+
|
199 |
/*
|
200 |
* finally, redirect to the edit post screen for the new draft
|
201 |
*/
|
includes/admin/class-ur-admin-profile.php
CHANGED
@@ -132,14 +132,26 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
132 |
<?php echo esc_attr( $attribute_string ); ?>
|
133 |
rows="5"
|
134 |
cols="30"><?php echo esc_attr( $this->get_user_meta( $user->ID, $key ) ); ?></textarea>
|
135 |
-
<?php else
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
<br/>
|
144 |
<span class="description"><?php echo wp_kses_post( $field['description'] ); ?></span>
|
145 |
</td>
|
@@ -338,7 +350,16 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
338 |
|
339 |
break;
|
340 |
}
|
341 |
-
}// End
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
}// End foreach().
|
343 |
}// End foreach().
|
344 |
}// End foreach().
|
132 |
<?php echo esc_attr( $attribute_string ); ?>
|
133 |
rows="5"
|
134 |
cols="30"><?php echo esc_attr( $this->get_user_meta( $user->ID, $key ) ); ?></textarea>
|
135 |
+
<?php else :
|
136 |
+
if ( ! empty( $field['type'] ) ) {
|
137 |
+
$data = array(
|
138 |
+
'key' => $key,
|
139 |
+
'value' => $this->get_user_meta( $user->ID, $key ),
|
140 |
+
'attribute_string' => $attribute_string,
|
141 |
+
'field' => $field
|
142 |
+
|
143 |
+
);
|
144 |
+
do_action( 'user_registration_profile_field_'.$field['type'], $data );
|
145 |
+
} else {
|
146 |
+
?>
|
147 |
+
<input type="text" name="<?php echo esc_attr( $key ); ?>"
|
148 |
+
id="<?php echo esc_attr( $key ); ?>"
|
149 |
+
value="<?php echo esc_attr( $this->get_user_meta( $user->ID, $key ) ); ?>"
|
150 |
+
class="<?php echo( ! empty( $field['class'] ) ? esc_attr( $field['class'] ) : 'regular-text' ); ?>"
|
151 |
+
<?php echo esc_attr( $attribute_string ); ?>
|
152 |
+
/>
|
153 |
+
|
154 |
+
<?php } endif; ?>
|
155 |
<br/>
|
156 |
<span class="description"><?php echo wp_kses_post( $field['description'] ); ?></span>
|
157 |
</td>
|
350 |
|
351 |
break;
|
352 |
}
|
353 |
+
}// End switch().
|
354 |
+
$filter_data = array(
|
355 |
+
'fields' => $fields,
|
356 |
+
'field' => $field,
|
357 |
+
'field_name' => $field_name
|
358 |
+
);
|
359 |
+
$filtered_data_array = apply_filters( 'user_registration_profile_field_filter_' . $field_key, $filter_data );
|
360 |
+
if ( isset( $filtered_data_array['fields'] ) ) {
|
361 |
+
$fields = $filtered_data_array['fields'];
|
362 |
+
}
|
363 |
}// End foreach().
|
364 |
}// End foreach().
|
365 |
}// End foreach().
|
includes/admin/class-ur-admin-settings.php
CHANGED
@@ -73,12 +73,15 @@ class UR_Admin_Settings {
|
|
73 |
do_action( 'user_registration_update_options_' . $current_tab );
|
74 |
do_action( 'user_registration_update_options' );
|
75 |
|
76 |
-
|
77 |
-
|
|
|
|
|
78 |
// Flush rules
|
79 |
wp_schedule_single_event( time(), 'user_registration_flush_rewrite_rules' );
|
80 |
|
81 |
do_action( 'user_registration_settings_saved' );
|
|
|
82 |
}
|
83 |
|
84 |
/**
|
73 |
do_action( 'user_registration_update_options_' . $current_tab );
|
74 |
do_action( 'user_registration_update_options' );
|
75 |
|
76 |
+
$flag = apply_filters( 'show_user_registration_setting_message', true );
|
77 |
+
if($flag){
|
78 |
+
self::add_message( __( 'Your settings have been saved.', 'user-registration' ) );
|
79 |
+
}
|
80 |
// Flush rules
|
81 |
wp_schedule_single_event( time(), 'user_registration_flush_rewrite_rules' );
|
82 |
|
83 |
do_action( 'user_registration_settings_saved' );
|
84 |
+
|
85 |
}
|
86 |
|
87 |
/**
|
includes/admin/class-ur-admin-user-list-manager.php
ADDED
@@ -0,0 +1,433 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UserRegistration Admin Settings Class
|
4 |
+
*
|
5 |
+
* @class UR_Admin_User_List_Manager
|
6 |
+
* @version 1.0.0
|
7 |
+
* @package UserRegistration/Admin
|
8 |
+
* @category Admin
|
9 |
+
* @author WPEverest
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
exit;
|
14 |
+
}
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Manager of the users list in the backend
|
18 |
+
*
|
19 |
+
* Class UR_Admin_User_List_Manager
|
20 |
+
*
|
21 |
+
* @package ComponentManualUserApprove
|
22 |
+
*/
|
23 |
+
class UR_Admin_User_List_Manager {
|
24 |
+
|
25 |
+
/**
|
26 |
+
* UR_Admin_User_List_Manager constructor.
|
27 |
+
*/public function __construct() {
|
28 |
+
|
29 |
+
// -------------------- ACTIONS & FILTERS --------------------
|
30 |
+
add_action( 'load-users.php', array( $this, 'trigger_query_actions' ) );
|
31 |
+
add_action( 'admin_notices', array( $this, 'display_admin_notices' ), 99 );
|
32 |
+
|
33 |
+
//Functions about users listing
|
34 |
+
add_action( 'restrict_manage_users', array($this, 'add_status_filter') );
|
35 |
+
add_action( 'admin_footer-users.php', array( $this, 'add_bulk_actions' ) );
|
36 |
+
add_action( 'load-users.php', array( $this, 'trigger_bulk_action' ) );
|
37 |
+
|
38 |
+
//Handle the status field in the profile page of users in backend
|
39 |
+
add_action( 'show_user_profile', array( $this, 'render_profile_field' ) );
|
40 |
+
add_action( 'edit_user_profile', array( $this, 'render_profile_field' ) );
|
41 |
+
add_action( 'edit_user_profile_update', array( $this, 'save_profile_field' ) );
|
42 |
+
add_filter( 'user_row_actions', array( $this, 'ceate_quick_links' ), 10, 2 );
|
43 |
+
add_filter( 'manage_users_columns', array( $this, 'add_column_head' ) );
|
44 |
+
add_filter( 'manage_users_custom_column', array( $this, 'add_column_cell' ), 10, 3 );
|
45 |
+
add_filter( 'pre_get_users', array($this, 'filter_users_by_approval_status') );
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Create two quick links Approve and Deny for each user in the users list
|
51 |
+
*
|
52 |
+
* @param $actions
|
53 |
+
* @param $user
|
54 |
+
*
|
55 |
+
* @return array
|
56 |
+
*/
|
57 |
+
public function ceate_quick_links( $actions, $user ) {
|
58 |
+
|
59 |
+
$user_manager = new UR_Admin_User_Manager($user);
|
60 |
+
|
61 |
+
if ( ! $user_manager->can_status_be_changed_by(get_current_user_id())){
|
62 |
+
|
63 |
+
return $actions;
|
64 |
+
}
|
65 |
+
|
66 |
+
|
67 |
+
$approve_link = add_query_arg( array( 'action' => 'approve', 'user' => $user->ID ) );
|
68 |
+
$approve_link = remove_query_arg( array( 'new_role' ), $approve_link );
|
69 |
+
$approve_link = wp_nonce_url( $approve_link, 'ur_user_change_status' );
|
70 |
+
|
71 |
+
$deny_link = add_query_arg( array( 'action' => 'deny', 'user' => $user->ID ) );
|
72 |
+
$deny_link = remove_query_arg( array( 'new_role' ), $deny_link );
|
73 |
+
$deny_link = wp_nonce_url( $deny_link, 'ur_user_change_status' );
|
74 |
+
|
75 |
+
$approve_action = '<a style="color:#086512" href="' . esc_url( $approve_link ) . '">' . _x( 'Approve', 'The action on users list page', 'user-registration' ) . '</a>';
|
76 |
+
$deny_action = '<a style="color:#e20707" href="' . esc_url( $deny_link ) . '">' . _x( 'Deny', 'The action on users list page', 'user-registration' ) . '</a>';
|
77 |
+
|
78 |
+
|
79 |
+
if($user_manager->is_pending() || $user_manager->is_denied()){
|
80 |
+
$actions['ur_user_approve_action'] = $approve_action;
|
81 |
+
}
|
82 |
+
|
83 |
+
if($user_manager->is_pending() || $user_manager->is_approved()) {
|
84 |
+
$actions['ur_user_deny_action'] = $deny_action;
|
85 |
+
}
|
86 |
+
|
87 |
+
return $actions;
|
88 |
+
}
|
89 |
+
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Trigger the action query and check if some users have been approved or denied
|
93 |
+
*/
|
94 |
+
public function trigger_query_actions() {
|
95 |
+
|
96 |
+
$action = isset( $_REQUEST['action'] ) ? sanitize_key($_REQUEST['action']) : false;
|
97 |
+
$mode = isset( $_POST['mode'] ) ? $_POST['mode'] : false;
|
98 |
+
|
99 |
+
// If this is a multisite, bulk request, stop now!
|
100 |
+
if ( 'list' == $mode ) {
|
101 |
+
return;
|
102 |
+
}
|
103 |
+
|
104 |
+
if ( ! empty( $action ) && in_array( $action, array( 'approve', 'deny' ) ) && !isset( $_GET['new_role'] ) ) {
|
105 |
+
|
106 |
+
check_admin_referer( 'ur_user_change_status' );
|
107 |
+
|
108 |
+
|
109 |
+
//$redirect = wp_get_referer();
|
110 |
+
$redirect = admin_url( 'users.php' );
|
111 |
+
|
112 |
+
$status = $action;
|
113 |
+
$user = absint( $_GET['user'] );
|
114 |
+
|
115 |
+
$user_manager = new UR_Admin_User_Manager($user);
|
116 |
+
|
117 |
+
if ( $status == 'approve' ) {
|
118 |
+
$user_manager->approve();
|
119 |
+
$redirect = add_query_arg( array( 'approved' => 1 ), $redirect );
|
120 |
+
} else {
|
121 |
+
$user_manager->deny();
|
122 |
+
$redirect = add_query_arg( array( 'denied' => 1 ), $redirect );
|
123 |
+
}
|
124 |
+
|
125 |
+
wp_redirect( $redirect );
|
126 |
+
exit;
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
/**
|
131 |
+
* Display a notice to admin if some users have been approved or denied
|
132 |
+
*/
|
133 |
+
public function display_admin_notices() {
|
134 |
+
$screen = get_current_screen();
|
135 |
+
|
136 |
+
if ( $screen->id != 'users' ) {
|
137 |
+
return;
|
138 |
+
}
|
139 |
+
|
140 |
+
$message = null;
|
141 |
+
|
142 |
+
$users_denied = (isset( $_GET['denied'] ) && is_numeric($_GET['denied'])) ? absint($_GET['denied']) : null;
|
143 |
+
$users_approved = (isset( $_GET['approved'] ) && is_numeric($_GET['approved'])) ? absint($_GET['approved']) : null;
|
144 |
+
|
145 |
+
if ( $users_approved ) {
|
146 |
+
$message = sprintf( _n( 'User approved.', '%s users approved.', $users_approved, 'user-registration' ), $users_approved );
|
147 |
+
} else if( $users_denied ){
|
148 |
+
$message = sprintf( _n( 'User denied.', '%s users denied.', $users_denied, 'user-registration' ), $users_denied );
|
149 |
+
}
|
150 |
+
|
151 |
+
if ( !empty( $message ) ) {
|
152 |
+
echo '<div id="user-approvation-result" class="notice notice-success is-dismissible"><p><strong>' . $message . '</strong></p></div>';
|
153 |
+
}
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Add the column header for the status column
|
158 |
+
*
|
159 |
+
* @param array $columns
|
160 |
+
*
|
161 |
+
* @return array
|
162 |
+
*/
|
163 |
+
public function add_column_head( $columns ) {
|
164 |
+
$the_columns['ur_user_user_status'] = __( 'Status', 'user-registration' );
|
165 |
+
|
166 |
+
$newcol = array_slice( $columns, 0, -1 );
|
167 |
+
$newcol = array_merge( $newcol, $the_columns );
|
168 |
+
$columns = array_merge( $newcol, array_slice( $columns, 1 ) );
|
169 |
+
|
170 |
+
return $columns;
|
171 |
+
}
|
172 |
+
|
173 |
+
/**
|
174 |
+
* Set the status value for each user in the users list
|
175 |
+
*
|
176 |
+
* @param string $val
|
177 |
+
* @param string $column_name
|
178 |
+
* @param int $user_id
|
179 |
+
*
|
180 |
+
* @return string
|
181 |
+
*/
|
182 |
+
public function add_column_cell( $val, $column_name, $user_id ) {
|
183 |
+
if ( $column_name == 'ur_user_user_status') {
|
184 |
+
|
185 |
+
$user_manager = new UR_Admin_User_Manager($user_id);
|
186 |
+
|
187 |
+
$status = $user_manager->get_user_status();
|
188 |
+
|
189 |
+
return UR_Admin_User_Manager::get_status_label($status);
|
190 |
+
|
191 |
+
}
|
192 |
+
|
193 |
+
return $val;
|
194 |
+
}
|
195 |
+
|
196 |
+
public function add_status_filter($which) {
|
197 |
+
|
198 |
+
$id = 'bottom' === $which ? 'ur_user_approval_status2' : 'ur_user_approval_status';
|
199 |
+
$filter_value = (isset($_GET[$id]) && !empty($_GET[$id])) ? $_GET[$id] : false;
|
200 |
+
|
201 |
+
$approved_label = UR_Admin_User_Manager::get_status_label(UR_Admin_User_Manager::APPROVED);
|
202 |
+
$pending_label = UR_Admin_User_Manager::get_status_label(UR_Admin_User_Manager::PENDING);
|
203 |
+
$denied_label = UR_Admin_User_Manager::get_status_label(UR_Admin_User_Manager::DENIED);
|
204 |
+
|
205 |
+
?>
|
206 |
+
</div><!-- .alignleft.actions opened in extra_tablenav() - class-wp-users-list-table.php:259 -->
|
207 |
+
<div class="alignleft actions">
|
208 |
+
|
209 |
+
<label class="screen-reader-text" for="<?php echo $id ?>"><?php _e( 'All statuses', 'user-registration' ) ?></label>
|
210 |
+
<select name="<?php echo $id ?>" id="<?php echo $id ?>">
|
211 |
+
<option value=""><?php _e( 'All approval statuses', 'user-registration' ) ?></option>
|
212 |
+
|
213 |
+
<?php
|
214 |
+
echo '<option value="approved" '.selected( 'approved', $filter_value ).'>'.$approved_label.'</option>';
|
215 |
+
echo '<option value="pending" '.selected( 'pending', $filter_value ).'>'.$pending_label.'</option>';
|
216 |
+
echo '<option value="denied" '.selected( 'denied', $filter_value ).'>'.$denied_label.'</option>';
|
217 |
+
?>
|
218 |
+
</select>
|
219 |
+
<?php
|
220 |
+
submit_button( __( 'Filter', 'user-registration' ), 'button', 'ur_user_filter_action', false );
|
221 |
+
|
222 |
+
}
|
223 |
+
|
224 |
+
/**
|
225 |
+
* Fire the filter selction and show only the users with specified approval status
|
226 |
+
*
|
227 |
+
* @param $query
|
228 |
+
*/
|
229 |
+
public function filter_users_by_approval_status( $query ) {
|
230 |
+
|
231 |
+
$ur_user_filter_action = (isset($_REQUEST['ur_user_filter_action']) && !empty($_REQUEST['ur_user_filter_action'])) ? $_REQUEST['ur_user_filter_action'] : false;
|
232 |
+
$ur_user_approval_status = (isset($_REQUEST['ur_user_approval_status']) && !empty($_REQUEST['ur_user_approval_status'])) ? $_REQUEST['ur_user_approval_status'] : false;
|
233 |
+
$ur_user_approval_status2 = (isset($_REQUEST['ur_user_approval_status2']) && !empty($_REQUEST['ur_user_approval_status2'])) ? $_REQUEST['ur_user_approval_status2'] : false;
|
234 |
+
|
235 |
+
if( !$ur_user_filter_action || (!$ur_user_approval_status && !$ur_user_approval_status2))
|
236 |
+
{return;}
|
237 |
+
|
238 |
+
$status = null;
|
239 |
+
if ( $ur_user_approval_status2 ) {
|
240 |
+
$status = sanitize_text_field($ur_user_approval_status2);
|
241 |
+
} elseif ( $ur_user_approval_status ) {
|
242 |
+
$status = sanitize_text_field($ur_user_approval_status);
|
243 |
+
}
|
244 |
+
|
245 |
+
switch($status) {
|
246 |
+
case 'approved':
|
247 |
+
$status = UR_Admin_User_Manager::APPROVED;
|
248 |
+
break;
|
249 |
+
case 'pending':
|
250 |
+
$status = UR_Admin_User_Manager::PENDING;
|
251 |
+
break;
|
252 |
+
case 'denied':
|
253 |
+
$status = UR_Admin_User_Manager::DENIED;
|
254 |
+
break;
|
255 |
+
default:
|
256 |
+
return;
|
257 |
+
}
|
258 |
+
|
259 |
+
|
260 |
+
$meta_query = array(
|
261 |
+
array(
|
262 |
+
'key' => 'ur_user_status',
|
263 |
+
'value' => $status,
|
264 |
+
'compare' => '='
|
265 |
+
)
|
266 |
+
|
267 |
+
);
|
268 |
+
|
269 |
+
if($status == UR_Admin_User_Manager::APPROVED) {
|
270 |
+
$meta_query = array(
|
271 |
+
'relation' => 'OR',
|
272 |
+
array(
|
273 |
+
'key' => 'ur_user_status',
|
274 |
+
'compare' => 'NOT EXISTS', // works!
|
275 |
+
'value' => '' // This is ignored, but is necessary...
|
276 |
+
),
|
277 |
+
array(
|
278 |
+
'key' => 'ur_user_status',
|
279 |
+
'value' => UR_Admin_User_Manager::APPROVED
|
280 |
+
)
|
281 |
+
);
|
282 |
+
}
|
283 |
+
|
284 |
+
$query->set( 'meta_query', $meta_query );
|
285 |
+
|
286 |
+
|
287 |
+
}
|
288 |
+
|
289 |
+
|
290 |
+
/**
|
291 |
+
* Seems that doesn't exists a properaction or filter that allow to add custom bulk actions, so this function add them
|
292 |
+
* in the select form at runtime, using javascript
|
293 |
+
*
|
294 |
+
*/
|
295 |
+
public function add_bulk_actions() {
|
296 |
+
|
297 |
+
if( !UR_Admin_User_Manager::is_user_allowed_to_change_status())
|
298 |
+
{return;}
|
299 |
+
|
300 |
+
?>
|
301 |
+
|
302 |
+
<script type="text/javascript">
|
303 |
+
jQuery(document).ready(function() {
|
304 |
+
jQuery('<option>').val('approve').text('<?php _e('Approve', 'user-registration'); ?>').appendTo("select[name='action']");
|
305 |
+
jQuery('<option>').val('approve').text('<?php _e('Approve', 'user-registration'); ?>').appendTo("select[name='action2']");
|
306 |
+
|
307 |
+
jQuery('<option>').val('deny').text('<?php _e('Deny', 'user-registration'); ?>').appendTo("select[name='action']");
|
308 |
+
jQuery('<option>').val('deny').text('<?php _e('Deny', 'user-registration'); ?>').appendTo("select[name='action2']");
|
309 |
+
});
|
310 |
+
</script>
|
311 |
+
<?php
|
312 |
+
}
|
313 |
+
|
314 |
+
|
315 |
+
/**
|
316 |
+
* Trigger the bulk action approvation
|
317 |
+
*/
|
318 |
+
public function trigger_bulk_action() {
|
319 |
+
|
320 |
+
$wp_list_table = _get_list_table('WP_Users_List_Table');
|
321 |
+
$action = $wp_list_table->current_action();
|
322 |
+
|
323 |
+
$redirect = 'users.php';
|
324 |
+
|
325 |
+
//Check if the action is under the scope of this unction
|
326 |
+
if ( $action != 'approve' && $action != 'deny' )
|
327 |
+
{return;}
|
328 |
+
|
329 |
+
//Check if the current user has permissions to change approvation statuses
|
330 |
+
if( !UR_Admin_User_Manager::is_user_allowed_to_change_status())
|
331 |
+
{throw new Exception('You have not enough permissions to perform a bulk action on users approval status');}
|
332 |
+
|
333 |
+
|
334 |
+
if ( empty($_REQUEST['users']) ) {
|
335 |
+
wp_redirect($redirect);
|
336 |
+
exit();
|
337 |
+
}
|
338 |
+
|
339 |
+
if($action == 'approve') {
|
340 |
+
$status = UR_Admin_User_Manager::APPROVED;
|
341 |
+
$query_arg = 'approved';
|
342 |
+
} else {
|
343 |
+
$status = UR_Admin_User_Manager::DENIED;
|
344 |
+
$query_arg = 'denied';
|
345 |
+
}
|
346 |
+
|
347 |
+
|
348 |
+
$userids = $_REQUEST['users'];
|
349 |
+
|
350 |
+
$c = 0;
|
351 |
+
foreach ( $userids as $id ) {
|
352 |
+
$id = (int) $id;
|
353 |
+
|
354 |
+
$user_manager = new UR_Admin_User_Manager($id);
|
355 |
+
|
356 |
+
//For each user, check if the current user can change him status
|
357 |
+
if(! $user_manager->can_status_be_changed_by(get_current_user_id()))
|
358 |
+
{continue;}
|
359 |
+
|
360 |
+
$user_manager->save_status($status);
|
361 |
+
|
362 |
+
$c++;
|
363 |
+
}
|
364 |
+
|
365 |
+
wp_redirect(add_query_arg($query_arg, $c, $redirect));
|
366 |
+
exit();
|
367 |
+
|
368 |
+
}
|
369 |
+
|
370 |
+
/**
|
371 |
+
* Render the field Status in the user profile, in backend
|
372 |
+
*
|
373 |
+
* @param $user
|
374 |
+
*/
|
375 |
+
public function render_profile_field( $user ) {
|
376 |
+
|
377 |
+
$user_manager = new UR_Admin_User_Manager($user);
|
378 |
+
|
379 |
+
//If the current user can't change status of the user displayed, then return
|
380 |
+
if ( !$user_manager->can_status_be_changed_by(get_current_user_id()) )
|
381 |
+
{return;}
|
382 |
+
|
383 |
+
$user_status = $user_manager->get_user_status();
|
384 |
+
?>
|
385 |
+
<table class="form-table">
|
386 |
+
<tr>
|
387 |
+
<th><label for="ur_user_user_status"><?php _e( 'Approval Status', 'user-registration' ); ?></label>
|
388 |
+
</th>
|
389 |
+
<td>
|
390 |
+
<select id="ur_user_user_status" name="ur_user_user_status">
|
391 |
+
<?php
|
392 |
+
$available_statuses = array( UR_Admin_User_Manager::APPROVED, UR_Admin_User_Manager::PENDING, UR_Admin_User_Manager::DENIED );
|
393 |
+
foreach ( $available_statuses as $status ) : ?>
|
394 |
+
<option
|
395 |
+
value="<?php echo esc_attr( $status ); ?>"<?php selected( $status, $user_status ); ?>><?php echo esc_html( UR_Admin_User_Manager::get_status_label($status) ); ?></option>
|
396 |
+
<?php endforeach; ?>
|
397 |
+
</select>
|
398 |
+
|
399 |
+
<span class="description"><?php _e( 'If user has access to sign in or not.', 'user-registration' ); ?></span>
|
400 |
+
</td>
|
401 |
+
</tr>
|
402 |
+
</table>
|
403 |
+
<?php
|
404 |
+
}
|
405 |
+
|
406 |
+
|
407 |
+
/**
|
408 |
+
* Update the profile field Status in the user profile, in backend
|
409 |
+
*
|
410 |
+
* @param $user_id
|
411 |
+
*
|
412 |
+
* @return bool
|
413 |
+
*/
|
414 |
+
public function save_profile_field( $user_id ) {
|
415 |
+
|
416 |
+
$user_manager = new UR_Admin_User_Manager($user_id);
|
417 |
+
|
418 |
+
if ( !current_user_can( 'edit_users', $user_id ) || !$user_manager->can_status_be_changed_by(get_current_user_id())) {
|
419 |
+
return false;
|
420 |
+
}
|
421 |
+
|
422 |
+
if ( empty( $_POST['ur_user_user_status'] ) && !UR_Admin_User_Manager::validate_status($_POST['ur_user_user_status']) ) {
|
423 |
+
return false;
|
424 |
+
}
|
425 |
+
|
426 |
+
$new_status = $_POST['ur_user_user_status'];
|
427 |
+
|
428 |
+
$user_manager->save_status($new_status);
|
429 |
+
|
430 |
+
}
|
431 |
+
|
432 |
+
|
433 |
+
}
|
includes/admin/class-ur-admin-user-manager.php
ADDED
@@ -0,0 +1,330 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UserRegistration Admin Settings Class
|
4 |
+
*
|
5 |
+
* @class UR_Admin_User_Manager
|
6 |
+
* @version 1.0.0
|
7 |
+
* @package UserRegistration/Admin
|
8 |
+
* @category Admin
|
9 |
+
* @author WPEverest
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
exit;
|
14 |
+
}
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class UR_Admin_User_Manager
|
18 |
+
*/
|
19 |
+
class UR_Admin_User_Manager {
|
20 |
+
/**
|
21 |
+
* The approved value in the db
|
22 |
+
*/
|
23 |
+
const APPROVED = 1;
|
24 |
+
|
25 |
+
/**
|
26 |
+
* The pending value in the db
|
27 |
+
*/
|
28 |
+
const PENDING = 0;
|
29 |
+
|
30 |
+
/**
|
31 |
+
* The deny value in the db
|
32 |
+
*/
|
33 |
+
const DENIED = - 1;
|
34 |
+
|
35 |
+
/**
|
36 |
+
* @var \WP_User
|
37 |
+
*/
|
38 |
+
private $user;
|
39 |
+
|
40 |
+
/**
|
41 |
+
* The status of the user
|
42 |
+
*
|
43 |
+
* @var int
|
44 |
+
*/
|
45 |
+
private $user_status = null;
|
46 |
+
|
47 |
+
/**
|
48 |
+
* UR_Admin_User_Manager constructor.
|
49 |
+
*
|
50 |
+
* @param null $user
|
51 |
+
*
|
52 |
+
* @throws Exception
|
53 |
+
*/
|
54 |
+
public function __construct( $user = null ) {
|
55 |
+
if ( is_null( $user ) ) {
|
56 |
+
$user = get_userdata( get_current_user_id() );
|
57 |
+
} elseif ( is_numeric( $user ) ) {
|
58 |
+
$user = get_userdata( $user );
|
59 |
+
}
|
60 |
+
|
61 |
+
if ( ! ( $user instanceof WP_User ) ) {
|
62 |
+
throw new Exception( __( 'Impossible to create an UR_Admin_User_Manager object. Unkwon data type.', 'user-registration' ) );
|
63 |
+
}
|
64 |
+
|
65 |
+
$this->user = $user;
|
66 |
+
}
|
67 |
+
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Save a new status for the user
|
71 |
+
*
|
72 |
+
* @param $status
|
73 |
+
*
|
74 |
+
* @return bool|int
|
75 |
+
*/
|
76 |
+
public function save_status( $status, $alert_user = true ) {
|
77 |
+
|
78 |
+
do_action( 'ur_user_status_updated', $status, $this->user->ID, $alert_user );
|
79 |
+
|
80 |
+
$action_label = '';
|
81 |
+
$action_label = ( $status == UR_Admin_User_Manager::APPROVED ) ? 'approved' : '';
|
82 |
+
$action_label = ( $status == UR_Admin_User_Manager::DENIED ) ? 'denied' : '';
|
83 |
+
|
84 |
+
if ( ! empty( $action_label ) ) {
|
85 |
+
do_action( 'ur_user_' . $action_label, $this->user->ID );
|
86 |
+
}
|
87 |
+
|
88 |
+
$this->user_status = $status;
|
89 |
+
|
90 |
+
return update_user_meta( $this->user->ID, 'ur_user_status', $status );
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* Approve the user
|
95 |
+
*
|
96 |
+
* @return bool|int
|
97 |
+
*/
|
98 |
+
public function approve() {
|
99 |
+
return $this->save_status( self::APPROVED );
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Deny the user
|
104 |
+
*
|
105 |
+
* @return bool|int
|
106 |
+
*/
|
107 |
+
public function deny() {
|
108 |
+
return $this->save_status( self::DENIED );
|
109 |
+
}
|
110 |
+
|
111 |
+
/**
|
112 |
+
* Get the status of the user.
|
113 |
+
* If the status is not present (user registered when plugin was not active)
|
114 |
+
* then it return an empty string if $exact_value == true, otherwise it return approved flag
|
115 |
+
*
|
116 |
+
* @param bool $exact_value
|
117 |
+
*
|
118 |
+
* @return int|mixed
|
119 |
+
*/
|
120 |
+
public function get_user_status( $exact_value = false ) {
|
121 |
+
|
122 |
+
|
123 |
+
|
124 |
+
//If the status is already get from the db and the requested status is not the exact value then provide the old one
|
125 |
+
if ( ! is_null( $this->user_status ) && ! $exact_value ) {
|
126 |
+
return $this->user_status;
|
127 |
+
}
|
128 |
+
|
129 |
+
$user_status = get_user_meta( $this->user->ID, 'ur_user_status', true );
|
130 |
+
|
131 |
+
//If the exact_value is true, allow to understand if an user has status "approved" or has registered when the plugin wash not active
|
132 |
+
if ( $exact_value ) {
|
133 |
+
return $user_status;
|
134 |
+
}
|
135 |
+
|
136 |
+
|
137 |
+
//If the status is empty it's assume that user registered when the plugin was not active, then it is allowed
|
138 |
+
$user_status = ( $user_status == '' || $user_status == array() ) ? self::APPROVED : $user_status;
|
139 |
+
|
140 |
+
//If the value requested is not the exact value, than store it in the object
|
141 |
+
$this->user_status = $user_status;
|
142 |
+
|
143 |
+
|
144 |
+
return $user_status;
|
145 |
+
}
|
146 |
+
|
147 |
+
/**
|
148 |
+
* Check if the user is approved
|
149 |
+
*
|
150 |
+
* @return bool
|
151 |
+
*/
|
152 |
+
public function is_approved() {
|
153 |
+
$status = $this->get_user_status();
|
154 |
+
|
155 |
+
return ( $status == self::APPROVED );
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Check if the user is pending
|
160 |
+
*
|
161 |
+
* @return bool
|
162 |
+
*/
|
163 |
+
public function is_pending() {
|
164 |
+
$status = $this->get_user_status();
|
165 |
+
|
166 |
+
return ( $status == self::PENDING );
|
167 |
+
}
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Check if the user is denied
|
171 |
+
*
|
172 |
+
* @return bool
|
173 |
+
*/
|
174 |
+
public function is_denied() {
|
175 |
+
$status = $this->get_user_status();
|
176 |
+
|
177 |
+
return ( $status == self::DENIED );
|
178 |
+
}
|
179 |
+
|
180 |
+
|
181 |
+
/**
|
182 |
+
* Create a new password if it have to be sent to the user and return it.
|
183 |
+
* If the password have not to be sent, it return an empty string.
|
184 |
+
*
|
185 |
+
* @return string
|
186 |
+
*/
|
187 |
+
public function reset_password() {
|
188 |
+
$password = '';
|
189 |
+
|
190 |
+
//If the password reset has been programmatically removed, don't reset
|
191 |
+
$avoid_password_reset = apply_filters( 'ur_avoid_password_reset', false );
|
192 |
+
if ( $avoid_password_reset ) {
|
193 |
+
return $password;
|
194 |
+
}
|
195 |
+
|
196 |
+
//If the first_access_flag is equal to "" it means that user has registered when the plugin was not active, then don't reset
|
197 |
+
//If the first_access_flag is equal to 1 it means that user has has already loggedin at least one time, then don't reset
|
198 |
+
$first_access_flag = $this->get_first_access_flag();
|
199 |
+
if ( $first_access_flag == 1 ) {
|
200 |
+
return $password;
|
201 |
+
}
|
202 |
+
|
203 |
+
$password = wp_generate_password( 12, false );
|
204 |
+
wp_set_password( $password, $this->user->ID );
|
205 |
+
|
206 |
+
return $password;
|
207 |
+
|
208 |
+
}
|
209 |
+
|
210 |
+
/**
|
211 |
+
* Save a flag to recognize if an user has ever logged in
|
212 |
+
*/
|
213 |
+
public function save_first_access_flag() {
|
214 |
+
if ( ! get_user_meta( $this->user->ID, 'ur_first_access' ) ) {
|
215 |
+
add_user_meta( $this->user->ID, 'ur_first_access', 1 );
|
216 |
+
}
|
217 |
+
}
|
218 |
+
|
219 |
+
|
220 |
+
/**
|
221 |
+
* Save a flag from the db to recognize if an user has ever logged in
|
222 |
+
*
|
223 |
+
* @return mixed
|
224 |
+
*/
|
225 |
+
public function get_first_access_flag() {
|
226 |
+
return get_user_meta( $this->user->ID, 'ur_first_access', true );
|
227 |
+
}
|
228 |
+
|
229 |
+
/**
|
230 |
+
* Check if the user has permissions to change the status of another user
|
231 |
+
*
|
232 |
+
* @return bool
|
233 |
+
*/
|
234 |
+
public function is_allowed_to_change_users_status() {
|
235 |
+
|
236 |
+
$user_can = user_can( $this->user, 'edit_users' );
|
237 |
+
|
238 |
+
return apply_filters( 'ur_is_user_allowed_to_change_status', $user_can, $this->user->ID );
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Check if the instanced user can change status of the user passed by parameter
|
243 |
+
*
|
244 |
+
* @param $user_id
|
245 |
+
*
|
246 |
+
* @return bool
|
247 |
+
*/
|
248 |
+
public function can_change_status_of( $user_id ) {
|
249 |
+
|
250 |
+
//The instanced user is not able to update statuses at all
|
251 |
+
if ( ! $this->is_allowed_to_change_users_status() ) {
|
252 |
+
return false;
|
253 |
+
}
|
254 |
+
|
255 |
+
//The instanced user is the same user who the status have to be changed
|
256 |
+
if ( $this->user->ID == $user_id ) {
|
257 |
+
return false;
|
258 |
+
}
|
259 |
+
|
260 |
+
//If the changer user has the capability "edit_users" but not "manage_options" (isn't an admin),
|
261 |
+
// then allow to edit the status of another user only if him hasn't capability "manage_options" (isn't an admin)
|
262 |
+
if ( ! user_can( $this->user, 'manage_options' ) && user_can( $user_id, 'manage_options' ) ) {
|
263 |
+
return false;
|
264 |
+
}
|
265 |
+
|
266 |
+
return true;
|
267 |
+
}
|
268 |
+
|
269 |
+
/**
|
270 |
+
* Check if the approval status of the instanced user can be changd by the user passed by parameter
|
271 |
+
*
|
272 |
+
* @param null|int|\WP_User $user if this value is null, it is considered the current user
|
273 |
+
*
|
274 |
+
* @return bool
|
275 |
+
*/
|
276 |
+
public function can_status_be_changed_by( $user = null ) {
|
277 |
+
|
278 |
+
$user_changer = new self( $user );
|
279 |
+
|
280 |
+
return $user_changer->can_change_status_of( $this->user->ID );
|
281 |
+
|
282 |
+
}
|
283 |
+
|
284 |
+
/**
|
285 |
+
* Check if a certain user (passed by parameter) is allowed to change approval status of other users
|
286 |
+
* If user id is not passed by parameter, it will be user the current user id
|
287 |
+
*
|
288 |
+
* @param null $user_id
|
289 |
+
*
|
290 |
+
* @return bool
|
291 |
+
*/
|
292 |
+
public static function is_user_allowed_to_change_status( $user_id = null ) {
|
293 |
+
|
294 |
+
$user_manager = new static( $user_id );
|
295 |
+
|
296 |
+
return $user_manager->is_allowed_to_change_users_status();
|
297 |
+
|
298 |
+
}
|
299 |
+
|
300 |
+
/**
|
301 |
+
* @param int $status
|
302 |
+
*
|
303 |
+
* @return string
|
304 |
+
*/
|
305 |
+
public static function get_status_label( $status ) {
|
306 |
+
|
307 |
+
if ( $status == self::APPROVED ) {
|
308 |
+
$label = __( 'approved', 'user-registration' );
|
309 |
+
}
|
310 |
+
if ( $status == self::PENDING ) {
|
311 |
+
$label = __( 'pending', 'user-registration' );
|
312 |
+
}
|
313 |
+
if ( $status == self::DENIED ) {
|
314 |
+
$label = __( 'denied', 'user-registration' );
|
315 |
+
}
|
316 |
+
|
317 |
+
return ucfirst( $label );
|
318 |
+
}
|
319 |
+
|
320 |
+
/**
|
321 |
+
* Check if the status passed by parameter is a valid status
|
322 |
+
*
|
323 |
+
* @param $status
|
324 |
+
*
|
325 |
+
* @return bool
|
326 |
+
*/
|
327 |
+
public static function validate_status( $status ) {
|
328 |
+
return ( $status == self::APPROVED || $status == self::PENDING || $status == self::DENIED );
|
329 |
+
}
|
330 |
+
}
|
includes/admin/class-ur-admin.php
CHANGED
@@ -25,6 +25,10 @@ class UR_Admin {
|
|
25 |
add_action( 'init', array( $this, 'includes' ) );
|
26 |
add_action( 'current_screen', array( $this, 'conditional_includes' ) );
|
27 |
add_action( 'admin_init', array( $this, 'prevent_admin_access' ), 10, 2 );
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
/**
|
@@ -53,7 +57,7 @@ class UR_Admin {
|
|
53 |
case 'profile' :
|
54 |
case 'user-edit' :
|
55 |
include( 'class-ur-admin-profile.php' );
|
56 |
-
|
57 |
}
|
58 |
}
|
59 |
|
@@ -61,19 +65,21 @@ class UR_Admin {
|
|
61 |
* Prevent any user who cannot 'edit_posts' from accessing admin.
|
62 |
*/
|
63 |
public function prevent_admin_access() {
|
64 |
-
|
|
|
|
|
65 |
$user_id = get_current_user_id();
|
66 |
|
67 |
if ( $user_id > 0 ) {
|
68 |
-
$user_meta
|
69 |
-
$user_roles
|
70 |
$option_roles = get_option( 'user_registration_general_setting_disabled_user_roles', array() );
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
$result = array_intersect( $user_roles, $option_roles );
|
75 |
|
76 |
-
|
77 |
wp_safe_redirect( ur_get_page_permalink( 'myaccount' ) );
|
78 |
exit;
|
79 |
}
|
25 |
add_action( 'init', array( $this, 'includes' ) );
|
26 |
add_action( 'current_screen', array( $this, 'conditional_includes' ) );
|
27 |
add_action( 'admin_init', array( $this, 'prevent_admin_access' ), 10, 2 );
|
28 |
+
if ( 'admin_approval' === get_option( 'user_registration_general_setting_login_options' ) ) {
|
29 |
+
new UR_Admin_User_List_Manager();
|
30 |
+
}
|
31 |
+
|
32 |
}
|
33 |
|
34 |
/**
|
57 |
case 'profile' :
|
58 |
case 'user-edit' :
|
59 |
include( 'class-ur-admin-profile.php' );
|
60 |
+
break;
|
61 |
}
|
62 |
}
|
63 |
|
65 |
* Prevent any user who cannot 'edit_posts' from accessing admin.
|
66 |
*/
|
67 |
public function prevent_admin_access() {
|
68 |
+
if ( defined( 'DOING_AJAX' ) ) {
|
69 |
+
return;
|
70 |
+
}
|
71 |
$user_id = get_current_user_id();
|
72 |
|
73 |
if ( $user_id > 0 ) {
|
74 |
+
$user_meta = get_userdata( $user_id );
|
75 |
+
$user_roles = $user_meta->roles;
|
76 |
$option_roles = get_option( 'user_registration_general_setting_disabled_user_roles', array() );
|
77 |
+
if ( ! is_array( $option_roles ) ) {
|
78 |
+
$option_roles = array();
|
79 |
+
}
|
80 |
$result = array_intersect( $user_roles, $option_roles );
|
81 |
|
82 |
+
if ( count( $result ) > 0 && apply_filters( 'user_registration_prevent_admin_access', true ) ) {
|
83 |
wp_safe_redirect( ur_get_page_permalink( 'myaccount' ) );
|
84 |
exit;
|
85 |
}
|
includes/admin/views/html-admin-settings.php
CHANGED
@@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
30 |
?>
|
31 |
<p class="submit">
|
32 |
<?php if ( ! isset( $GLOBALS['hide_save_button'] ) ) : ?>
|
33 |
-
<input name="save" class="button-primary" type="submit" value="<?php
|
34 |
<?php endif; ?>
|
35 |
<input type="hidden" name="subtab" id="last_tab" />
|
36 |
<?php wp_nonce_field( 'user-registration-settings' ); ?>
|
30 |
?>
|
31 |
<p class="submit">
|
32 |
<?php if ( ! isset( $GLOBALS['hide_save_button'] ) ) : ?>
|
33 |
+
<input name="save" class="button-primary" type="submit" value="<?php echo apply_filters('user-registration-setting-save-label', esc_attr('Save Changes', 'user-registration' )); ?>" />
|
34 |
<?php endif; ?>
|
35 |
<input type="hidden" name="subtab" id="last_tab" />
|
36 |
<?php wp_nonce_field( 'user-registration-settings' ); ?>
|
includes/class-ur-ajax.php
CHANGED
@@ -79,6 +79,40 @@ class UR_AJAX {
|
|
79 |
) );
|
80 |
}
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
$form_data = array();
|
84 |
|
79 |
) );
|
80 |
}
|
81 |
|
82 |
+
$users_can_register = apply_filters( 'ur_register_setting_override', get_option( 'users_can_register' ) );
|
83 |
+
|
84 |
+
if ( ! is_user_logged_in() ) {
|
85 |
+
|
86 |
+
if ( ! $users_can_register ) {
|
87 |
+
|
88 |
+
wp_send_json_error( array(
|
89 |
+
'message' => apply_filters( 'ur_register_pre_form_message', __( 'Only an administrator can add new users.', 'user-registration' ) )
|
90 |
+
) );
|
91 |
+
|
92 |
+
}
|
93 |
+
} else {
|
94 |
+
|
95 |
+
$current_user_capability = apply_filters( 'ur_registration_user_capability', 'create_users' );
|
96 |
+
|
97 |
+
if ( ! current_user_can( $current_user_capability ) ) {
|
98 |
+
|
99 |
+
$user_ID = get_current_user_id();
|
100 |
+
|
101 |
+
$user = get_user_by( 'ID', $user_ID );
|
102 |
+
|
103 |
+
global $wp;
|
104 |
+
|
105 |
+
$current_url = home_url( add_query_arg( array(), $wp->request ) );
|
106 |
+
|
107 |
+
$display_name = ! empty( $user->data->display_name ) ? $user->data->display_name : $user->data->user_email;
|
108 |
+
|
109 |
+
wp_send_json_error( array(
|
110 |
+
|
111 |
+
'message' => apply_filters( 'ur_register_pre_form_message', '<p class="alert" id="ur_register_pre_form_message">' . sprintf( __( "You are currently logged in as %1s. You don't need another account. %2s", 'user-registration' ), '<a href="#" title="' . $display_name . '">' . $display_name . '</a>', '<a href="' . wp_logout_url( $current_url ) . '" title="' . __( 'Log out of this account.', 'user-registration' ) . '">' . __( 'Logout', 'user-registration' ) . ' »</a>' ) . '</p>', $user_ID )
|
112 |
+
) );
|
113 |
+
|
114 |
+
}
|
115 |
+
}
|
116 |
|
117 |
$form_data = array();
|
118 |
|
includes/class-ur-emailer.php
CHANGED
@@ -48,34 +48,76 @@ class UR_Emailer {
|
|
48 |
|
49 |
$username = isset( $user_username_object->value ) && ! empty( $user_username_object->value ) ? $user_username_object->value : '';
|
50 |
|
51 |
-
if ( ! empty( $email ) && ! empty ( $username ) ) {
|
52 |
|
53 |
-
self::send_mail_to_user( $email, $username );
|
54 |
|
55 |
-
self::send_mail_to_admin( $email, $username );
|
56 |
}
|
57 |
}
|
58 |
|
|
|
59 |
/**
|
60 |
* @param $email
|
61 |
*/
|
62 |
-
private static function send_mail_to_user( $email, $username ) {
|
|
|
|
|
63 |
|
64 |
$blog_info = get_bloginfo();
|
65 |
|
66 |
$headers = array( 'Content-Type: text/html; charset=UTF-8' );
|
67 |
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
-
|
71 |
|
72 |
-
|
73 |
<br/>
|
74 |
You have successfully completed user registration on <a href="%s">%s</a>.
|
75 |
<br/>
|
76 |
Please visit \'<b>My Account</b>\' page to edit your account details and create your user profile on <a href="%s">%s</a>.',
|
77 |
-
|
78 |
|
|
|
79 |
wp_mail( $email, $subject, $message, $headers );
|
80 |
|
81 |
}
|
@@ -83,7 +125,7 @@ class UR_Emailer {
|
|
83 |
/**
|
84 |
* @param $user_email
|
85 |
*/
|
86 |
-
private static function send_mail_to_admin( $user_email, $username ) {
|
87 |
|
88 |
$headers = array( 'Content-Type: text/html; charset=UTF-8' );
|
89 |
|
@@ -106,6 +148,70 @@ class UR_Emailer {
|
|
106 |
|
107 |
}
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
}
|
110 |
|
111 |
UR_Emailer::init();
|
48 |
|
49 |
$username = isset( $user_username_object->value ) && ! empty( $user_username_object->value ) ? $user_username_object->value : '';
|
50 |
|
51 |
+
if ( ! empty( $email ) && ! empty ( $username ) && ! empty( $user_id ) ) {
|
52 |
|
53 |
+
self::send_mail_to_user( $email, $username, $user_id );
|
54 |
|
55 |
+
self::send_mail_to_admin( $email, $username, $user_id );
|
56 |
}
|
57 |
}
|
58 |
|
59 |
+
|
60 |
/**
|
61 |
* @param $email
|
62 |
*/
|
63 |
+
private static function send_mail_to_user( $email, $username, $user_id ) {
|
64 |
+
|
65 |
+
$status = ur_get_user_approval_status( $user_id );
|
66 |
|
67 |
$blog_info = get_bloginfo();
|
68 |
|
69 |
$headers = array( 'Content-Type: text/html; charset=UTF-8' );
|
70 |
|
71 |
+
if ( $status == 0 ) {
|
72 |
+
|
73 |
+
$subject = __( sprintf( 'Thank you for Registration on %s', $blog_info ), 'user-registration' );
|
74 |
+
|
75 |
+
$message = apply_filters( 'user_registration_user_email_message', __( sprintf(
|
76 |
+
|
77 |
+
'Hi %s,
|
78 |
+
<br/>
|
79 |
+
You have registered on <a href="%s">%s</a>.
|
80 |
+
<br/>
|
81 |
+
Please wait untill the site admin approves your registration.
|
82 |
+
<br/>
|
83 |
+
You will be notified after it is approved.
|
84 |
+
<br/>
|
85 |
+
<br/>
|
86 |
+
Thank you :) ',
|
87 |
+
$username, get_home_url(), $blog_info, get_home_url(), $blog_info ), 'user-registration' ) );
|
88 |
+
|
89 |
+
|
90 |
+
} else if ( $status == - 1 ) {
|
91 |
+
|
92 |
+
$subject = __( sprintf( 'Thank you for Registration on %s', $blog_info ), 'user-registration' );
|
93 |
+
|
94 |
+
$message = apply_filters( 'user_registration_user_email_message', __( sprintf(
|
95 |
+
|
96 |
+
'Hi %s,
|
97 |
+
<br/>
|
98 |
+
You have registered on <a href="%s">%s</a>.
|
99 |
+
<br/>
|
100 |
+
Unfortunately your registration is denied.
|
101 |
+
<br/>
|
102 |
+
Sorry for the inconvenience.
|
103 |
+
<br/>
|
104 |
+
<br/>
|
105 |
+
Thank you :) ',
|
106 |
+
$username, get_home_url(), $blog_info, get_home_url(), $blog_info ), 'user-registration' ) );
|
107 |
+
|
108 |
+
} else {
|
109 |
+
$subject = __( sprintf( 'Congratulations! Registration Complete on %s', $blog_info ), 'user-registration' );
|
110 |
|
111 |
+
$message = apply_filters( 'user_registration_user_email_message', __( sprintf(
|
112 |
|
113 |
+
'Hi %s,
|
114 |
<br/>
|
115 |
You have successfully completed user registration on <a href="%s">%s</a>.
|
116 |
<br/>
|
117 |
Please visit \'<b>My Account</b>\' page to edit your account details and create your user profile on <a href="%s">%s</a>.',
|
118 |
+
$username, get_home_url(), $blog_info, get_home_url(), $blog_info ), 'user-registration' ) );
|
119 |
|
120 |
+
}
|
121 |
wp_mail( $email, $subject, $message, $headers );
|
122 |
|
123 |
}
|
125 |
/**
|
126 |
* @param $user_email
|
127 |
*/
|
128 |
+
private static function send_mail_to_admin( $user_email, $username, $user_id ) {
|
129 |
|
130 |
$headers = array( 'Content-Type: text/html; charset=UTF-8' );
|
131 |
|
148 |
|
149 |
}
|
150 |
|
151 |
+
/**
|
152 |
+
* @param $email
|
153 |
+
* @param $username
|
154 |
+
* @param $status
|
155 |
+
*/
|
156 |
+
public static function status_change_email( $email, $username, $status ) {
|
157 |
+
|
158 |
+
$blog_info = get_bloginfo();
|
159 |
+
|
160 |
+
$headers = array( 'Content-Type: text/html; charset=UTF-8' );
|
161 |
+
|
162 |
+
if ( $status == 0 ) {
|
163 |
+
|
164 |
+
$subject = __( sprintf( 'Sorry! Registration changed to pending on %s', $blog_info ), 'user-registration' );
|
165 |
+
|
166 |
+
$message = apply_filters( 'user_registration_user_status_change_email_message', __( sprintf(
|
167 |
+
|
168 |
+
'Hi %s,
|
169 |
+
<br/>
|
170 |
+
Your registration on <a href="%s">%s</a> has been changed to pending.
|
171 |
+
<br/>
|
172 |
+
Sorry for the inconvenience.
|
173 |
+
<br/>
|
174 |
+
You will be notified after it is approved.
|
175 |
+
<br/>
|
176 |
+
<br/>
|
177 |
+
Thank you :)',
|
178 |
+
$username, get_home_url(), $blog_info, get_home_url(), $blog_info ), 'user-registration' ) );
|
179 |
+
|
180 |
+
|
181 |
+
} else if ( $status == - 1 ) {
|
182 |
+
|
183 |
+
$subject = __( sprintf( 'Sorry! Registration denied on %s', $blog_info ), 'user-registration' );
|
184 |
+
|
185 |
+
$message = apply_filters( 'user_registration_user_status_change_email_message', __( sprintf(
|
186 |
+
|
187 |
+
'Hi %s,
|
188 |
+
<br/>
|
189 |
+
Your registration on <a href="%s">%s</a> has been denied.
|
190 |
+
<br/>
|
191 |
+
Sorry for the inconvenience.
|
192 |
+
<br/>
|
193 |
+
<br/>
|
194 |
+
Thank you :) ',
|
195 |
+
$username, get_home_url(), $blog_info, get_home_url(), $blog_info ), 'user-registration' ) );
|
196 |
+
|
197 |
+
} else {
|
198 |
+
$subject = __( sprintf( 'Congratulations! Registration approved on %s', $blog_info ), 'user-registration' );
|
199 |
+
|
200 |
+
$message = apply_filters( 'user_registration_user_email_message', __( sprintf(
|
201 |
+
|
202 |
+
'Hi %s,
|
203 |
+
<br/>
|
204 |
+
Your registration on <a href="%s">%s</a> has been approved.
|
205 |
+
<br/>
|
206 |
+
Please visit \'<b>My Account</b>\' page to edit your account details and create your user profile on <a href="%s">%s</a>.',
|
207 |
+
$username, get_home_url(), $blog_info, get_home_url(), $blog_info ), 'user-registration' ) );
|
208 |
+
|
209 |
+
}
|
210 |
+
wp_mail( $email, $subject, $message, $headers );
|
211 |
+
|
212 |
+
|
213 |
+
}
|
214 |
+
|
215 |
}
|
216 |
|
217 |
UR_Emailer::init();
|
includes/class-ur-install.php
CHANGED
@@ -56,12 +56,30 @@ class UR_Install {
|
|
56 |
* This check is done on all requests and runs if the versions do not match.
|
57 |
*/
|
58 |
public static function check_version() {
|
|
|
|
|
59 |
if ( ! defined( 'IFRAME_REQUEST' ) && get_option( 'user_registration_version' ) !== UR()->version ) {
|
60 |
self::install();
|
61 |
do_action( 'user_registration_updated' );
|
62 |
}
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
/**
|
66 |
* Install actions when a update button is clicked within the admin area.
|
67 |
*
|
@@ -86,8 +104,8 @@ class UR_Install {
|
|
86 |
* Install UR.
|
87 |
*/
|
88 |
public static function install() {
|
89 |
-
global $wpdb;
|
90 |
|
|
|
91 |
if ( ! is_blog_installed() ) {
|
92 |
return;
|
93 |
}
|
56 |
* This check is done on all requests and runs if the versions do not match.
|
57 |
*/
|
58 |
public static function check_version() {
|
59 |
+
|
60 |
+
self::check_anyone_can_register();
|
61 |
if ( ! defined( 'IFRAME_REQUEST' ) && get_option( 'user_registration_version' ) !== UR()->version ) {
|
62 |
self::install();
|
63 |
do_action( 'user_registration_updated' );
|
64 |
}
|
65 |
}
|
66 |
|
67 |
+
public static function check_anyone_can_register() {
|
68 |
+
|
69 |
+
$users_can_register = apply_filters( 'ur_register_setting_override', get_option( 'users_can_register' ) );
|
70 |
+
if ( ! $users_can_register ) {
|
71 |
+
UR_Admin_Notices::add_custom_notice( 'ur_any_one_can_register_notice', sprintf( __( 'Please enable %s Anyone can register %s option on %s general setting %s.', 'user-registration' ), '<a target="_blank" href="' . admin_url( 'options-general.php#admin_email' ) . '">', '</a>', '<a target="_blank" href="' . admin_url( 'options-general.php#admin_email' ) . '">', '</a>' ) );
|
72 |
+
|
73 |
+
return;
|
74 |
+
}
|
75 |
+
|
76 |
+
if ( UR_Admin_Notices::has_notice( 'ur_any_one_can_register_notice' ) ) {
|
77 |
+
|
78 |
+
UR_Admin_Notices::remove_notice( 'ur_any_one_can_register_notice' );
|
79 |
+
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
/**
|
84 |
* Install actions when a update button is clicked within the admin area.
|
85 |
*
|
104 |
* Install UR.
|
105 |
*/
|
106 |
public static function install() {
|
|
|
107 |
|
108 |
+
global $wpdb;
|
109 |
if ( ! is_blog_installed() ) {
|
110 |
return;
|
111 |
}
|
includes/class-ur-shortcodes.php
CHANGED
@@ -80,6 +80,37 @@ class UR_Shortcodes {
|
|
80 |
return '';
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
if ( ! isset( $atts['id'] ) ) {
|
84 |
return '';
|
85 |
}
|
80 |
return '';
|
81 |
}
|
82 |
|
83 |
+
$users_can_register = apply_filters( 'ur_register_setting_override', get_option( 'users_can_register' ) );
|
84 |
+
|
85 |
+
if ( ! is_user_logged_in() ) {
|
86 |
+
|
87 |
+
if ( ! $users_can_register ) {
|
88 |
+
|
89 |
+
return apply_filters( 'ur_register_pre_form_message', '<p class="alert" id="ur_register_pre_form_message">' . __( 'Only an administrator can add new users.', 'user-registration' ) . '</p>' );
|
90 |
+
}
|
91 |
+
} else {
|
92 |
+
|
93 |
+
$current_user_capability = apply_filters( 'ur_registration_user_capability', 'create_users' );
|
94 |
+
|
95 |
+
if ( ! current_user_can( $current_user_capability ) ) {
|
96 |
+
|
97 |
+
$user_ID = get_current_user_id();
|
98 |
+
|
99 |
+
$user = get_user_by( 'ID', $user_ID );
|
100 |
+
|
101 |
+
global $wp;
|
102 |
+
|
103 |
+
$current_url = home_url( add_query_arg( array(), $wp->request ) );
|
104 |
+
|
105 |
+
$display_name = ! empty( $user->data->display_name ) ? $user->data->display_name : $user->data->user_email;
|
106 |
+
|
107 |
+
return apply_filters( 'ur_register_pre_form_message', '<p class="alert" id="ur_register_pre_form_message">' . sprintf( __( "You are currently logged in as %1s. You don't need another account. %2s", 'user-registration' ), '<a href="#" title="' . $display_name . '">' . $display_name . '</a>', '<a href="' . wp_logout_url( $current_url ) . '" title="' . __( 'Log out of this account.', 'user-registration' ) . '">' . __( 'Logout', 'user-registration' ) . ' »</a>' ) . '</p>', $user_ID );
|
108 |
+
|
109 |
+
}
|
110 |
+
|
111 |
+
}
|
112 |
+
|
113 |
+
|
114 |
if ( ! isset( $atts['id'] ) ) {
|
115 |
return '';
|
116 |
}
|
includes/class-ur-user-approval.php
ADDED
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* User Registration User Approval.
|
4 |
+
*
|
5 |
+
* @class UR_User_Approval
|
6 |
+
* @version 1.0.0
|
7 |
+
* @package UserRegistration/Classes
|
8 |
+
* @category Class
|
9 |
+
* @author WPEverest
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
exit;
|
14 |
+
}
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Class UR_User_Approval
|
19 |
+
*/
|
20 |
+
class UR_User_Approval {
|
21 |
+
|
22 |
+
|
23 |
+
/**
|
24 |
+
* UR_User_Approval constructor.
|
25 |
+
*/
|
26 |
+
public function __construct() {
|
27 |
+
|
28 |
+
if ( 'admin_approval' !== get_option( 'user_registration_general_setting_login_options' ) ) {
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
// -------------------- ACTIONS & FILTERS --------------------
|
32 |
+
|
33 |
+
// Additional checks
|
34 |
+
add_action( 'after_setup_theme', array( $this, 'check_status_on_page' ) );
|
35 |
+
|
36 |
+
//Handle user Sign in
|
37 |
+
add_action( 'user_register', array( $this, 'send_request_notification_to_admin' ) );
|
38 |
+
add_action( 'user_register', array( $this, 'set_user_status' ) );
|
39 |
+
add_filter( 'wp_login_errors', array( $this, 'registration_completed_message' ) );
|
40 |
+
|
41 |
+
//Handle user Sign on
|
42 |
+
add_action( 'wp_login', array( $this, 'track_first_login' ), 10, 2 );
|
43 |
+
add_filter( 'wp_authenticate_user', array( $this, 'check_status_on_login' ) );
|
44 |
+
|
45 |
+
//Handle Lost Password Page
|
46 |
+
add_filter( 'allow_password_reset', array( $this, 'allow_password_reset' ), 10, 2 );
|
47 |
+
|
48 |
+
//When the approval status of an user change
|
49 |
+
add_action( 'ur_user_status_updated', array(
|
50 |
+
$this,
|
51 |
+
'send_notification_to_user_about_status_changing'
|
52 |
+
), 10, 3 );
|
53 |
+
add_action( 'ur_user_user_denied', array( $this, 'disconnect_user_session' ) );
|
54 |
+
|
55 |
+
//Try to hide the not approved users from any theme or plugin request in frontend
|
56 |
+
add_action( 'pre_get_users', array( $this, 'hide_not_approved_users_in_frontend' ) );
|
57 |
+
|
58 |
+
do_action( 'ur_user_construct' );
|
59 |
+
|
60 |
+
}
|
61 |
+
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Display a message the provide instruction after the use regsitration and remove the login form from there
|
65 |
+
*
|
66 |
+
* @param $errors
|
67 |
+
*/
|
68 |
+
public function registration_completed_message( $errors ) {
|
69 |
+
|
70 |
+
if ( ! ( isset( $_GET['checkemail'] ) && $_GET['checkemail'] == 'registered' ) ) {
|
71 |
+
return $errors;
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
return '';
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Save a flag that ensure if an user has ever loggedin while the plugin is activated
|
80 |
+
*
|
81 |
+
* @param $user_login
|
82 |
+
* @param $user
|
83 |
+
*/
|
84 |
+
public function track_first_login( $user_login, $user ) {
|
85 |
+
|
86 |
+
$user_manager = new UR_Admin_User_Manager( $user );
|
87 |
+
$user_manager->save_first_access_flag();
|
88 |
+
|
89 |
+
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Send the email to the user that alert if the approvalrequest has been approved or rejected.
|
93 |
+
* If the request is approved and the user needs to receive the password, a new password will be generated and sent
|
94 |
+
*
|
95 |
+
* @param $status
|
96 |
+
* @param $user_id
|
97 |
+
* @param $alert_user
|
98 |
+
*
|
99 |
+
* @throws \Exception
|
100 |
+
*/
|
101 |
+
public function send_notification_to_user_about_status_changing( $status, $user_id, $alert_user ) {
|
102 |
+
|
103 |
+
if ( ! $alert_user || $status == UR_Admin_User_Manager::PENDING ) {
|
104 |
+
return;
|
105 |
+
}
|
106 |
+
|
107 |
+
$user_manager = new UR_Admin_User_Manager( $user_id );
|
108 |
+
|
109 |
+
//Avoid to send multiple times the same email
|
110 |
+
if ( $status == $user_manager->get_user_status() ) {
|
111 |
+
return;
|
112 |
+
}
|
113 |
+
|
114 |
+
$user = get_userdata( $user_id );
|
115 |
+
$user_data = isset( $user->data ) ? $user->data : array();
|
116 |
+
$username = isset( $user_data->user_login ) ? $user_data->user_login : '';
|
117 |
+
$email = isset( $user_data->user_email ) ? $user_data->user_email : '';
|
118 |
+
|
119 |
+
UR_Emailer::status_change_email( $email, $username, $status );
|
120 |
+
|
121 |
+
return;
|
122 |
+
}
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Send an email to the admin in order to alert the a new user requests to be approved
|
126 |
+
*
|
127 |
+
* @param $user_id
|
128 |
+
*/
|
129 |
+
public function send_request_notification_to_admin( $user_id ) {
|
130 |
+
|
131 |
+
//If the user is created by admin or if the admin alert is disabled, doesn't send the email to the admin
|
132 |
+
if ( $this->is_admin_creation_process() ) {
|
133 |
+
return;
|
134 |
+
}
|
135 |
+
|
136 |
+
|
137 |
+
}
|
138 |
+
|
139 |
+
/**
|
140 |
+
* Set the status of the user right after the registration
|
141 |
+
*
|
142 |
+
* @param $user_id
|
143 |
+
*/
|
144 |
+
public function set_user_status( $user_id ) {
|
145 |
+
$status = UR_Admin_User_Manager::PENDING;
|
146 |
+
|
147 |
+
// If the user is created by admin in the backend, than automatically approve him
|
148 |
+
if ( $this->is_admin_creation_process() ) {
|
149 |
+
$status = UR_Admin_User_Manager::APPROVED;
|
150 |
+
}
|
151 |
+
|
152 |
+
$user_manager = new UR_Admin_User_Manager( $user_id );
|
153 |
+
|
154 |
+
//The user have to be not alerted on status creation, it will be always pending or approved
|
155 |
+
$alert_user = false;
|
156 |
+
|
157 |
+
$user_manager->save_status( $status, $alert_user );
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Check the status of an user on login
|
162 |
+
*
|
163 |
+
* @param $user
|
164 |
+
*
|
165 |
+
* WP_Error
|
166 |
+
*
|
167 |
+
* @return \WP_Error
|
168 |
+
* @throws \Exception
|
169 |
+
*/
|
170 |
+
public function check_status_on_login( WP_User $user ) {
|
171 |
+
|
172 |
+
$user_manager = new UR_Admin_User_Manager( $user );
|
173 |
+
|
174 |
+
$status = $user_manager->get_user_status();
|
175 |
+
|
176 |
+
do_action( 'ur_user_before_check_status_on_login', $status, $user );
|
177 |
+
|
178 |
+
switch ( $status ) {
|
179 |
+
case UR_Admin_User_Manager::APPROVED:
|
180 |
+
return $user;
|
181 |
+
break;
|
182 |
+
case UR_Admin_User_Manager::PENDING:
|
183 |
+
$message = '<strong>' . __( 'ERROR:', 'user-registration' ) . '</strong> ' . __( 'Your account is still pending approval.', 'user-registration' );
|
184 |
+
|
185 |
+
return new WP_Error( 'pending_approval', $message );
|
186 |
+
break;
|
187 |
+
case UR_Admin_User_Manager::DENIED:
|
188 |
+
$message = '<strong>' . __( 'ERROR:', 'user-registration' ) . '</strong> ' . __( 'Your account has been denied.', 'user-registration' );
|
189 |
+
|
190 |
+
return new WP_Error( 'denied_access', $message );
|
191 |
+
break;
|
192 |
+
}
|
193 |
+
|
194 |
+
}
|
195 |
+
|
196 |
+
/**
|
197 |
+
* Check on every page if the current user is actual approved, otherwise logout him
|
198 |
+
* This is an additional protection against that themes or plugins that login users automatically after sign up
|
199 |
+
*/
|
200 |
+
public function check_status_on_page() {
|
201 |
+
|
202 |
+
if ( ! is_user_logged_in() ) {
|
203 |
+
return;
|
204 |
+
}
|
205 |
+
|
206 |
+
$status = ur_get_user_approval_status( get_current_user_id() );
|
207 |
+
|
208 |
+
$user_manager = new UR_Admin_User_Manager();
|
209 |
+
|
210 |
+
if ( ! $user_manager->can_status_be_changed_by( get_current_user_id() ) ) {
|
211 |
+
|
212 |
+
return;
|
213 |
+
}
|
214 |
+
|
215 |
+
do_action( 'ur_user_before_check_status_on_page', $status, $user_manager );
|
216 |
+
|
217 |
+
if ( $status == UR_Admin_User_Manager::APPROVED ) {
|
218 |
+
return;
|
219 |
+
}
|
220 |
+
|
221 |
+
wp_logout();
|
222 |
+
|
223 |
+
}
|
224 |
+
|
225 |
+
/**
|
226 |
+
* Check the $_REQUEST variable to understand if the user currently created is created by admin in the backend or noth
|
227 |
+
*
|
228 |
+
* @return bool
|
229 |
+
*/
|
230 |
+
protected function is_admin_creation_process() {
|
231 |
+
return ( isset( $_REQUEST['action'] ) && 'createuser' == $_REQUEST['action'] );
|
232 |
+
}
|
233 |
+
|
234 |
+
/**
|
235 |
+
* Disconnect an user selected by id
|
236 |
+
*
|
237 |
+
* @param $user_id
|
238 |
+
*/
|
239 |
+
public function disconnect_user_session( $user_id ) {
|
240 |
+
|
241 |
+
// get all sessions for user with ID $user_id
|
242 |
+
$sessions = WP_Session_Tokens::get_instance( $user_id );
|
243 |
+
|
244 |
+
// we have got the sessions, destroy them all!
|
245 |
+
$sessions->destroy_all();
|
246 |
+
}
|
247 |
+
|
248 |
+
/**
|
249 |
+
* If the user is not approved, disalow to reset the password fom Lost Passwod form and display an error message
|
250 |
+
*
|
251 |
+
* @param $result
|
252 |
+
* @param $user_id
|
253 |
+
*
|
254 |
+
* @return \WP_Error
|
255 |
+
*/
|
256 |
+
public function allow_password_reset( $result, $user_id ) {
|
257 |
+
|
258 |
+
$user_manager = new UR_Admin_User_Manager( $user_id );
|
259 |
+
|
260 |
+
if ( ! $user_manager->is_approved() ) {
|
261 |
+
|
262 |
+
$error_message = 'message_reset_password_not_allowed';
|
263 |
+
|
264 |
+
$result = new WP_Error( 'user_not_approved', $error_message );
|
265 |
+
}
|
266 |
+
|
267 |
+
return $result;
|
268 |
+
}
|
269 |
+
|
270 |
+
/**
|
271 |
+
* Function called on action pre_get_users, it remove all users not approved when the request is don by frontend,
|
272 |
+
* in this way it ensure a compatibility with all other plugin and themes, avoiding to show unapproved users
|
273 |
+
* (for instance in members page of buddypress or Extrafooter of Woffice)
|
274 |
+
*
|
275 |
+
* @param \WP_Query $query
|
276 |
+
*/
|
277 |
+
public function hide_not_approved_users_in_frontend( $query ) {
|
278 |
+
|
279 |
+
//If this is not a frontend page, then do nothing
|
280 |
+
if ( is_admin() ) {
|
281 |
+
return;
|
282 |
+
}
|
283 |
+
|
284 |
+
if ( isset( $query->query_vars['ur_user_ignore_users_hiding'] ) && $query->query_vars['ur_user_ignore_users_hiding'] ) {
|
285 |
+
return;
|
286 |
+
}
|
287 |
+
|
288 |
+
//Otherwise display only approved users
|
289 |
+
$meta_query = array(
|
290 |
+
'relation' => 'OR',
|
291 |
+
array(
|
292 |
+
'key' => 'ur_user_status',
|
293 |
+
'compare' => 'NOT EXISTS', // works!
|
294 |
+
'value' => '' // This is ignored, but is necessary...
|
295 |
+
),
|
296 |
+
array(
|
297 |
+
'key' => 'ur_user_status',
|
298 |
+
'value' => UR_Admin_User_Manager::APPROVED
|
299 |
+
)
|
300 |
+
);
|
301 |
+
|
302 |
+
$meta_query = apply_filters( 'ur_user_hide_not_approved_users_in_frontend', $meta_query, $query );
|
303 |
+
|
304 |
+
if ( ! empty( $meta_query ) ) {
|
305 |
+
$query->set( 'meta_query', $meta_query );
|
306 |
+
}
|
307 |
+
}
|
308 |
+
|
309 |
+
}
|
310 |
+
|
311 |
+
new UR_User_Approval();
|
includes/frontend/class-ur-frontend.php
CHANGED
@@ -38,34 +38,27 @@ class UR_Frontend {
|
|
38 |
|
39 |
public function includes() {
|
40 |
include_once( UR_ABSPATH . 'includes' . UR_DS . 'frontend' . UR_DS . 'class-ur-frontend-form-handler.php' );
|
41 |
-
|
42 |
|
43 |
/**
|
44 |
* Includes any classes we need within admin.
|
45 |
*/
|
46 |
public function user_registration_frontend_form( $field_object, $form_id ) {
|
47 |
|
48 |
-
$
|
49 |
-
|
50 |
-
$class_name = 'UR_' . join( '_', array_map( 'ucfirst', explode( '_', $field_object->field_key ) ) );
|
51 |
-
|
52 |
-
if ( ! class_exists( $class_name ) ) {
|
53 |
-
|
54 |
-
$instance = include( $class_path );
|
55 |
|
56 |
-
|
57 |
|
58 |
$instance = $class_name::get_instance();
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
$setting['general_setting'] = $field_object->general_setting;
|
63 |
|
64 |
-
|
65 |
|
66 |
-
|
67 |
|
68 |
-
|
|
|
69 |
}
|
70 |
}
|
71 |
|
38 |
|
39 |
public function includes() {
|
40 |
include_once( UR_ABSPATH . 'includes' . UR_DS . 'frontend' . UR_DS . 'class-ur-frontend-form-handler.php' );
|
41 |
+
}
|
42 |
|
43 |
/**
|
44 |
* Includes any classes we need within admin.
|
45 |
*/
|
46 |
public function user_registration_frontend_form( $field_object, $form_id ) {
|
47 |
|
48 |
+
$class_name = ur_load_form_field_class($field_object->field_key);
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
+
if(class_exists($class_name)) {
|
51 |
|
52 |
$instance = $class_name::get_instance();
|
53 |
|
54 |
+
$setting['general_setting'] = $field_object->general_setting;
|
|
|
|
|
55 |
|
56 |
+
$setting['advance_setting'] = $field_object->advance_setting;
|
57 |
|
58 |
+
$field_type = ur_get_field_type( $field_object->field_key );
|
59 |
|
60 |
+
$instance->frontend_includes( $setting, $form_id, $field_type, $field_object->field_key );
|
61 |
+
}
|
62 |
}
|
63 |
}
|
64 |
|
includes/functions-ur-core.php
CHANGED
@@ -232,7 +232,7 @@ function ur_help_tip( $tip, $allow_html = false ) {
|
|
232 |
function ur_post_content_has_shortcode( $tag = '' ) {
|
233 |
global $post;
|
234 |
|
235 |
-
return is_singular() && is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, $tag );
|
236 |
}
|
237 |
|
238 |
/**
|
@@ -338,6 +338,9 @@ function ur_get_field_type( $field_key ) {
|
|
338 |
case 'country':
|
339 |
$field_type = 'select';
|
340 |
break;
|
|
|
|
|
|
|
341 |
}
|
342 |
}
|
343 |
|
@@ -486,6 +489,7 @@ function ur_load_form_field_class( $class_key ) {
|
|
486 |
$exploded_class = explode( '_', $class_key );
|
487 |
$class_path = UR_FORM_PATH . 'class-ur-' . join( '-', array_map( 'strtolower', $exploded_class ) ) . '.php';
|
488 |
$class_name = 'UR_' . join( '_', array_map( 'ucwords', $exploded_class ) );
|
|
|
489 |
|
490 |
if ( ! class_exists( $class_name ) ) {
|
491 |
if ( file_exists( $class_path ) ) {
|
@@ -620,8 +624,9 @@ function ur_login_option() {
|
|
620 |
|
621 |
return apply_filters( 'user_registration_login_options', array(
|
622 |
|
623 |
-
'default'
|
624 |
-
'auto_login'
|
|
|
625 |
)
|
626 |
);
|
627 |
|
@@ -688,3 +693,30 @@ function ur_get_form_setting_by_key( $form_id, $meta_key, $default = '' ) {
|
|
688 |
|
689 |
return $value;
|
690 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
function ur_post_content_has_shortcode( $tag = '' ) {
|
233 |
global $post;
|
234 |
|
235 |
+
return ( is_singular() || is_front_page() ) && is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, $tag );
|
236 |
}
|
237 |
|
238 |
/**
|
338 |
case 'country':
|
339 |
$field_type = 'select';
|
340 |
break;
|
341 |
+
case 'file':
|
342 |
+
$field_type = 'file';
|
343 |
+
break;
|
344 |
}
|
345 |
}
|
346 |
|
489 |
$exploded_class = explode( '_', $class_key );
|
490 |
$class_path = UR_FORM_PATH . 'class-ur-' . join( '-', array_map( 'strtolower', $exploded_class ) ) . '.php';
|
491 |
$class_name = 'UR_' . join( '_', array_map( 'ucwords', $exploded_class ) );
|
492 |
+
$class_path = apply_filters( 'user_registration_form_field_' . $class_key . '_path', $class_path );
|
493 |
|
494 |
if ( ! class_exists( $class_name ) ) {
|
495 |
if ( file_exists( $class_path ) ) {
|
624 |
|
625 |
return apply_filters( 'user_registration_login_options', array(
|
626 |
|
627 |
+
'default' => __( 'Manual login after registration', 'user-registration' ),
|
628 |
+
'auto_login' => __( 'Auto login after registration', 'user-registration' ),
|
629 |
+
'admin_approval' => __( 'Admin approval after registration', 'user-registration' )
|
630 |
)
|
631 |
);
|
632 |
|
693 |
|
694 |
return $value;
|
695 |
}
|
696 |
+
|
697 |
+
/**
|
698 |
+
* @param $user_id
|
699 |
+
*
|
700 |
+
*
|
701 |
+
*/
|
702 |
+
function ur_get_user_approval_status( $user_id ) {
|
703 |
+
|
704 |
+
$login_option = get_option( 'user_registration_general_setting_login_options', '' );
|
705 |
+
|
706 |
+
if ( 'admin_approval' === $login_option ) {
|
707 |
+
|
708 |
+
$user_status = get_user_meta( $user_id, 'ur_user_status', true );
|
709 |
+
|
710 |
+
if ( $user_status == 0 || $user_status == - 1 ) {
|
711 |
+
|
712 |
+
return $user_status;
|
713 |
+
}
|
714 |
+
|
715 |
+
return true;
|
716 |
+
|
717 |
+
|
718 |
+
}
|
719 |
+
|
720 |
+
return true;
|
721 |
+
|
722 |
+
}
|
includes/functions-ur-template.php
CHANGED
@@ -73,6 +73,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
73 |
* @return string
|
74 |
*/
|
75 |
function user_registration_form_field( $key, $args, $value = null ) {
|
|
|
76 |
$defaults = array(
|
77 |
'type' => 'text',
|
78 |
'label' => '',
|
@@ -159,6 +160,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
159 |
case 'tel' :
|
160 |
case 'number' :
|
161 |
case 'url' :
|
|
|
162 |
|
163 |
$field .= '<input type="' . esc_attr( $args['type'] ) . '" class="input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" value="' . esc_attr( $value ) . '" ' . implode( ' ', $custom_attributes ) . ' />';
|
164 |
|
73 |
* @return string
|
74 |
*/
|
75 |
function user_registration_form_field( $key, $args, $value = null ) {
|
76 |
+
|
77 |
$defaults = array(
|
78 |
'type' => 'text',
|
79 |
'label' => '',
|
160 |
case 'tel' :
|
161 |
case 'number' :
|
162 |
case 'url' :
|
163 |
+
case 'file':
|
164 |
|
165 |
$field .= '<input type="' . esc_attr( $args['type'] ) . '" class="input-text ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" value="' . esc_attr( $value ) . '" ' . implode( ' ', $custom_attributes ) . ' />';
|
166 |
|
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.0.
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
-
"POT-Creation-Date: 2017-08-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -13,11 +13,11 @@ msgstr ""
|
|
13 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
14 |
"X-Generator: grunt-wp-i18n1.0.0\n"
|
15 |
|
16 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
17 |
msgid "General Settings"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
21 |
msgid "Advance Settings"
|
22 |
msgstr ""
|
23 |
|
@@ -38,17 +38,17 @@ msgstr ""
|
|
38 |
msgid "Copy of "
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: includes/admin/class-ur-admin-menus.php:
|
42 |
msgid "You do not have permissions to edit forms!"
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: includes/admin/class-ur-admin-menus.php:
|
46 |
#: includes/admin/class-ur-admin-notices.php:110
|
47 |
#: includes/admin/class-ur-admin-settings.php:68
|
48 |
msgid "Action failed. Please refresh the page and retry."
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: includes/admin/class-ur-admin-menus.php:
|
52 |
msgid "You do not have permissions to delete forms!"
|
53 |
msgstr ""
|
54 |
|
@@ -56,75 +56,75 @@ msgstr ""
|
|
56 |
msgid "User Registration"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: includes/admin/class-ur-admin-menus.php:
|
60 |
msgid "User Registration settings"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: includes/admin/class-ur-admin-menus.php:
|
64 |
-
#: includes/class-ur-install.php:
|
65 |
msgid "Settings"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: includes/admin/class-ur-admin-menus.php:
|
69 |
#: includes/admin/class-ur-registration-table-list.php:51
|
70 |
msgid "Title"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: includes/admin/class-ur-admin-menus.php:
|
74 |
#: includes/admin/class-ur-registration-table-list.php:52
|
75 |
msgid "Shortcode"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: includes/admin/class-ur-admin-menus.php:
|
79 |
msgid "Entry Link"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: includes/admin/class-ur-admin-menus.php:
|
83 |
#: includes/admin/class-ur-registration-table-list.php:54
|
84 |
msgid "Author"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: includes/admin/class-ur-admin-menus.php:
|
88 |
#: includes/admin/class-ur-registration-table-list.php:55
|
89 |
msgid "Date"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: includes/admin/class-ur-admin-menus.php:
|
93 |
-
#: includes/admin/class-ur-admin-menus.php:
|
94 |
msgid "Add New"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: includes/admin/class-ur-admin-menus.php:
|
98 |
msgid "Search Registration"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: includes/admin/class-ur-admin-menus.php:
|
102 |
msgid "Create Form"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: includes/admin/class-ur-admin-menus.php:
|
106 |
msgid "Update form"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: includes/admin/class-ur-admin-menus.php:
|
110 |
msgid "User Registration endpoints"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: includes/admin/class-ur-admin-menus.php:
|
114 |
#: includes/admin/settings/class-ur-settings-general.php:156
|
115 |
#: includes/class-ur-query.php:77
|
116 |
msgid "Lost password"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: includes/admin/class-ur-admin-menus.php:
|
120 |
msgid "Select all"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: includes/admin/class-ur-admin-menus.php:
|
124 |
msgid "Add to menu"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: includes/admin/class-ur-admin-menus.php:
|
128 |
msgid "Empty form data"
|
129 |
msgstr ""
|
130 |
|
@@ -143,18 +143,80 @@ msgstr ""
|
|
143 |
msgid "Select"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: includes/admin/class-ur-admin-settings.php:
|
147 |
msgid "Your settings have been saved."
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: includes/admin/class-ur-admin-settings.php:
|
151 |
msgid "The changes you made will be lost if you navigate away from this page."
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: includes/admin/class-ur-admin-settings.php:
|
155 |
msgid "Select a page…"
|
156 |
msgstr ""
|
157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
#: includes/admin/class-ur-registration-table-list.php:40
|
159 |
msgid "No user registration found."
|
160 |
msgstr ""
|
@@ -241,7 +303,7 @@ msgid "General Options"
|
|
241 |
msgstr ""
|
242 |
|
243 |
#: includes/admin/settings/class-ur-settings-general.php:58
|
244 |
-
#: includes/functions-ur-core.php:
|
245 |
msgid "Default user role"
|
246 |
msgstr ""
|
247 |
|
@@ -276,7 +338,7 @@ msgid "Page contents: [%s]"
|
|
276 |
msgstr ""
|
277 |
|
278 |
#: includes/admin/settings/class-ur-settings-general.php:105
|
279 |
-
#: includes/functions-ur-core.php:
|
280 |
msgid "Enable strong password"
|
281 |
msgstr ""
|
282 |
|
@@ -285,7 +347,7 @@ msgid "Tick here if you want to use strong password on user registration form."
|
|
285 |
msgstr ""
|
286 |
|
287 |
#: includes/admin/settings/class-ur-settings-general.php:113
|
288 |
-
#: includes/functions-ur-core.php:
|
289 |
msgid "Form submit button label"
|
290 |
msgstr ""
|
291 |
|
@@ -386,10 +448,6 @@ msgstr ""
|
|
386 |
msgid "Extra Fields"
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: includes/admin/views/html-admin-settings.php:33
|
390 |
-
msgid "Save Changes"
|
391 |
-
msgstr ""
|
392 |
-
|
393 |
#: includes/admin/views/html-notice-custom.php:12
|
394 |
#: includes/admin/views/html-notice-updated.php:12
|
395 |
msgid "Dismiss"
|
@@ -446,15 +504,32 @@ msgstr ""
|
|
446 |
msgid "Nonce error, please reload."
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: includes/class-ur-ajax.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
msgid "post data not set"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: includes/class-ur-ajax.php:
|
454 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: includes/class-ur-emailer.php:
|
458 |
msgid "A New User Registered"
|
459 |
msgstr ""
|
460 |
|
@@ -578,27 +653,31 @@ msgid ""
|
|
578 |
"$ % ^ & )."
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: includes/class-ur-install.php:
|
|
|
|
|
|
|
|
|
582 |
msgid "Default form"
|
583 |
msgstr ""
|
584 |
|
585 |
-
#: includes/class-ur-install.php:
|
586 |
msgid "View User Registration Settings"
|
587 |
msgstr ""
|
588 |
|
589 |
-
#: includes/class-ur-install.php:
|
590 |
msgid "View User Registration Documentation"
|
591 |
msgstr ""
|
592 |
|
593 |
-
#: includes/class-ur-install.php:
|
594 |
msgid "Docs"
|
595 |
msgstr ""
|
596 |
|
597 |
-
#: includes/class-ur-install.php:
|
598 |
msgid "Visit Free Customer Support Forum"
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: includes/class-ur-install.php:
|
602 |
msgid "Free Support"
|
603 |
msgstr ""
|
604 |
|
@@ -658,6 +737,19 @@ msgstr ""
|
|
658 |
msgid "Profile Details"
|
659 |
msgstr ""
|
660 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
661 |
#: includes/form/class-ur-country.php:37
|
662 |
msgid "Afghanistan"
|
663 |
msgstr ""
|
@@ -1836,48 +1928,48 @@ msgstr ""
|
|
1836 |
msgid "Dashboard"
|
1837 |
msgstr ""
|
1838 |
|
1839 |
-
#: includes/functions-ur-
|
1840 |
-
msgid "Logout"
|
1841 |
-
msgstr ""
|
1842 |
-
|
1843 |
-
#: includes/functions-ur-core.php:440 includes/functions-ur-core.php:443
|
1844 |
msgid "Label"
|
1845 |
msgstr ""
|
1846 |
|
1847 |
-
#: includes/functions-ur-core.php:
|
1848 |
msgid "Field Name"
|
1849 |
msgstr ""
|
1850 |
|
1851 |
-
#: includes/functions-ur-core.php:
|
1852 |
msgid "Placeholder"
|
1853 |
msgstr ""
|
1854 |
|
1855 |
-
#: includes/functions-ur-core.php:
|
1856 |
msgid "Required"
|
1857 |
msgstr ""
|
1858 |
|
1859 |
-
#: includes/functions-ur-core.php:
|
1860 |
-
#: includes/functions-ur-core.php:
|
1861 |
msgid "No"
|
1862 |
msgstr ""
|
1863 |
|
1864 |
-
#: includes/functions-ur-core.php:
|
1865 |
-
#: includes/functions-ur-core.php:
|
1866 |
msgid "Yes"
|
1867 |
msgstr ""
|
1868 |
|
1869 |
-
#: includes/functions-ur-core.php:
|
1870 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
1871 |
msgstr ""
|
1872 |
|
1873 |
-
#: includes/functions-ur-core.php:
|
1874 |
msgid "Manual login after registration"
|
1875 |
msgstr ""
|
1876 |
|
1877 |
-
#: includes/functions-ur-core.php:
|
1878 |
msgid "Auto login after registration"
|
1879 |
msgstr ""
|
1880 |
|
|
|
|
|
|
|
|
|
1881 |
#: includes/functions-ur-notice.php:29 includes/functions-ur-notice.php:64
|
1882 |
#: includes/functions-ur-notice.php:85 includes/functions-ur-notice.php:111
|
1883 |
#: includes/functions-ur-notice.php:125 includes/functions-ur-notice.php:139
|
@@ -1885,11 +1977,11 @@ msgstr ""
|
|
1885 |
msgid "This function should not be called before user_registration_init."
|
1886 |
msgstr ""
|
1887 |
|
1888 |
-
#: includes/functions-ur-template.php:
|
1889 |
msgid "required"
|
1890 |
msgstr ""
|
1891 |
|
1892 |
-
#: includes/functions-ur-template.php:
|
1893 |
msgid "Choose an option"
|
1894 |
msgstr ""
|
1895 |
|
@@ -2160,6 +2252,16 @@ msgctxt "user registration admin"
|
|
2160 |
msgid "Drag your first form item here."
|
2161 |
msgstr ""
|
2162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2163 |
#: includes/admin/class-ur-registration-table-list.php:273
|
2164 |
#. translators: %s: count
|
2165 |
msgctxt "posts"
|
@@ -2168,22 +2270,22 @@ msgid_plural "All <span class=\"count\">(%s)</span>"
|
|
2168 |
msgstr[0] ""
|
2169 |
msgstr[1] ""
|
2170 |
|
2171 |
-
#: includes/class-ur-install.php:
|
2172 |
msgctxt "Page slug"
|
2173 |
msgid "my-account"
|
2174 |
msgstr ""
|
2175 |
|
2176 |
-
#: includes/class-ur-install.php:
|
2177 |
msgctxt "Page slug"
|
2178 |
msgid "registration"
|
2179 |
msgstr ""
|
2180 |
|
2181 |
-
#: includes/class-ur-install.php:
|
2182 |
msgctxt "Page title"
|
2183 |
msgid "My Account"
|
2184 |
msgstr ""
|
2185 |
|
2186 |
-
#: includes/class-ur-install.php:
|
2187 |
msgctxt "Page title"
|
2188 |
msgid "Registration"
|
2189 |
msgstr ""
|
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.0.4\n"
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
+
"POT-Creation-Date: 2017-08-31 10:07:22+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
14 |
"X-Generator: grunt-wp-i18n1.0.0\n"
|
15 |
|
16 |
+
#: includes/abstracts/abstract-ur-form-field.php:280
|
17 |
msgid "General Settings"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#: includes/abstracts/abstract-ur-form-field.php:292
|
21 |
msgid "Advance Settings"
|
22 |
msgstr ""
|
23 |
|
38 |
msgid "Copy of "
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: includes/admin/class-ur-admin-menus.php:212
|
42 |
msgid "You do not have permissions to edit forms!"
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: includes/admin/class-ur-admin-menus.php:237
|
46 |
#: includes/admin/class-ur-admin-notices.php:110
|
47 |
#: includes/admin/class-ur-admin-settings.php:68
|
48 |
msgid "Action failed. Please refresh the page and retry."
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: includes/admin/class-ur-admin-menus.php:241
|
52 |
msgid "You do not have permissions to delete forms!"
|
53 |
msgstr ""
|
54 |
|
56 |
msgid "User Registration"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: includes/admin/class-ur-admin-menus.php:290
|
60 |
msgid "User Registration settings"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: includes/admin/class-ur-admin-menus.php:290
|
64 |
+
#: includes/class-ur-install.php:456
|
65 |
msgid "Settings"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: includes/admin/class-ur-admin-menus.php:305
|
69 |
#: includes/admin/class-ur-registration-table-list.php:51
|
70 |
msgid "Title"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: includes/admin/class-ur-admin-menus.php:306
|
74 |
#: includes/admin/class-ur-registration-table-list.php:52
|
75 |
msgid "Shortcode"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: includes/admin/class-ur-admin-menus.php:307
|
79 |
msgid "Entry Link"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: includes/admin/class-ur-admin-menus.php:308
|
83 |
#: includes/admin/class-ur-registration-table-list.php:54
|
84 |
msgid "Author"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: includes/admin/class-ur-admin-menus.php:309
|
88 |
#: includes/admin/class-ur-registration-table-list.php:55
|
89 |
msgid "Date"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: includes/admin/class-ur-admin-menus.php:318
|
93 |
+
#: includes/admin/class-ur-admin-menus.php:346
|
94 |
msgid "Add New"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: includes/admin/class-ur-admin-menus.php:351
|
98 |
msgid "Search Registration"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: includes/admin/class-ur-admin-menus.php:373
|
102 |
msgid "Create Form"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: includes/admin/class-ur-admin-menus.php:376
|
106 |
msgid "Update form"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: includes/admin/class-ur-admin-menus.php:397
|
110 |
msgid "User Registration endpoints"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: includes/admin/class-ur-admin-menus.php:416
|
114 |
#: includes/admin/settings/class-ur-settings-general.php:156
|
115 |
#: includes/class-ur-query.php:77
|
116 |
msgid "Lost password"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: includes/admin/class-ur-admin-menus.php:454
|
120 |
msgid "Select all"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: includes/admin/class-ur-admin-menus.php:458
|
124 |
msgid "Add to menu"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: includes/admin/class-ur-admin-menus.php:555
|
128 |
msgid "Empty form data"
|
129 |
msgstr ""
|
130 |
|
143 |
msgid "Select"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: includes/admin/class-ur-admin-settings.php:78
|
147 |
msgid "Your settings have been saved."
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: includes/admin/class-ur-admin-settings.php:137
|
151 |
msgid "The changes you made will be lost if you navigate away from this page."
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: includes/admin/class-ur-admin-settings.php:533
|
155 |
msgid "Select a page…"
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:146
|
159 |
+
msgid "User approved."
|
160 |
+
msgid_plural "%s users approved."
|
161 |
+
msgstr[0] ""
|
162 |
+
msgstr[1] ""
|
163 |
+
|
164 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:148
|
165 |
+
msgid "User denied."
|
166 |
+
msgid_plural "%s users denied."
|
167 |
+
msgstr[0] ""
|
168 |
+
msgstr[1] ""
|
169 |
+
|
170 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:164
|
171 |
+
msgid "Status"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:209
|
175 |
+
msgid "All statuses"
|
176 |
+
msgstr ""
|
177 |
+
|
178 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:211
|
179 |
+
msgid "All approval statuses"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:220
|
183 |
+
msgid "Filter"
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:304
|
187 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:305
|
188 |
+
msgid "Approve"
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:307
|
192 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:308
|
193 |
+
msgid "Deny"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:387
|
197 |
+
msgid "Approval Status"
|
198 |
+
msgstr ""
|
199 |
+
|
200 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:399
|
201 |
+
msgid "If user has access to sign in or not."
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: includes/admin/class-ur-admin-user-manager.php:62
|
205 |
+
msgid "Impossible to create an UR_Admin_User_Manager object. Unkwon data type."
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: includes/admin/class-ur-admin-user-manager.php:308
|
209 |
+
msgid "approved"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: includes/admin/class-ur-admin-user-manager.php:311
|
213 |
+
msgid "pending"
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
+
#: includes/admin/class-ur-admin-user-manager.php:314
|
217 |
+
msgid "denied"
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
#: includes/admin/class-ur-registration-table-list.php:40
|
221 |
msgid "No user registration found."
|
222 |
msgstr ""
|
303 |
msgstr ""
|
304 |
|
305 |
#: includes/admin/settings/class-ur-settings-general.php:58
|
306 |
+
#: includes/functions-ur-core.php:555
|
307 |
msgid "Default user role"
|
308 |
msgstr ""
|
309 |
|
338 |
msgstr ""
|
339 |
|
340 |
#: includes/admin/settings/class-ur-settings-general.php:105
|
341 |
+
#: includes/functions-ur-core.php:569
|
342 |
msgid "Enable strong password"
|
343 |
msgstr ""
|
344 |
|
347 |
msgstr ""
|
348 |
|
349 |
#: includes/admin/settings/class-ur-settings-general.php:113
|
350 |
+
#: includes/functions-ur-core.php:584
|
351 |
msgid "Form submit button label"
|
352 |
msgstr ""
|
353 |
|
448 |
msgid "Extra Fields"
|
449 |
msgstr ""
|
450 |
|
|
|
|
|
|
|
|
|
451 |
#: includes/admin/views/html-notice-custom.php:12
|
452 |
#: includes/admin/views/html-notice-updated.php:12
|
453 |
msgid "Dismiss"
|
504 |
msgid "Nonce error, please reload."
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: includes/class-ur-ajax.php:89 includes/class-ur-shortcodes.php:89
|
508 |
+
msgid "Only an administrator can add new users."
|
509 |
+
msgstr ""
|
510 |
+
|
511 |
+
#: includes/class-ur-ajax.php:111 includes/class-ur-shortcodes.php:107
|
512 |
+
msgid "You are currently logged in as %1s. You don't need another account. %2s"
|
513 |
+
msgstr ""
|
514 |
+
|
515 |
+
#: includes/class-ur-ajax.php:111 includes/class-ur-shortcodes.php:107
|
516 |
+
msgid "Log out of this account."
|
517 |
+
msgstr ""
|
518 |
+
|
519 |
+
#: includes/class-ur-ajax.php:111 includes/class-ur-shortcodes.php:107
|
520 |
+
#: includes/functions-ur-account.php:58
|
521 |
+
msgid "Logout"
|
522 |
+
msgstr ""
|
523 |
+
|
524 |
+
#: includes/class-ur-ajax.php:181 includes/class-ur-ajax.php:185
|
525 |
msgid "post data not set"
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: includes/class-ur-ajax.php:203
|
529 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
530 |
msgstr ""
|
531 |
|
532 |
+
#: includes/class-ur-emailer.php:136
|
533 |
msgid "A New User Registered"
|
534 |
msgstr ""
|
535 |
|
653 |
"$ % ^ & )."
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: includes/class-ur-install.php:71
|
657 |
+
msgid "Please enable %s Anyone can register %s option on %s general setting %s."
|
658 |
+
msgstr ""
|
659 |
+
|
660 |
+
#: includes/class-ur-install.php:230
|
661 |
msgid "Default form"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: includes/class-ur-install.php:456
|
665 |
msgid "View User Registration Settings"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: includes/class-ur-install.php:473
|
669 |
msgid "View User Registration Documentation"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: includes/class-ur-install.php:473
|
673 |
msgid "Docs"
|
674 |
msgstr ""
|
675 |
|
676 |
+
#: includes/class-ur-install.php:474
|
677 |
msgid "Visit Free Customer Support Forum"
|
678 |
msgstr ""
|
679 |
|
680 |
+
#: includes/class-ur-install.php:474
|
681 |
msgid "Free Support"
|
682 |
msgstr ""
|
683 |
|
737 |
msgid "Profile Details"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: includes/class-ur-user-approval.php:183
|
741 |
+
#: includes/class-ur-user-approval.php:188
|
742 |
+
msgid "ERROR:"
|
743 |
+
msgstr ""
|
744 |
+
|
745 |
+
#: includes/class-ur-user-approval.php:183
|
746 |
+
msgid "Your account is still pending approval."
|
747 |
+
msgstr ""
|
748 |
+
|
749 |
+
#: includes/class-ur-user-approval.php:188
|
750 |
+
msgid "Your account has been denied."
|
751 |
+
msgstr ""
|
752 |
+
|
753 |
#: includes/form/class-ur-country.php:37
|
754 |
msgid "Afghanistan"
|
755 |
msgstr ""
|
1928 |
msgid "Dashboard"
|
1929 |
msgstr ""
|
1930 |
|
1931 |
+
#: includes/functions-ur-core.php:443 includes/functions-ur-core.php:446
|
|
|
|
|
|
|
|
|
1932 |
msgid "Label"
|
1933 |
msgstr ""
|
1934 |
|
1935 |
+
#: includes/functions-ur-core.php:451 includes/functions-ur-core.php:454
|
1936 |
msgid "Field Name"
|
1937 |
msgstr ""
|
1938 |
|
1939 |
+
#: includes/functions-ur-core.php:460 includes/functions-ur-core.php:463
|
1940 |
msgid "Placeholder"
|
1941 |
msgstr ""
|
1942 |
|
1943 |
+
#: includes/functions-ur-core.php:468
|
1944 |
msgid "Required"
|
1945 |
msgstr ""
|
1946 |
|
1947 |
+
#: includes/functions-ur-core.php:474 includes/functions-ur-core.php:577
|
1948 |
+
#: includes/functions-ur-core.php:605
|
1949 |
msgid "No"
|
1950 |
msgstr ""
|
1951 |
|
1952 |
+
#: includes/functions-ur-core.php:475 includes/functions-ur-core.php:576
|
1953 |
+
#: includes/functions-ur-core.php:604
|
1954 |
msgid "Yes"
|
1955 |
msgstr ""
|
1956 |
|
1957 |
+
#: includes/functions-ur-core.php:597
|
1958 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
1959 |
msgstr ""
|
1960 |
|
1961 |
+
#: includes/functions-ur-core.php:627
|
1962 |
msgid "Manual login after registration"
|
1963 |
msgstr ""
|
1964 |
|
1965 |
+
#: includes/functions-ur-core.php:628
|
1966 |
msgid "Auto login after registration"
|
1967 |
msgstr ""
|
1968 |
|
1969 |
+
#: includes/functions-ur-core.php:629
|
1970 |
+
msgid "Admin approval after registration"
|
1971 |
+
msgstr ""
|
1972 |
+
|
1973 |
#: includes/functions-ur-notice.php:29 includes/functions-ur-notice.php:64
|
1974 |
#: includes/functions-ur-notice.php:85 includes/functions-ur-notice.php:111
|
1975 |
#: includes/functions-ur-notice.php:125 includes/functions-ur-notice.php:139
|
1977 |
msgid "This function should not be called before user_registration_init."
|
1978 |
msgstr ""
|
1979 |
|
1980 |
+
#: includes/functions-ur-template.php:102
|
1981 |
msgid "required"
|
1982 |
msgstr ""
|
1983 |
|
1984 |
+
#: includes/functions-ur-template.php:176
|
1985 |
msgid "Choose an option"
|
1986 |
msgstr ""
|
1987 |
|
2252 |
msgid "Drag your first form item here."
|
2253 |
msgstr ""
|
2254 |
|
2255 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:75
|
2256 |
+
msgctxt "The action on users list page"
|
2257 |
+
msgid "Approve"
|
2258 |
+
msgstr ""
|
2259 |
+
|
2260 |
+
#: includes/admin/class-ur-admin-user-list-manager.php:76
|
2261 |
+
msgctxt "The action on users list page"
|
2262 |
+
msgid "Deny"
|
2263 |
+
msgstr ""
|
2264 |
+
|
2265 |
#: includes/admin/class-ur-registration-table-list.php:273
|
2266 |
#. translators: %s: count
|
2267 |
msgctxt "posts"
|
2270 |
msgstr[0] ""
|
2271 |
msgstr[1] ""
|
2272 |
|
2273 |
+
#: includes/class-ur-install.php:249
|
2274 |
msgctxt "Page slug"
|
2275 |
msgid "my-account"
|
2276 |
msgstr ""
|
2277 |
|
2278 |
+
#: includes/class-ur-install.php:257
|
2279 |
msgctxt "Page slug"
|
2280 |
msgid "registration"
|
2281 |
msgstr ""
|
2282 |
|
2283 |
+
#: includes/class-ur-install.php:250
|
2284 |
msgctxt "Page title"
|
2285 |
msgid "My Account"
|
2286 |
msgstr ""
|
2287 |
|
2288 |
+
#: includes/class-ur-install.php:258
|
2289 |
msgctxt "Page title"
|
2290 |
msgid "Registration"
|
2291 |
msgstr ""
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: WPEverest
|
|
3 |
Tags: user registration, registration, profile-builder, user profile, form, registration form, login form
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.8
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -37,6 +37,7 @@ Check [documentation](http://docs.wpeverest.com/docs/user-registration/)
|
|
37 |
* Profile account page
|
38 |
* Shortcode Support
|
39 |
* Recaptcha Support
|
|
|
40 |
* Incredible Support
|
41 |
* Well Documented
|
42 |
* Translation ready
|
@@ -73,6 +74,12 @@ Yes, the plugin is designed to work with any themes that have been coded followi
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
= 1.0.3 - 21/08/2017 =
|
77 |
* Form duplicate option
|
78 |
* Auto login after registration feature
|
3 |
Tags: user registration, registration, profile-builder, user profile, form, registration form, login form
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.8
|
6 |
+
Stable tag: 1.0.4
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
37 |
* Profile account page
|
38 |
* Shortcode Support
|
39 |
* Recaptcha Support
|
40 |
+
* Admin approval for users
|
41 |
* Incredible Support
|
42 |
* Well Documented
|
43 |
* Translation ready
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.0.4 - 31/08/2017 =
|
78 |
+
* Admin approval after registration feature
|
79 |
+
* Added new filter and action hooks for addon
|
80 |
+
* Fixed frontpage registration form issue
|
81 |
+
* Anyone can register issue fixed
|
82 |
+
|
83 |
= 1.0.3 - 21/08/2017 =
|
84 |
* Form duplicate option
|
85 |
* Auto login after registration feature
|
templates/form-registration.php
CHANGED
@@ -31,8 +31,7 @@ $frontend = UR_Frontend::instance();
|
|
31 |
?>
|
32 |
<div class='ur-frontend-form' id='ur-frontend-form'>
|
33 |
|
34 |
-
<form method='post' class='register' data-enable-strength-password="<?php echo $enable_strong_password ?>"
|
35 |
-
|
36 |
|
37 |
<?php
|
38 |
|
31 |
?>
|
32 |
<div class='ur-frontend-form' id='ur-frontend-form'>
|
33 |
|
34 |
+
<form method='post' class='register' data-enable-strength-password="<?php echo $enable_strong_password ?>" <?php echo apply_filters('user_registration_form_params', '') ?>>
|
|
|
35 |
|
36 |
<?php
|
37 |
|
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.0.
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Requires at least: 4.0
|
@@ -35,7 +35,7 @@ final class UserRegistration {
|
|
35 |
* Plugin version.
|
36 |
* @var string
|
37 |
*/
|
38 |
-
public $version = '1.0.
|
39 |
|
40 |
/**
|
41 |
* Session instance.
|
@@ -179,6 +179,7 @@ final class UserRegistration {
|
|
179 |
include_once( UR_ABSPATH . 'includes/functions-ur-core.php' );
|
180 |
include_once( UR_ABSPATH . 'includes/class-ur-install.php' );
|
181 |
include_once( UR_ABSPATH . 'includes/class-ur-post-types.php' ); // Registers post types
|
|
|
182 |
include_once( UR_ABSPATH . 'includes/class-ur-emailer.php' );
|
183 |
include_once( UR_ABSPATH . 'includes/class-ur-ajax.php' );
|
184 |
include_once( UR_ABSPATH . 'includes/class-ur-query.php' );
|
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.0.4
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Requires at least: 4.0
|
35 |
* Plugin version.
|
36 |
* @var string
|
37 |
*/
|
38 |
+
public $version = '1.0.4';
|
39 |
|
40 |
/**
|
41 |
* Session instance.
|
179 |
include_once( UR_ABSPATH . 'includes/functions-ur-core.php' );
|
180 |
include_once( UR_ABSPATH . 'includes/class-ur-install.php' );
|
181 |
include_once( UR_ABSPATH . 'includes/class-ur-post-types.php' ); // Registers post types
|
182 |
+
include_once( UR_ABSPATH . 'includes/class-ur-user-approval.php' ); // User Approval class
|
183 |
include_once( UR_ABSPATH . 'includes/class-ur-emailer.php' );
|
184 |
include_once( UR_ABSPATH . 'includes/class-ur-ajax.php' );
|
185 |
include_once( UR_ABSPATH . 'includes/class-ur-query.php' );
|