Email Subscribers & Newsletters - Version 3.5.9

Version Description

(11.09.2018) =

  • Fix: Opt-In Confirmation and Unsubscribe link not working after server migration.
Download this release

Release Info

Developer Icegram
Plugin Icon 128x128 Email Subscribers & Newsletters
Version 3.5.9
Comparing to
See all releases

Code changes from version 3.5.8 to 3.5.9

changelog.txt CHANGED
@@ -4,7 +4,11 @@ Author : Icegram
4
  Author URI : https://www.icegram.com/
5
  License : GPLv3
6
 
7
- ***********************************************************Version 3.5.8***********************************************************************************************************************Version 3.5.7************************************************************
 
 
 
 
8
 
9
  * Update: Added "Test Email" functionality to confirm email deliverability.
10
 
4
  Author URI : https://www.icegram.com/
5
  License : GPLv3
6
 
7
+ ***********************************************************Version 3.5.9************************************************************
8
+
9
+ * Fix: Opt-In Confirmation and Unsubscribe link not working after server migration.
10
+
11
+ ***********************************************************Version 3.5.8************************************************************
12
 
13
  * Update: Added "Test Email" functionality to confirm email deliverability.
14
 
classes/es-register.php CHANGED
@@ -722,8 +722,13 @@ class es_cls_registerhook {
722
  $total_subscribers = es_cls_dbquery::es_view_subscriber_count( 0 );
723
  $total_email_sent = es_cls_sentmail::es_sentmail_count( $id = 0 );
724
  $es_star_review = get_option( 'es_star_review_email_subscribers' );
 
 
 
 
725
  if ( ( $total_subscribers >= 10 || $total_email_sent > 2 ) && $es_star_review != 'no' ) {
726
- $es_rating_text = __( 'If you like <strong>Email Subscribers</strong>, please consider leaving us a <a target="_blank" href="https://wordpress.org/support/plugin/email-subscribers/reviews/?filter=5#new-post">&#9733;&#9733;&#9733;&#9733;&#9733;</a> rating. A huge thank you from Icegram in advance!', ES_TDOMAIN );
 
727
  echo '<div class="notice notice-warning" style="background-color: #FFF;"><p style="letter-spacing: 0.6px;">' . $es_rating_text . ' <a style="float:right" class="es-admin-btn es-admin-btn-secondary" href="?dismiss_admin_notice=1&option_name=es_star_review">' . __( 'No, I don\'t like it', ES_TDOMAIN ) . '</a></p></div>';
728
  }
729
 
@@ -1450,6 +1455,13 @@ class es_cls_registerhook {
1450
 
1451
  }
1452
 
 
 
 
 
 
 
 
1453
  }
1454
 
1455
  function es_sync_registereduser( $user_id ) {
722
  $total_subscribers = es_cls_dbquery::es_view_subscriber_count( 0 );
723
  $total_email_sent = es_cls_sentmail::es_sentmail_count( $id = 0 );
724
  $es_star_review = get_option( 'es_star_review_email_subscribers' );
725
+ $es_rating_text = array();
726
+ $es_rating_text['star_review'] = __( 'If you like <strong>Email Subscribers</strong>, please consider leaving us a <a target="_blank" href="https://wordpress.org/support/plugin/email-subscribers/reviews/?filter=5#new-post">&#9733;&#9733;&#9733;&#9733;&#9733;</a> rating. A huge thank you from the team in advance!', ES_TDOMAIN );
727
+ $es_rating_text['help_review'] = __( 'If you like <strong>Email Subscribers</strong>, tell us more about your experience and leave us <a target="_blank" href="https://wordpress.org/support/plugin/email-subscribers/reviews/?filter=5#new-post">&#9733;&#9733;&#9733;&#9733;&#9733;</a> rating. A huge thank you from the team in advance!', ES_TDOMAIN );
728
+
729
  if ( ( $total_subscribers >= 10 || $total_email_sent > 2 ) && $es_star_review != 'no' ) {
730
+ $key = array_rand($es_rating_text);
731
+ $es_rating_text = $es_rating_text[$key];
732
  echo '<div class="notice notice-warning" style="background-color: #FFF;"><p style="letter-spacing: 0.6px;">' . $es_rating_text . ' <a style="float:right" class="es-admin-btn es-admin-btn-secondary" href="?dismiss_admin_notice=1&option_name=es_star_review">' . __( 'No, I don\'t like it', ES_TDOMAIN ) . '</a></p></div>';
733
  }
734
 
1455
 
1456
  }
1457
 
1458
+ public static function es_add_home_url($es_url, $qs){
1459
+ $qs = !empty($es_url) ? "?".parse_url($es_url, PHP_URL_QUERY) : $qs ;
1460
+ $home_url = home_url('/');
1461
+ $es_url = $home_url . $qs;
1462
+ return $es_url;
1463
+ }
1464
+
1465
  }
1466
 
1467
  function es_sync_registereduser( $user_id ) {
classes/es-sendmail.php CHANGED
@@ -92,6 +92,7 @@ class es_cls_sendmail {
92
  $count = 1;
93
 
94
  $settings = es_cls_settings::es_get_all_settings();
 
95
  if( trim($settings['ig_es_fromname']) == "" || trim($settings['ig_es_fromemail']) == '' ) {
96
  $current_user = ( function_exists('wp_get_current_user') ) ? wp_get_current_user() : get_currentuserinfo();
97
  $sender_name = $current_user->user_login;
@@ -130,7 +131,6 @@ class es_cls_sendmail {
130
  $es_deliver_id = $crondelivery['es_deliver_id'];
131
  $subscriber = es_cls_dbquery::es_view_subscriber_search("", $es_email_id);
132
  if(count($subscriber) > 0) {
133
- $unsublink = $settings['ig_es_unsublink'];
134
  $unsublink = str_replace("{{DBID}}", $subscriber[0]["es_email_id"], $unsublink);
135
  $unsublink = str_replace("{{EMAIL}}", $subscriber[0]["es_email_mail"], $unsublink);
136
  $unsublink = str_replace("{{GUID}}", $subscriber[0]["es_email_guid"], $unsublink);
@@ -218,6 +218,8 @@ class es_cls_sendmail {
218
  $replaceto = array("<ul>", "</ul>", "<li>" ,"</li>", "<ol>", "</ol>", "</h2>", "</h1>");
219
 
220
  $settings = es_cls_settings::es_get_all_settings();
 
 
221
  $adminmail = $settings['ig_es_adminemail'];
222
  $es_c_adminmailoption = $settings['ig_es_notifyadmin'];
223
  $es_c_usermailoption = $settings['ig_es_welcomeemail'];
@@ -379,8 +381,7 @@ class es_cls_sendmail {
379
  case 'optin':
380
  $content_send = str_replace("{{NAME}}", $name, $content);
381
  $content_send = str_replace("{{EMAIL}}", $to, $content_send);
382
-
383
- $optinlink = $settings['ig_es_optinlink'];
384
  $optinlink = str_replace("{{DBID}}", $subscriber["es_email_id"], $optinlink);
385
  $optinlink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $optinlink);
386
  $optinlink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $optinlink);
@@ -395,7 +396,6 @@ class es_cls_sendmail {
395
  $content_send = str_replace("{{GROUP}}", $group, $content_send);
396
 
397
  // Making an unsubscribe link
398
- $unsublink = $settings['ig_es_unsublink'];
399
  $unsublink = str_replace("{{DBID}}", $subscriber["es_email_id"], $unsublink);
400
  $unsublink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $unsublink);
401
  $unsublink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $unsublink);
@@ -419,7 +419,6 @@ class es_cls_sendmail {
419
 
420
  case 'newsletter':
421
  if( $mailsenttype != "Cron" ) { // Cron mail not sending by this method
422
- $unsublink = $settings['ig_es_unsublink'];
423
  $unsublink = str_replace("{{DBID}}", $subscriber["es_email_id"], $unsublink);
424
  $unsublink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $unsublink);
425
  $unsublink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $unsublink);
@@ -454,7 +453,6 @@ class es_cls_sendmail {
454
  case 'notification': // notification mail to subscribers
455
  if( $mailsenttype != "Cron" ) { // Cron mail not sending by this method
456
 
457
- $unsublink = $settings['ig_es_unsublink'];
458
  $unsublink = str_replace("{{DBID}}", $subscriber["es_email_id"], $unsublink);
459
  $unsublink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $unsublink);
460
  $unsublink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $unsublink);
92
  $count = 1;
93
 
94
  $settings = es_cls_settings::es_get_all_settings();
95
+ $unsublink = es_cls_registerhook::es_add_home_url($settings['ig_es_unsublink'], "?es=unsubscribe&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
96
  if( trim($settings['ig_es_fromname']) == "" || trim($settings['ig_es_fromemail']) == '' ) {
97
  $current_user = ( function_exists('wp_get_current_user') ) ? wp_get_current_user() : get_currentuserinfo();
98
  $sender_name = $current_user->user_login;
131
  $es_deliver_id = $crondelivery['es_deliver_id'];
132
  $subscriber = es_cls_dbquery::es_view_subscriber_search("", $es_email_id);
133
  if(count($subscriber) > 0) {
 
134
  $unsublink = str_replace("{{DBID}}", $subscriber[0]["es_email_id"], $unsublink);
135
  $unsublink = str_replace("{{EMAIL}}", $subscriber[0]["es_email_mail"], $unsublink);
136
  $unsublink = str_replace("{{GUID}}", $subscriber[0]["es_email_guid"], $unsublink);
218
  $replaceto = array("<ul>", "</ul>", "<li>" ,"</li>", "<ol>", "</ol>", "</h2>", "</h1>");
219
 
220
  $settings = es_cls_settings::es_get_all_settings();
221
+ $unsublink = es_cls_registerhook::es_add_home_url($settings['ig_es_unsublink'], "?es=unsubscribe&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
222
+
223
  $adminmail = $settings['ig_es_adminemail'];
224
  $es_c_adminmailoption = $settings['ig_es_notifyadmin'];
225
  $es_c_usermailoption = $settings['ig_es_welcomeemail'];
381
  case 'optin':
382
  $content_send = str_replace("{{NAME}}", $name, $content);
383
  $content_send = str_replace("{{EMAIL}}", $to, $content_send);
384
+ $optinlink = es_cls_registerhook::es_add_home_url($settings['ig_es_optinlink'], "?es=optin&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
 
385
  $optinlink = str_replace("{{DBID}}", $subscriber["es_email_id"], $optinlink);
386
  $optinlink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $optinlink);
387
  $optinlink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $optinlink);
396
  $content_send = str_replace("{{GROUP}}", $group, $content_send);
397
 
398
  // Making an unsubscribe link
 
399
  $unsublink = str_replace("{{DBID}}", $subscriber["es_email_id"], $unsublink);
400
  $unsublink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $unsublink);
401
  $unsublink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $unsublink);
419
 
420
  case 'newsletter':
421
  if( $mailsenttype != "Cron" ) { // Cron mail not sending by this method
 
422
  $unsublink = str_replace("{{DBID}}", $subscriber["es_email_id"], $unsublink);
423
  $unsublink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $unsublink);
424
  $unsublink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $unsublink);
453
  case 'notification': // notification mail to subscribers
454
  if( $mailsenttype != "Cron" ) { // Cron mail not sending by this method
455
 
 
456
  $unsublink = str_replace("{{DBID}}", $subscriber["es_email_id"], $unsublink);
457
  $unsublink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $unsublink);
458
  $unsublink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $unsublink);
email-subscribers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Email Subscribers & Newsletters
4
  * Plugin URI: https://www.icegram.com/
5
  * Description: Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it is published.
6
- * Version: 3.5.8
7
  * Author: Icegram
8
  * Author URI: https://www.icegram.com/
9
  * Requires at least: 3.9
3
  * Plugin Name: Email Subscribers & Newsletters
4
  * Plugin URI: https://www.icegram.com/
5
  * Description: Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it is published.
6
+ * Version: 3.5.9
7
  * Author: Icegram
8
  * Author URI: https://www.icegram.com/
9
  * Requires at least: 3.9
pricing/pricing.php CHANGED
@@ -48,15 +48,24 @@ body {
48
  padding-right: 2em;
49
  padding-left: 2em;
50
  }
 
 
 
 
 
51
  .column_one_half {
52
- width: 40%;
53
- padding: 1em;
54
- margin: 0 1em;
55
- background-color: #fff;
56
- border: 1px solid rgba(0, 0, 0, 0.1);
57
- text-align: center;
58
- color: rgba(0, 0, 0, 0.75);
 
 
 
59
  }
 
60
  .last {
61
  margin-right: 0;
62
  }
@@ -71,16 +80,27 @@ body {
71
  .es_yearly_price {
72
  margin: 1.5em 0;
73
  color: #1e73be;
74
- font-size: 2em;
75
  }
76
  .es_monthly_price b,
77
  .es_yearly_price b {
78
  font-family: 'Abril Fatface', cursive;
79
- font-size: 3em;
80
- color: #1e73be;
 
 
 
 
 
81
  }
 
 
 
 
 
 
82
  .es_button {
83
- background: #03a025;
84
  border-color: #03a025;
85
  color: #FFFFFF !important;
86
  padding: 15px 32px;
@@ -155,65 +175,63 @@ ul.checkmark li:after {
155
 
156
  <div class="wrap about-wrap es">
157
  <div class="es_main_heading"><?php _e('Go a notch higher', ES_TDOMAIN); ?></div>
158
- <div class="es_pro_heading"><?php _e('Get the Email Subscribers Pro Plugin at', ES_TDOMAIN); ?></div>
159
  <div class="row">
160
  <div class="es_featured_column_container">
161
- <div class="column_one_half">
162
- <div class="es_monthly_price"><b>$12/</b><?php _e('month', ES_TDOMAIN); ?></div>
163
- <a href="https://www.icegram.com/?buy-now=39043&amp;qty=1&amp;coupon=&amp;with-cart=1&amp;page=5&utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_monthly" target="_blank" rel="noopener" class="es_button"><?php _e('Sign up for monthly', ES_TDOMAIN); ?></a>
 
164
  </div>
165
- <div class="column_one_half last es_save_price">
166
- <div class="es_yearly_price"><b>$120/</b><?php _e('year', ES_TDOMAIN); ?></div>
167
- <a href="https://www.icegram.com/?buy-now=39944&amp;qty=1&amp;coupon=&amp;with-cart=1&amp;page=5utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_yearly" target="_blank" rel="noopener" class="es_button"><?php _e('Sign up for yearly', ES_TDOMAIN); ?></a>
 
 
 
 
 
 
168
  </div>
169
  </div>
170
  </div>
171
- <div class="es_pro_feature"><?php _e('Get more with Email Subscribers Pro', ES_TDOMAIN); ?></div>
172
  <div class="row">
173
  <div class="pricing__headline"><?php _e('All features of Email Subscribers free plugin + everything below:', ES_TDOMAIN); ?></div>
174
- <div class="es_featured_column_container">
175
- <div class="column_one_half">
176
- <h4><strong><?php _e('Protect your list from bot attacks', ES_TDOMAIN); ?></strong></h4>
177
- <p style="text-align: left;"><?php _e('Use ', ES_TDOMAIN); ?><strong><?php _e('captcha', ES_TDOMAIN); ?></strong> <?php _e('to protect your email list from bots. The simple maths captcha helps identifying bots from humans and eliminates spam signups.', ES_TDOMAIN); ?></p>
178
- </div>
179
- <div class="column_one_half last">
180
- <h4><strong><?php _e('Check email status & increase email success rate', ES_TDOMAIN); ?></strong></h4>
181
- <p style="text-align: left;"><?php _e('Double check the status of the emails addresses and increase ', ES_TDOMAIN); ?><strong><?php _e('email success rate', ES_TDOMAIN); ?></strong> <?php _e('of your email campaign. ', ES_TDOMAIN); ?></p>
182
- </div>
183
- </div>
184
- <div class="row">
185
- <div class="es_featured_column_container">
186
- <div class="column_one_half">
187
- <h4><strong><?php _e('Fullproof email deliverability', ES_TDOMAIN); ?></strong></h4>
188
- <p style="text-align: left;"><?php _e('Reduce the risk of emails ending in trash or spam. Increase email deliverability by double checking emails for their ', ES_TDOMAIN); ?><strong><?php _e('spam score', ES_TDOMAIN); ?></strong> <?php _e('before hitting send.', ES_TDOMAIN); ?></p>
189
- </div>
190
- <div class="column_one_half last">
191
- <h4><strong><?php _e('Track email leads in Google', ES_TDOMAIN); ?></strong></h4>
192
- <p style="text-align: left;"><?php _e('Insert ', ES_TDOMAIN); ?><strong><?php _e('UTM tracking', ES_TDOMAIN); ?></strong> <?php _e('in all your email CTA’s and track the effectiveness of your emails directly within Google. Know which/ how many leads landed up from your emails and tweak emails for better performance.', ES_TDOMAIN); ?></p>
193
- </div>
194
- </div>
195
- </div>
196
- <div class="row">
197
- <div class="es_featured_column_container">
198
- <div class="column_one_half">
199
- <h4><strong><?php _e('Save time, use readymade email templates', ES_TDOMAIN); ?></strong></h4>
200
- <p style="text-align: left;"><?php _e('Don’t waste time on HTML or CSS. Pick one from the many <strong>ready to use elegant templates</strong> to send your next email campaign.', ES_TDOMAIN); ?></p>
201
- </div>
202
- <div class="column_one_half last">
203
- <h4><strong><?php _e('Customize confirmation and unsubscribe page', ES_TDOMAIN); ?></strong></h4>
204
- <p style="text-align: left;"><?php _e('Communicate with subscribers. Redirect them to beautifully designed <strong>confirmation and unsubscribe pages</strong> on your website.', ES_TDOMAIN); ?></p>
205
- </div>
206
- </div>
207
- </div>
208
- </div>
209
- <aside>
210
- <details>
211
- <summary> <span style="font-size: 1.2em;"><?php _e('Coming soon...', ES_TDOMAIN); ?></span></summary>
212
- <ul class="checkmark">
213
- <li><?php _e('Spam testing', ES_TDOMAIN); ?></li>
214
- <li><?php _e('Bounce handling', ES_TDOMAIN); ?></li>
215
- <li><?php _e('Advanced reporting', ES_TDOMAIN); ?></li>
216
- </ul>
217
- </details>
218
- </aside>
219
  </div>
48
  padding-right: 2em;
49
  padding-left: 2em;
50
  }
51
+
52
+ .column_one_third {
53
+ width: 40%;
54
+ }
55
+
56
  .column_one_half {
57
+ width: 45%;
58
+ }
59
+
60
+ .column {
61
+ padding: 1em;
62
+ margin: 0 1em;
63
+ background-color: #fff;
64
+ border: 1px solid rgba(0, 0, 0, 0.1);
65
+ text-align: center;
66
+ color: rgba(0, 0, 0, 0.75);
67
  }
68
+
69
  .last {
70
  margin-right: 0;
71
  }
80
  .es_yearly_price {
81
  margin: 1.5em 0;
82
  color: #1e73be;
83
+ font-size: 1em;
84
  }
85
  .es_monthly_price b,
86
  .es_yearly_price b {
87
  font-family: 'Abril Fatface', cursive;
88
+ font-size: 2em;
89
+ color: #1a72bf
90
+ }
91
+
92
+ .es_monthly .es_button,
93
+ .es_monthly .es_button:hover {
94
+ background: #1a72bf;
95
  }
96
+
97
+ .es_max .es_button,
98
+ .es_max .es_button:hover {
99
+ background: #f5873f;
100
+ }
101
+
102
  .es_button {
103
+ background: #03a025;
104
  border-color: #03a025;
105
  color: #FFFFFF !important;
106
  padding: 15px 32px;
175
 
176
  <div class="wrap about-wrap es">
177
  <div class="es_main_heading"><?php _e('Go a notch higher', ES_TDOMAIN); ?></div>
178
+ <div class="es_pro_heading"><?php _e('Get the Email Subscribers Pro / Max Plugin at', ES_TDOMAIN); ?></div>
179
  <div class="row">
180
  <div class="es_featured_column_container">
181
+ <div class="column column_one_third es_monthly">
182
+ <div class="es_plan"><h4>Pro - Monthly</h4> (Single Site)</div>
183
+ <div class="es_monthly_price"><b>$19.99/</b><?php _e('month', ES_TDOMAIN); ?></div>
184
+ <a href="https://www.icegram.com/?buy-now=39043&amp;qty=1&amp;coupon=&amp;with-cart=1&amp;page=5&utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_monthly" target="_blank" rel="noopener" class="es_button"><?php _e('Get Pro Monthly', ES_TDOMAIN); ?></a>
185
  </div>
186
+ <div class="column column_one_third">
187
+ <div class="es_plan"><h4>Pro - Annual</h4> (Single Site)</div>
188
+ <div class="es_yearly_price"><strike>$199</strike></b> <b>$129/</b><?php _e('year', ES_TDOMAIN); ?></div>
189
+ <a href="https://www.icegram.com/?buy-now=39944&amp;qty=1&amp;coupon=&amp;with-cart=1&amp;page=5utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_yearly" target="_blank" rel="noopener" class="es_button"><?php _e('Get Pro Annual', ES_TDOMAIN); ?></a>
190
+ </div>
191
+ <div class="column column_one_third last es_save_price es_max">
192
+ <div class="es_plan"><h4>Max - Multi Site, Annual</h4> (3 Sites)</div>
193
+ <div class="es_yearly_price"><strike>$597</strike></b> <b>$177/</b><?php _e('year', ES_TDOMAIN); ?></div>
194
+ <a href="https://www.icegram.com/?buy-now=404335&amp;qty=1&amp;coupon=&amp;with-cart=1&amp;page=5utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_yearly" target="_blank" rel="noopener" class="es_button"><?php _e('Get Max Annual', ES_TDOMAIN); ?></a>
195
  </div>
196
  </div>
197
  </div>
198
+ <div class="es_pro_feature"><?php _e('Get more with Email Subscribers Pro / Max', ES_TDOMAIN); ?></div>
199
  <div class="row">
200
  <div class="pricing__headline"><?php _e('All features of Email Subscribers free plugin + everything below:', ES_TDOMAIN); ?></div>
201
+ <div class="es_featured_column_container">
202
+ <div class="column column_one_half">
203
+ <h4><strong><?php _e('Protect your list from bot attacks', ES_TDOMAIN); ?></strong></h4>
204
+ <p style="text-align: left;"><?php _e('Use ', ES_TDOMAIN); ?><strong><?php _e('captcha', ES_TDOMAIN); ?></strong> <?php _e('to protect your email list from bots. The simple maths captcha helps identifying bots from humans and eliminates spam signups.', ES_TDOMAIN); ?></p>
205
+ </div>
206
+ <div class="column column_one_half last">
207
+ <h4><strong><?php _e('Check email status & increase email success rate', ES_TDOMAIN); ?></strong></h4>
208
+ <p style="text-align: left;"><?php _e('Double check the status of the emails addresses and increase ', ES_TDOMAIN); ?><strong><?php _e('email success rate', ES_TDOMAIN); ?></strong> <?php _e('of your email campaign. ', ES_TDOMAIN); ?></p>
209
+ </div>
210
+ </div>
211
+ </div>
212
+
213
+ <div class="row">
214
+ <div class="es_featured_column_container">
215
+ <div class="column column_one_half">
216
+ <h4><strong><?php _e('Fullproof email deliverability', ES_TDOMAIN); ?></strong></h4>
217
+ <p style="text-align: left;"><?php _e('Reduce the risk of emails ending in trash or spam. Increase email deliverability by double checking emails for their ', ES_TDOMAIN); ?><strong><?php _e('spam score', ES_TDOMAIN); ?></strong> <?php _e('before hitting send.', ES_TDOMAIN); ?></p>
218
+ </div>
219
+ <div class="column column_one_half last">
220
+ <h4><strong><?php _e('Track email leads in Google', ES_TDOMAIN); ?></strong></h4>
221
+ <p style="text-align: left;"><?php _e('Insert ', ES_TDOMAIN); ?><strong><?php _e('UTM tracking', ES_TDOMAIN); ?></strong> <?php _e('in all your email CTA’s and track the effectiveness of your emails directly within Google. Know which/ how many leads landed up from your emails and tweak emails for better performance.', ES_TDOMAIN); ?></p>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ <div class="row">
226
+ <div class="es_featured_column_container">
227
+ <div class="column column_one_half">
228
+ <h4><strong><?php _e('Save time, use readymade email templates', ES_TDOMAIN); ?></strong></h4>
229
+ <p style="text-align: left;"><?php _e('Don’t waste time on HTML or CSS. Pick one from the many <strong>ready to use elegant templates</strong> to send your next email campaign.', ES_TDOMAIN); ?></p>
230
+ </div>
231
+ <div class="column column_one_half last">
232
+ <h4><strong><?php _e('Customize confirmation and unsubscribe page', ES_TDOMAIN); ?></strong></h4>
233
+ <p style="text-align: left;"><?php _e('Communicate with subscribers. Redirect them to beautifully designed <strong>confirmation and unsubscribe pages</strong> on your website.', ES_TDOMAIN); ?></p>
234
+ </div>
235
+ </div>
236
+ </div>
 
 
 
 
 
 
 
 
 
237
  </div>
readme.txt CHANGED
@@ -5,7 +5,7 @@ Author URI: https://www.icegram.com/
5
  Tags: subscription, newsletter, email marketing, post notification, email newsletter form, email signup, email widget, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
6
  Requires at least: 3.9
7
  Tested up to: 4.9.8
8
- Stable tag: 3.5.8
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses
11
 
@@ -342,6 +342,10 @@ Use our free plugin [Email Subscribers - Group Selector](https://wordpress.org/p
342
 
343
  == Changelog ==
344
 
 
 
 
 
345
  = 3.5.8 (05.09.2018) =
346
 
347
  * Update: Added "Test Email" functionality to confirm email deliverability.
5
  Tags: subscription, newsletter, email marketing, post notification, email newsletter form, email signup, email widget, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
6
  Requires at least: 3.9
7
  Tested up to: 4.9.8
8
+ Stable tag: 3.5.9
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses
11
 
342
 
343
  == Changelog ==
344
 
345
+ = 3.5.9 (11.09.2018) =
346
+
347
+ * Fix: Opt-In Confirmation and Unsubscribe link not working after server migration.
348
+
349
  = 3.5.8 (05.09.2018) =
350
 
351
  * Update: Added "Test Email" functionality to confirm email deliverability.
settings/settings-edit.php CHANGED
@@ -458,7 +458,9 @@ if ( ! class_exists( 'ES_Settings' ) ) {
458
  $form['ig_es_confirmsubject'] = get_option( 'ig_es_confirmsubject' );
459
  $form['ig_es_confirmcontent'] = get_option( 'ig_es_confirmcontent' );
460
  $form['ig_es_optinlink'] = get_option( 'ig_es_optinlink' );
 
461
  $form['ig_es_unsublink'] = get_option( 'ig_es_unsublink' );
 
462
  $form['ig_es_unsubcontent'] = get_option( 'ig_es_unsubcontent' );
463
  $form['ig_es_unsubtext'] = get_option( 'ig_es_unsubtext' );
464
  $form['ig_es_successmsg'] = get_option( 'ig_es_successmsg' );
@@ -542,13 +544,13 @@ if ( ! class_exists( 'ES_Settings' ) ) {
542
  $form['ig_es_confirmsubject'] = isset($_POST['es_c_optinsubject']) ? $_POST['es_c_optinsubject'] : '';
543
  $form['ig_es_confirmcontent'] = isset($_POST['es_c_optincontent']) ? $_POST['es_c_optincontent'] : '';
544
 
545
- $home_url = home_url('/');
546
-
547
- $optinlink = $home_url . "?es=optin&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}";
548
- $form['ig_es_optinlink'] = $optinlink;
549
 
550
- $unsublink = $home_url . "?es=unsubscribe&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}";
551
- $form['ig_es_unsublink'] = $unsublink;
 
552
 
553
  $form['ig_es_unsubcontent'] = isset($_POST['es_c_unsubtext']) ? $_POST['es_c_unsubtext'] : '';
554
  $form['ig_es_unsubtext'] = isset($_POST['es_c_unsubhtml']) ? $_POST['es_c_unsubhtml'] : '';
458
  $form['ig_es_confirmsubject'] = get_option( 'ig_es_confirmsubject' );
459
  $form['ig_es_confirmcontent'] = get_option( 'ig_es_confirmcontent' );
460
  $form['ig_es_optinlink'] = get_option( 'ig_es_optinlink' );
461
+ $form['ig_es_optinlink'] = es_cls_registerhook::es_add_home_url($form['ig_es_optinlink'], "?es=optin&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
462
  $form['ig_es_unsublink'] = get_option( 'ig_es_unsublink' );
463
+ $form['ig_es_unsublink'] = es_cls_registerhook::es_add_home_url($form['ig_es_unsublink'], "?es=unsubscribe&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
464
  $form['ig_es_unsubcontent'] = get_option( 'ig_es_unsubcontent' );
465
  $form['ig_es_unsubtext'] = get_option( 'ig_es_unsubtext' );
466
  $form['ig_es_successmsg'] = get_option( 'ig_es_successmsg' );
544
  $form['ig_es_confirmsubject'] = isset($_POST['es_c_optinsubject']) ? $_POST['es_c_optinsubject'] : '';
545
  $form['ig_es_confirmcontent'] = isset($_POST['es_c_optincontent']) ? $_POST['es_c_optincontent'] : '';
546
 
547
+ $optin_link = isset($_POST['es_c_optinlink']) ? $_POST['es_c_optinlink'] : '';
548
+ $es_optinlink = es_cls_registerhook::es_add_home_url($optin_link, "?es=optin&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
549
+ $form['ig_es_optinlink'] = $es_optinlink;
 
550
 
551
+ $unsubscribe_link = isset($_POST['es_c_unsublink']) ? $_POST['es_c_unsublink'] : '';
552
+ $es_unsubscribe_link = es_cls_registerhook::es_add_home_url($unsubscribe_link, "?es=unsubscribe&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
553
+ $form['ig_es_unsublink'] = $es_unsubscribe_link;
554
 
555
  $form['ig_es_unsubcontent'] = isset($_POST['es_c_unsubtext']) ? $_POST['es_c_unsubtext'] : '';
556
  $form['ig_es_unsubtext'] = isset($_POST['es_c_unsubhtml']) ? $_POST['es_c_unsubhtml'] : '';