Version Description
Bug fixes
- Fixed the blank/suspicious mail content with PDF attachments.
- Headers are visible on statistics page even if data is not available.
Download this release
Release Info
Developer | neeraj_slit |
Plugin | SendinBlue Subscribe Form And WP SMTP |
Version | 3.1.0 |
Comparing to | |
See all releases |
Code changes from version 3.0.9 to 3.1.0
- page/page-statistics.php +37 -35
- readme.txt +11 -1
- sendinblue.php +3 -2
page/page-statistics.php
CHANGED
@@ -134,9 +134,7 @@ if ( ! class_exists( 'SIB_Page_Statistics' ) ) {
|
|
134 |
<span class="sib-spinner spinner"></span>
|
135 |
</form>
|
136 |
</div>
|
137 |
-
|
138 |
-
if (!empty($emailCampaigns)) {
|
139 |
-
?>
|
140 |
<table id="ws_statistics_table" class="wc_shipping widefat wp-list-table" cellspacing="0">
|
141 |
<thead>
|
142 |
<tr>
|
@@ -157,27 +155,27 @@ if ( ! class_exists( 'SIB_Page_Statistics' ) ) {
|
|
157 |
<h3 class="title"><?php esc_attr_e( 'Email Campaigns', 'sib_lang' );?></h3>
|
158 |
</div>
|
159 |
<?php
|
160 |
-
|
161 |
-
|
162 |
-
<
|
163 |
-
<
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
|
|
|
|
|
|
|
|
174 |
<?php } ?>
|
175 |
</tbody>
|
176 |
</table>
|
177 |
-
<?php }?>
|
178 |
-
<?php
|
179 |
-
if (!empty($smsCampaigns)) {
|
180 |
-
?>
|
181 |
<table id="ws_statistics_table" class="wc_shipping widefat wp-list-table" cellspacing="0">
|
182 |
<thead>
|
183 |
<tr>
|
@@ -197,23 +195,27 @@ if ( ! class_exists( 'SIB_Page_Statistics' ) ) {
|
|
197 |
<h3 class="title"><?php esc_attr_e( 'SMS Campaigns', 'sib_lang' );?></h3>
|
198 |
</div>
|
199 |
<?php
|
200 |
-
|
201 |
-
|
202 |
-
<
|
203 |
-
<
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
|
|
|
|
|
|
|
|
213 |
<?php } ?>
|
214 |
</tbody>
|
215 |
</table>
|
216 |
-
<?php
|
217 |
}
|
218 |
|
219 |
/** Generate welcome page */
|
134 |
<span class="sib-spinner spinner"></span>
|
135 |
</form>
|
136 |
</div>
|
137 |
+
|
|
|
|
|
138 |
<table id="ws_statistics_table" class="wc_shipping widefat wp-list-table" cellspacing="0">
|
139 |
<thead>
|
140 |
<tr>
|
155 |
<h3 class="title"><?php esc_attr_e( 'Email Campaigns', 'sib_lang' );?></h3>
|
156 |
</div>
|
157 |
<?php
|
158 |
+
if (!empty($emailCampaigns)) {
|
159 |
+
foreach ($emailCampaigns as $campaign) { ?>
|
160 |
+
<tr id="<?php echo str_replace(' ', '-', $campaign['name']);?>">
|
161 |
+
<td width="1%" class="sort ui-sortable-handle">
|
162 |
+
<input type="hidden" name="method_order[flat_rate]" value="">
|
163 |
+
</td>
|
164 |
+
<td class=""><?php echo $campaign['name'];?></td>
|
165 |
+
<td class="sib-statistics-data-value"><?php echo $campaign['statistics']['globalStats']['sent'];?></td>
|
166 |
+
<td class="sib-statistics-data-value"><?php echo empty($campaign['statistics']['globalStats']['sent']) ? 0 : round($campaign['statistics']['globalStats']['delivered'] * 100 / $campaign['statistics']['globalStats']['sent'], 2);?>%</td>
|
167 |
+
<td class="sib-statistics-data-value"><?php echo !empty($campaign['statistics']['globalStats']['viewed']) ? $campaign['statistics']['globalStats']['viewed'] : 0;?></td>
|
168 |
+
<td class="sib-statistics-data-value"><?php echo !empty($campaign['statistics']['globalStats']['clickers']) ? $campaign['statistics']['globalStats']['clickers'] : 0;?></td>
|
169 |
+
<td class="sib-statistics-data-value"><?php echo !empty($campaign['statistics']['globalStats']['unsubscriptions']) ? $campaign['statistics']['globalStats']['unsubscriptions'] : 0; ?></td>
|
170 |
+
<td class="sib-statistics-data-value"><?php echo $campaign['statistics']['globalStats']['softBounces'] + $campaign['statistics']['globalStats']['hardBounces'];?></td>
|
171 |
+
<td class="sib-statistics-data-value sib-last-column-value"><?php echo (new DateTime($campaign['sentDate']))->format('Y-m-d H:i:s');?></td>
|
172 |
+
</tr>
|
173 |
+
<?php } ?>
|
174 |
+
<?php } else { ?>
|
175 |
+
<tr> <td colspan="9" style="text-align:center;"><?php esc_attr_e( 'No Stats Found', 'sib_lang' ); ?></td></tr>
|
176 |
<?php } ?>
|
177 |
</tbody>
|
178 |
</table>
|
|
|
|
|
|
|
|
|
179 |
<table id="ws_statistics_table" class="wc_shipping widefat wp-list-table" cellspacing="0">
|
180 |
<thead>
|
181 |
<tr>
|
195 |
<h3 class="title"><?php esc_attr_e( 'SMS Campaigns', 'sib_lang' );?></h3>
|
196 |
</div>
|
197 |
<?php
|
198 |
+
if (!empty($smsCampaigns)) {
|
199 |
+
foreach($smsCampaigns as $smsCampaign){ ?>
|
200 |
+
<tr id="<?php echo str_replace(' ', '-', $smsCampaign['name']);?>">
|
201 |
+
<td width="1%" class="sort ui-sortable-handle">
|
202 |
+
<input type="hidden" name="method_order[flat_rate]" value="">
|
203 |
+
</td>
|
204 |
+
<td class=""><?php echo $smsCampaign['name'];?></td>
|
205 |
+
<td class="sib-statistics-data-value"><?php echo $smsCampaign['statistics']['sent'];?></td>
|
206 |
+
<td class="sib-statistics-data-value"><?php echo empty($smsCampaign['statistics']['sent']) ? 0 : round($smsCampaign['statistics']['delivered'] * 100 / $smsCampaign['statistics']['sent'], 2);?>%</td>
|
207 |
+
<td class="sib-statistics-data-value"><?php echo !empty($smsCampaign['statistics']['answered']) ? $smsCampaign['statistics']['answered'] : 0;?></td>
|
208 |
+
<td class="sib-statistics-data-value"><?php echo !empty($smsCampaign['statistics']['unsubscriptions']) ? $smsCampaign['statistics']['unsubscriptions'] : 0;?></td>
|
209 |
+
<td class="sib-statistics-data-value"><?php echo $smsCampaign['statistics']['softBounces'] + $campaign['statistics']['hardBounces'];?></td>
|
210 |
+
<td class="sib-statistics-data-value sib-last-column-value"><?php echo (new DateTime($smsCampaign['sentDate']))->format('Y-m-d H:i:s');?></td>
|
211 |
+
</tr>
|
212 |
+
<?php } ?>
|
213 |
+
<?php } else { ?>
|
214 |
+
<tr> <td colspan="9" style="text-align:center;"><?php esc_attr_e( 'No Stats Found', 'sib_lang' ); ?></td></tr>
|
215 |
<?php } ?>
|
216 |
</tbody>
|
217 |
</table>
|
218 |
+
<?php
|
219 |
}
|
220 |
|
221 |
/** Generate welcome page */
|
readme.txt
CHANGED
@@ -112,12 +112,20 @@ 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 |
|
116 |
= 3.0.9 =
|
117 |
**Improvements**
|
118 |
|
119 |
* Fixed critical errors for PHP Mailer triggered for Wordpress version 5.5 and beyond
|
120 |
-
|
|
|
121 |
|
122 |
|
123 |
= 3.0.8 =
|
@@ -504,3 +512,5 @@ Please use the Access Key of API 2.0 in setting of plugin after update plugin.
|
|
504 |
* update sendinblue api
|
505 |
* Add functionality (List,Contact,Stat,Form Management)
|
506 |
* Update UI user-friendly
|
|
|
|
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 |
+
|
116 |
+
|
117 |
+
= 3.1.0 =
|
118 |
+
**Bug fixes**
|
119 |
+
|
120 |
+
* Fixed the blank/suspicious mail content with PDF attachments.
|
121 |
+
* Headers are visible on statistics page even if data is not available.
|
122 |
|
123 |
= 3.0.9 =
|
124 |
**Improvements**
|
125 |
|
126 |
* Fixed critical errors for PHP Mailer triggered for Wordpress version 5.5 and beyond
|
127 |
+
|
128 |
+
* Transactional mails with attachment issue has been fixed
|
129 |
|
130 |
|
131 |
= 3.0.8 =
|
512 |
* update sendinblue api
|
513 |
* Add functionality (List,Contact,Stat,Form Management)
|
514 |
* Update UI user-friendly
|
515 |
+
|
516 |
+
|
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: Manage your contact lists, subscription forms and all email and marketing-related topics from your wp panel, within one single plugin
|
6 |
-
* Version: 3.0
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
@@ -849,7 +849,8 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
|
|
849 |
$from_name = apply_filters( 'wp_mail_from_name', $from_name );
|
850 |
|
851 |
if ( !empty( $headers ) ) {
|
852 |
-
|
|
|
853 |
if ( ! is_array( $headers ) ) {
|
854 |
// Explode the headers out, so this function can take both.
|
855 |
// string headers and an array of headers.
|
3 |
* Plugin Name: Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
|
4 |
* Plugin URI: https://www.sendinblue.com/?r=wporg
|
5 |
* Description: Manage your contact lists, subscription forms and all email and marketing-related topics from your wp panel, within one single plugin
|
6 |
+
* Version: 3.1.0
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
849 |
$from_name = apply_filters( 'wp_mail_from_name', $from_name );
|
850 |
|
851 |
if ( !empty( $headers ) ) {
|
852 |
+
$headers = str_replace("Content-Type: text/html", "", $headers);
|
853 |
+
$data['headers'] = $headers;
|
854 |
if ( ! is_array( $headers ) ) {
|
855 |
// Explode the headers out, so this function can take both.
|
856 |
// string headers and an array of headers.
|