Version Description
- 04/08/2017 -
- Email notification to user and admin
- Some frontend form design fixes
- On enter save form setting added on backend
Download this release
Release Info
Developer | wpeverest |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- assets/css/user-registration-rtl.css +1 -1
- assets/css/user-registration.css +1 -1
- assets/css/user-registration.scss +21 -11
- assets/js/admin/admin.js +6 -0
- assets/js/admin/admin.min.js +1 -1
- assets/js/frontend/user-registration.js +4 -3
- assets/js/frontend/user-registration.min.js +1 -1
- includes/admin/class-ur-admin-assets.php +15 -0
- includes/admin/class-ur-admin-menus.php +0 -1
- includes/admin/class-ur-admin-settings.php +4 -1
- includes/class-ur-emailer.php +111 -0
- includes/class-ur-frontend-scripts.php +1 -1
- includes/frontend/class-ur-frontend-form-handler.php +7 -0
- includes/functions-ur-core.php +11 -6
- languages/user-registration.pot +75 -67
- readme.txt +23 -8
- templates/form-registration.php +1 -1
- user-registration.php +4 -3
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 |
+
.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:-webkit-flex;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;-webkit-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-flex;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.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 |
+
.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:-webkit-flex;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;-webkit-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-flex;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/css/user-registration.scss
CHANGED
@@ -25,7 +25,7 @@
|
|
25 |
.user-registration-message,
|
26 |
.user-registration-error,
|
27 |
.user-registration-info {
|
28 |
-
padding:
|
29 |
margin: 0 0 2em;
|
30 |
position: relative;
|
31 |
background-color: lighten($secondary, 5%);
|
@@ -35,6 +35,9 @@
|
|
35 |
@include clearfix();
|
36 |
width: auto;
|
37 |
word-wrap: break-word;
|
|
|
|
|
|
|
38 |
|
39 |
&::before {
|
40 |
font-family: 'Dashicons';
|
@@ -44,6 +47,13 @@
|
|
44 |
top: 1em;
|
45 |
left: 0.9em;
|
46 |
font-size: 18px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
.button {
|
@@ -55,6 +65,9 @@
|
|
55 |
padding-left: 0 !important; // Required for default theme compatibility
|
56 |
margin-left: 0 !important; // Required for default theme compatibility
|
57 |
}
|
|
|
|
|
|
|
58 |
}
|
59 |
|
60 |
.user-registration-message {
|
@@ -177,10 +190,8 @@
|
|
177 |
button[type="submit"] {
|
178 |
float: right;
|
179 |
padding: 10px 20px;
|
180 |
-
line-height:
|
181 |
-
|
182 |
-
color: $white;
|
183 |
-
text-align: center;
|
184 |
word-break: break-word;
|
185 |
white-space: normal;
|
186 |
border: none;
|
@@ -195,6 +206,7 @@
|
|
195 |
|
196 |
.ur-submit-button {
|
197 |
margin-right: 10px;
|
|
|
198 |
}
|
199 |
}
|
200 |
label {
|
@@ -207,13 +219,11 @@
|
|
207 |
}
|
208 |
#ur-submit-message-node{
|
209 |
|
210 |
-
margin :
|
211 |
-
|
212 |
-
&.error{
|
213 |
-
|
214 |
background: rgba(206, 0, 0, 0.1);
|
215 |
}
|
216 |
-
&.message{
|
217 |
background: rgba(143, 174, 27,0.2);
|
218 |
}
|
219 |
}
|
@@ -246,7 +256,7 @@
|
|
246 |
font-family: 'sans-serif';
|
247 |
text-decoration: none;
|
248 |
}
|
249 |
-
|
250 |
&.is-active {
|
251 |
background-color: $color_gray_eleven;
|
252 |
border-left: 1px solid $color_gray_six;
|
25 |
.user-registration-message,
|
26 |
.user-registration-error,
|
27 |
.user-registration-info {
|
28 |
+
padding: 1.5em 2em 1.5em 3.5em;
|
29 |
margin: 0 0 2em;
|
30 |
position: relative;
|
31 |
background-color: lighten($secondary, 5%);
|
35 |
@include clearfix();
|
36 |
width: auto;
|
37 |
word-wrap: break-word;
|
38 |
+
line-height: 1.5;
|
39 |
+
text-transform: none;
|
40 |
+
font-size: 14px;
|
41 |
|
42 |
&::before {
|
43 |
font-family: 'Dashicons';
|
47 |
top: 1em;
|
48 |
left: 0.9em;
|
49 |
font-size: 18px;
|
50 |
+
line-height: 1.5;
|
51 |
+
}
|
52 |
+
|
53 |
+
ul {
|
54 |
+
margin: 0 !important;
|
55 |
+
padding: 0 !important;
|
56 |
+
background-color: transparent !important;
|
57 |
}
|
58 |
|
59 |
.button {
|
65 |
padding-left: 0 !important; // Required for default theme compatibility
|
66 |
margin-left: 0 !important; // Required for default theme compatibility
|
67 |
}
|
68 |
+
.message{
|
69 |
+
margin:0;padding:0;
|
70 |
+
}
|
71 |
}
|
72 |
|
73 |
.user-registration-message {
|
190 |
button[type="submit"] {
|
191 |
float: right;
|
192 |
padding: 10px 20px;
|
193 |
+
line-height: 1em;
|
194 |
+
text-align: center;
|
|
|
|
|
195 |
word-break: break-word;
|
196 |
white-space: normal;
|
197 |
border: none;
|
206 |
|
207 |
.ur-submit-button {
|
208 |
margin-right: 10px;
|
209 |
+
margin-bottom: 0;
|
210 |
}
|
211 |
}
|
212 |
label {
|
219 |
}
|
220 |
#ur-submit-message-node{
|
221 |
|
222 |
+
margin : 20px 0 0 0!important;
|
223 |
+
&.ur-error{
|
|
|
|
|
224 |
background: rgba(206, 0, 0, 0.1);
|
225 |
}
|
226 |
+
&.ur-message.message{
|
227 |
background: rgba(143, 174, 27,0.2);
|
228 |
}
|
229 |
}
|
256 |
font-family: 'sans-serif';
|
257 |
text-decoration: none;
|
258 |
}
|
259 |
+
|
260 |
&.is-active {
|
261 |
background-color: $color_gray_eleven;
|
262 |
border-left: 1px solid $color_gray_six;
|
assets/js/admin/admin.js
CHANGED
@@ -18,6 +18,11 @@ jQuery(function ( $ ) {
|
|
18 |
$(this).closest('a, th').attr('data-tip', $(this).data('tip')).tipTip(tiptip_args).css('cursor', 'help');
|
19 |
});
|
20 |
}).trigger('init_tooltips');
|
|
|
|
|
|
|
|
|
|
|
21 |
});
|
22 |
(function ( $, user_registration_admin_data ) {
|
23 |
var i18n_admin = user_registration_admin_data.i18n_admin;
|
@@ -756,3 +761,4 @@ jQuery(function ( $ ) {
|
|
756 |
|
757 |
|
758 |
}(jQuery, window.user_registration_admin_data));
|
|
18 |
$(this).closest('a, th').attr('data-tip', $(this).data('tip')).tipTip(tiptip_args).css('cursor', 'help');
|
19 |
});
|
20 |
}).trigger('init_tooltips');
|
21 |
+
$('body').on('keypress','#ur-form-name', function (e) {
|
22 |
+
if ( 13 === e.which ) {
|
23 |
+
$('#save_form_footer').eq(0).trigger('click');
|
24 |
+
}
|
25 |
+
});
|
26 |
});
|
27 |
(function ( $, user_registration_admin_data ) {
|
28 |
var i18n_admin = user_registration_admin_data.i18n_admin;
|
761 |
|
762 |
|
763 |
}(jQuery, window.user_registration_admin_data));
|
764 |
+
|
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")}),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=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);
|
assets/js/frontend/user-registration.js
CHANGED
@@ -61,7 +61,7 @@
|
|
61 |
show_message: function ( message, type, $submit_node ) {
|
62 |
$submit_node.find('.ur-message').remove();
|
63 |
var wrapper = $('<div class="ur-message user-registration-' + type + '" id="ur-submit-message-node"/>');
|
64 |
-
wrapper.addClass(type);
|
65 |
wrapper.append(message);
|
66 |
$submit_node.append(wrapper);
|
67 |
|
@@ -142,10 +142,10 @@
|
|
142 |
|
143 |
}
|
144 |
} catch ( e ) {
|
145 |
-
message.addClass(type);
|
146 |
message.append('<li>' + e.message + '</li>');
|
147 |
}
|
148 |
-
message.addClass(type);
|
149 |
form.show_message(message, type, $this);
|
150 |
}
|
151 |
});
|
@@ -156,6 +156,7 @@
|
|
156 |
events.init();
|
157 |
});
|
158 |
};
|
|
|
159 |
$(function () {
|
160 |
$('.ur-frontend-form form.register').ur_form_submission();
|
161 |
});
|
61 |
show_message: function ( message, type, $submit_node ) {
|
62 |
$submit_node.find('.ur-message').remove();
|
63 |
var wrapper = $('<div class="ur-message user-registration-' + type + '" id="ur-submit-message-node"/>');
|
64 |
+
//wrapper.addClass(type);
|
65 |
wrapper.append(message);
|
66 |
$submit_node.append(wrapper);
|
67 |
|
142 |
|
143 |
}
|
144 |
} catch ( e ) {
|
145 |
+
//message.addClass(type);
|
146 |
message.append('<li>' + e.message + '</li>');
|
147 |
}
|
148 |
+
//message.addClass(type);
|
149 |
form.show_message(message, type, $this);
|
150 |
}
|
151 |
});
|
156 |
events.init();
|
157 |
});
|
158 |
};
|
159 |
+
|
160 |
$(function () {
|
161 |
$('.ur-frontend-form form.register').ur_form_submission();
|
162 |
});
|
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=[],
|
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())}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;"})};
|
includes/admin/class-ur-admin-assets.php
CHANGED
@@ -89,6 +89,7 @@ class UR_Admin_Assets {
|
|
89 |
'jquery',
|
90 |
'select2',
|
91 |
), UR_VERSION );
|
|
|
92 |
wp_localize_script( 'ur-enhanced-select', 'ur_enhanced_select_params', array(
|
93 |
'i18n_no_matches' => _x( 'No matches found', 'enhanced select', 'user-registration' ),
|
94 |
'i18n_ajax_error' => _x( 'Loading failed', 'enhanced select', 'user-registration' ),
|
@@ -101,6 +102,20 @@ class UR_Admin_Assets {
|
|
101 |
'i18n_load_more' => _x( 'Loading more results…', 'enhanced select', 'user-registration' ),
|
102 |
'i18n_searching' => _x( 'Searching…', 'enhanced select', 'user-registration' ),
|
103 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
// UserRegistration admin pages
|
105 |
if ( in_array( $screen_id, ur_get_screen_ids() ) ) {
|
106 |
wp_enqueue_script( 'user-registration-admin' );
|
89 |
'jquery',
|
90 |
'select2',
|
91 |
), UR_VERSION );
|
92 |
+
|
93 |
wp_localize_script( 'ur-enhanced-select', 'ur_enhanced_select_params', array(
|
94 |
'i18n_no_matches' => _x( 'No matches found', 'enhanced select', 'user-registration' ),
|
95 |
'i18n_ajax_error' => _x( 'Loading failed', 'enhanced select', 'user-registration' ),
|
102 |
'i18n_load_more' => _x( 'Loading more results…', 'enhanced select', 'user-registration' ),
|
103 |
'i18n_searching' => _x( 'Searching…', 'enhanced select', 'user-registration' ),
|
104 |
) );
|
105 |
+
if ( 'user-registration_page_user-registration-modules' === $screen_id ) {
|
106 |
+
|
107 |
+
wp_enqueue_style( 'user-registration-modules' );
|
108 |
+
|
109 |
+
wp_enqueue_script( 'user-registration-modules-script' );
|
110 |
+
|
111 |
+
|
112 |
+
wp_localize_script( 'user-registration-modules-script', 'user_registration_module_params', array(
|
113 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
114 |
+
'error_could_not_install' => __( 'Could not install.', 'user-registration' )
|
115 |
+
|
116 |
+
) );
|
117 |
+
|
118 |
+
}
|
119 |
// UserRegistration admin pages
|
120 |
if ( in_array( $screen_id, ur_get_screen_ids() ) ) {
|
121 |
wp_enqueue_script( 'user-registration-admin' );
|
includes/admin/class-ur-admin-menus.php
CHANGED
@@ -29,7 +29,6 @@ if ( ! class_exists( 'UR_Admin_Menus', false ) ) :
|
|
29 |
add_action( 'admin_menu', array( $this, 'admin_menu' ), 9 );
|
30 |
add_action( 'admin_menu', array( $this, 'settings_menu' ), 60 );
|
31 |
add_action( 'admin_menu', array( $this, 'add_registration_menu' ), 50 );
|
32 |
-
|
33 |
// Set screens
|
34 |
add_filter( 'set-screen-option', array( $this, 'set_screen_option' ), 10, 3 );
|
35 |
|
29 |
add_action( 'admin_menu', array( $this, 'admin_menu' ), 9 );
|
30 |
add_action( 'admin_menu', array( $this, 'settings_menu' ), 60 );
|
31 |
add_action( 'admin_menu', array( $this, 'add_registration_menu' ), 50 );
|
|
|
32 |
// Set screens
|
33 |
add_filter( 'set-screen-option', array( $this, 'set_screen_option' ), 10, 3 );
|
34 |
|
includes/admin/class-ur-admin-settings.php
CHANGED
@@ -50,7 +50,7 @@ class UR_Admin_Settings {
|
|
50 |
|
51 |
$settings[] = include( 'settings/class-ur-settings-general.php' );
|
52 |
|
53 |
-
|
54 |
|
55 |
self::$settings = apply_filters( 'user_registration_get_settings_pages', $settings );
|
56 |
}
|
@@ -165,6 +165,7 @@ class UR_Admin_Settings {
|
|
165 |
* Get a setting from the settings API.
|
166 |
*
|
167 |
* @param mixed $option_name
|
|
|
168 |
* @return string
|
169 |
*/
|
170 |
public static function get_option( $option_name, $default = '' ) {
|
@@ -542,6 +543,7 @@ class UR_Admin_Settings {
|
|
542 |
* settings types.
|
543 |
*
|
544 |
* @param array $value The form field value array
|
|
|
545 |
* @return array The description and tip as a 2 element array
|
546 |
*/
|
547 |
public static function get_field_description( $value ) {
|
@@ -583,6 +585,7 @@ class UR_Admin_Settings {
|
|
583 |
* Loops though the user registration options array and outputs each field.
|
584 |
*
|
585 |
* @param array $options Options array to output
|
|
|
586 |
* @return bool
|
587 |
*/
|
588 |
public static function save_fields( $options ) {
|
50 |
|
51 |
$settings[] = include( 'settings/class-ur-settings-general.php' );
|
52 |
|
53 |
+
$settings[] = include( 'settings/class-ur-settings-integration.php' );
|
54 |
|
55 |
self::$settings = apply_filters( 'user_registration_get_settings_pages', $settings );
|
56 |
}
|
165 |
* Get a setting from the settings API.
|
166 |
*
|
167 |
* @param mixed $option_name
|
168 |
+
*
|
169 |
* @return string
|
170 |
*/
|
171 |
public static function get_option( $option_name, $default = '' ) {
|
543 |
* settings types.
|
544 |
*
|
545 |
* @param array $value The form field value array
|
546 |
+
*
|
547 |
* @return array The description and tip as a 2 element array
|
548 |
*/
|
549 |
public static function get_field_description( $value ) {
|
585 |
* Loops though the user registration options array and outputs each field.
|
586 |
*
|
587 |
* @param array $options Options array to output
|
588 |
+
*
|
589 |
* @return bool
|
590 |
*/
|
591 |
public static function save_fields( $options ) {
|
includes/class-ur-emailer.php
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Emailer class
|
4 |
+
*
|
5 |
+
* @class UR_Emailer
|
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 |
+
* UR_Emailer Class.
|
18 |
+
*/
|
19 |
+
class UR_Emailer {
|
20 |
+
|
21 |
+
/** @public array Query vars to add to wp */
|
22 |
+
public $query_vars = array();
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Init function.
|
26 |
+
*/
|
27 |
+
public static function init() {
|
28 |
+
|
29 |
+
add_action( 'user_registration_after_register_user_action', array(
|
30 |
+
__CLASS__,
|
31 |
+
'ur_after_register_mail'
|
32 |
+
), 10, 3 );
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* @param $valid_form_data
|
38 |
+
* @param $form_id
|
39 |
+
* @param $user_id
|
40 |
+
*/
|
41 |
+
public static function ur_after_register_mail( $valid_form_data, $form_id, $user_id ) {
|
42 |
+
|
43 |
+
$email_object = isset( $valid_form_data['user_email'] ) ? $valid_form_data['user_email'] : array();
|
44 |
+
|
45 |
+
$user_username_object = isset( $valid_form_data['user_username'] ) ? $valid_form_data['user_username'] : array();
|
46 |
+
|
47 |
+
$email = isset( $email_object->value ) && ! empty( $email_object->value ) ? $email_object->value : '';
|
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 |
+
$subject = __( sprintf( 'Congratulations! Registration Complete on %s', $blog_info ), 'user-registration' );
|
69 |
+
|
70 |
+
$message = apply_filters( 'user_registration_user_email_message', __( sprintf(
|
71 |
+
|
72 |
+
'Hi %s,
|
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 |
+
$username, get_home_url(), $blog_info, get_home_url(), $blog_info ), 'user-registration' ) );
|
78 |
+
|
79 |
+
wp_mail( $email, $subject, $message, $headers );
|
80 |
+
|
81 |
+
}
|
82 |
+
|
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 |
+
|
90 |
+
$admin_email = get_option( 'admin_email' );
|
91 |
+
|
92 |
+
$blog_info = get_bloginfo();
|
93 |
+
|
94 |
+
$subject = __( 'A New User Registered', 'user-registration' );
|
95 |
+
|
96 |
+
$message = apply_filters( 'user_registration_admin_email_message', __( sprintf(
|
97 |
+
|
98 |
+
'Hi Admin,
|
99 |
+
<br/>
|
100 |
+
A new user (%s - %s) has successfully registered to your site <a href="%s">%s</a>.
|
101 |
+
<br/>
|
102 |
+
Please review the user role and details at \'<b>Users</b>\' menu in your WP dashboard.<br/>
|
103 |
+
Thank you!', $username, $user_email, get_home_url(), $blog_info ), 'user-registration' ) );
|
104 |
+
|
105 |
+
wp_mail( $admin_email, $subject, $message, $headers );
|
106 |
+
|
107 |
+
}
|
108 |
+
|
109 |
+
}
|
110 |
+
|
111 |
+
UR_Emailer::init();
|
includes/class-ur-frontend-scripts.php
CHANGED
@@ -284,7 +284,7 @@ class UR_Frontend_Scripts {
|
|
284 |
'form_required_fields' => ur_get_required_fields(),
|
285 |
'home_url' => home_url(),
|
286 |
'ursL10n' => array(
|
287 |
-
'user_successfully_saved' => __( 'User successfully
|
288 |
'captcha_error' => __( 'Captcha code error, please try again.', 'user-registration' ),
|
289 |
|
290 |
),
|
284 |
'form_required_fields' => ur_get_required_fields(),
|
285 |
'home_url' => home_url(),
|
286 |
'ursL10n' => array(
|
287 |
+
'user_successfully_saved' => __( 'User successfully registered.', 'user-registration' ),
|
288 |
'captcha_error' => __( 'Captcha code error, please try again.', 'user-registration' ),
|
289 |
|
290 |
),
|
includes/frontend/class-ur-frontend-form-handler.php
CHANGED
@@ -68,10 +68,17 @@ class UR_Frontend_Form_Handler {
|
|
68 |
'role' => $user_role,
|
69 |
);
|
70 |
|
|
|
|
|
|
|
|
|
71 |
$user_id = wp_insert_user( $userdata );
|
72 |
|
73 |
self::ur_update_user_meta( $user_id, self::$valid_form_data, $form_id );
|
74 |
|
|
|
|
|
|
|
75 |
if ( $user_id > 0 ) {
|
76 |
|
77 |
wp_send_json_success( array(
|
68 |
'role' => $user_role,
|
69 |
);
|
70 |
|
71 |
+
self::$valid_form_data = apply_filters( 'user_registration_before_register_user_filter' , self::$valid_form_data, $form_id );
|
72 |
+
|
73 |
+
do_action( 'user_registration_before_register_user_action' , self::$valid_form_data, $form_id );
|
74 |
+
|
75 |
$user_id = wp_insert_user( $userdata );
|
76 |
|
77 |
self::ur_update_user_meta( $user_id, self::$valid_form_data, $form_id );
|
78 |
|
79 |
+
do_action( 'user_registration_after_register_user_action' , self::$valid_form_data, $form_id, $user_id );
|
80 |
+
|
81 |
+
|
82 |
if ( $user_id > 0 ) {
|
83 |
|
84 |
wp_send_json_success( array(
|
includes/functions-ur-core.php
CHANGED
@@ -542,8 +542,10 @@ function ur_admin_form_settings_fields( $form_id ) {
|
|
542 |
|
543 |
$all_roles = ur_get_default_admin_roles();
|
544 |
|
545 |
-
$arguments =
|
546 |
-
|
|
|
|
|
547 |
array(
|
548 |
'type' => 'select',
|
549 |
'label' => __( 'Default user role', 'user-registration' ),
|
@@ -601,10 +603,14 @@ function ur_admin_form_settings_fields( $form_id ) {
|
|
601 |
),
|
602 |
'custom_attributes' => array(),
|
603 |
'default' => ur_get_single_post_meta( $form_id, 'user_registration_form_setting_enable_recaptcha_support', 'no' ),
|
604 |
-
)
|
605 |
-
|
|
|
|
|
|
|
606 |
|
607 |
-
|
|
|
608 |
|
609 |
}
|
610 |
|
@@ -669,4 +675,3 @@ function ur_get_form_setting_by_key( $form_id, $meta_key, $default = '' ) {
|
|
669 |
|
670 |
return $value;
|
671 |
}
|
672 |
-
|
542 |
|
543 |
$all_roles = ur_get_default_admin_roles();
|
544 |
|
545 |
+
$arguments = array(
|
546 |
+
'form_id' => $form_id,
|
547 |
+
|
548 |
+
'setting_data' => array(
|
549 |
array(
|
550 |
'type' => 'select',
|
551 |
'label' => __( 'Default user role', 'user-registration' ),
|
603 |
),
|
604 |
'custom_attributes' => array(),
|
605 |
'default' => ur_get_single_post_meta( $form_id, 'user_registration_form_setting_enable_recaptcha_support', 'no' ),
|
606 |
+
)
|
607 |
+
|
608 |
+
)
|
609 |
+
);
|
610 |
+
$arguments = apply_filters( 'user_registration_get_form_settings', $arguments );
|
611 |
|
612 |
+
|
613 |
+
return $arguments['setting_data'];
|
614 |
|
615 |
}
|
616 |
|
675 |
|
676 |
return $value;
|
677 |
}
|
|
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-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -21,26 +21,30 @@ msgstr ""
|
|
21 |
msgid "Advance Settings"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: includes/admin/class-ur-admin-assets.php:
|
|
|
|
|
|
|
|
|
25 |
msgid "Clone"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: includes/admin/class-ur-admin-assets.php:
|
29 |
#: includes/admin/class-ur-registration-table-list.php:118
|
30 |
msgid "Trash"
|
31 |
msgstr ""
|
32 |
|
33 |
-
#: includes/admin/class-ur-admin-menus.php:
|
34 |
msgid "You do not have permissions to edit forms!"
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: includes/admin/class-ur-admin-menus.php:
|
38 |
#: includes/admin/class-ur-admin-notices.php:110
|
39 |
#: includes/admin/class-ur-admin-settings.php:68
|
40 |
msgid "Action failed. Please refresh the page and retry."
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: includes/admin/class-ur-admin-menus.php:
|
44 |
msgid "You do not have permissions to delete forms!"
|
45 |
msgstr ""
|
46 |
|
@@ -48,75 +52,75 @@ msgstr ""
|
|
48 |
msgid "User Registration"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: includes/admin/class-ur-admin-menus.php:
|
52 |
msgid "User Registration settings"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: includes/admin/class-ur-admin-menus.php:
|
56 |
#: includes/class-ur-install.php:438
|
57 |
msgid "Settings"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: includes/admin/class-ur-admin-menus.php:
|
61 |
#: includes/admin/class-ur-registration-table-list.php:51
|
62 |
msgid "Title"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: includes/admin/class-ur-admin-menus.php:
|
66 |
#: includes/admin/class-ur-registration-table-list.php:52
|
67 |
msgid "Shortcode"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: includes/admin/class-ur-admin-menus.php:
|
71 |
msgid "Entry Link"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: includes/admin/class-ur-admin-menus.php:
|
75 |
#: includes/admin/class-ur-registration-table-list.php:54
|
76 |
msgid "Author"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: includes/admin/class-ur-admin-menus.php:
|
80 |
#: includes/admin/class-ur-registration-table-list.php:55
|
81 |
msgid "Date"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: includes/admin/class-ur-admin-menus.php:
|
85 |
-
#: includes/admin/class-ur-admin-menus.php:
|
86 |
msgid "Add New"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: includes/admin/class-ur-admin-menus.php:
|
90 |
msgid "Search Registration"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: includes/admin/class-ur-admin-menus.php:
|
94 |
msgid "Create Form"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: includes/admin/class-ur-admin-menus.php:
|
98 |
msgid "Update form"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: includes/admin/class-ur-admin-menus.php:
|
102 |
msgid "User Registration endpoints"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: includes/admin/class-ur-admin-menus.php:
|
106 |
#: includes/admin/settings/class-ur-settings-general.php:145
|
107 |
#: includes/class-ur-query.php:77
|
108 |
msgid "Lost password"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: includes/admin/class-ur-admin-menus.php:
|
112 |
msgid "Select all"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: includes/admin/class-ur-admin-menus.php:
|
116 |
msgid "Add to menu"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: includes/admin/class-ur-admin-menus.php:
|
120 |
msgid "Empty form data"
|
121 |
msgstr ""
|
122 |
|
@@ -143,7 +147,7 @@ msgstr ""
|
|
143 |
msgid "The changes you made will be lost if you navigate away from this page."
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: includes/admin/class-ur-admin-settings.php:
|
147 |
msgid "Select a page…"
|
148 |
msgstr ""
|
149 |
|
@@ -229,7 +233,7 @@ msgid "General Options"
|
|
229 |
msgstr ""
|
230 |
|
231 |
#: includes/admin/settings/class-ur-settings-general.php:58
|
232 |
-
#: includes/functions-ur-core.php:
|
233 |
msgid "Default user role"
|
234 |
msgstr ""
|
235 |
|
@@ -256,7 +260,7 @@ msgid "Page contents: [%s]"
|
|
256 |
msgstr ""
|
257 |
|
258 |
#: includes/admin/settings/class-ur-settings-general.php:94
|
259 |
-
#: includes/functions-ur-core.php:
|
260 |
msgid "Enable strong password"
|
261 |
msgstr ""
|
262 |
|
@@ -265,7 +269,7 @@ msgid "Tick here if you want to use strong password on user registration form."
|
|
265 |
msgstr ""
|
266 |
|
267 |
#: includes/admin/settings/class-ur-settings-general.php:102
|
268 |
-
#: includes/functions-ur-core.php:
|
269 |
msgid "Form submit button label"
|
270 |
msgstr ""
|
271 |
|
@@ -434,6 +438,10 @@ msgstr ""
|
|
434 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
435 |
msgstr ""
|
436 |
|
|
|
|
|
|
|
|
|
437 |
#: includes/class-ur-form-handler.php:95 includes/class-ur-form-handler.php:216
|
438 |
msgid "%s is a required field."
|
439 |
msgstr ""
|
@@ -516,7 +524,7 @@ msgid "Passwords do not match."
|
|
516 |
msgstr ""
|
517 |
|
518 |
#: includes/class-ur-frontend-scripts.php:287
|
519 |
-
msgid "User successfully
|
520 |
msgstr ""
|
521 |
|
522 |
#: includes/class-ur-frontend-scripts.php:288
|
@@ -1788,23 +1796,23 @@ msgstr ""
|
|
1788 |
msgid "Default Value"
|
1789 |
msgstr ""
|
1790 |
|
1791 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
1792 |
msgid "Someting error! please try again"
|
1793 |
msgstr ""
|
1794 |
|
1795 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
1796 |
msgid "Duplicate field key in form, please contact site administrator."
|
1797 |
msgstr ""
|
1798 |
|
1799 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
1800 |
msgid "Required form field not found."
|
1801 |
msgstr ""
|
1802 |
|
1803 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
1804 |
msgid "Empty confirm password"
|
1805 |
msgstr ""
|
1806 |
|
1807 |
-
#: includes/frontend/class-ur-frontend-form-handler.php:
|
1808 |
msgid "Password and confirm password not matched"
|
1809 |
msgstr ""
|
1810 |
|
@@ -1832,18 +1840,18 @@ msgstr ""
|
|
1832 |
msgid "Required"
|
1833 |
msgstr ""
|
1834 |
|
1835 |
-
#: includes/functions-ur-core.php:471 includes/functions-ur-core.php:
|
1836 |
-
#: includes/functions-ur-core.php:
|
1837 |
msgid "No"
|
1838 |
msgstr ""
|
1839 |
|
1840 |
-
#: includes/functions-ur-core.php:472 includes/functions-ur-core.php:
|
1841 |
-
#: includes/functions-ur-core.php:
|
1842 |
msgid "Yes"
|
1843 |
msgstr ""
|
1844 |
|
1845 |
-
#: includes/functions-ur-core.php:
|
1846 |
-
msgid "Enable %1$s reCaptcha %
|
1847 |
msgstr ""
|
1848 |
|
1849 |
#: includes/functions-ur-notice.php:29 includes/functions-ur-notice.php:64
|
@@ -1985,7 +1993,7 @@ msgid "https://wpeverest.com/plugins/user-registration"
|
|
1985 |
msgstr ""
|
1986 |
|
1987 |
#. Description of the plugin/theme
|
1988 |
-
msgid "
|
1989 |
msgstr ""
|
1990 |
|
1991 |
#. Author of the plugin/theme
|
@@ -1996,134 +2004,134 @@ msgstr ""
|
|
1996 |
msgid "https://wpeverest.com"
|
1997 |
msgstr ""
|
1998 |
|
1999 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2000 |
msgctxt "enhanced select"
|
2001 |
msgid "No matches found"
|
2002 |
msgstr ""
|
2003 |
|
2004 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2005 |
msgctxt "enhanced select"
|
2006 |
msgid "Loading failed"
|
2007 |
msgstr ""
|
2008 |
|
2009 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2010 |
msgctxt "enhanced select"
|
2011 |
msgid "Please enter 1 or more characters"
|
2012 |
msgstr ""
|
2013 |
|
2014 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2015 |
msgctxt "enhanced select"
|
2016 |
msgid "Please enter %qty% or more characters"
|
2017 |
msgstr ""
|
2018 |
|
2019 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2020 |
msgctxt "enhanced select"
|
2021 |
msgid "Please delete 1 character"
|
2022 |
msgstr ""
|
2023 |
|
2024 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2025 |
msgctxt "enhanced select"
|
2026 |
msgid "Please delete %qty% characters"
|
2027 |
msgstr ""
|
2028 |
|
2029 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2030 |
msgctxt "enhanced select"
|
2031 |
msgid "You can only select 1 item"
|
2032 |
msgstr ""
|
2033 |
|
2034 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2035 |
msgctxt "enhanced select"
|
2036 |
msgid "You can only select %qty% items"
|
2037 |
msgstr ""
|
2038 |
|
2039 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2040 |
msgctxt "enhanced select"
|
2041 |
msgid "Loading more results…"
|
2042 |
msgstr ""
|
2043 |
|
2044 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2045 |
msgctxt "enhanced select"
|
2046 |
msgid "Searching…"
|
2047 |
msgstr ""
|
2048 |
|
2049 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2050 |
msgctxt "user registration admin"
|
2051 |
msgid "Are you sure want to delete ?"
|
2052 |
msgstr ""
|
2053 |
|
2054 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2055 |
msgctxt "user registration admin"
|
2056 |
msgid "At least one row need to choose."
|
2057 |
msgstr ""
|
2058 |
|
2059 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2060 |
msgctxt "user registration admin"
|
2061 |
msgid "User required field is already there, could not dragged."
|
2062 |
msgstr ""
|
2063 |
|
2064 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2065 |
msgctxt "user registration admin"
|
2066 |
msgid "User required field is already there, could not clone."
|
2067 |
msgstr ""
|
2068 |
|
2069 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2070 |
msgctxt "user registration admin"
|
2071 |
msgid "Form successfully saved."
|
2072 |
msgstr ""
|
2073 |
|
2074 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2075 |
msgctxt "user registration admin"
|
2076 |
msgid "Success"
|
2077 |
msgstr ""
|
2078 |
|
2079 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2080 |
msgctxt "user registration admin"
|
2081 |
msgid "Error"
|
2082 |
msgstr ""
|
2083 |
|
2084 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2085 |
msgctxt "user registration admin"
|
2086 |
msgid "At least one field need to select."
|
2087 |
msgstr ""
|
2088 |
|
2089 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2090 |
msgctxt "user registration admin"
|
2091 |
msgid "Empty form name."
|
2092 |
msgstr ""
|
2093 |
|
2094 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2095 |
msgctxt "user registration admin"
|
2096 |
msgid "Previous save action on going."
|
2097 |
msgstr ""
|
2098 |
|
2099 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2100 |
msgctxt "user registration admin"
|
2101 |
msgid "Duplicate field name."
|
2102 |
msgstr ""
|
2103 |
|
2104 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2105 |
msgctxt "user registration admin"
|
2106 |
msgid "Empty field label."
|
2107 |
msgstr ""
|
2108 |
|
2109 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2110 |
msgctxt "user registration admin"
|
2111 |
msgid ""
|
2112 |
"Invalid field name. Please do not use space, empty or special character, "
|
2113 |
"you can use underscore."
|
2114 |
msgstr ""
|
2115 |
|
2116 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2117 |
msgctxt "user registration admin"
|
2118 |
msgid "Multiple field key "
|
2119 |
msgstr ""
|
2120 |
|
2121 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2122 |
msgctxt "user registration admin"
|
2123 |
msgid "At least one field is required, field "
|
2124 |
msgstr ""
|
2125 |
|
2126 |
-
#: includes/admin/class-ur-admin-assets.php:
|
2127 |
msgctxt "user registration admin"
|
2128 |
msgid "Drag your first form item here."
|
2129 |
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.2\n"
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
+
"POT-Creation-Date: 2017-08-04 11:47:48+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
21 |
msgid "Advance Settings"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: includes/admin/class-ur-admin-assets.php:114
|
25 |
+
msgid "Could not install."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: includes/admin/class-ur-admin-assets.php:168
|
29 |
msgid "Clone"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: includes/admin/class-ur-admin-assets.php:168
|
33 |
#: includes/admin/class-ur-registration-table-list.php:118
|
34 |
msgid "Trash"
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: includes/admin/class-ur-admin-menus.php:103
|
38 |
msgid "You do not have permissions to edit forms!"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: includes/admin/class-ur-admin-menus.php:128
|
42 |
#: includes/admin/class-ur-admin-notices.php:110
|
43 |
#: includes/admin/class-ur-admin-settings.php:68
|
44 |
msgid "Action failed. Please refresh the page and retry."
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: includes/admin/class-ur-admin-menus.php:132
|
48 |
msgid "You do not have permissions to delete forms!"
|
49 |
msgstr ""
|
50 |
|
52 |
msgid "User Registration"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: includes/admin/class-ur-admin-menus.php:181
|
56 |
msgid "User Registration settings"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: includes/admin/class-ur-admin-menus.php:181
|
60 |
#: includes/class-ur-install.php:438
|
61 |
msgid "Settings"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: includes/admin/class-ur-admin-menus.php:196
|
65 |
#: includes/admin/class-ur-registration-table-list.php:51
|
66 |
msgid "Title"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: includes/admin/class-ur-admin-menus.php:197
|
70 |
#: includes/admin/class-ur-registration-table-list.php:52
|
71 |
msgid "Shortcode"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: includes/admin/class-ur-admin-menus.php:198
|
75 |
msgid "Entry Link"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: includes/admin/class-ur-admin-menus.php:199
|
79 |
#: includes/admin/class-ur-registration-table-list.php:54
|
80 |
msgid "Author"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: includes/admin/class-ur-admin-menus.php:200
|
84 |
#: includes/admin/class-ur-registration-table-list.php:55
|
85 |
msgid "Date"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: includes/admin/class-ur-admin-menus.php:209
|
89 |
+
#: includes/admin/class-ur-admin-menus.php:237
|
90 |
msgid "Add New"
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: includes/admin/class-ur-admin-menus.php:242
|
94 |
msgid "Search Registration"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: includes/admin/class-ur-admin-menus.php:264
|
98 |
msgid "Create Form"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: includes/admin/class-ur-admin-menus.php:267
|
102 |
msgid "Update form"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: includes/admin/class-ur-admin-menus.php:288
|
106 |
msgid "User Registration endpoints"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: includes/admin/class-ur-admin-menus.php:307
|
110 |
#: includes/admin/settings/class-ur-settings-general.php:145
|
111 |
#: includes/class-ur-query.php:77
|
112 |
msgid "Lost password"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: includes/admin/class-ur-admin-menus.php:345
|
116 |
msgid "Select all"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: includes/admin/class-ur-admin-menus.php:349
|
120 |
msgid "Add to menu"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: includes/admin/class-ur-admin-menus.php:446
|
124 |
msgid "Empty form data"
|
125 |
msgstr ""
|
126 |
|
147 |
msgid "The changes you made will be lost if you navigate away from this page."
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: includes/admin/class-ur-admin-settings.php:527
|
151 |
msgid "Select a page…"
|
152 |
msgstr ""
|
153 |
|
233 |
msgstr ""
|
234 |
|
235 |
#: includes/admin/settings/class-ur-settings-general.php:58
|
236 |
+
#: includes/functions-ur-core.php:551
|
237 |
msgid "Default user role"
|
238 |
msgstr ""
|
239 |
|
260 |
msgstr ""
|
261 |
|
262 |
#: includes/admin/settings/class-ur-settings-general.php:94
|
263 |
+
#: includes/functions-ur-core.php:565
|
264 |
msgid "Enable strong password"
|
265 |
msgstr ""
|
266 |
|
269 |
msgstr ""
|
270 |
|
271 |
#: includes/admin/settings/class-ur-settings-general.php:102
|
272 |
+
#: includes/functions-ur-core.php:580
|
273 |
msgid "Form submit button label"
|
274 |
msgstr ""
|
275 |
|
438 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: includes/class-ur-emailer.php:94
|
442 |
+
msgid "A New User Registered"
|
443 |
+
msgstr ""
|
444 |
+
|
445 |
#: includes/class-ur-form-handler.php:95 includes/class-ur-form-handler.php:216
|
446 |
msgid "%s is a required field."
|
447 |
msgstr ""
|
524 |
msgstr ""
|
525 |
|
526 |
#: includes/class-ur-frontend-scripts.php:287
|
527 |
+
msgid "User successfully registered."
|
528 |
msgstr ""
|
529 |
|
530 |
#: includes/class-ur-frontend-scripts.php:288
|
1796 |
msgid "Default Value"
|
1797 |
msgstr ""
|
1798 |
|
1799 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:91
|
1800 |
msgid "Someting error! please try again"
|
1801 |
msgstr ""
|
1802 |
|
1803 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:154
|
1804 |
msgid "Duplicate field key in form, please contact site administrator."
|
1805 |
msgstr ""
|
1806 |
|
1807 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:161
|
1808 |
msgid "Required form field not found."
|
1809 |
msgstr ""
|
1810 |
|
1811 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:291
|
1812 |
msgid "Empty confirm password"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
+
#: includes/frontend/class-ur-frontend-form-handler.php:295
|
1816 |
msgid "Password and confirm password not matched"
|
1817 |
msgstr ""
|
1818 |
|
1840 |
msgid "Required"
|
1841 |
msgstr ""
|
1842 |
|
1843 |
+
#: includes/functions-ur-core.php:471 includes/functions-ur-core.php:573
|
1844 |
+
#: includes/functions-ur-core.php:602
|
1845 |
msgid "No"
|
1846 |
msgstr ""
|
1847 |
|
1848 |
+
#: includes/functions-ur-core.php:472 includes/functions-ur-core.php:572
|
1849 |
+
#: includes/functions-ur-core.php:601
|
1850 |
msgid "Yes"
|
1851 |
msgstr ""
|
1852 |
|
1853 |
+
#: includes/functions-ur-core.php:593
|
1854 |
+
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
1855 |
msgstr ""
|
1856 |
|
1857 |
#: includes/functions-ur-notice.php:29 includes/functions-ur-notice.php:64
|
1993 |
msgstr ""
|
1994 |
|
1995 |
#. Description of the plugin/theme
|
1996 |
+
msgid "Drag and Drop user registration and login form builder."
|
1997 |
msgstr ""
|
1998 |
|
1999 |
#. Author of the plugin/theme
|
2004 |
msgid "https://wpeverest.com"
|
2005 |
msgstr ""
|
2006 |
|
2007 |
+
#: includes/admin/class-ur-admin-assets.php:94
|
2008 |
msgctxt "enhanced select"
|
2009 |
msgid "No matches found"
|
2010 |
msgstr ""
|
2011 |
|
2012 |
+
#: includes/admin/class-ur-admin-assets.php:95
|
2013 |
msgctxt "enhanced select"
|
2014 |
msgid "Loading failed"
|
2015 |
msgstr ""
|
2016 |
|
2017 |
+
#: includes/admin/class-ur-admin-assets.php:96
|
2018 |
msgctxt "enhanced select"
|
2019 |
msgid "Please enter 1 or more characters"
|
2020 |
msgstr ""
|
2021 |
|
2022 |
+
#: includes/admin/class-ur-admin-assets.php:97
|
2023 |
msgctxt "enhanced select"
|
2024 |
msgid "Please enter %qty% or more characters"
|
2025 |
msgstr ""
|
2026 |
|
2027 |
+
#: includes/admin/class-ur-admin-assets.php:98
|
2028 |
msgctxt "enhanced select"
|
2029 |
msgid "Please delete 1 character"
|
2030 |
msgstr ""
|
2031 |
|
2032 |
+
#: includes/admin/class-ur-admin-assets.php:99
|
2033 |
msgctxt "enhanced select"
|
2034 |
msgid "Please delete %qty% characters"
|
2035 |
msgstr ""
|
2036 |
|
2037 |
+
#: includes/admin/class-ur-admin-assets.php:100
|
2038 |
msgctxt "enhanced select"
|
2039 |
msgid "You can only select 1 item"
|
2040 |
msgstr ""
|
2041 |
|
2042 |
+
#: includes/admin/class-ur-admin-assets.php:101
|
2043 |
msgctxt "enhanced select"
|
2044 |
msgid "You can only select %qty% items"
|
2045 |
msgstr ""
|
2046 |
|
2047 |
+
#: includes/admin/class-ur-admin-assets.php:102
|
2048 |
msgctxt "enhanced select"
|
2049 |
msgid "Loading more results…"
|
2050 |
msgstr ""
|
2051 |
|
2052 |
+
#: includes/admin/class-ur-admin-assets.php:103
|
2053 |
msgctxt "enhanced select"
|
2054 |
msgid "Searching…"
|
2055 |
msgstr ""
|
2056 |
|
2057 |
+
#: includes/admin/class-ur-admin-assets.php:189
|
2058 |
msgctxt "user registration admin"
|
2059 |
msgid "Are you sure want to delete ?"
|
2060 |
msgstr ""
|
2061 |
|
2062 |
+
#: includes/admin/class-ur-admin-assets.php:190
|
2063 |
msgctxt "user registration admin"
|
2064 |
msgid "At least one row need to choose."
|
2065 |
msgstr ""
|
2066 |
|
2067 |
+
#: includes/admin/class-ur-admin-assets.php:191
|
2068 |
msgctxt "user registration admin"
|
2069 |
msgid "User required field is already there, could not dragged."
|
2070 |
msgstr ""
|
2071 |
|
2072 |
+
#: includes/admin/class-ur-admin-assets.php:192
|
2073 |
msgctxt "user registration admin"
|
2074 |
msgid "User required field is already there, could not clone."
|
2075 |
msgstr ""
|
2076 |
|
2077 |
+
#: includes/admin/class-ur-admin-assets.php:193
|
2078 |
msgctxt "user registration admin"
|
2079 |
msgid "Form successfully saved."
|
2080 |
msgstr ""
|
2081 |
|
2082 |
+
#: includes/admin/class-ur-admin-assets.php:194
|
2083 |
msgctxt "user registration admin"
|
2084 |
msgid "Success"
|
2085 |
msgstr ""
|
2086 |
|
2087 |
+
#: includes/admin/class-ur-admin-assets.php:195
|
2088 |
msgctxt "user registration admin"
|
2089 |
msgid "Error"
|
2090 |
msgstr ""
|
2091 |
|
2092 |
+
#: includes/admin/class-ur-admin-assets.php:196
|
2093 |
msgctxt "user registration admin"
|
2094 |
msgid "At least one field need to select."
|
2095 |
msgstr ""
|
2096 |
|
2097 |
+
#: includes/admin/class-ur-admin-assets.php:197
|
2098 |
msgctxt "user registration admin"
|
2099 |
msgid "Empty form name."
|
2100 |
msgstr ""
|
2101 |
|
2102 |
+
#: includes/admin/class-ur-admin-assets.php:198
|
2103 |
msgctxt "user registration admin"
|
2104 |
msgid "Previous save action on going."
|
2105 |
msgstr ""
|
2106 |
|
2107 |
+
#: includes/admin/class-ur-admin-assets.php:199
|
2108 |
msgctxt "user registration admin"
|
2109 |
msgid "Duplicate field name."
|
2110 |
msgstr ""
|
2111 |
|
2112 |
+
#: includes/admin/class-ur-admin-assets.php:200
|
2113 |
msgctxt "user registration admin"
|
2114 |
msgid "Empty field label."
|
2115 |
msgstr ""
|
2116 |
|
2117 |
+
#: includes/admin/class-ur-admin-assets.php:201
|
2118 |
msgctxt "user registration admin"
|
2119 |
msgid ""
|
2120 |
"Invalid field name. Please do not use space, empty or special character, "
|
2121 |
"you can use underscore."
|
2122 |
msgstr ""
|
2123 |
|
2124 |
+
#: includes/admin/class-ur-admin-assets.php:202
|
2125 |
msgctxt "user registration admin"
|
2126 |
msgid "Multiple field key "
|
2127 |
msgstr ""
|
2128 |
|
2129 |
+
#: includes/admin/class-ur-admin-assets.php:203
|
2130 |
msgctxt "user registration admin"
|
2131 |
msgid "At least one field is required, field "
|
2132 |
msgstr ""
|
2133 |
|
2134 |
+
#: includes/admin/class-ur-admin-assets.php:204
|
2135 |
msgctxt "user registration admin"
|
2136 |
msgid "Drag your first form item here."
|
2137 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,23 +1,26 @@
|
|
1 |
=== User Registration ===
|
2 |
Contributors: WPEverest
|
3 |
-
Tags: user registration, registration, profile-builder, user
|
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 |
|
10 |
-
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
User Registration plugin provides you with an easy way to create registration and login
|
15 |
|
16 |
-
|
17 |
|
18 |
-
View features https://wpeverest.com/wordpress-plugins/user-registration/
|
19 |
|
20 |
-
|
|
|
|
|
|
|
|
|
21 |
|
22 |
= User Registration Plugin in action: =
|
23 |
|
@@ -30,7 +33,9 @@ Check the docs at http://docs.wpeverest.com/docs/user-registration/
|
|
30 |
* Unlimited Registration Forms
|
31 |
* Multiple Column Design
|
32 |
* Clean User Dashboard
|
|
|
33 |
* Shortcode Support
|
|
|
34 |
* Incredible Support
|
35 |
* Well Documented
|
36 |
* Translation ready
|
@@ -47,6 +52,10 @@ Check the docs at http://docs.wpeverest.com/docs/user-registration/
|
|
47 |
|
48 |
* This plugin is released under a GPL license.
|
49 |
|
|
|
|
|
|
|
|
|
50 |
== Screenshots ==
|
51 |
|
52 |
1. Mulitple Registration Forms
|
@@ -63,10 +72,16 @@ Check the docs at http://docs.wpeverest.com/docs/user-registration/
|
|
63 |
|
64 |
== Changelog ==
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
= 1.0.1 - 13/07/2017 -
|
67 |
* Tweak - Add RTL support for activation notice.
|
68 |
* Formwise setting functionality
|
69 |
-
* Google
|
70 |
|
71 |
= 1.0.0 - 06/07/2017 =
|
72 |
* Initial Public Release
|
1 |
=== User Registration ===
|
2 |
Contributors: WPEverest
|
3 |
+
Tags: user registration, registration, profile-builder, user profile, form, registration form, login form
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.8
|
6 |
+
Stable tag: 1.0.2
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
10 |
+
Drag and Drop user registration and login form builder
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
User Registration plugin provides you with an easy way to create frontend user registration and login forms. Drag and Drop user fields makes it extremely easy and ordering the fields are just a click and drag away.
|
15 |
|
16 |
+
Supports frontend profile account page for profile edit, password change, Log out and more.
|
17 |
|
|
|
18 |
|
19 |
+
Get [free support](https://wpeverest.com/support-forum/)
|
20 |
+
|
21 |
+
View [All features](https://wpeverest.com/wordpress-plugins/user-registration/)
|
22 |
+
|
23 |
+
Check [documentation](http://docs.wpeverest.com/docs/user-registration/)
|
24 |
|
25 |
= User Registration Plugin in action: =
|
26 |
|
33 |
* Unlimited Registration Forms
|
34 |
* Multiple Column Design
|
35 |
* Clean User Dashboard
|
36 |
+
* Profile account page
|
37 |
* Shortcode Support
|
38 |
+
* Recaptcha Support
|
39 |
* Incredible Support
|
40 |
* Well Documented
|
41 |
* Translation ready
|
52 |
|
53 |
* This plugin is released under a GPL license.
|
54 |
|
55 |
+
= Does the plugin work with any WordPress themes?
|
56 |
+
|
57 |
+
Yes, the plugin is designed to work with any themes that have been coded following WordPress guidelines.
|
58 |
+
|
59 |
== Screenshots ==
|
60 |
|
61 |
1. Mulitple Registration Forms
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 1.0.2 - 04/08/2017 -
|
76 |
+
* Email notification to user and admin
|
77 |
+
* Some frontend form design fixes
|
78 |
+
* On enter save form setting added on backend
|
79 |
+
|
80 |
+
|
81 |
= 1.0.1 - 13/07/2017 -
|
82 |
* Tweak - Add RTL support for activation notice.
|
83 |
* Formwise setting functionality
|
84 |
+
* Google Recaptcha on every form
|
85 |
|
86 |
= 1.0.0 - 06/07/2017 =
|
87 |
* Initial Public Release
|
templates/form-registration.php
CHANGED
@@ -89,7 +89,7 @@ $frontend = UR_Frontend::instance();
|
|
89 |
|
90 |
</div>
|
91 |
<button type="submit"
|
92 |
-
class="ur-submit-button">
|
93 |
<span></span><?php echo __( ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_form_submit_label' ), 'user-registration' ); ?>
|
94 |
</button>
|
95 |
|
89 |
|
90 |
</div>
|
91 |
<button type="submit"
|
92 |
+
class="btn button ur-submit-button">
|
93 |
<span></span><?php echo __( ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_form_submit_label' ), 'user-registration' ); ?>
|
94 |
</button>
|
95 |
|
user-registration.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/**
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
-
* Description:
|
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.
|
@@ -182,6 +182,7 @@ final class UserRegistration {
|
|
182 |
include_once( UR_ABSPATH . 'includes/class-ur-install.php' );
|
183 |
include_once( UR_ABSPATH . 'includes/class-ur-post-types.php' ); // Registers post types
|
184 |
include_once( UR_ABSPATH . 'includes/class-ur-install.php' );
|
|
|
185 |
include_once( UR_ABSPATH . 'includes/class-ur-ajax.php' );
|
186 |
include_once( UR_ABSPATH . 'includes/class-ur-query.php' );
|
187 |
|
2 |
/**
|
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.2
|
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.2';
|
39 |
|
40 |
/**
|
41 |
* Session instance.
|
182 |
include_once( UR_ABSPATH . 'includes/class-ur-install.php' );
|
183 |
include_once( UR_ABSPATH . 'includes/class-ur-post-types.php' ); // Registers post types
|
184 |
include_once( UR_ABSPATH . 'includes/class-ur-install.php' );
|
185 |
+
include_once( UR_ABSPATH . 'includes/class-ur-emailer.php' );
|
186 |
include_once( UR_ABSPATH . 'includes/class-ur-ajax.php' );
|
187 |
include_once( UR_ABSPATH . 'includes/class-ur-query.php' );
|
188 |
|