Version Description
- Add Validation on required fields when invisible captcha is enabled on Forms
- New Sender not Updated issue fixed
Download this release
Release Info
Developer | neeraj_slit |
Plugin | SendinBlue Subscribe Form And WP SMTP |
Version | 2.9.11 |
Comparing to | |
See all releases |
Code changes from version 2.9.10 to 2.9.11
- js/mailin-front.js +17 -5
- page/page-home.php +1 -1
- readme.txt +4 -1
- sendinblue.php +1 -1
js/mailin-front.js
CHANGED
@@ -1,10 +1,22 @@
|
|
1 |
var captchaRes = '';
|
2 |
var sibVerifyCallback = function(response){
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
};
|
9 |
|
10 |
jQuery(document).ready(function(){
|
1 |
var captchaRes = '';
|
2 |
var sibVerifyCallback = function(response){
|
3 |
+
captchaRes = response;
|
4 |
+
if(captchaRes)
|
5 |
+
{
|
6 |
+
var validationErr = 0;
|
7 |
+
jQuery.each(jQuery('.sib_signup_form').find('input[required=required]'), function(){
|
8 |
+
if(jQuery(this).val().trim() == '')
|
9 |
+
{
|
10 |
+
validationErr++;
|
11 |
+
var form = jQuery(this).closest('form');
|
12 |
+
form.find('.sib_msg_disp').html('<p class="sib-alert-message sib-alert-message-warning ">' + sibErrMsg.requiredField + '</p>').show();
|
13 |
+
return;
|
14 |
+
}
|
15 |
+
});
|
16 |
+
}
|
17 |
+
if(validationErr == 0) {
|
18 |
+
jQuery('.sib_signup_form').trigger('submit');
|
19 |
+
}
|
20 |
};
|
21 |
|
22 |
jQuery(document).ready(function(){
|
page/page-home.php
CHANGED
@@ -178,7 +178,7 @@ if ( ! class_exists( 'SIB_Page_Home' ) ) {
|
|
178 |
}
|
179 |
// set default sender info.
|
180 |
$senders = SIB_API_Manager::get_sender_lists();
|
181 |
-
if ( !
|
182 |
$home_settings['sender'] = $senders[0]['id'];
|
183 |
$home_settings['from_name'] = $senders[0]['from_name'];
|
184 |
$home_settings['from_email'] = $senders[0]['from_email'];
|
178 |
}
|
179 |
// set default sender info.
|
180 |
$senders = SIB_API_Manager::get_sender_lists();
|
181 |
+
if (SIB_Manager::is_done_validation() && is_array( $senders) && (!isset( $home_settings['sender'] ) || (count($senders) == 1 && $home_settings['from_email'] != $senders[0]['from_email']))) {
|
182 |
$home_settings['sender'] = $senders[0]['id'];
|
183 |
$home_settings['from_name'] = $senders[0]['from_name'];
|
184 |
$home_settings['from_email'] = $senders[0]['from_email'];
|
readme.txt
CHANGED
@@ -112,10 +112,13 @@ In order to create a signup form, you need to:
|
|
112 |
2. Integrate the form in a sidebar using a widget from WP panel > Appearance > Widgets. The Sendinblue widget form should appear in your widgets list, you just to have to drag and drop the widget into the sidebar of your choice.
|
113 |
|
114 |
== Changelog ==
|
|
|
|
|
|
|
|
|
115 |
= 2.9.10 =
|
116 |
* new branding changes
|
117 |
|
118 |
-
== Changelog ==
|
119 |
= 2.9.9 =
|
120 |
* campaign and list page url issue fixed
|
121 |
|
112 |
2. Integrate the form in a sidebar using a widget from WP panel > Appearance > Widgets. The Sendinblue widget form should appear in your widgets list, you just to have to drag and drop the widget into the sidebar of your choice.
|
113 |
|
114 |
== Changelog ==
|
115 |
+
= 2.9.11 =
|
116 |
+
* Add Validation on required fields when invisible captcha is enabled on Forms
|
117 |
+
* New Sender not Updated issue fixed
|
118 |
+
|
119 |
= 2.9.10 =
|
120 |
* new branding changes
|
121 |
|
|
|
122 |
= 2.9.9 =
|
123 |
* campaign and list page url issue fixed
|
124 |
|
sendinblue.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Sendinblue Subscribe Form And WP SMTP
|
4 |
* Plugin URI: https://www.sendinblue.com/?r=wporg
|
5 |
* Description: Easily send emails from your WordPress blog using Sendinblue SMTP and easily add a subscribe form to your site
|
6 |
-
* Version: 2.9.
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
3 |
* Plugin Name: Sendinblue Subscribe Form And WP SMTP
|
4 |
* Plugin URI: https://www.sendinblue.com/?r=wporg
|
5 |
* Description: Easily send emails from your WordPress blog using Sendinblue SMTP and easily add a subscribe form to your site
|
6 |
+
* Version: 2.9.11
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|