SendinBlue Subscribe Form And WP SMTP - Version 2.9.13

Version Description

  • Added feature that allows to map WP boolean attributes to Sendinblue contacts
Download this release

Release Info

Developer neeraj_slit
Plugin Icon 128x128 SendinBlue Subscribe Form And WP SMTP
Version 2.9.13
Comparing to
See all releases

Code changes from version 2.9.12 to 2.9.13

Files changed (3) hide show
  1. js/admin.js +13 -0
  2. readme.txt +3 -0
  3. sendinblue.php +1 -1
js/admin.js CHANGED
@@ -78,6 +78,9 @@ $jQ(document).ready(function(){
78
  $jQ('#sib_field_initial_area').hide();
79
  }
80
  break;
 
 
 
81
  case 'category':
82
  $jQ('.sib-attr-category').show();
83
  break;
@@ -133,6 +136,16 @@ $jQ(document).ready(function(){
133
  case 'date':
134
  field_html += ' <input type="text" class="sib-' + attr_name + '-area sib-date" name="' + attr_name + '" placeholder="' + dateformat + '" data-format="' + dateformat + '">';
135
  break;
 
 
 
 
 
 
 
 
 
 
136
  case 'text':
137
  if ( attr_name == "SMS" ) {
138
  field_html += '<div class="sib-sms-field"><div class="sib-country-block">' +
78
  $jQ('#sib_field_initial_area').hide();
79
  }
80
  break;
81
+ case 'boolean':
82
+ $jQ('.sib-attr-normal').show();
83
+ break;
84
  case 'category':
85
  $jQ('.sib-attr-category').show();
86
  break;
136
  case 'date':
137
  field_html += ' <input type="text" class="sib-' + attr_name + '-area sib-date" name="' + attr_name + '" placeholder="' + dateformat + '" data-format="' + dateformat + '">';
138
  break;
139
+ case 'boolean':
140
+ field_html += ' <input type="hidden" name="' + attr_name + '" value="0"><input type="checkbox" value="1" class="sib-' + attr_name + '-area" name="' + attr_name + '" ';
141
+ if(field_placeholder != '') {
142
+ field_html += 'placeholder="' + field_placeholder + '" ';
143
+ }
144
+ if(field_required == true) {
145
+ field_html += 'required="required" ';
146
+ }
147
+ field_html += '> \n';
148
+ break;
149
  case 'text':
150
  if ( attr_name == "SMS" ) {
151
  field_html += '<div class="sib-sms-field"><div class="sib-country-block">' +
readme.txt CHANGED
@@ -138,6 +138,9 @@ In order to create a signup form, you need to:
138
  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.
139
 
140
  == Changelog ==
 
 
 
141
  = 2.9.12 =
142
  * Updated company description
143
 
138
  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.
139
 
140
  == Changelog ==
141
+ = 2.9.13 =
142
+ * Added feature that allows to map WP boolean attributes to Sendinblue contacts
143
+
144
  = 2.9.12 =
145
  * Updated company description
146
 
sendinblue.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
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.12
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
3
  * Plugin Name: Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
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.13
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later