Email Subscribers & Newsletters - Version 3.4.4

Version Description

(21.11.2017) =

  • New: Introduce Email Subscribers Pro plan
Download this release

Release Info

Developer storeapps
Plugin Icon 128x128 Email Subscribers & Newsletters
Version 3.4.4
Comparing to
See all releases

Code changes from version 3.4.3 to 3.4.4

changelog.txt CHANGED
@@ -4,6 +4,10 @@ Author : Icegram
4
  Author URI : https://www.icegram.com/
5
  License : GPLv3
6
 
 
 
 
 
7
  ************************************************************Version 3.4.3************************************************************
8
 
9
  * Fix: Templates showing up in frontend search results
4
  Author URI : https://www.icegram.com/
5
  License : GPLv3
6
 
7
+ ************************************************************Version 3.4.4************************************************************
8
+
9
+ * New: Introduce [Email Subscribers Pro](https://www.icegram.com/email-subscribers-pricing/) plan
10
+
11
  ************************************************************Version 3.4.3************************************************************
12
 
13
  * Fix: Templates showing up in frontend search results
classes/es-register.php CHANGED
@@ -868,19 +868,19 @@ class es_cls_registerhook {
868
  );
869
 
870
  $args = array(
871
- 'labels' => $labels,
872
- 'public' => true,
873
- 'publicly_queryable' => false,
874
  'exclude_from_search' => true,
875
- 'show_ui' => true,
876
- 'show_in_menu' => 'edit.php?post_type=es_template',
877
- 'query_var' => true,
878
- 'rewrite' => array( 'slug' => 'es_template' ),
879
- 'capability_type' => 'post',
880
- 'has_archive' => false,
881
- 'hierarchical' => false,
882
- 'menu_position' => null,
883
- 'supports' => array( 'title', 'editor', 'thumbnail')
884
  );
885
 
886
  register_post_type( 'es_template', $args );
@@ -928,20 +928,20 @@ class es_cls_registerhook {
928
  return $column;
929
  }
930
 
931
- public static function es_add_admin_css() {
932
 
933
  global $current_screen;
934
 
935
  if($current_screen->post_type != 'es_template') return;
936
 
937
- ?>
938
  <style type="text/css">
939
  .column-es_templ_thumbnail, #es_templ_thumbnail,
940
  .column-es_templ_type, #es_templ_type {
941
  text-align: center !important;
942
  }
943
  </style>
944
- <?php
945
  }
946
 
947
  public static function es_add_template_action( $actions, $post ) {
@@ -966,16 +966,16 @@ class es_cls_registerhook {
966
  $es_templ_type = get_post_meta($post->ID, 'es_template_type', true);
967
  }
968
  ?>
969
- <p style="margin-top: 0em; !important;">
970
- <?php echo __( 'Available Keyword for Post Notification: {{POSTTITLE}}', ES_TDOMAIN ); ?>
971
- </p>
972
- <p>
973
- <label for="tag-link"><?php echo __( 'Select your Email Template Type', ES_TDOMAIN ); ?></label><br/>
974
- <select name="es_template_type" id="es_template_type">
975
- <option value='Newsletter' <?php if( $es_templ_type == 'Newsletter' ) { echo 'selected="selected"' ; } ?>><?php echo __( 'Newsletter', ES_TDOMAIN ); ?></option>
976
- <option value='Post Notification' <?php if( $es_templ_type == 'Post Notification' ) { echo 'selected="selected"' ; } ?>><?php echo __( 'Post Notification', ES_TDOMAIN ); ?></option>
977
- </select>
978
- </p>
979
  <?php
980
  }
981
 
@@ -1009,7 +1009,7 @@ class es_cls_registerhook {
1009
 
1010
  global $post;
1011
  if ($post->post_type != 'es_template') return;
1012
-
1013
  $es_templ_type = get_post_meta($post->ID, 'es_template_type', true);
1014
  $page = ($es_templ_type == 'Newsletter') ? 'es-sendemail' : 'es-notification';
1015
  $preview_url = ES_ADMINURL."?page=".$page."&amp;ac=preview&did=".$post->ID;
868
  );
869
 
870
  $args = array(
871
+ 'labels' => $labels,
872
+ 'public' => true,
873
+ 'publicly_queryable' => false,
874
  'exclude_from_search' => true,
875
+ 'show_ui' => true,
876
+ 'show_in_menu' => 'edit.php?post_type=es_template',
877
+ 'query_var' => true,
878
+ 'rewrite' => array( 'slug' => 'es_template' ),
879
+ 'capability_type' => 'post',
880
+ 'has_archive' => false,
881
+ 'hierarchical' => false,
882
+ 'menu_position' => null,
883
+ 'supports' => array( 'title', 'editor', 'thumbnail')
884
  );
885
 
886
  register_post_type( 'es_template', $args );
928
  return $column;
929
  }
930
 
931
+ public static function es_add_admin_css(){
932
 
933
  global $current_screen;
934
 
935
  if($current_screen->post_type != 'es_template') return;
936
 
937
+ ?>
938
  <style type="text/css">
939
  .column-es_templ_thumbnail, #es_templ_thumbnail,
940
  .column-es_templ_type, #es_templ_type {
941
  text-align: center !important;
942
  }
943
  </style>
944
+ <?php
945
  }
946
 
947
  public static function es_add_template_action( $actions, $post ) {
966
  $es_templ_type = get_post_meta($post->ID, 'es_template_type', true);
967
  }
968
  ?>
969
+ <p style="margin-top: 0em; !important;">
970
+ <?php echo __( 'Available Keyword for Post Notification: {{POSTTITLE}}', ES_TDOMAIN ); ?>
971
+ </p>
972
+ <p>
973
+ <label for="tag-link"><?php echo __( 'Select your Email Template Type', ES_TDOMAIN ); ?></label><br/>
974
+ <select name="es_template_type" id="es_template_type">
975
+ <option value='Newsletter' <?php if( $es_templ_type == 'Newsletter' ) { echo 'selected="selected"' ; } ?>><?php echo __( 'Newsletter', ES_TDOMAIN ); ?></option>
976
+ <option value='Post Notification' <?php if( $es_templ_type == 'Post Notification' ) { echo 'selected="selected"' ; } ?>><?php echo __( 'Post Notification', ES_TDOMAIN ); ?></option>
977
+ </select>
978
+ </p>
979
  <?php
980
  }
981
 
1009
 
1010
  global $post;
1011
  if ($post->post_type != 'es_template') return;
1012
+
1013
  $es_templ_type = get_post_meta($post->ID, 'es_template_type', true);
1014
  $page = ($es_templ_type == 'Newsletter') ? 'es-sendemail' : 'es-notification';
1015
  $preview_url = ES_ADMINURL."?page=".$page."&amp;ac=preview&did=".$post->ID;
email-subscribers.php CHANGED
@@ -3,11 +3,11 @@
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.4.3
7
  * Author: Icegram
8
  * Author URI: https://www.icegram.com/
9
  * Requires at least: 3.4
10
- * Tested up to: 4.8.3
11
  * Text Domain: email-subscribers
12
  * Domain Path: /languages/
13
  * License: GPLv3
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.4.4
7
  * Author: Icegram
8
  * Author URI: https://www.icegram.com/
9
  * Requires at least: 3.4
10
+ * Tested up to: 4.9
11
  * Text Domain: email-subscribers
12
  * Domain Path: /languages/
13
  * License: GPLv3
job/es-subscribe.php CHANGED
@@ -70,6 +70,8 @@ if( (isset($_GET['es'])) && ($_GET['es'] == "subscribe") ) {
70
  }
71
  elseif($action == "ext") {
72
  echo "already-exist";
 
 
73
  }
74
  } else {
75
  echo "unexpected-error";
70
  }
71
  elseif($action == "ext") {
72
  echo "already-exist";
73
+ }else if($action == "invalid"){
74
+ echo "invalid-email";
75
  }
76
  } else {
77
  echo "unexpected-error";
query/db_subscriber.php CHANGED
@@ -83,6 +83,12 @@ class es_cls_dbquery {
83
  return "invalid";
84
  }
85
 
 
 
 
 
 
 
86
  $es_subscriber_name = sanitize_text_field(esc_attr($data["es_email_name"]));
87
  $es_subscriber_status = sanitize_text_field(esc_attr($data["es_email_status"]));
88
  $es_subscriber_group = sanitize_text_field(esc_attr($data["es_email_group"]));
@@ -125,6 +131,7 @@ class es_cls_dbquery {
125
  }
126
  }
127
  }
 
128
  return "sus";
129
  }
130
  } elseif($action == "update") {
@@ -138,6 +145,7 @@ class es_cls_dbquery {
138
  `es_email_status` = %s, `es_email_group` = %s WHERE es_email_id = %d LIMIT 1", array($es_subscriber_name, $es_subscriber_email,
139
  $es_subscriber_status, $es_subscriber_group, $data["es_email_id"]));
140
  $wpdb->query($sSql);
 
141
  return "sus";
142
  }
143
  }
83
  return "invalid";
84
  }
85
 
86
+ $data["es_email_mail"] = apply_filters('es_validate_subscribers_email', $data["es_email_mail"]);
87
+
88
+ if($data["es_email_mail"] === 'invalid'){
89
+ return "invalid";
90
+ }
91
+
92
  $es_subscriber_name = sanitize_text_field(esc_attr($data["es_email_name"]));
93
  $es_subscriber_status = sanitize_text_field(esc_attr($data["es_email_status"]));
94
  $es_subscriber_group = sanitize_text_field(esc_attr($data["es_email_group"]));
131
  }
132
  }
133
  }
134
+ // do_action('es_post_add_subscriber', $es_subscriber_email);
135
  return "sus";
136
  }
137
  } elseif($action == "update") {
145
  `es_email_status` = %s, `es_email_group` = %s WHERE es_email_id = %d LIMIT 1", array($es_subscriber_name, $es_subscriber_email,
146
  $es_subscriber_status, $es_subscriber_group, $data["es_email_id"]));
147
  $wpdb->query($sSql);
148
+ // do_action('es_post_add_subscriber', $es_subscriber_email);
149
  return "sus";
150
  }
151
  }
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Author URI: https://www.icegram.com/
5
  Tags: email marketing, email newsletter form, email signup, email widget, newsletter, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
6
  Requires at least: 3.4
7
- Tested up to: 4.8.3
8
- Stable tag: 3.4.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses
11
 
@@ -312,6 +312,10 @@ Use our free plugin [Email Subscribers - Group Selector](https://wordpress.org/p
312
 
313
  == Changelog ==
314
 
 
 
 
 
315
  = 3.4.3 (17.11.2017) =
316
 
317
  * Fix: Templates showing up in frontend search results
@@ -678,6 +682,10 @@ For the changelog of earlier versions, please refer to the separate [changelog.t
678
 
679
  == Upgrade Notice ==
680
 
 
 
 
 
681
  = 3.4.3 (17.11.2017) =
682
 
683
  * Fix: Templates showing up in frontend search results
4
  Author URI: https://www.icegram.com/
5
  Tags: email marketing, email newsletter form, email signup, email widget, newsletter, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
6
  Requires at least: 3.4
7
+ Tested up to: 4.9
8
+ Stable tag: 3.4.4
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses
11
 
312
 
313
  == Changelog ==
314
 
315
+ = 3.4.4 (21.11.2017) =
316
+
317
+ * New: Introduce [Email Subscribers Pro](https://www.icegram.com/email-subscribers-pricing/) plan
318
+
319
  = 3.4.3 (17.11.2017) =
320
 
321
  * Fix: Templates showing up in frontend search results
682
 
683
  == Upgrade Notice ==
684
 
685
+ = 3.4.4 (21.11.2017) =
686
+
687
+ * New: Introduce [Email Subscribers Pro](https://www.icegram.com/email-subscribers-pricing/) plan
688
+
689
  = 3.4.3 (17.11.2017) =
690
 
691
  * Fix: Templates showing up in frontend search results
subscribers/view-subscriber-show.php CHANGED
@@ -244,12 +244,15 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
244
  <a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&amp;ac=export"><?php echo __( 'Export', ES_TDOMAIN ); ?></a>
245
  <a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&amp;ac=sync"><?php echo __( 'Sync', ES_TDOMAIN ); ?></a>
246
  <a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', ES_TDOMAIN ); ?></a>
 
 
 
247
  </h2>
248
  <div style="text-align:right;">
249
  <?php
250
  $total_subscribers = es_cls_dbquery::es_view_subscriber_count(0);
251
  $active_subscribers = es_cls_dbquery::es_active_subscribers();
252
- echo sprintf(__( 'Total Subscribers: %s', ES_TDOMAIN ), $total_subscribers );
253
  echo '<br>';
254
  echo sprintf(__( 'Active Subscribers: %s', ES_TDOMAIN ), $active_subscribers );
255
  ?>
@@ -278,6 +281,16 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
278
 
279
  $myData = array();
280
  $myData = es_cls_dbquery::es_view_subscribers_details(0, $search_sts, $offset, $limit, $search_group);
 
 
 
 
 
 
 
 
 
 
281
  ?>
282
 
283
  <div class="tablenav">
@@ -313,6 +326,9 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
313
  </select>
314
  <input type="submit" value="<?php echo __( 'Apply', ES_TDOMAIN ); ?>" class="button action" id="doaction" name="doaction">
315
  </span>
 
 
 
316
  <span style="float:right;">
317
  <select name="search_group_action" id="search_group_action" onchange="return _es_search_group_action(this.value)">
318
  <option value=""><?php echo __( 'All Groups', ES_TDOMAIN ); ?></option>
@@ -357,12 +373,18 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
357
  <th scope="col" class="check-column" style="padding: 17px 2px;">
358
  <input type="checkbox" name="es_checkall" id="es_checkall" onClick="_es_checkall('frm_es_display', 'chk_delete[]', this.checked);" />
359
  </th>
360
- <th scope="col"><?php echo __( 'Email Address', ES_TDOMAIN ); ?></th>
361
- <th scope="col"><?php echo __( 'Name', ES_TDOMAIN ); ?></th>
 
 
 
 
 
 
362
  <th scope="col"><?php echo __( 'Status', ES_TDOMAIN ); ?></th>
363
  <th scope="col"><?php echo __( 'Group', ES_TDOMAIN ); ?></th>
364
  <th scope="col"><?php echo __( 'Signup Date & Time<br>(Y-M-D H:I:S)', ES_TDOMAIN ); ?></th>
365
- <th scope="col"><?php echo __( 'Action', ES_TDOMAIN ); ?></th>
366
  </tr>
367
  </thead>
368
  <tfoot>
@@ -370,58 +392,70 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
370
  <th scope="col" class="check-column" style="padding: 17px 2px;">
371
  <input type="checkbox" name="es_checkall" id="es_checkall" onClick="_es_checkall('frm_es_display', 'chk_delete[]', this.checked);" />
372
  </th>
373
- <th scope="col"><?php echo __( 'Email Address', ES_TDOMAIN ); ?></th>
 
 
 
 
 
 
 
374
  <th scope="col"><?php echo __( 'Name', ES_TDOMAIN ); ?></th>
375
  <th scope="col"><?php echo __( 'Status', ES_TDOMAIN ); ?></th>
376
  <th scope="col"><?php echo __( 'Group', ES_TDOMAIN ); ?></th>
377
  <th scope="col"><?php echo __( 'Signup Date & Time<br>(Y-M-D H:I:S)', ES_TDOMAIN ); ?></th>
378
- <th scope="col"><?php echo __( 'Action', ES_TDOMAIN ); ?></th>
379
  </tr>
380
  </tfoot>
381
  <tbody>
382
  <?php
383
  $i = 0;
384
  $displayisthere = FALSE;
 
385
  if(count($myData) > 0) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
  if ($offset == 0) {
387
  $i = 1;
388
  } else {
389
  $i = $offset;
390
  }
391
- foreach ($myData as $data) {
392
  ?>
393
  <tr class="<?php if ($i&1) { echo'alternate'; } else { echo ''; } ?>">
394
  <td align="left"><input name="chk_delete[]" id="chk_delete[]" type="checkbox" value="<?php echo $data['es_email_id'] ?>" /></td>
395
- <td><?php echo $data['es_email_mail']; ?></td>
396
- <td><?php echo stripslashes($data['es_email_name']); ?></td>
397
- <td><?php echo es_cls_common::es_disp_status($data['es_email_status']); ?></td>
398
- <td><?php echo stripslashes($data['es_email_group']); ?></td>
399
- <td><?php echo get_date_from_gmt($data['es_email_created'],'Y-m-d H:i:s'); ?></td>
400
- <td>
401
- <div>
402
- <span class="edit">
403
- <a href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&amp;ac=edit&amp;did=<?php echo $data['es_email_id']; ?>">
404
- <?php echo __( 'Edit', ES_TDOMAIN ); ?>
405
- </a> |
406
- </span>
407
- <span class="trash">
408
- <a onClick="javascript:_es_delete('<?php echo $data['es_email_id']; ?>')" href="javascript:void(0);">
409
- <?php echo __( 'Delete', ES_TDOMAIN ); ?>
410
- </a>
411
- </span>
412
- <?php
413
- if($data['es_email_status'] != "Confirmed" && $data['es_email_status'] != "Single Opt In" ) {
414
- ?>
415
- <span class="edit">
416
- | <a onClick="javascript:_es_resend('<?php echo $data['es_email_id']; ?>')" href="javascript:void(0);">
417
- <?php echo __( 'Resend Confirmation', ES_TDOMAIN ); ?>
418
- </a>
419
- </span>
420
- <?php
421
- }
422
- ?>
423
- </div>
424
- </td>
425
  </tr>
426
  <?php
427
  $i = $i+1;
244
  <a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&amp;ac=export"><?php echo __( 'Export', ES_TDOMAIN ); ?></a>
245
  <a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&amp;ac=sync"><?php echo __( 'Sync', ES_TDOMAIN ); ?></a>
246
  <a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', ES_TDOMAIN ); ?></a>
247
+ <?php
248
+ do_action('es_after_action_buttons');
249
+ ?>
250
  </h2>
251
  <div style="text-align:right;">
252
  <?php
253
  $total_subscribers = es_cls_dbquery::es_view_subscriber_count(0);
254
  $active_subscribers = es_cls_dbquery::es_active_subscribers();
255
+ echo '<span>'.__( 'Total Subscribers: ', ES_TDOMAIN ).'</span><span class="es_total_subscribers">'.$total_subscribers.'</span>';
256
  echo '<br>';
257
  echo sprintf(__( 'Active Subscribers: %s', ES_TDOMAIN ), $active_subscribers );
258
  ?>
281
 
282
  $myData = array();
283
  $myData = es_cls_dbquery::es_view_subscribers_details(0, $search_sts, $offset, $limit, $search_group);
284
+
285
+ //column for subscribers
286
+ $es_subscribers_col = array();
287
+ $es_subscribers_col['email'] = __( 'Email Address', ES_TDOMAIN );
288
+ $es_subscribers_col['name'] = __( 'Name', ES_TDOMAIN );
289
+ $es_subscribers_col['status'] = __( 'Status', ES_TDOMAIN );
290
+ $es_subscribers_col['group'] = __( 'Group', ES_TDOMAIN );
291
+ $es_subscribers_col['date'] = __( 'Signup Date & Time<br>(Y-M-D H:I:S)', ES_TDOMAIN );
292
+ $es_subscribers_col['action'] = __( 'Action', ES_TDOMAIN );
293
+ $es_subscribers_col = apply_filters('es_subscribers_col', $es_subscribers_col);
294
  ?>
295
 
296
  <div class="tablenav">
326
  </select>
327
  <input type="submit" value="<?php echo __( 'Apply', ES_TDOMAIN ); ?>" class="button action" id="doaction" name="doaction">
328
  </span>
329
+ <?php
330
+ do_action('es_after_bulk_action');
331
+ ?>
332
  <span style="float:right;">
333
  <select name="search_group_action" id="search_group_action" onchange="return _es_search_group_action(this.value)">
334
  <option value=""><?php echo __( 'All Groups', ES_TDOMAIN ); ?></option>
373
  <th scope="col" class="check-column" style="padding: 17px 2px;">
374
  <input type="checkbox" name="es_checkall" id="es_checkall" onClick="_es_checkall('frm_es_display', 'chk_delete[]', this.checked);" />
375
  </th>
376
+ <?php
377
+ foreach ($es_subscribers_col as $key => $name) {
378
+ ?>
379
+ <th scope="col"><?php echo $name ?></th>
380
+ <?php
381
+ }
382
+ ?>
383
+ <!-- <th scope="col"><?php echo __( 'Name', ES_TDOMAIN ); ?></th>
384
  <th scope="col"><?php echo __( 'Status', ES_TDOMAIN ); ?></th>
385
  <th scope="col"><?php echo __( 'Group', ES_TDOMAIN ); ?></th>
386
  <th scope="col"><?php echo __( 'Signup Date & Time<br>(Y-M-D H:I:S)', ES_TDOMAIN ); ?></th>
387
+ <th scope="col"><?php echo __( 'Action', ES_TDOMAIN ); ?></th> -->
388
  </tr>
389
  </thead>
390
  <tfoot>
392
  <th scope="col" class="check-column" style="padding: 17px 2px;">
393
  <input type="checkbox" name="es_checkall" id="es_checkall" onClick="_es_checkall('frm_es_display', 'chk_delete[]', this.checked);" />
394
  </th>
395
+ <?php
396
+ foreach ($es_subscribers_col as $key => $name) {
397
+ ?>
398
+ <th scope="col"><?php echo $name ?></th>
399
+ <?php
400
+ }
401
+ ?>
402
+ <!-- <th scope="col"><?php echo __( 'Email Address', ES_TDOMAIN ); ?></th>
403
  <th scope="col"><?php echo __( 'Name', ES_TDOMAIN ); ?></th>
404
  <th scope="col"><?php echo __( 'Status', ES_TDOMAIN ); ?></th>
405
  <th scope="col"><?php echo __( 'Group', ES_TDOMAIN ); ?></th>
406
  <th scope="col"><?php echo __( 'Signup Date & Time<br>(Y-M-D H:I:S)', ES_TDOMAIN ); ?></th>
407
+ <th scope="col"><?php echo __( 'Action', ES_TDOMAIN ); ?></th> -->
408
  </tr>
409
  </tfoot>
410
  <tbody>
411
  <?php
412
  $i = 0;
413
  $displayisthere = FALSE;
414
+ $es_data_to_display = array();
415
  if(count($myData) > 0) {
416
+ foreach ($myData as $data) {
417
+ $es_col_data['es_email_id'] = stripslashes($data['es_email_id']);
418
+ $es_col_data['es_email_mail'] = stripslashes($data['es_email_mail']);
419
+ $es_col_data['es_email_name'] = stripslashes($data['es_email_name']);
420
+ $es_col_data['es_email_status'] = es_cls_common::es_disp_status($data['es_email_status']);
421
+ $es_col_data['es_email_group'] = stripslashes($data['es_email_group']);
422
+ $es_col_data['es_email_created'] = get_date_from_gmt($data['es_email_created'],'Y-m-d H:i:s');
423
+ $es_resend_link = ($data['es_email_status'] != 'Con firmed' && $data['es_email_status'] != 'Single Opt In' ) ? "<span class=edit>| <a onClick=javascript:_es_resend(".$data['es_email_id'].") href=javascript:void(0);>".__( "Resend Confirmation", ES_TDOMAIN )."</a> </span>" : '' ;
424
+ $es_col_data['es_quick_actions'] = "<div>
425
+ <span class=edit>
426
+ <a href=".ES_ADMINURL."?page=es-view-subscribers&amp;ac=edit&amp;did=".$data['es_email_id'].">
427
+ ". __( 'Edit', ES_TDOMAIN ) ."
428
+ </a> |
429
+ </span>
430
+ <span class=trash>
431
+ <a onClick=javascript:_es_delete(".$data["es_email_id"].") href=javascript:void(0);>
432
+ ". __( 'Delete', ES_TDOMAIN )."
433
+ </a>
434
+ </span>"
435
+ .$es_resend_link.
436
+ "
437
+ </div>";
438
+ $res = apply_filters('es_subscribers_col_data', $es_col_data, $data);
439
+ $es_data_to_display[] = $res;
440
+
441
+ }
442
  if ($offset == 0) {
443
  $i = 1;
444
  } else {
445
  $i = $offset;
446
  }
447
+ foreach ($es_data_to_display as $data) {
448
  ?>
449
  <tr class="<?php if ($i&1) { echo'alternate'; } else { echo ''; } ?>">
450
  <td align="left"><input name="chk_delete[]" id="chk_delete[]" type="checkbox" value="<?php echo $data['es_email_id'] ?>" /></td>
451
+ <?php
452
+ unset($data['es_email_id']);
453
+ foreach ($data as $key => $value) {
454
+ ?>
455
+ <td><?php echo $value; ?></td>
456
+ <?php
457
+ }
458
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
459
  </tr>
460
  <?php
461
  $i = $i+1;