Email Subscribers & Newsletters - Version 5.4.14

Version Description

  • New : Filter subscribers using custom fields while sending emails[PRO]

=

Download this release

Release Info

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

Code changes from version 5.4.13 to 5.4.14

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: 5.4.13
7
  * Author: Icegram
8
  * Author URI: https://www.icegram.com/
9
  * Requires at least: 3.9
@@ -187,7 +187,7 @@ if ( 'premium' === $ig_es_plan ) {
187
  /* ***************************** Initial Compatibility Work (End) ******************* */
188
 
189
  if ( ! defined( 'ES_PLUGIN_VERSION' ) ) {
190
- define( 'ES_PLUGIN_VERSION', '5.4.13' );
191
  }
192
 
193
  // Plugin Folder Path.
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: 5.4.14
7
  * Author: Icegram
8
  * Author URI: https://www.icegram.com/
9
  * Requires at least: 3.9
187
  /* ***************************** Initial Compatibility Work (End) ******************* */
188
 
189
  if ( ! defined( 'ES_PLUGIN_VERSION' ) ) {
190
+ define( 'ES_PLUGIN_VERSION', '5.4.14' );
191
  }
192
 
193
  // Plugin Folder Path.
lite/admin/class-email-subscribers-admin.php CHANGED
@@ -225,9 +225,11 @@ class Email_Subscribers_Admin {
225
  'mailchimp_notice_nowindow_close' => esc_html__( 'Fetching contacts from MailChimp...Please do not close this window', 'email-subscribers' ),
226
 
227
  // verify Email authentication header messages
228
- 'error_send_test_email' => esc_html__('SMTP Error : Unable to send test email', 'email-subscribers'),
229
- 'error_server_busy' => esc_html__('Server Busy : Please try again later', 'email-subscribers'),
230
- 'success_verify_email_headers' => esc_html__('Headers verified successfully', 'email-subscribers'),
 
 
231
  ),
232
  'is_pro' => ES()->is_pro() ? true : false,
233
  );
@@ -691,11 +693,11 @@ class Email_Subscribers_Admin {
691
  if ( ! empty( $conditions ) ) {
692
  if ( 'yes' === $get_count ) {
693
  $args = array(
694
- 'lists' => $list_id,
695
- 'conditions' => $conditions,
696
- 'status' => $status,
697
- 'subscriber_status' => array( 'verified' ),
698
- 'return_count' => true,
699
  );
700
  $query = new IG_ES_Subscribers_Query();
701
  $response_data['total'] = $query->run( $args );
@@ -1120,7 +1122,12 @@ class Email_Subscribers_Admin {
1120
 
1121
  $meta = ! empty( $data['campaign_id'] ) ? ES()->campaigns_db->get_campaign_meta_by_id( $data['campaign_id'] ) : '';
1122
  $data['html'] = $data['content'];
1123
- $data['css'] = ! empty( $meta['es_custom_css'] ) ? $meta['es_custom_css'] : get_post_meta( $data['tmpl_id'], 'es_custom_css', true );
 
 
 
 
 
1124
  $data['tasks'][] = 'css-inliner';
1125
  }
1126
 
@@ -1331,6 +1338,7 @@ class Email_Subscribers_Admin {
1331
  }
1332
 
1333
  $completed = false;
 
1334
 
1335
  $contacts_table = new ES_Contacts_Table();
1336
  $current_action = $contacts_table->current_action();
@@ -1379,6 +1387,7 @@ class Email_Subscribers_Admin {
1379
  }
1380
  }
1381
 
 
1382
  $return_response = true;
1383
  $action_response = $contacts_table->process_bulk_action( $return_response );
1384
  $completed = (int) $current_page === (int) $total_pages;
@@ -1387,6 +1396,7 @@ class Email_Subscribers_Admin {
1387
  'start_page' => $start_page,
1388
  'total_pages' => $total_pages,
1389
  'completed' => $completed,
 
1390
  'message' => $action_response['message'],
1391
  'bulk_action' => $current_action,
1392
  );
@@ -1622,9 +1632,23 @@ class Email_Subscribers_Admin {
1622
 
1623
  check_ajax_referer( 'ig-es-admin-ajax-nonce', 'security' );
1624
 
1625
- $template_id = ig_es_get_request_data( 'template_id' );
 
1626
 
1627
- $template = get_post( $template_id, ARRAY_A );
 
 
 
 
 
 
 
 
 
 
 
 
 
1628
  if ( $template ) {
1629
  $current_user = wp_get_current_user();
1630
  $username = $current_user->user_login;
@@ -1649,33 +1673,32 @@ class Email_Subscribers_Admin {
1649
  }
1650
  }
1651
 
1652
- $es_template_body = $template['post_content'];
1653
-
1654
- $es_template_type = get_post_meta( $template_id, 'es_template_type', true );
1655
-
1656
- if ( 'post_notification' === $es_template_type ) {
1657
- $args = array(
1658
- 'numberposts' => '1',
1659
- 'order' => 'DESC',
1660
- 'post_status' => 'publish',
1661
- );
1662
- $recent_posts = wp_get_recent_posts( $args );
1663
-
1664
- if ( count( $recent_posts ) > 0 ) {
1665
- $recent_post = array_shift( $recent_posts );
1666
-
1667
- $post_id = $recent_post['ID'];
1668
- $es_template_body = ES_Handle_Post_Notification::prepare_body( $es_template_body, $post_id, $template_id );
 
1669
  }
1670
- } else {
1671
- $es_template_body = ES_Common::es_process_template_body( $es_template_body, $template_id );
1672
  }
1673
 
1674
  $es_template_body = ES_Common::replace_keywords_with_fallback( $es_template_body, array(
1675
- 'FIRSTNAME' => $first_name,
1676
- 'NAME' => $username,
1677
- 'LASTNAME' => $last_name,
1678
- 'EMAIL' => $useremail
1679
  ) );
1680
 
1681
  $es_template_body = ES_Common::replace_keywords_with_fallback( $es_template_body, array(
@@ -1685,15 +1708,7 @@ class Email_Subscribers_Admin {
1685
  'subscriber.email' => $useremail
1686
  ) );
1687
 
1688
- $allowedtags = ig_es_allowed_html_tags_in_esc();
1689
  add_filter( 'safe_style_css', 'ig_es_allowed_css_style' );
1690
-
1691
- if ( has_post_thumbnail( $template_id ) ) {
1692
- $image_array = wp_get_attachment_image_src( get_post_thumbnail_id( $template_id ), 'full' );
1693
- $image = '<img src="' . $image_array[0] . '" class="img-responsive" alt="Image for Post ' . $template_id . '" />';
1694
- } else {
1695
- $image = '';
1696
- }
1697
  $response['template_html'] = apply_filters( 'the_content', $es_template_body );
1698
  } else {
1699
  $response['template_html'] = __( 'Please publish it or save it as a draft.', 'email-subscribers' );
225
  'mailchimp_notice_nowindow_close' => esc_html__( 'Fetching contacts from MailChimp...Please do not close this window', 'email-subscribers' ),
226
 
227
  // verify Email authentication header messages
228
+ 'error_send_test_email' => esc_html__('SMTP Error : Unable to send test email', 'email-subscribers'),
229
+ 'error_server_busy' => esc_html__('Server Busy : Please try again later', 'email-subscribers'),
230
+ 'success_verify_email_headers' => esc_html__('Headers verified successfully', 'email-subscribers'),
231
+
232
+ 'confirm_select_all' => esc_html__('Want to select contacts on all pages?', 'email-subscribers'),
233
  ),
234
  'is_pro' => ES()->is_pro() ? true : false,
235
  );
693
  if ( ! empty( $conditions ) ) {
694
  if ( 'yes' === $get_count ) {
695
  $args = array(
696
+ 'lists' => $list_id,
697
+ 'conditions' => $conditions,
698
+ 'status' => $status,
699
+ 'subscriber_status' => array( 'verified' ),
700
+ 'return_count' => true,
701
  );
702
  $query = new IG_ES_Subscribers_Query();
703
  $response_data['total'] = $query->run( $args );
1122
 
1123
  $meta = ! empty( $data['campaign_id'] ) ? ES()->campaigns_db->get_campaign_meta_by_id( $data['campaign_id'] ) : '';
1124
  $data['html'] = $data['content'];
1125
+ $data['css'] = '';
1126
+ if ( ! empty( $meta['es_custom_css'] ) ) {
1127
+ $data['css'] = $meta['es_custom_css'];
1128
+ } elseif ( ! empty( $data['tmpl_id'] ) ) {
1129
+ $data['css'] = get_post_meta( $data['tmpl_id'], 'es_custom_css', true );
1130
+ }
1131
  $data['tasks'][] = 'css-inliner';
1132
  }
1133
 
1338
  }
1339
 
1340
  $completed = false;
1341
+ $errortype = false;
1342
 
1343
  $contacts_table = new ES_Contacts_Table();
1344
  $current_action = $contacts_table->current_action();
1387
  }
1388
  }
1389
 
1390
+
1391
  $return_response = true;
1392
  $action_response = $contacts_table->process_bulk_action( $return_response );
1393
  $completed = (int) $current_page === (int) $total_pages;
1396
  'start_page' => $start_page,
1397
  'total_pages' => $total_pages,
1398
  'completed' => $completed,
1399
+ 'errortype' => $action_response['errortype'] ? $action_response['errortype'] : $errortype ,
1400
  'message' => $action_response['message'],
1401
  'bulk_action' => $current_action,
1402
  );
1632
 
1633
  check_ajax_referer( 'ig-es-admin-ajax-nonce', 'security' );
1634
 
1635
+ $template_id = ig_es_get_request_data( 'template_id' );
1636
+ $gallery_type = ig_es_get_request_data( 'gallery_type' );
1637
 
1638
+ if ( 'remote' === $gallery_type ) {
1639
+ $gallery = ES_Gallery::get_instance();
1640
+ $template = $gallery->get_remote_gallery_item( $template_id );
1641
+
1642
+ $es_template_body = $template->content->rendered;
1643
+ $es_template_type = $template->es_template_type;
1644
+ $custom_css = $template->es_custom_css;
1645
+ $es_template_body = $custom_css . $es_template_body;
1646
+ } else {
1647
+ $template = get_post( $template_id, ARRAY_A );
1648
+ $es_template_body = $template['post_content'];
1649
+ $es_template_type = get_post_meta( $template_id, 'es_template_type', true );
1650
+ }
1651
+
1652
  if ( $template ) {
1653
  $current_user = wp_get_current_user();
1654
  $username = $current_user->user_login;
1673
  }
1674
  }
1675
 
1676
+ // Don't replace placeholder keywords in remote templates.
1677
+ if ( 'remote' !== $gallery_type ) {
1678
+ if ( 'post_notification' === $es_template_type ) {
1679
+ $args = array(
1680
+ 'numberposts' => '1',
1681
+ 'order' => 'DESC',
1682
+ 'post_status' => 'publish',
1683
+ );
1684
+ $recent_posts = wp_get_recent_posts( $args );
1685
+
1686
+ if ( count( $recent_posts ) > 0 ) {
1687
+ $recent_post = array_shift( $recent_posts );
1688
+
1689
+ $post_id = $recent_post['ID'];
1690
+ $es_template_body = ES_Handle_Post_Notification::prepare_body( $es_template_body, $post_id, $template_id );
1691
+ }
1692
+ } else {
1693
+ $es_template_body = ES_Common::es_process_template_body( $es_template_body, $template_id );
1694
  }
 
 
1695
  }
1696
 
1697
  $es_template_body = ES_Common::replace_keywords_with_fallback( $es_template_body, array(
1698
+ 'FIRSTNAME' => $first_name,
1699
+ 'NAME' => $username,
1700
+ 'LASTNAME' => $last_name,
1701
+ 'EMAIL' => $useremail
1702
  ) );
1703
 
1704
  $es_template_body = ES_Common::replace_keywords_with_fallback( $es_template_body, array(
1708
  'subscriber.email' => $useremail
1709
  ) );
1710
 
 
1711
  add_filter( 'safe_style_css', 'ig_es_allowed_css_style' );
 
 
 
 
 
 
 
1712
  $response['template_html'] = apply_filters( 'the_content', $es_template_body );
1713
  } else {
1714
  $response['template_html'] = __( 'Please publish it or save it as a draft.', 'email-subscribers' );
lite/admin/class-es-gallery.php CHANGED
@@ -1,6 +1,9 @@
1
  <?php
2
 
3
  // Exit if accessed directly
 
 
 
4
  if ( ! defined( 'ABSPATH' ) ) {
5
  exit;
6
  }
@@ -43,7 +46,7 @@ if ( ! class_exists( 'ES_Gallery' ) ) {
43
  }
44
 
45
  /**
46
- * Register the JavaScript for campaign rules.
47
  */
48
  public function enqueue_scripts() {
49
 
@@ -59,6 +62,9 @@ if ( ! class_exists( 'ES_Gallery' ) ) {
59
  'post_notification_campaign_type' => esc_attr( IG_CAMPAIGN_TYPE_POST_NOTIFICATION ),
60
  'newsletter_campaign_type' => esc_attr( IG_CAMPAIGN_TYPE_NEWSLETTER ),
61
  'post_digest_campaign_type' => esc_attr( IG_CAMPAIGN_TYPE_POST_DIGEST ),
 
 
 
62
  );
63
 
64
  if ( ! wp_script_is( 'wp-i18n' ) ) {
@@ -82,10 +88,11 @@ if ( ! class_exists( 'ES_Gallery' ) ) {
82
 
83
  if ( 'ig_es_import_gallery_item' === $action ) {
84
  check_admin_referer( 'ig-es-admin-ajax-nonce' );
 
85
  $template_id = ig_es_get_request_data( 'template-id' );
86
  $campaign_id = ig_es_get_request_data( 'campaign-id' );
87
  $campaign_type = ig_es_get_request_data( 'campaign-type' );
88
- $imported_campaign_id = $this->import_gallery_item_handler( $template_id, $campaign_type, $campaign_id );
89
  if ( ! empty( $imported_campaign_id ) ) {
90
  if ( IG_CAMPAIGN_TYPE_POST_DIGEST === $campaign_type || IG_CAMPAIGN_TYPE_POST_NOTIFICATION === $campaign_type ) {
91
  $redirect_url = admin_url( 'admin.php?page=es_notifications&action=edit&list=' . $imported_campaign_id );
@@ -98,8 +105,18 @@ if ( ! class_exists( 'ES_Gallery' ) ) {
98
  }
99
  }
100
 
101
- public function import_gallery_item_handler( $template_id, $campaign_type, $campaign_id = 0 ) {
 
 
 
 
 
 
102
 
 
 
 
 
103
  if ( ! empty( $template_id ) ) {
104
  $template = get_post( $template_id );
105
  if ( ! empty( $template ) ) {
@@ -127,6 +144,10 @@ if ( ! class_exists( 'ES_Gallery' ) ) {
127
  // In classic edior, we need to add p tag to content when not already added.
128
  $content = wpautop( $content );
129
  }
 
 
 
 
130
  }
131
 
132
  $campaign_meta = maybe_serialize( $campaign_meta );
@@ -150,7 +171,88 @@ if ( ! class_exists( 'ES_Gallery' ) ) {
150
 
151
  }
152
  }
 
 
 
 
 
 
 
 
 
 
 
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  return $campaign_id;
155
  }
156
 
@@ -164,16 +266,55 @@ if ( ! class_exists( 'ES_Gallery' ) ) {
164
  $response = array();
165
  $gallery_items = array();
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  $campaign_templates = ES_Common::get_templates();
168
 
169
  if ( !empty( $campaign_templates ) ) {
170
  foreach ( $campaign_templates as $campaign_template) {
 
171
  $editor_type = get_post_meta( $campaign_template->ID, 'es_editor_type', true );
172
  $categories = array();
173
  $gallery_item['ID'] = $campaign_template->ID;
174
  $gallery_item['title'] = $campaign_template->post_title;
175
  $gallery_item['type'] = get_post_meta( $campaign_template->ID, 'es_template_type', true );
176
  $gallery_item['editor_type'] = !empty($editor_type) ? $editor_type : IG_ES_CLASSIC_EDITOR;
 
177
  $categories[] = !empty($gallery_item['type']) ? $gallery_item['type'] : IG_CAMPAIGN_TYPE_NEWSLETTER;
178
  $categories[] = !empty($editor_type) ? $editor_type : IG_ES_CLASSIC_EDITOR;
179
  $gallery_item['categories'] = $categories;
@@ -184,15 +325,59 @@ if ( ! class_exists( 'ES_Gallery' ) ) {
184
  '200',
185
  ) ): '';
186
  $gallery_item['thumbnail'] = ( !empty ($thumbnail_url) ) ? $thumbnail_url : '';
187
- $gallery_items[] = $gallery_item;
 
188
  }
189
  }
190
 
191
-
192
- $response['items'] = $gallery_items;
193
 
194
  wp_send_json_success( $response );
195
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  }
197
 
198
  }
1
  <?php
2
 
3
  // Exit if accessed directly
4
+
5
+ use BaconQrCode\Common\ReedSolomonCodec;
6
+
7
  if ( ! defined( 'ABSPATH' ) ) {
8
  exit;
9
  }
46
  }
47
 
48
  /**
49
+ * Register the JavaScript for ES gallery.
50
  */
51
  public function enqueue_scripts() {
52
 
62
  'post_notification_campaign_type' => esc_attr( IG_CAMPAIGN_TYPE_POST_NOTIFICATION ),
63
  'newsletter_campaign_type' => esc_attr( IG_CAMPAIGN_TYPE_NEWSLETTER ),
64
  'post_digest_campaign_type' => esc_attr( IG_CAMPAIGN_TYPE_POST_DIGEST ),
65
+ 'local_gallery_type' => 'local',
66
+ 'remote_gallery_type' => 'remote',
67
+ 'es_plan' => ES()->get_plan(),
68
  );
69
 
70
  if ( ! wp_script_is( 'wp-i18n' ) ) {
88
 
89
  if ( 'ig_es_import_gallery_item' === $action ) {
90
  check_admin_referer( 'ig-es-admin-ajax-nonce' );
91
+ $gallery_type = ig_es_get_request_data( 'gallery-type' );
92
  $template_id = ig_es_get_request_data( 'template-id' );
93
  $campaign_id = ig_es_get_request_data( 'campaign-id' );
94
  $campaign_type = ig_es_get_request_data( 'campaign-type' );
95
+ $imported_campaign_id = $this->import_gallery_item_handler( $gallery_type, $template_id, $campaign_type, $campaign_id );
96
  if ( ! empty( $imported_campaign_id ) ) {
97
  if ( IG_CAMPAIGN_TYPE_POST_DIGEST === $campaign_type || IG_CAMPAIGN_TYPE_POST_NOTIFICATION === $campaign_type ) {
98
  $redirect_url = admin_url( 'admin.php?page=es_notifications&action=edit&list=' . $imported_campaign_id );
105
  }
106
  }
107
 
108
+ public function import_gallery_item_handler( $gallery_type, $template_id, $campaign_type, $campaign_id = 0 ) {
109
+
110
+ if ( 'remote' === $gallery_type ) {
111
+ $campaign_id = $this->import_remote_gallery_item( $template_id, $campaign_type, $campaign_id );
112
+ } else {
113
+ $campaign_id = $this->import_local_gallery_item( $template_id, $campaign_type, $campaign_id );
114
+ }
115
 
116
+ return $campaign_id;
117
+ }
118
+
119
+ public function import_local_gallery_item( $template_id, $campaign_type, $campaign_id = 0 ) {
120
  if ( ! empty( $template_id ) ) {
121
  $template = get_post( $template_id );
122
  if ( ! empty( $template ) ) {
144
  // In classic edior, we need to add p tag to content when not already added.
145
  $content = wpautop( $content );
146
  }
147
+ $custom_css = get_post_meta( $template_id, 'es_custom_css', true );
148
+ if ( ! empty( $custom_css ) ) {
149
+ $campaign_meta['es_custom_css'] = $custom_css;
150
+ }
151
  }
152
 
153
  $campaign_meta = maybe_serialize( $campaign_meta );
171
 
172
  }
173
  }
174
+
175
+ return $campaign_id;
176
+ }
177
+
178
+ public function import_remote_gallery_item( $template_id, $campaign_type, $campaign_id = 0 ) {
179
+ $gallery_item = $this->get_remote_gallery_item( $template_id );
180
+ if ( empty( $gallery_item ) ) {
181
+ return $campaign_id;
182
+ }
183
+
184
+ $template_version = ! empty( $gallery_item->template_version ) ? $gallery_item->template_version : '';
185
 
186
+ if ( '1.0.0' === $template_version ) {
187
+ $subject = $gallery_item->title->rendered;
188
+ $content = $gallery_item->content->rendered;
189
+ $from_email = ES_Common::get_ig_option( 'from_email' );
190
+ $from_name = ES_Common::get_ig_option( 'from_name' );
191
+ $editor_type = ! empty( $gallery_item->es_editor_type ) ? $gallery_item->es_editor_type : IG_ES_CLASSIC_EDITOR;
192
+ $campaign_meta = array(
193
+ 'editor_type' => $editor_type,
194
+ );
195
+ if ( IG_ES_DRAG_AND_DROP_EDITOR === $editor_type ) {
196
+ $dnd_editor_data = maybe_unserialize( $gallery_item->es_dnd_editor_data );
197
+ if ( ! empty( $dnd_editor_data ) ) {
198
+ $campaign_meta['dnd_editor_data'] = $gallery_item->es_dnd_editor_data;
199
+ }
200
+ } else {
201
+ if ( false === strpos( $content, '<html' ) ) {
202
+ // In classic edior, we need to add p tag to content when not already added.
203
+ $content = wpautop( $content );
204
+ }
205
+
206
+ $custom_css = ! empty( $gallery_item->es_custom_css ) ? $gallery_item->es_custom_css : '';
207
+ if ( ! empty( $custom_css ) ) {
208
+ $campaign_meta['es_custom_css'] = $custom_css;
209
+ }
210
+ }
211
+
212
+ $campaign_meta = maybe_serialize( $campaign_meta );
213
+
214
+ preg_match_all( '#<img\s+(?:[^>]*?\s+)?src=(\'|")?(https?[^\'"]+)(\'|")?#', $content, $image_urls );
215
+ $image_urls = ! empty( $image_urls[2] ) ? $image_urls[2] : array();
216
+ if ( ! empty( $image_urls ) ) {
217
+ foreach ( $image_urls as $image_url ) {
218
+ $is_ig_image_link = false !== strpos( $image_url , 'icegram.com' );
219
+ if ( $is_ig_image_link ) {
220
+ $new_image_url = ES_Common::download_image_from_url( $image_url );
221
+ if ( ! empty( $new_image_url ) ) {
222
+ $old_url = ' src="' . $image_url . '"';
223
+ $new_url = ' src="' . $new_image_url . '"';
224
+ $pos = strpos( $content, $old_url );
225
+ if ( false !== $pos ) {
226
+ $content = preg_replace( '/' . preg_quote( $old_url, '/' ) . '/', $new_url, $content, 1 );
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+
233
+ $campaign_data = array(
234
+ 'name' => $subject,
235
+ 'subject' => $subject,
236
+ 'slug' => sanitize_title( sanitize_text_field( $subject ) ),
237
+ 'body' => $content,
238
+ 'from_name' => $from_name,
239
+ 'from_email' => $from_email,
240
+ 'type' => $campaign_type,
241
+ 'meta' => $campaign_meta,
242
+ );
243
+
244
+ if ( ! empty( $campaign_id ) ) {
245
+ ES()->campaigns_db->update( $campaign_id, $campaign_data );
246
+ } else {
247
+ $campaign_id = ES()->campaigns_db->save_campaign( $campaign_data );
248
+ if ( ! empty( $campaign_id ) ) {
249
+ $imported_gallery_template_ids = get_option( 'ig_es_imported_remote_gallery_template_ids', array() );
250
+ $imported_gallery_template_ids[] = $template_id;
251
+ update_option( 'ig_es_imported_remote_gallery_template_ids', $imported_gallery_template_ids );
252
+ }
253
+ }
254
+ }
255
+
256
  return $campaign_id;
257
  }
258
 
266
  $response = array();
267
  $gallery_items = array();
268
 
269
+ $remote_gallery_items = $this->get_remote_gallery_items();
270
+ if ( ! empty( $remote_gallery_items ) ) {
271
+ foreach ( $remote_gallery_items as $item ) {
272
+ $template_version = $item->template_version;
273
+ if ( '1.0.0' === $template_version ) {
274
+ $template_slug = $item->slug;
275
+ $item_id = $item->id;
276
+ $item_title = $item->title->rendered;
277
+ $thumbnail_url = ! empty( $item->thumbnail->guid ) ? $item->thumbnail->guid : '';
278
+ $editor_type = ! empty( $item->es_editor_type ) ? $item->es_editor_type : IG_ES_CLASSIC_EDITOR;
279
+ $campaign_type = ! empty( $item->es_template_type ) ? $item->es_template_type : IG_CAMPAIGN_TYPE_NEWSLETTER;
280
+ $es_plan = ! empty( $item->es_plan ) ? $item->es_plan : 'lite';
281
+ $gallery_type = 'remote';
282
+
283
+ $categories = array(
284
+ $campaign_type,
285
+ $editor_type
286
+ );
287
+
288
+ if ( 'lite' !== $es_plan ) {
289
+ $categories[] = $es_plan;
290
+ }
291
+
292
+ $gallery_items[$template_slug] = array(
293
+ 'ID' => $item_id,
294
+ 'title' => $item_title,
295
+ 'thumbnail' => $thumbnail_url,
296
+ 'categories' => $categories,
297
+ 'type' => $campaign_type,
298
+ 'editor_type' => $editor_type,
299
+ 'gallery_type' => 'remote',
300
+ 'es_plan' => $es_plan,
301
+ );
302
+ }
303
+ }
304
+ }
305
+
306
  $campaign_templates = ES_Common::get_templates();
307
 
308
  if ( !empty( $campaign_templates ) ) {
309
  foreach ( $campaign_templates as $campaign_template) {
310
+ $template_slug = $campaign_template->post_name;
311
  $editor_type = get_post_meta( $campaign_template->ID, 'es_editor_type', true );
312
  $categories = array();
313
  $gallery_item['ID'] = $campaign_template->ID;
314
  $gallery_item['title'] = $campaign_template->post_title;
315
  $gallery_item['type'] = get_post_meta( $campaign_template->ID, 'es_template_type', true );
316
  $gallery_item['editor_type'] = !empty($editor_type) ? $editor_type : IG_ES_CLASSIC_EDITOR;
317
+ $gallery_type = 'local';
318
  $categories[] = !empty($gallery_item['type']) ? $gallery_item['type'] : IG_CAMPAIGN_TYPE_NEWSLETTER;
319
  $categories[] = !empty($editor_type) ? $editor_type : IG_ES_CLASSIC_EDITOR;
320
  $gallery_item['categories'] = $categories;
325
  '200',
326
  ) ): '';
327
  $gallery_item['thumbnail'] = ( !empty ($thumbnail_url) ) ? $thumbnail_url : '';
328
+ $gallery_item['gallery_type'] = $gallery_type;
329
+ $gallery_items[$template_slug] = $gallery_item;
330
  }
331
  }
332
 
333
+ $response['items'] = array_values( $gallery_items );
 
334
 
335
  wp_send_json_success( $response );
336
  }
337
+
338
+ public function get_remote_gallery_items() {
339
+ $remote_gallery_items_updated = get_transient( 'ig_es_remote_gallery_items_updated' );
340
+ if ( ! $remote_gallery_items_updated ) {
341
+ $remote_gallery_items_url = 'https://icegram.com/gallery/wp-json/wp/v2/es_gallery_item?filter[posts_per_page]=200';
342
+
343
+ $response = wp_remote_get( $remote_gallery_items_url );
344
+ if ( ! is_wp_error( $response ) ) {
345
+ $json_response = wp_remote_retrieve_body( $response );
346
+ if ( ! empty( $json_response ) && ES_Common::is_valid_json( $json_response ) ) {
347
+ $gallery_items = json_decode( $json_response );
348
+ if ( is_array( $gallery_items ) ) {
349
+ update_option( 'ig_es_remote_gallery_items', $gallery_items, 'no' );
350
+ set_transient( 'ig_es_remote_gallery_items_updated', time(), 24 * HOUR_IN_SECONDS ); // 1 day
351
+ }
352
+ }
353
+ }
354
+ }
355
+
356
+ $remote_gallery_items = get_option( 'ig_es_remote_gallery_items', array() );
357
+ return $remote_gallery_items;
358
+ }
359
+
360
+ public function get_remote_gallery_item( $item_id ) {
361
+
362
+ $gallery_item = array();
363
+ if ( empty( $item_id ) ) {
364
+ return $gallery_item;
365
+ }
366
+
367
+ $remote_gallery_item_url = 'https://icegram.com/gallery/wp-json/wp/v2/es_gallery_item/' . $item_id;
368
+ $response = wp_remote_get( $remote_gallery_item_url );
369
+
370
+ if ( ! is_wp_error( $response ) ) {
371
+ if ( 200 === wp_remote_retrieve_response_code( $response ) ) {
372
+ $json_response = wp_remote_retrieve_body( $response );
373
+ if ( ! empty( $json_response ) && ES_Common::is_valid_json( $json_response ) ) {
374
+ $gallery_item = json_decode( $json_response );
375
+ }
376
+ }
377
+ }
378
+
379
+ return $gallery_item;
380
+ }
381
  }
382
 
383
  }
lite/admin/class-ig-es-campaign-rules.php CHANGED
@@ -299,33 +299,69 @@ if ( ! class_exists( 'IG_ES_Campaign_Rules' ) ) {
299
  ?>
300
  </select>
301
  </div>
302
- <div class="ig-es-conditions-operator-field" data-fields=",lang,client,referer,firstname,lastname,email,">
303
- <select name="<?php echo esc_attr( $input_name ); ?>[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( $j ); ?>][operator]" class="condition-operator form-select" disabled>
304
- <?php
305
- foreach ( $this->string_operators as $key => $name ) :
306
- echo '<option value="' . esc_attr( $key ) . '"' . selected( $field_operator, $key, false ) . '>' . esc_html( $name ) . '</option>';
307
- endforeach;
308
- ?>
309
- </select>
310
- </div>
311
- <div class="ig-es-conditions-operator-field" data-fields=",engagement_score,">
312
- <select name="<?php echo esc_attr( $input_name ); ?>[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( $j ); ?>][operator]" class="condition-operator form-select" disabled>
313
- <?php
314
- foreach ( $this->simple_operators as $key => $name ) :
315
- echo '<option value="' . esc_attr( $key ) . '"' . selected( $field_operator, $key, false ) . '>' . esc_html( $name ) . '</option>';
316
- endforeach;
317
- ?>
318
- </select>
319
- </div>
320
- <div class="ig-es-conditions-operator-field" data-fields=",country_code,bounce_status,">
321
- <select name="<?php echo esc_attr( $input_name ); ?>[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( $j ); ?>][operator]" class="condition-operator form-select" disabled>
322
- <?php
323
- foreach ( $this->bool_operators as $key => $name ) :
324
- echo '<option value="' . esc_attr( $key ) . '"' . selected( $field_operator, $key, false ) . '>' . esc_html( $name ) . '</option>';
325
- endforeach;
326
- ?>
327
- </select>
328
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
  <div class="ig-es-conditions-operator-field" data-fields=",_sent,_sent__not_in,_open,_open__not_in,_click,_click__not_in,_lists__not_in,_lists__in,">
330
  <input type="hidden" name="<?php echo esc_attr( $input_name ); ?>[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( $j ); ?>][operator]" class="condition-operator" disabled value="is">
331
  </div>
@@ -559,6 +595,12 @@ if ( ! class_exists( 'IG_ES_Campaign_Rules' ) ) {
559
  }
560
  $return['operator'] = '<em>' . $this->nice_name( $operator, 'operator', $field ) . '</em>';
561
  $return['value'] = $opening_quote . implode( $closing_quote . ' ' . esc_html__( 'or', 'email-subscribers' ) . ' ' . $opening_quote, array_map( array( $this, 'get_bounce_status_name' ), $value ) ) . $closing_quote;
 
 
 
 
 
 
562
  } else {
563
  $return['operator'] = '<em>' . $this->nice_name( $operator, 'operator', $field ) . '</em>';
564
  $return['value'] = $opening_quote . '<span class="font-medium text-gray-500 tracking-wide mr-1">' . $this->nice_name( $value, 'value', $field ) . '</span>' . $closing_quote;
299
  ?>
300
  </select>
301
  </div>
302
+ <?php
303
+ $campaign_rules_data_fields = array(
304
+ 'string_fields' => array( 'email' ),
305
+ );
306
+ $campaign_rules_data_fields = apply_filters( 'ig_es_campaign_rules_data_fields', $campaign_rules_data_fields );
307
+ if ( ! empty( $campaign_rules_data_fields['string_fields'] ) ) {
308
+ ?>
309
+ <div class="ig-es-conditions-operator-field" data-fields=",<?php echo esc_attr( implode( ',', $campaign_rules_data_fields['string_fields'] ) ); ?>,">
310
+ <select name="<?php echo esc_attr( $input_name ); ?>[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( $j ); ?>][operator]" class="condition-operator form-select" disabled>
311
+ <?php
312
+ foreach ( $this->string_operators as $key => $name ) :
313
+ echo '<option value="' . esc_attr( $key ) . '"' . selected( $field_operator, $key, false ) . '>' . esc_html( $name ) . '</option>';
314
+ endforeach;
315
+ ?>
316
+ </select>
317
+ </div>
318
+ <?php
319
+ }
320
+ ?>
321
+ <?php
322
+ if ( ! empty( $campaign_rules_data_fields['simple_fields'] ) ) {
323
+ ?>
324
+ <div class="ig-es-conditions-operator-field" data-fields=",<?php echo esc_attr( implode( ',', $campaign_rules_data_fields['simple_fields'] ) ); ?>,">
325
+ <select name="<?php echo esc_attr( $input_name ); ?>[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( $j ); ?>][operator]" class="condition-operator form-select" disabled>
326
+ <?php
327
+ foreach ( $this->simple_operators as $key => $name ) :
328
+ echo '<option value="' . esc_attr( $key ) . '"' . selected( $field_operator, $key, false ) . '>' . esc_html( $name ) . '</option>';
329
+ endforeach;
330
+ ?>
331
+ </select>
332
+ </div>
333
+ <?php
334
+ }
335
+ ?>
336
+ <?php
337
+ if ( ! empty( $campaign_rules_data_fields['date_fields'] ) ) {
338
+ ?>
339
+ <div class="ig-es-conditions-operator-field" data-fields=",<?php echo esc_attr( implode( ',', $campaign_rules_data_fields['date_fields'] ) ); ?>,">
340
+ <select name="<?php echo esc_attr( $input_name ); ?>[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( $j ); ?>][operator]" class="condition-operator form-select" disabled>
341
+ <?php
342
+ foreach ( $this->simple_operators as $key => $name ) :
343
+ echo '<option value="' . esc_attr( $key ) . '"' . selected( $field_operator, $key, false ) . '>' . esc_html( $name ) . '</option>';
344
+ endforeach;
345
+ ?>
346
+ </select>
347
+ </div>
348
+ <?php
349
+ }
350
+
351
+ if ( ! empty( $campaign_rules_data_fields['boolean_fields'] ) ) {
352
+ ?>
353
+ <div class="ig-es-conditions-operator-field" data-fields=",<?php echo esc_attr( implode( ',', $campaign_rules_data_fields['boolean_fields'] ) ); ?>,">
354
+ <select name="<?php echo esc_attr( $input_name ); ?>[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( $j ); ?>][operator]" class="condition-operator form-select" disabled>
355
+ <?php
356
+ foreach ( $this->bool_operators as $key => $name ) :
357
+ echo '<option value="' . esc_attr( $key ) . '"' . selected( $field_operator, $key, false ) . '>' . esc_html( $name ) . '</option>';
358
+ endforeach;
359
+ ?>
360
+ </select>
361
+ </div>
362
+ <?php
363
+ }
364
+ ?>
365
  <div class="ig-es-conditions-operator-field" data-fields=",_sent,_sent__not_in,_open,_open__not_in,_click,_click__not_in,_lists__not_in,_lists__in,">
366
  <input type="hidden" name="<?php echo esc_attr( $input_name ); ?>[<?php echo esc_attr( $i ); ?>][<?php echo esc_attr( $j ); ?>][operator]" class="condition-operator" disabled value="is">
367
  </div>
595
  }
596
  $return['operator'] = '<em>' . $this->nice_name( $operator, 'operator', $field ) . '</em>';
597
  $return['value'] = $opening_quote . implode( $closing_quote . ' ' . esc_html__( 'or', 'email-subscribers' ) . ' ' . $opening_quote, array_map( array( $this, 'get_bounce_status_name' ), $value ) ) . $closing_quote;
598
+ } elseif ( false !== strpos( $field, 'cf_' ) ) {
599
+ if ( ! is_array( $value ) ) {
600
+ $value = array( $value );
601
+ }
602
+ $return['operator'] = '<em>' . $this->nice_name( $operator, 'operator', $field ) . '</em>';
603
+ $return['value'] = $opening_quote . implode( $closing_quote . ' ' . esc_html__( 'or', 'email-subscribers' ) . ' ' . $opening_quote, $value ) . $closing_quote;
604
  } else {
605
  $return['operator'] = '<em>' . $this->nice_name( $operator, 'operator', $field ) . '</em>';
606
  $return['value'] = $opening_quote . '<span class="font-medium text-gray-500 tracking-wide mr-1">' . $this->nice_name( $value, 'value', $field ) . '</span>' . $closing_quote;
lite/admin/class-ig-es-onboarding.php CHANGED
@@ -836,19 +836,6 @@ if ( ! class_exists( 'IG_ES_Onboarding' ) ) {
836
  $title = esc_html__( 'Welcome To Email Subscribers', 'email-subscribers' );
837
  $subject = esc_html__( 'Welcome To Email Subscribers', 'email-subscribers' );
838
 
839
- $es_post = array(
840
- 'post_title' => $title,
841
- 'post_content' => $sample,
842
- 'post_status' => 'publish',
843
- 'post_type' => 'es_template',
844
- 'meta_input' => array(
845
- 'es_template_type' => 'newsletter',
846
- ),
847
- );
848
-
849
- // Insert the post into the database
850
- $post_id = wp_insert_post( $es_post );
851
-
852
  // Create Broadcast Campaign
853
 
854
  $default_list = ES()->lists_db->get_list_by_name( IG_DEFAULT_LIST );
@@ -856,44 +843,40 @@ if ( ! class_exists( 'IG_ES_Onboarding' ) ) {
856
  if ( ! empty( $default_list ) ) {
857
  $list_id = $default_list['id'];
858
 
859
- if ( ! empty( $post_id ) ) {
860
-
861
- $data['slug'] = sanitize_title( $title );
862
- $data['name'] = $title;
863
- $data['subject'] = $subject;
864
- $data['type'] = IG_CAMPAIGN_TYPE_NEWSLETTER;
865
- $data['from_email'] = $from_email;
866
- $data['reply_to_email'] = $from_email;
867
- $data['from_name'] = $from_name;
868
- $data['reply_to_name'] = $from_name;
869
- $data['base_template_id'] = $post_id;
870
- $data['body'] = $sample;
871
- $data['status'] = 1;
872
-
873
- $meta = array(
874
- 'enable_open_tracking' => ES()->mailer->can_track_open() ? 'yes' : 'no',
875
- 'enable_link_tracking' => ES()->mailer->can_track_clicks() ? 'yes' : 'no',
876
- 'list_conditions' => array(
877
  array(
878
- array(
879
- 'field' => '_lists__in',
880
- 'operator' => 'is',
881
- 'value' => $list_id,
882
- )
883
- ),
884
  ),
885
- );
 
886
 
887
- $data['meta'] = maybe_serialize( $meta );
888
 
889
- $broadcast_id = ES()->campaigns_db->save_campaign( $data );
890
 
891
- if ( $broadcast_id ) {
892
- $response['status'] = 'success';
893
- $response['tasks_data'] = array(
894
- 'broadcast_id' => $broadcast_id,
895
- );
896
- }
897
  }
898
  }
899
 
@@ -1118,76 +1101,61 @@ if ( ! class_exists( 'IG_ES_Onboarding' ) ) {
1118
  $content .= 'You received this email because in the past you have provided us your email address : {{EMAIL}} to receive notifications when new updates are posted.';
1119
 
1120
  $title = esc_html__( 'New Post Published - {{POSTTITLE}}', 'email-subscribers' );
1121
- // Create Post Notification object
1122
- $post = array(
1123
- 'post_title' => $title,
1124
- 'post_content' => $content,
1125
- 'post_status' => 'publish',
1126
- 'post_type' => 'es_template',
1127
- 'meta_input' => array(
1128
- 'es_template_type' => 'post_notification',
1129
- ),
1130
- );
1131
- // Insert the post into the database
1132
- $post_id = wp_insert_post( $post );
1133
 
1134
  $default_list = ES()->lists_db->get_list_by_name( IG_DEFAULT_LIST );
1135
 
1136
- if ( ! empty( $post_id ) ) {
1137
- $list_id = $default_list['id'];
1138
 
1139
- $categories_objects = get_terms(
1140
- array(
1141
- 'taxonomy' => 'category',
1142
- 'hide_empty' => false,
1143
- )
1144
- );
1145
 
1146
- $categories = array();
1147
- if ( count( $categories_objects ) > 0 ) {
1148
- foreach ( $categories_objects as $category ) {
1149
- if ( $category instanceof WP_Term ) {
1150
- $categories[] = $category->term_id;
1151
- }
1152
  }
1153
  }
 
1154
 
1155
- $meta = array(
1156
- 'list_conditions' => array(
 
1157
  array(
1158
- array(
1159
- 'field' => '_lists__in',
1160
- 'operator' => 'is',
1161
- 'value' => $list_id,
1162
- )
1163
- ),
1164
  ),
1165
- );
1166
-
1167
- $categories_str = ES_Common::convert_categories_array_to_string( $categories );
1168
 
1169
- $data['slug'] = sanitize_title( $title );
1170
- $data['name'] = $title;
1171
- $data['subject'] = $title;
1172
- $data['body'] = $content;
1173
- $data['type'] = IG_CAMPAIGN_TYPE_POST_NOTIFICATION;
1174
- $data['from_email'] = $from_name;
1175
- $data['reply_to_email'] = $from_name;
1176
- $data['from_name'] = $from_email;
1177
- $data['reply_to_name'] = $from_email;
1178
- $data['categories'] = $categories_str;
1179
- $data['list_ids'] = $list_id;
1180
- $data['base_template_id'] = $post_id;
1181
- $data['status'] = 0;
1182
- $data['meta'] = maybe_serialize( $meta );
1183
-
1184
- $post_notification_id = ES()->campaigns_db->save_campaign( $data );
1185
- if ( $post_notification_id ) {
1186
- $response['status'] = 'success';
1187
- $response['tasks_data'] = array(
1188
- 'post_notification_id' => $post_notification_id,
1189
- );
1190
- }
1191
  }
1192
 
1193
  return $response;
836
  $title = esc_html__( 'Welcome To Email Subscribers', 'email-subscribers' );
837
  $subject = esc_html__( 'Welcome To Email Subscribers', 'email-subscribers' );
838
 
 
 
 
 
 
 
 
 
 
 
 
 
 
839
  // Create Broadcast Campaign
840
 
841
  $default_list = ES()->lists_db->get_list_by_name( IG_DEFAULT_LIST );
843
  if ( ! empty( $default_list ) ) {
844
  $list_id = $default_list['id'];
845
 
846
+ $data['slug'] = sanitize_title( $title );
847
+ $data['name'] = $title;
848
+ $data['subject'] = $subject;
849
+ $data['type'] = IG_CAMPAIGN_TYPE_NEWSLETTER;
850
+ $data['from_email'] = $from_email;
851
+ $data['reply_to_email'] = $from_email;
852
+ $data['from_name'] = $from_name;
853
+ $data['reply_to_name'] = $from_name;
854
+ $data['body'] = $sample;
855
+ $data['status'] = 1;
856
+
857
+ $meta = array(
858
+ 'enable_open_tracking' => ES()->mailer->can_track_open() ? 'yes' : 'no',
859
+ 'enable_link_tracking' => ES()->mailer->can_track_clicks() ? 'yes' : 'no',
860
+ 'list_conditions' => array(
861
+ array(
 
 
862
  array(
863
+ 'field' => '_lists__in',
864
+ 'operator' => 'is',
865
+ 'value' => $list_id,
866
+ )
 
 
867
  ),
868
+ ),
869
+ );
870
 
871
+ $data['meta'] = maybe_serialize( $meta );
872
 
873
+ $broadcast_id = ES()->campaigns_db->save_campaign( $data );
874
 
875
+ if ( $broadcast_id ) {
876
+ $response['status'] = 'success';
877
+ $response['tasks_data'] = array(
878
+ 'broadcast_id' => $broadcast_id,
879
+ );
 
880
  }
881
  }
882
 
1101
  $content .= 'You received this email because in the past you have provided us your email address : {{EMAIL}} to receive notifications when new updates are posted.';
1102
 
1103
  $title = esc_html__( 'New Post Published - {{POSTTITLE}}', 'email-subscribers' );
 
 
 
 
 
 
 
 
 
 
 
 
1104
 
1105
  $default_list = ES()->lists_db->get_list_by_name( IG_DEFAULT_LIST );
1106
 
1107
+ $list_id = $default_list['id'];
 
1108
 
1109
+ $categories_objects = get_terms(
1110
+ array(
1111
+ 'taxonomy' => 'category',
1112
+ 'hide_empty' => false,
1113
+ )
1114
+ );
1115
 
1116
+ $categories = array();
1117
+ if ( count( $categories_objects ) > 0 ) {
1118
+ foreach ( $categories_objects as $category ) {
1119
+ if ( $category instanceof WP_Term ) {
1120
+ $categories[] = $category->term_id;
 
1121
  }
1122
  }
1123
+ }
1124
 
1125
+ $meta = array(
1126
+ 'list_conditions' => array(
1127
+ array(
1128
  array(
1129
+ 'field' => '_lists__in',
1130
+ 'operator' => 'is',
1131
+ 'value' => $list_id,
1132
+ )
 
 
1133
  ),
1134
+ ),
1135
+ );
 
1136
 
1137
+ $categories_str = ES_Common::convert_categories_array_to_string( $categories );
1138
+
1139
+ $data['slug'] = sanitize_title( $title );
1140
+ $data['name'] = $title;
1141
+ $data['subject'] = $title;
1142
+ $data['body'] = $content;
1143
+ $data['type'] = IG_CAMPAIGN_TYPE_POST_NOTIFICATION;
1144
+ $data['from_email'] = $from_name;
1145
+ $data['reply_to_email'] = $from_name;
1146
+ $data['from_name'] = $from_email;
1147
+ $data['reply_to_name'] = $from_email;
1148
+ $data['categories'] = $categories_str;
1149
+ $data['list_ids'] = $list_id;
1150
+ $data['status'] = 0;
1151
+ $data['meta'] = maybe_serialize( $meta );
1152
+
1153
+ $post_notification_id = ES()->campaigns_db->save_campaign( $data );
1154
+ if ( $post_notification_id ) {
1155
+ $response['status'] = 'success';
1156
+ $response['tasks_data'] = array(
1157
+ 'post_notification_id' => $post_notification_id,
1158
+ );
1159
  }
1160
 
1161
  return $response;
lite/admin/css/email-subscribers-admin.css CHANGED
@@ -2041,7 +2041,7 @@ body.email-subscribers_page_es_campaigns .column-status .dashicons[title="Finish
2041
  padding-right: 4px;
2042
  }
2043
 
2044
- .ig-es-conditions-value-fields:not([data-condition="email"]):not([data-condition="country_code"]):not([data-condition="engagement_score"]):not([data-condition="bounce_status"]) {
2045
  max-width: 60%;
2046
  }
2047
 
2041
  padding-right: 4px;
2042
  }
2043
 
2044
+ .ig-es-conditions-value-fields:not([data-condition="email"]):not([data-condition="country_code"]):not([data-condition="engagement_score"]):not([data-condition="bounce_status"]):not([data-condition^="cf_"]) {
2045
  max-width: 60%;
2046
  }
2047
 
lite/admin/dist/main.css CHANGED
@@ -599,11 +599,6 @@ video {
599
  height: auto;
600
  }
601
 
602
- /* style for link on unsubscribe page */
603
- #ig-es-unsubscribe-message a {
604
- color: #fff;
605
- }
606
-
607
  a {
608
  --text-opacity: 1;
609
  color: #5850ec;
@@ -213632,3 +213627,4 @@ input[type="number"]:focus {
213632
  animation: bounce 1s infinite;
213633
  }
213634
  }
 
599
  height: auto;
600
  }
601
 
 
 
 
 
 
602
  a {
603
  --text-opacity: 1;
604
  color: #5850ec;
213627
  animation: bounce 1s infinite;
213628
  }
213629
  }
213630
+
lite/admin/dist/main.js CHANGED
@@ -105,7 +105,7 @@ eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack:///./lite
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
108
- eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _css_style_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css/style.css */ \"./lite/admin/css/style.css\");\n/* harmony import */ var _css_style_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_style_css__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _src_views_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/views/GalleryItemsPage */ \"./lite/admin/js/src/views/GalleryItemsPage.js\");\n\n\n\nif ('undefined' !== typeof wp.i18n) {\n global.__ = wp.i18n.__;\n} else {\n // Create a dummy fallback function incase i18n library isn't available.\n global.__ = function (text, textDomain) {\n return text;\n };\n}\n\nvar campaignGalleryItemsWrapper = document.querySelector('#ig-es-campaign-gallery-items-wrapper');\nvar campaignType = location.search.split('campaign-type=')[1];\nvar campaignId = location.search.split('campaign-id=')[1];\n\nif ('undefined' === typeof campaignType) {\n campaignType = ig_es_main_js_data.post_notification_campaign_type;\n}\n\nif ('undefined' === typeof campaignId) {\n campaignId = 0;\n}\n\nm.mount(campaignGalleryItemsWrapper, {\n view: function view() {\n return m(_src_views_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n campaignId: campaignId,\n campaignType: campaignType\n });\n }\n});\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./lite/admin/js/main.js?");
109
 
110
  /***/ }),
111
 
@@ -117,7 +117,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(f
117
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
118
 
119
  "use strict";
120
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _views_Loader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../views/Loader */ \"./lite/admin/js/src/views/Loader.js\");\n\nvar GalleryItems = {\n items: [],\n loadItems: function loadItems() {\n _views_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = true;\n return m.request({\n method: 'GET',\n url: ajaxurl,\n params: {\n action: 'ig_es_get_gallery_items',\n security: ig_es_js_data.security\n },\n withCredentials: true\n }).then(function (response) {\n GalleryItems.items = response.data.items;\n _views_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = false;\n });\n },\n loadTemplatePreviewData: function loadTemplatePreviewData(templateId) {\n _views_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = true;\n return m.request({\n method: 'GET',\n url: ajaxurl,\n params: {\n action: 'ig_es_preview_template',\n security: ig_es_js_data.security,\n template_id: templateId\n },\n withCredentials: true\n }).then(function (response) {\n _views_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = false;\n return response;\n });\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItems);\n\n//# sourceURL=webpack:///./lite/admin/js/src/models/GalleryItems.js?");
121
 
122
  /***/ }),
123
 
@@ -141,7 +141,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Gal
141
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
142
 
143
  "use strict";
144
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GalleryItemsPage */ \"./lite/admin/js/src/views/GalleryItemsPage.js\");\n\nvar GalleryItem = {\n view: function view(vnode) {\n var item = vnode.attrs.item;\n var campaignType = vnode.attrs.campaignType; // let campaignId = vnode.attrs.campaignId;\n\n return m(\"div\", {\n class: \"\"\n }, m(\"div\", {\n class: \"h-full border-2 border-gray-200 border-opacity-60 rounded-lg overflow-hidden\"\n }, m(\"div\", {\n class: \"cursor-pointer\",\n onclick: function onclick() {\n return _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showPreview(item.ID, campaignType);\n }\n }, item.thumbnail ? m(\"img\", {\n class: \"lg:h-48 md:h-36 w-full object-contain object-center\",\n src: item.thumbnail,\n alt: \"{item.title}\"\n }) : m(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n class: \"h-40 w-full mb-8 \",\n fill: \"none\",\n viewBox: \"0 0 24 24\",\n stroke: \"#d2d6dc\"\n }, m(\"path\", {\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"stroke-width\": \"1\",\n d: \"M3 19v-8.93a2 2 0 01.89-1.664l7-4.666a2 2 0 012.22 0l7 4.666A2 2 0 0121 10.07V19M3 19a2 2 0 002 2h14a2 2 0 002-2M3 19l6.75-4.5M21 19l-6.75-4.5M3 10l6.75 4.5M21 10l-6.75 4.5m0 0l-1.14.76a2 2 0 01-2.22 0l-1.14-.76\"\n }))), m(\"div\", {\n class: \"p-4 bg-white h-28\"\n }, m(\"div\", {\n class: \"flex items-center flex-wrap whitespace-nowrap\"\n }, item.categories.map(function (name, key) {\n return m(\"span\", {\n class: \"es-tmpl-category capitalize mr-2 inline-flex items-center leading-none py-1 px-1 text-xs rounded\"\n }, item.categories[key].replace(/_/g, ' '));\n })), m(\"h4\", {\n onclick: function onclick() {\n return _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showPreview(item.ID, campaignType);\n },\n class: \"title-font text-lg font-medium text-gray-900 mb-3 mt-2 sm:truncate cursor-pointer hover:underline\"\n }, item.title), m(\"div\", {\n class: \"flex items-center flex-wrap \"\n }, m(\"a\", {\n href: '?action=ig_es_import_gallery_item&template-id=' + item.ID + '&campaign-type=' + campaignType + '&_wpnonce=' + ig_es_js_data.security,\n class: \"font-semibold text-base text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0\"\n }, __('Use this', 'email-subscribers'), m(\"svg\", {\n class: \"w-4 h-4 ml-2\",\n viewBox: \"0 0 24 24\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n fill: \"none\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n }, m(\"path\", {\n d: \"M5 12h14\"\n }), m(\"path\", {\n d: \"M12 5l7 7-7 7\"\n })))))));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItem);\n\n//# sourceURL=webpack:///./lite/admin/js/src/views/GalleryItem.js?");
145
 
146
  /***/ }),
147
 
@@ -153,7 +153,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Gal
153
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
154
 
155
  "use strict";
156
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GalleryItemsPage */ \"./lite/admin/js/src/views/GalleryItemsPage.js\");\n\nvar GalleryItemFilter = {\n view: function view(vnode) {\n //let item = vnode.attrs.item;\n return m(\"div\", {\n class: \"text-center text-xs font-medium text-green-800\"\n }, m(\"p\", {\n class: \"mb-3 text-gray-700 text-sm font-thin\"\n }, __('Click on the labels to filter out the templates', 'email-subscribers')), m(\"p\", {\n class: \"mb-3 pr-2 inline border-r border-gray-300\"\n }, m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('type', ig_es_main_js_data.newsletter_campaign_type);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.indexOf(ig_es_main_js_data.newsletter_campaign_type) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Newsletter', 'email-subscribers')), m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('type', ig_es_main_js_data.post_notification_campaign_type);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.indexOf(ig_es_main_js_data.post_notification_campaign_type) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Post Notification', 'email-subscribers')), ig_es_js_data.is_pro && m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('type', ig_es_main_js_data.post_digest_campaign_type);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.indexOf(ig_es_main_js_data.post_digest_campaign_type) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Post Digest', 'email-subscribers'))), m(\"p\", {\n class: \"inline pl-2\"\n }, m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('editor_type', ig_es_main_js_data.classic_editor_slug);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.editor_type.indexOf(ig_es_main_js_data.classic_editor_slug) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Classic Editor', 'email-subscribers')), m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('editor_type', ig_es_main_js_data.dnd_editor_slug);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.editor_type.indexOf(ig_es_main_js_data.dnd_editor_slug) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Drag and Drop editor', 'email-subscribers'))), m(\"a\", {\n href: \"#\",\n class: \"text-red-800 m-1 px-3 py-1 cursor-pointer\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].clearAllActiveFilters();\n }\n }, __('Clear all filters', 'email-subscribers')));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItemFilter);\n\n//# sourceURL=webpack:///./lite/admin/js/src/views/GalleryItemFilter.js?");
157
 
158
  /***/ }),
159
 
@@ -165,7 +165,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Gal
165
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
166
 
167
  "use strict";
168
- eval("__webpack_require__.r(__webpack_exports__);\nvar GalleryItemPreview = {\n previewHTML: '',\n itemID: '',\n campaignType: '',\n oncreate: function oncreate() {\n ig_es_load_iframe_preview('#gallery-item-preview-iframe-container', GalleryItemPreview.previewHTML);\n },\n view: function view(vnode) {\n return m(\"div\", {\n id: \"campaign-preview-popup\"\n }, m(\"div\", {\n class: \"fixed top-0 left-0 z-50 flex items-center justify-center w-full h-full\",\n style: \"background-color: rgba(0,0,0,.5);\"\n }, m(\"div\", {\n id: \"campaign-preview-main-container\",\n class: \"absolute h-auto pt-2 ml-16 mr-4 text-left bg-white rounded shadow-xl z-80 w-1/2 md:max-w-5xl lg:max-w-7xl md:pt-3 lg:pt-2\"\n }, m(\"div\", {\n class: \"py-2 px-4\"\n }, m(\"div\", {\n class: \"flex border-b border-gray-200 pb-2\"\n }, m(\"h3\", {\n class: \"w-full text-2xl text-left\"\n }, __('Template Preview', 'email-subscribers')), m(\"div\", {\n class: \"flex\"\n }, m(\"button\", {\n id: \"close-campaign-preview-popup\",\n class: \"text-sm font-medium tracking-wide text-gray-700 select-none no-outline focus:outline-none focus:shadow-outline-red hover:border-red-400 active:shadow-lg\",\n onclick: function onclick() {\n GalleryItemPreview.previewHTML = '';\n }\n }, m(\"svg\", {\n class: \"h-5 w-5 inline\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n viewBox: \"0 0 24 24\",\n stroke: \"currentColor\",\n \"aria-hidden\": \"true\"\n }, m(\"path\", {\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"stroke-width\": \"2\",\n d: \"M6 18L18 6M6 6l12 12\"\n })))))), m(\"div\", {\n id: \"gallery-item-preview-container\"\n }, m(\"p\", {\n class: \"mx-4 mb-2\"\n }, __('There could be a slight variation on how your customer will view the email content.', 'email-subscribers')), m(\"div\", {\n id: \"gallery-item-preview-iframe-container\",\n class: \"py-4 list-decimal popup-preview\"\n })), m(\"div\", {\n class: \"flex justify-center\"\n }, m(\"a\", {\n class: \"ig-es-primary-button py-1 px-2 mb-5 text-white cursor-pointer\",\n href: '?action=ig_es_import_gallery_item&template-id=' + GalleryItemPreview.itemID + '&campaign-type=' + GalleryItemPreview.campaignType + '&_wpnonce=' + ig_es_js_data.security\n }, __('Use this template', 'email-subscribers'))))));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItemPreview);\n\n//# sourceURL=webpack:///./lite/admin/js/src/views/GalleryItemPreview.js?");
169
 
170
  /***/ }),
171
 
@@ -177,7 +177,7 @@ eval("__webpack_require__.r(__webpack_exports__);\nvar GalleryItemPreview = {\n
177
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
178
 
179
  "use strict";
180
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/GalleryItems */ \"./lite/admin/js/src/models/GalleryItems.js\");\n/* harmony import */ var _GalleryItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GalleryItem */ \"./lite/admin/js/src/views/GalleryItem.js\");\n/* harmony import */ var _GalleryItemFilter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GalleryItemFilter */ \"./lite/admin/js/src/views/GalleryItemFilter.js\");\n/* harmony import */ var _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GalleryItemPreview */ \"./lite/admin/js/src/views/GalleryItemPreview.js\");\n/* harmony import */ var _EditorChoicePopup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EditorChoicePopup */ \"./lite/admin/js/src/views/EditorChoicePopup.js\");\n/* harmony import */ var _Loader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Loader */ \"./lite/admin/js/src/views/Loader.js\");\n\n\n\n\n\n\nvar GalleryItemsPage = {\n canShowEditorChoicePopup: false,\n activeFilters: [],\n oninit: function oninit(vnode) {\n _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].loadItems();\n var campaignType = vnode.attrs.campaignType;\n\n if (!GalleryItemsPage.activeFilters.type) {\n GalleryItemsPage.activeFilters.type = [];\n }\n\n if (!GalleryItemsPage.activeFilters.editor_type) {\n GalleryItemsPage.activeFilters.editor_type = [ig_es_main_js_data.classic_editor_slug, ig_es_main_js_data.dnd_editor_slug]; // GalleryItemsPage.activeFilters.editor_type.push();\n // GalleryItemsPage.activeFilters.editor_type.push(ig_es_main_js_data.dnd_editor_slug);\n }\n\n if (GalleryItemsPage.activeFilters.type.length >= 0 && GalleryItemsPage.activeFilters.type.indexOf(campaignType) === -1) {\n GalleryItemsPage.activeFilters.type.push(campaignType);\n var isPostNotificationCampaign = campaignType === ig_es_main_js_data.post_notification_campaign_type;\n\n if (isPostNotificationCampaign) {\n GalleryItemsPage.activeFilters.type.push(ig_es_main_js_data.post_digest_campaign_type);\n }\n }\n },\n showPreview: function showPreview(id, campaignType) {\n _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].loadTemplatePreviewData(id).then(function (response) {\n _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].previewHTML = response.data.template_html;\n _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].itemID = id;\n _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].campaignType = campaignType;\n });\n },\n showEditorChoicePopup: function showEditorChoicePopup() {\n GalleryItemsPage.canShowEditorChoicePopup = true;\n },\n hideEditorChoicePopup: function hideEditorChoicePopup() {\n GalleryItemsPage.canShowEditorChoicePopup = false;\n },\n setActiveFilters: function setActiveFilters(filter, filterVal) {\n if (!GalleryItemsPage.activeFilters[filter]) {\n GalleryItemsPage.activeFilters[filter] = [];\n }\n\n if (GalleryItemsPage.activeFilters[filter].indexOf(filterVal) > -1) {\n GalleryItemsPage.activeFilters[filter] = GalleryItemsPage.activeFilters[filter].filter(function (e) {\n return e !== filterVal;\n });\n } else {\n GalleryItemsPage.activeFilters[filter].push(filterVal);\n }\n },\n clearAllActiveFilters: function clearAllActiveFilters() {\n GalleryItemsPage.activeFilters.type = [];\n GalleryItemsPage.activeFilters.editor_type = [];\n },\n view: function view(vnode) {\n var campaignType = vnode.attrs.campaignType;\n var sortedGalleryItems = _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items;\n\n if (_models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items.length > 0) {\n if (Object.keys(GalleryItemsPage.activeFilters).length > 0 || Object.keys(GalleryItemsPage.activeFilters).length > 0) {\n if (GalleryItemsPage.activeFilters.type.length > 0) {\n sortedGalleryItems = _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items.filter(function (item) {\n return GalleryItemsPage.activeFilters.type.includes(item.type);\n });\n }\n\n if (GalleryItemsPage.activeFilters.editor_type.length > 0) {\n sortedGalleryItems = sortedGalleryItems.filter(function (item) {\n return GalleryItemsPage.activeFilters.editor_type.includes(item.editor_type);\n });\n } // if( GalleryItemsPage.activeFilters['type'] !== undefined && GalleryItemsPage.activeFilters['type'].length <= 0 && GalleryItemsPage.activeFilters['editor_type'] !== undefined && GalleryItemsPage.activeFilters['editor_type'].length <= 0 ){\n // sortedGalleryItems = GalleryItems.items;\n // }\n\n }\n }\n\n return m(\"section\", null, _Loader__WEBPACK_IMPORTED_MODULE_5__[\"default\"].showLoader ? m(_Loader__WEBPACK_IMPORTED_MODULE_5__[\"default\"], null) : null, m(_GalleryItemFilter__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null), m(\"section\", {\n class: \"overflow-hidden text-gray-700 \"\n }, m(\"div\", {\n class: \"container px-5 py-2 mx-auto lg:pt-12 lg:px-24\"\n }, m(\"div\", {\n class: \"grid grid-cols-4 gap-4\"\n }, m(\"div\", {\n class: \"cursor-pointer\",\n onclick: function onclick() {\n GalleryItemsPage.showEditorChoicePopup();\n }\n }, m(\"div\", {\n class: \"h-full border-2 border-gray-200 border-opacity-60 rounded-lg overflow-hidden\"\n }, m(\"svg\", {\n alt: \"{item.title}\",\n xmlns: \"http://www.w3.org/2000/svg\",\n class: \"h-40 w-full\",\n fill: \"none\",\n viewBox: \"0 0 24 24\",\n stroke: \"#d2d6dc\",\n \"stroke-width\": \"2\"\n }, m(\"path\", {\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n d: \"M12 6v6m0 0v6m0-6h6m-6 0H6\"\n })), m(\"div\", {\n class: \"p-4 bg-white h-28 mt-8\"\n }, m(\"h4\", {\n href: \"#\",\n onclick: function onclick() {\n GalleryItemsPage.showEditorChoicePopup();\n },\n class: \"title-font text-lg font-medium text-gray-900 mb-3 sm:truncate cursor-pointer hover:underline mt-6\"\n }, __('Create from scratch', 'email-subscribers'))))), sortedGalleryItems.map(function (item, key) {\n if (ig_es_main_js_data.post_digest_campaign_type === item.type) {\n campaignType = item.type;\n }\n\n return m(_GalleryItem__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n key: key,\n item: item,\n campaignType: campaignType,\n campaignId: vnode.attrs.campaignId\n });\n })))), _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].previewHTML !== '' ? m(_GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null) : '', GalleryItemsPage.canShowEditorChoicePopup ? m(_EditorChoicePopup__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n campaignType: vnode.attrs.campaignType\n }) : '');\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItemsPage);\n\n//# sourceURL=webpack:///./lite/admin/js/src/views/GalleryItemsPage.js?");
181
 
182
  /***/ }),
183
 
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
108
+ eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _css_style_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css/style.css */ \"./lite/admin/css/style.css\");\n/* harmony import */ var _css_style_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_style_css__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _src_views_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/views/GalleryItemsPage */ \"./lite/admin/js/src/views/GalleryItemsPage.js\");\n\n\n\nif ('undefined' !== typeof wp.i18n) {\n global.__ = wp.i18n.__;\n} else {\n // Create a dummy fallback function incase i18n library isn't available.\n global.__ = function (text, textDomain) {\n return text;\n };\n}\n\nvar canUpsellESTemplate = function canUpsellESTemplate(templatePlan) {\n var canUpsellTemplate = false;\n\n if ('lite' === ig_es_main_js_data.es_plan) {\n canUpsellTemplate = templatePlan === 'starter' || templatePlan === 'pro';\n } else if ('starter' === ig_es_main_js_data.es_plan) {\n canUpsellTemplate = templatePlan === 'pro';\n }\n\n return canUpsellTemplate;\n};\n\nglobal.canUpsellESTemplate = canUpsellESTemplate;\nvar campaignGalleryItemsWrapper = document.querySelector('#ig-es-campaign-gallery-items-wrapper');\nvar campaignType = location.search.split('campaign-type=')[1];\nvar campaignId = location.search.split('campaign-id=')[1];\n\nif ('undefined' === typeof campaignType) {\n campaignType = ig_es_main_js_data.post_notification_campaign_type;\n}\n\nif ('undefined' === typeof campaignId) {\n campaignId = 0;\n}\n\nm.mount(campaignGalleryItemsWrapper, {\n view: function view() {\n return m(_src_views_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n campaignId: campaignId,\n campaignType: campaignType\n });\n }\n});\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./lite/admin/js/main.js?");
109
 
110
  /***/ }),
111
 
117
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
118
 
119
  "use strict";
120
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _views_Loader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../views/Loader */ \"./lite/admin/js/src/views/Loader.js\");\n\nvar GalleryItems = {\n items: [],\n loadItems: function loadItems() {\n _views_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = true;\n return m.request({\n method: 'GET',\n url: ajaxurl,\n params: {\n action: 'ig_es_get_gallery_items',\n security: ig_es_js_data.security\n },\n withCredentials: true\n }).then(function (response) {\n GalleryItems.items = response.data.items;\n _views_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = false;\n });\n },\n loadTemplatePreviewData: function loadTemplatePreviewData(templateId, galleryType) {\n _views_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = true;\n return m.request({\n method: 'GET',\n url: ajaxurl,\n params: {\n action: 'ig_es_preview_template',\n gallery_type: galleryType,\n security: ig_es_js_data.security,\n template_id: templateId\n },\n withCredentials: true\n }).then(function (response) {\n _views_Loader__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showLoader = false;\n return response;\n });\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItems);\n\n//# sourceURL=webpack:///./lite/admin/js/src/models/GalleryItems.js?");
121
 
122
  /***/ }),
123
 
141
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
142
 
143
  "use strict";
144
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GalleryItemsPage */ \"./lite/admin/js/src/views/GalleryItemsPage.js\");\n\nvar GalleryItem = {\n view: function view(vnode) {\n var item = vnode.attrs.item;\n var galleryType = item.gallery_type;\n var campaignType = vnode.attrs.campaignType;\n var templatePlan = item.es_plan;\n var canUpsell = canUpsellESTemplate(templatePlan); // let campaignId = vnode.attrs.campaignId;\n\n return m(\"div\", null, m(\"div\", {\n class: \"h-full border-2 border-gray-200 border-opacity-60 rounded-lg overflow-hidden relative\"\n }, canUpsell ? m(\"span\", {\n class: \"absolute top-1 right-2\"\n }, m(\"a\", {\n href: \"https://www.icegram.com/documentation/how-to-manage-custom-fields-in-email-subscribers?utm_source=in_app&utm_medium=custom_form_field&utm_campaign=es_upsell\",\n target: \"_blank\"\n }, m(\"span\", {\n class: \"premium-icon ml-2 mb-1\"\n }))) : '', m(\"div\", {\n class: \"cursor-pointer\",\n onclick: function onclick() {\n return _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showPreview(item, campaignType, galleryType);\n }\n }, item.thumbnail ? m(\"img\", {\n class: \"lg:h-48 md:h-36 w-full object-contain object-center\",\n src: item.thumbnail,\n alt: \"{item.title}\"\n }) : m(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n class: \"h-40 w-full mb-8 \",\n fill: \"none\",\n viewBox: \"0 0 24 24\",\n stroke: \"#d2d6dc\"\n }, m(\"path\", {\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"stroke-width\": \"1\",\n d: \"M3 19v-8.93a2 2 0 01.89-1.664l7-4.666a2 2 0 012.22 0l7 4.666A2 2 0 0121 10.07V19M3 19a2 2 0 002 2h14a2 2 0 002-2M3 19l6.75-4.5M21 19l-6.75-4.5M3 10l6.75 4.5M21 10l-6.75 4.5m0 0l-1.14.76a2 2 0 01-2.22 0l-1.14-.76\"\n }))), m(\"div\", {\n class: \"p-4 bg-white h-28\"\n }, m(\"div\", {\n class: \"flex items-center flex-wrap whitespace-nowrap\"\n }, item.categories.map(function (name, key) {\n return m(\"span\", {\n class: \"es-tmpl-category capitalize mr-2 inline-flex items-center leading-none py-1 px-1 text-xs rounded\"\n }, item.categories[key].replace(/_/g, ' '));\n })), m(\"h4\", {\n onclick: function onclick() {\n return _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].showPreview(item, campaignType, galleryType);\n },\n class: \"title-font text-lg font-medium text-gray-900 mb-3 mt-2 sm:truncate cursor-pointer hover:underline\"\n }, item.title), m(\"div\", {\n class: \"flex items-center flex-wrap \"\n }, !canUpsell && m(\"a\", {\n href: '?action=ig_es_import_gallery_item&template-id=' + item.ID + '&campaign-type=' + campaignType + '&gallery-type=' + galleryType + '&_wpnonce=' + ig_es_js_data.security,\n class: \"font-semibold text-base text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0\"\n }, __('Use this', 'email-subscribers'), m(\"svg\", {\n class: \"w-4 h-4 ml-2\",\n viewBox: \"0 0 24 24\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n fill: \"none\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n }, m(\"path\", {\n d: \"M5 12h14\"\n }), m(\"path\", {\n d: \"M12 5l7 7-7 7\"\n })))))));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItem);\n\n//# sourceURL=webpack:///./lite/admin/js/src/views/GalleryItem.js?");
145
 
146
  /***/ }),
147
 
153
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
154
 
155
  "use strict";
156
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GalleryItemsPage */ \"./lite/admin/js/src/views/GalleryItemsPage.js\");\n\nvar GalleryItemFilter = {\n view: function view(vnode) {\n //let item = vnode.attrs.item;\n return m(\"div\", {\n class: \"text-center text-xs font-medium text-green-800\"\n }, m(\"p\", {\n class: \"mb-3 text-gray-700 text-sm font-thin\"\n }, __('Click on the labels to filter out the templates', 'email-subscribers')), m(\"p\", {\n class: \"mb-3 pr-2 inline border-r border-gray-300\"\n }, m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('type', ig_es_main_js_data.newsletter_campaign_type);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.indexOf(ig_es_main_js_data.newsletter_campaign_type) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Newsletter', 'email-subscribers')), m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('type', ig_es_main_js_data.post_notification_campaign_type);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.indexOf(ig_es_main_js_data.post_notification_campaign_type) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Post Notification', 'email-subscribers')), ig_es_js_data.is_pro && m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('type', ig_es_main_js_data.post_digest_campaign_type);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.type.indexOf(ig_es_main_js_data.post_digest_campaign_type) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Post Digest', 'email-subscribers'))), m(\"p\", {\n class: \"inline pl-2 pr-2 border-r border-gray-300\"\n }, m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('editor_type', ig_es_main_js_data.classic_editor_slug);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.editor_type.indexOf(ig_es_main_js_data.classic_editor_slug) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Classic Editor', 'email-subscribers')), m(\"a\", {\n href: \"#\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].setActiveFilters('editor_type', ig_es_main_js_data.dnd_editor_slug);\n },\n class: (_GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].activeFilters.editor_type.indexOf(ig_es_main_js_data.dnd_editor_slug) > -1 ? \"border-green-800 border-solid border \" : \"\") + \"es-filter-templates border border-green-100 text-green-800 m-1 px-3 py-1 rounded-full cursor-pointer bg-green-50 hover:bg-green-300 \"\n }, __('Drag and Drop editor', 'email-subscribers'))), m(\"a\", {\n href: \"#\",\n class: \"text-red-800 m-1 px-3 py-1 cursor-pointer\",\n onclick: function onclick() {\n _GalleryItemsPage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].clearAllActiveFilters();\n }\n }, __('Clear all filters', 'email-subscribers')));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItemFilter);\n\n//# sourceURL=webpack:///./lite/admin/js/src/views/GalleryItemFilter.js?");
157
 
158
  /***/ }),
159
 
165
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
166
 
167
  "use strict";
168
+ eval("__webpack_require__.r(__webpack_exports__);\nvar GalleryItemPreview = {\n previewHTML: '',\n item: {},\n campaignType: '',\n galleryType: '',\n oncreate: function oncreate() {\n ig_es_load_iframe_preview('#gallery-item-preview-iframe-container', GalleryItemPreview.previewHTML);\n },\n view: function view(vnode) {\n var templatePlan = GalleryItemPreview.item.es_plan;\n var canUpsell = canUpsellESTemplate(templatePlan);\n return m(\"div\", {\n id: \"campaign-preview-popup\"\n }, m(\"div\", {\n class: \"fixed top-0 left-0 z-50 flex items-center justify-center w-full h-full\",\n style: \"background-color: rgba(0,0,0,.5);\"\n }, m(\"div\", {\n id: \"campaign-preview-main-container\",\n class: \"absolute h-auto pt-2 ml-16 mr-4 text-left bg-white rounded shadow-xl z-80 w-1/2 md:max-w-5xl lg:max-w-7xl md:pt-3 lg:pt-2\"\n }, m(\"div\", {\n class: \"py-2 px-4\"\n }, m(\"div\", {\n class: \"flex border-b border-gray-200 pb-2\"\n }, m(\"h3\", {\n class: \"w-full text-2xl text-left\"\n }, __('Template Preview', 'email-subscribers')), m(\"div\", {\n class: \"flex\"\n }, m(\"button\", {\n id: \"close-campaign-preview-popup\",\n class: \"text-sm font-medium tracking-wide text-gray-700 select-none no-outline focus:outline-none focus:shadow-outline-red hover:border-red-400 active:shadow-lg\",\n onclick: function onclick() {\n GalleryItemPreview.previewHTML = '';\n }\n }, m(\"svg\", {\n class: \"h-5 w-5 inline\",\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n viewBox: \"0 0 24 24\",\n stroke: \"currentColor\",\n \"aria-hidden\": \"true\"\n }, m(\"path\", {\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"stroke-width\": \"2\",\n d: \"M6 18L18 6M6 6l12 12\"\n })))))), m(\"div\", {\n id: \"gallery-item-preview-container\"\n }, m(\"p\", {\n class: \"mx-4 mb-2\"\n }, __('There could be a slight variation on how your customer will view the email content.', 'email-subscribers')), m(\"div\", {\n id: \"gallery-item-preview-iframe-container\",\n class: \"py-4 list-decimal popup-preview\"\n })), m(\"div\", {\n class: \"flex justify-center\"\n }, !canUpsell && m(\"a\", {\n class: \"ig-es-primary-button py-1 px-2 mb-5 text-white cursor-pointer\",\n href: '?action=ig_es_import_gallery_item&template-id=' + GalleryItemPreview.item.ID + '&campaign-type=' + GalleryItemPreview.campaignType + '&gallery-type=' + GalleryItemPreview.item.gallery_type + '&_wpnonce=' + ig_es_js_data.security\n }, __('Use this template', 'email-subscribers')), canUpsell && m(\"a\", {\n class: \"ig-es-primary-button py-1 px-2 mb-5 text-white cursor-pointer capitalize\",\n href: \"https://www.icegram.com/email-subscribers-pricing/?utm_source=in_app&utm_medium=remote_gallery_template&utm_campaign=es_upsell\",\n target: \"_blank\"\n }, __('Upgrade to', 'email-subscribers') + ' ' + GalleryItemPreview.item.es_plan)))));\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItemPreview);\n\n//# sourceURL=webpack:///./lite/admin/js/src/views/GalleryItemPreview.js?");
169
 
170
  /***/ }),
171
 
177
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
178
 
179
  "use strict";
180
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/GalleryItems */ \"./lite/admin/js/src/models/GalleryItems.js\");\n/* harmony import */ var _GalleryItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GalleryItem */ \"./lite/admin/js/src/views/GalleryItem.js\");\n/* harmony import */ var _GalleryItemFilter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GalleryItemFilter */ \"./lite/admin/js/src/views/GalleryItemFilter.js\");\n/* harmony import */ var _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GalleryItemPreview */ \"./lite/admin/js/src/views/GalleryItemPreview.js\");\n/* harmony import */ var _EditorChoicePopup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EditorChoicePopup */ \"./lite/admin/js/src/views/EditorChoicePopup.js\");\n/* harmony import */ var _Loader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Loader */ \"./lite/admin/js/src/views/Loader.js\");\n\n\n\n\n\n\nvar GalleryItemsPage = {\n canShowEditorChoicePopup: false,\n activeFilters: [],\n oninit: function oninit(vnode) {\n _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].loadItems();\n var campaignType = vnode.attrs.campaignType;\n\n if (!GalleryItemsPage.activeFilters.type) {\n GalleryItemsPage.activeFilters.type = [];\n }\n\n if (!GalleryItemsPage.activeFilters.editor_type) {\n GalleryItemsPage.activeFilters.editor_type = [ig_es_main_js_data.classic_editor_slug, ig_es_main_js_data.dnd_editor_slug]; // GalleryItemsPage.activeFilters.editor_type.push();\n // GalleryItemsPage.activeFilters.editor_type.push(ig_es_main_js_data.dnd_editor_slug);\n }\n\n if (!GalleryItemsPage.activeFilters.gallery_type) {\n GalleryItemsPage.activeFilters.gallery_type = [ig_es_main_js_data.local_gallery_type, ig_es_main_js_data.remote_gallery_type]; // GalleryItemsPage.activeFilters.editor_type.push();\n // GalleryItemsPage.activeFilters.editor_type.push(ig_es_main_js_data.dnd_editor_slug);\n }\n\n if (GalleryItemsPage.activeFilters.type.length >= 0 && GalleryItemsPage.activeFilters.type.indexOf(campaignType) === -1) {\n GalleryItemsPage.activeFilters.type.push(campaignType);\n var isPostNotificationCampaign = campaignType === ig_es_main_js_data.post_notification_campaign_type;\n\n if (isPostNotificationCampaign) {\n GalleryItemsPage.activeFilters.type.push(ig_es_main_js_data.post_digest_campaign_type);\n }\n }\n },\n showPreview: function showPreview(item, campaignType, galleryType) {\n _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].loadTemplatePreviewData(item.ID, galleryType).then(function (response) {\n _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].previewHTML = response.data.template_html;\n _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].item = item;\n _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].campaignType = campaignType;\n });\n },\n showEditorChoicePopup: function showEditorChoicePopup() {\n GalleryItemsPage.canShowEditorChoicePopup = true;\n },\n hideEditorChoicePopup: function hideEditorChoicePopup() {\n GalleryItemsPage.canShowEditorChoicePopup = false;\n },\n setActiveFilters: function setActiveFilters(filter, filterVal) {\n if (!GalleryItemsPage.activeFilters[filter]) {\n GalleryItemsPage.activeFilters[filter] = [];\n }\n\n if (GalleryItemsPage.activeFilters[filter].indexOf(filterVal) > -1) {\n GalleryItemsPage.activeFilters[filter] = GalleryItemsPage.activeFilters[filter].filter(function (e) {\n return e !== filterVal;\n });\n } else {\n GalleryItemsPage.activeFilters[filter].push(filterVal);\n }\n },\n clearAllActiveFilters: function clearAllActiveFilters() {\n GalleryItemsPage.activeFilters.type = [];\n GalleryItemsPage.activeFilters.editor_type = [];\n GalleryItemsPage.activeFilters.gallery_type = [];\n },\n view: function view(vnode) {\n var campaignType = vnode.attrs.campaignType;\n var sortedGalleryItems = _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items;\n\n if (_models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items.length > 0) {\n if (Object.keys(GalleryItemsPage.activeFilters).length > 0 || Object.keys(GalleryItemsPage.activeFilters).length > 0) {\n if (GalleryItemsPage.activeFilters.type.length > 0) {\n sortedGalleryItems = _models_GalleryItems__WEBPACK_IMPORTED_MODULE_0__[\"default\"].items.filter(function (item) {\n return GalleryItemsPage.activeFilters.type.includes(item.type);\n });\n }\n\n if (GalleryItemsPage.activeFilters.editor_type.length > 0) {\n sortedGalleryItems = sortedGalleryItems.filter(function (item) {\n return GalleryItemsPage.activeFilters.editor_type.includes(item.editor_type);\n });\n }\n\n if (GalleryItemsPage.activeFilters.gallery_type.length > 0) {\n sortedGalleryItems = sortedGalleryItems.filter(function (item) {\n return GalleryItemsPage.activeFilters.gallery_type.includes(item.gallery_type);\n });\n } // if( GalleryItemsPage.activeFilters['type'] !== undefined && GalleryItemsPage.activeFilters['type'].length <= 0 && GalleryItemsPage.activeFilters['editor_type'] !== undefined && GalleryItemsPage.activeFilters['editor_type'].length <= 0 ){\n // sortedGalleryItems = GalleryItems.items;\n // }\n\n }\n }\n\n return m(\"section\", null, _Loader__WEBPACK_IMPORTED_MODULE_5__[\"default\"].showLoader ? m(_Loader__WEBPACK_IMPORTED_MODULE_5__[\"default\"], null) : null, m(_GalleryItemFilter__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null), m(\"section\", {\n class: \"overflow-hidden text-gray-700 \"\n }, m(\"div\", {\n class: \"container px-5 py-2 mx-auto lg:pt-12 lg:px-24\"\n }, m(\"div\", {\n class: \"grid grid-cols-4 gap-4\"\n }, m(\"div\", {\n class: \"cursor-pointer\",\n onclick: function onclick() {\n GalleryItemsPage.showEditorChoicePopup();\n }\n }, m(\"div\", {\n class: \"h-full border-2 border-gray-200 border-opacity-60 rounded-lg overflow-hidden\"\n }, m(\"svg\", {\n alt: \"{item.title}\",\n xmlns: \"http://www.w3.org/2000/svg\",\n class: \"h-40 w-full\",\n fill: \"none\",\n viewBox: \"0 0 24 24\",\n stroke: \"#d2d6dc\",\n \"stroke-width\": \"2\"\n }, m(\"path\", {\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n d: \"M12 6v6m0 0v6m0-6h6m-6 0H6\"\n })), m(\"div\", {\n class: \"p-4 bg-white h-28 mt-8\"\n }, m(\"h4\", {\n href: \"#\",\n onclick: function onclick() {\n GalleryItemsPage.showEditorChoicePopup();\n },\n class: \"title-font text-lg font-medium text-gray-900 mb-3 sm:truncate cursor-pointer hover:underline mt-6\"\n }, __('Create from scratch', 'email-subscribers'))))), sortedGalleryItems.map(function (item, key) {\n if (ig_es_main_js_data.post_digest_campaign_type === item.type) {\n campaignType = item.type;\n }\n\n return m(_GalleryItem__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n key: key,\n item: item,\n campaignType: campaignType,\n campaignId: vnode.attrs.campaignId\n });\n })))), _GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"].previewHTML !== '' ? m(_GalleryItemPreview__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null) : '', GalleryItemsPage.canShowEditorChoicePopup ? m(_EditorChoicePopup__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n campaignType: vnode.attrs.campaignType\n }) : '');\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GalleryItemsPage);\n\n//# sourceURL=webpack:///./lite/admin/js/src/views/GalleryItemsPage.js?");
181
 
182
  /***/ }),
183
 
lite/admin/js/email-subscribers-admin.js CHANGED
@@ -50,7 +50,7 @@
50
  $('.es-audience-view table.contacts #cb-select-all-1').click(function (e) {
51
 
52
  if($('.es-audience-view table.contacts #cb-select-all-1').prop('checked') == true){
53
- flag = confirm("Want to select contacts on all pages?");
54
  }
55
 
56
  if( flag ) {
@@ -74,9 +74,7 @@
74
 
75
  });
76
  }
77
-
78
-
79
-
80
 
81
  });
82
 
@@ -110,7 +108,31 @@
110
  },1000);
111
  }
112
  } else {
113
- alert(response.data.message);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  }
115
  } else {
116
  alert( response.i18n_data.ajax_error_message );
50
  $('.es-audience-view table.contacts #cb-select-all-1').click(function (e) {
51
 
52
  if($('.es-audience-view table.contacts #cb-select-all-1').prop('checked') == true){
53
+ flag = confirm( ig_es_js_data.i18n_data.confirm_select_all );
54
  }
55
 
56
  if( flag ) {
74
 
75
  });
76
  }
77
+
 
 
78
 
79
  });
80
 
108
  },1000);
109
  }
110
  } else {
111
+
112
+ if( true !== response.data.errortype ) {
113
+ alert(response.data.message);
114
+ }
115
+
116
+ if( true == response.data.errortype ) {
117
+ if ( ! response.data.completed ) {
118
+ actionData.push({name: 'paged', value: response.data.paged });
119
+ actionData.push({name: 'total_pages', value: response.data.total_pages });
120
+ actionData.push({name: 'start_page', value: response.data.start_page });
121
+ ig_es_apply_contacts_bulk_action( actionData, response.data.paged );
122
+ } else
123
+ {
124
+ $('.ig_es_process_message').text('Process completed , reloading the page!');
125
+ let current_url = new URL(window.location.href);
126
+ let bulk_action = response.data.bulk_action;
127
+
128
+ setTimeout(()=>{
129
+ current_url.searchParams.append('bulk_action', bulk_action);
130
+ window.location.href = current_url;
131
+ },1000);
132
+ }
133
+
134
+ }
135
+
136
  }
137
  } else {
138
  alert( response.i18n_data.ajax_error_message );
lite/admin/js/main.js CHANGED
@@ -10,6 +10,18 @@ if ( 'undefined' !== typeof wp.i18n ) {
10
  }
11
  }
12
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  const campaignGalleryItemsWrapper = document.querySelector('#ig-es-campaign-gallery-items-wrapper');
14
 
15
  let campaignType = location.search.split('campaign-type=')[1];
10
  }
11
  }
12
 
13
+ var canUpsellESTemplate = ( templatePlan ) => {
14
+ let canUpsellTemplate = false;
15
+ if ( 'lite' === ig_es_main_js_data.es_plan ) {
16
+ canUpsellTemplate = templatePlan === 'starter' || templatePlan === 'pro';
17
+ } else if ( 'starter' === ig_es_main_js_data.es_plan ) {
18
+ canUpsellTemplate = templatePlan === 'pro';
19
+ }
20
+ return canUpsellTemplate;
21
+ }
22
+
23
+ global.canUpsellESTemplate = canUpsellESTemplate;
24
+
25
  const campaignGalleryItemsWrapper = document.querySelector('#ig-es-campaign-gallery-items-wrapper');
26
 
27
  let campaignType = location.search.split('campaign-type=')[1];
lite/includes/class-es-common.php CHANGED
@@ -2787,4 +2787,32 @@ class ES_Common {
2787
  return '';
2788
  }
2789
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2790
  }
2787
  return '';
2788
  }
2789
 
2790
+ public static function download_image_from_url( $image_url ) {
2791
+
2792
+ $attachment_url = '';
2793
+ $upload_dir = wp_upload_dir();
2794
+ $image_data = file_get_contents( $image_url );
2795
+ $filename = basename( $image_url );
2796
+ if ( wp_mkdir_p( $upload_dir['path'] ) ) {
2797
+ $file = $upload_dir['path'] . '/' . $filename;
2798
+ } else {
2799
+ $file = $upload_dir['basedir'] . '/' . $filename;
2800
+ }
2801
+
2802
+ file_put_contents( $file, $image_data );
2803
+
2804
+ $wp_filetype = wp_check_filetype( $filename, null );
2805
+ $attachment = array(
2806
+ 'post_mime_type' => $wp_filetype['type'],
2807
+ 'post_title' => sanitize_file_name( $filename ),
2808
+ 'post_content' => '',
2809
+ 'post_status' => 'inherit',
2810
+ );
2811
+ $attach_id = wp_insert_attachment( $attachment, $file );
2812
+ if ( ! empty( $attach_id ) ) {
2813
+ $attachment_url = wp_get_attachment_url( $attach_id );
2814
+ }
2815
+ return $attachment_url;
2816
+ }
2817
+
2818
  }
lite/includes/class-es-install.php CHANGED
@@ -341,8 +341,7 @@ if ( ! class_exists( 'ES_Install' ) ) {
341
 
342
  self::install();
343
  }
344
- // Do we need to load templates?
345
- self::load_templates();
346
  }
347
 
348
  /**
@@ -419,10 +418,6 @@ if ( ! class_exists( 'ES_Install' ) ) {
419
 
420
  self::$logger->info( 'Create Options.', self::$logger_context );
421
 
422
- self::load_templates();
423
-
424
- self::$logger->info( 'Load readymade template', self::$logger_context );
425
-
426
  self::$logger->info( 'Installation Complete.', self::$logger_context );
427
  }
428
  self::maybe_update_db_version();
@@ -1547,6 +1542,7 @@ if ( ! class_exists( 'ES_Install' ) ) {
1547
  * @since 4.3.2
1548
  */
1549
  public static function load_templates( $force = false ) {
 
1550
  // TODO :: Add template with custom post type
1551
  global $wpdb;
1552
 
341
 
342
  self::install();
343
  }
344
+
 
345
  }
346
 
347
  /**
418
 
419
  self::$logger->info( 'Create Options.', self::$logger_context );
420
 
 
 
 
 
421
  self::$logger->info( 'Installation Complete.', self::$logger_context );
422
  }
423
  self::maybe_update_db_version();
1542
  * @since 4.3.2
1543
  */
1544
  public static function load_templates( $force = false ) {
1545
+
1546
  // TODO :: Add template with custom post type
1547
  global $wpdb;
1548
 
lite/includes/classes/class-es-contacts-table.php CHANGED
@@ -1397,6 +1397,7 @@ class ES_Contacts_Table extends ES_List_Table {
1397
  }
1398
  $response['status'] = 'error';
1399
  $response['message'] = $message;
 
1400
  return $response;
1401
  }
1402
 
@@ -1414,6 +1415,7 @@ class ES_Contacts_Table extends ES_List_Table {
1414
  }
1415
  $response['status'] = 'success';
1416
  $response['message'] = $message;
 
1417
  }
1418
 
1419
  return $response;
@@ -1431,6 +1433,7 @@ class ES_Contacts_Table extends ES_List_Table {
1431
  }
1432
  $response['status'] = 'error';
1433
  $response['message'] = $message;
 
1434
  return $response;
1435
  }
1436
 
@@ -1448,6 +1451,7 @@ class ES_Contacts_Table extends ES_List_Table {
1448
  }
1449
  $response['status'] = 'success';
1450
  $response['message'] = $message;
 
1451
  return $response;
1452
  }
1453
 
@@ -1465,6 +1469,7 @@ class ES_Contacts_Table extends ES_List_Table {
1465
  }
1466
  $response['status'] = 'error';
1467
  $response['message'] = $message;
 
1468
  return $response;
1469
  }
1470
 
@@ -1477,6 +1482,7 @@ class ES_Contacts_Table extends ES_List_Table {
1477
  }
1478
  $response['status'] = 'success';
1479
  $response['message'] = $message;
 
1480
  return $response;
1481
  }
1482
 
@@ -1494,6 +1500,7 @@ class ES_Contacts_Table extends ES_List_Table {
1494
  }
1495
  $response['status'] = 'error';
1496
  $response['message'] = $message;
 
1497
  return $response;
1498
  }
1499
 
@@ -1506,6 +1513,7 @@ class ES_Contacts_Table extends ES_List_Table {
1506
  }
1507
  $response['status'] = 'success';
1508
  $response['message'] = $message;
 
1509
  return $response;
1510
  }
1511
  }
1397
  }
1398
  $response['status'] = 'error';
1399
  $response['message'] = $message;
1400
+ $response['errortype'] = false;
1401
  return $response;
1402
  }
1403
 
1415
  }
1416
  $response['status'] = 'success';
1417
  $response['message'] = $message;
1418
+ $response['errortype'] = false;
1419
  }
1420
 
1421
  return $response;
1433
  }
1434
  $response['status'] = 'error';
1435
  $response['message'] = $message;
1436
+ $response['errortype'] = false;
1437
  return $response;
1438
  }
1439
 
1451
  }
1452
  $response['status'] = 'success';
1453
  $response['message'] = $message;
1454
+ $response['errortype'] = false;
1455
  return $response;
1456
  }
1457
 
1469
  }
1470
  $response['status'] = 'error';
1471
  $response['message'] = $message;
1472
+ $response['errortype'] = false;
1473
  return $response;
1474
  }
1475
 
1482
  }
1483
  $response['status'] = 'success';
1484
  $response['message'] = $message;
1485
+ $response['errortype'] = false;
1486
  return $response;
1487
  }
1488
 
1500
  }
1501
  $response['status'] = 'error';
1502
  $response['message'] = $message;
1503
+ $response['errortype'] = false;
1504
  return $response;
1505
  }
1506
 
1513
  }
1514
  $response['status'] = 'success';
1515
  $response['message'] = $message;
1516
+ $response['errortype'] = false;
1517
  return $response;
1518
  }
1519
  }
lite/includes/classes/class-es-cron.php CHANGED
@@ -400,15 +400,13 @@ class ES_Cron {
400
  */
401
  public function set_last_hit() {
402
 
403
- $last_hit = array();
404
-
405
  $last_hit['timestamp'] = time();
406
 
407
  if ( isset( $_SERVER['HTTP_X_ES_EMAIL_SENDING_LIMIT'] ) ) {
408
  $last_hit['icegram_timestamp'] = time();
409
  }
410
 
411
-
412
  return update_option( 'ig_es_cron_last_hit', $last_hit );
413
  }
414
 
400
  */
401
  public function set_last_hit() {
402
 
403
+ $last_hit = get_option( 'ig_es_cron_last_hit', array() );
 
404
  $last_hit['timestamp'] = time();
405
 
406
  if ( isset( $_SERVER['HTTP_X_ES_EMAIL_SENDING_LIMIT'] ) ) {
407
  $last_hit['icegram_timestamp'] = time();
408
  }
409
 
 
410
  return update_option( 'ig_es_cron_last_hit', $last_hit );
411
  }
412
 
lite/includes/classes/class-ig-es-subscriber-query.php CHANGED
@@ -109,6 +109,8 @@ class IG_ES_Subscribers_Query {
109
  '_subscribed_before',
110
  );
111
 
 
 
112
  private static $_instance = null;
113
 
114
  public function __construct( $args = null, $campaign_id = null ) {
@@ -562,7 +564,12 @@ class IG_ES_Subscribers_Query {
562
  case '<':
563
  case 'is_smaller':
564
  $f = "subscribers.$field";
565
- $value = (float) $value;
 
 
 
 
 
566
 
567
  $c = $f . ' ' . ( in_array( $operator, array( 'is_greater', 'is_greater_equal', '>', '>=' ) ) ? '>' . $extra : '<' . $extra ) . " $value";
568
 
109
  '_subscribed_before',
110
  );
111
 
112
+ private $custom_fields = array();
113
+
114
  private static $_instance = null;
115
 
116
  public function __construct( $args = null, $campaign_id = null ) {
564
  case '<':
565
  case 'is_smaller':
566
  $f = "subscribers.$field";
567
+ $is_numeric = is_numeric( $value );
568
+ if ( $is_numeric ) {
569
+ $value = (float) $value;
570
+ } else {
571
+ $value = ! empty( $value ) ? "'$value'" : '';
572
+ }
573
 
574
  $c = $f . ' ' . ( in_array( $operator, array( 'is_greater', 'is_greater_equal', '>', '>=' ) ) ? '>' . $extra : '<' . $extra ) . " $value";
575
 
lite/includes/db/class-es-db-contacts.php CHANGED
@@ -407,12 +407,12 @@ class ES_DB_Contacts extends ES_DB {
407
 
408
 
409
  // Get all contact ids
410
- public function get_all_contact_ids() {
411
- global $wpbd;
412
 
413
- $query = "SELECT id FROM $this->table_name";
414
- return $wpbd->get_results( $query );
415
- }
416
 
417
 
418
  /**
407
 
408
 
409
  // Get all contact ids
410
+ public function get_all_contact_ids() {
411
+ global $wpbd;
412
 
413
+ $query = "SELECT id FROM $this->table_name";
414
+ return $wpbd->get_results( $query );
415
+ }
416
 
417
 
418
  /**
lite/includes/upgrade/es-update-functions.php CHANGED
@@ -1047,7 +1047,7 @@ function ig_es_update_431_db_version() {
1047
  * @sicne 4.3.2
1048
  */
1049
  function ig_es_update_432_import_bfcm_templates() {
1050
- ES_Install::load_templates();
1051
  }
1052
 
1053
  /**
@@ -1174,7 +1174,7 @@ function ig_es_update_449_db_version() {
1174
  * @since 4.4.10
1175
  */
1176
  function ig_es_update_4410_load_templates() {
1177
- ES_Install::load_templates( true );
1178
  }
1179
 
1180
  /**
1047
  * @sicne 4.3.2
1048
  */
1049
  function ig_es_update_432_import_bfcm_templates() {
1050
+ // ES_Install::load_templates();
1051
  }
1052
 
1053
  /**
1174
  * @since 4.4.10
1175
  */
1176
  function ig_es_update_4410_load_templates() {
1177
+ // ES_Install::load_templates( true );
1178
  }
1179
 
1180
  /**
lite/language.php CHANGED
@@ -63,6 +63,7 @@ __( 'Fetching contacts from MailChimp...Please do not close this window', 'email
63
  __( 'SMTP Error : Unable to send test email', 'email-subscribers' ),
64
  __( 'Server Busy : Please try again later', 'email-subscribers' ),
65
  __( 'Headers verified successfully', 'email-subscribers' ),
 
66
  __( 'Dashboard', 'email-subscribers' ),
67
  __( 'Audience', 'email-subscribers' ),
68
  __( 'Lists', 'email-subscribers' ),
@@ -1360,6 +1361,7 @@ __( 'You do not have permission to delete custom field', 'email-subscribers' ),
1360
  __( 'Custom field deleted successfully!', 'email-subscribers' ),
1361
  __( 'Oops...There was an issue while deleting the custom fields', 'email-subscribers' ),
1362
  __( 'No custom fields available.', 'email-subscribers' ),
 
1363
  __( 'Select option', 'email-subscribers' ),
1364
  __( 'Invalid request', 'email-subscribers' ),
1365
  __( 'Please add this site URL in the form settings', 'email-subscribers' ),
@@ -1810,6 +1812,7 @@ __( 'Classic Editor', 'email-subscribers' ),
1810
  __( 'Drag and Drop editor', 'email-subscribers' ),
1811
  __( 'Clear all filters', 'email-subscribers' ),
1812
  __( 'Use this template', 'email-subscribers' ),
 
1813
  __( 'Create from scratch', 'email-subscribers' ),
1814
  __( 'Loading', 'email-subscribers' ),
1815
  );
63
  __( 'SMTP Error : Unable to send test email', 'email-subscribers' ),
64
  __( 'Server Busy : Please try again later', 'email-subscribers' ),
65
  __( 'Headers verified successfully', 'email-subscribers' ),
66
+ __( 'Want to select contacts on all pages?', 'email-subscribers' ),
67
  __( 'Dashboard', 'email-subscribers' ),
68
  __( 'Audience', 'email-subscribers' ),
69
  __( 'Lists', 'email-subscribers' ),
1361
  __( 'Custom field deleted successfully!', 'email-subscribers' ),
1362
  __( 'Oops...There was an issue while deleting the custom fields', 'email-subscribers' ),
1363
  __( 'No custom fields available.', 'email-subscribers' ),
1364
+ __( 'Any', 'email-subscribers' ),
1365
  __( 'Select option', 'email-subscribers' ),
1366
  __( 'Invalid request', 'email-subscribers' ),
1367
  __( 'Please add this site URL in the form settings', 'email-subscribers' ),
1812
  __( 'Drag and Drop editor', 'email-subscribers' ),
1813
  __( 'Clear all filters', 'email-subscribers' ),
1814
  __( 'Use this template', 'email-subscribers' ),
1815
+ __( 'Upgrade to', 'email-subscribers' ),
1816
  __( 'Create from scratch', 'email-subscribers' ),
1817
  __( 'Loading', 'email-subscribers' ),
1818
  );
lite/languages/email-subscribers.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Email Subscribers & Newsletters plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Email Subscribers & Newsletters 5.4.12\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-subscribers\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-09-22T13:23:53+02:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: email-subscribers\n"
@@ -220,12 +220,16 @@ msgstr ""
220
  msgid "Headers verified successfully"
221
  msgstr ""
222
 
223
- #: lite/admin/class-email-subscribers-admin.php:312
 
 
 
 
224
  #: lite/admin/partials/dashboard.php:167
225
  msgid "Dashboard"
226
  msgstr ""
227
 
228
- #: lite/admin/class-email-subscribers-admin.php:317
229
  #: lite/admin/partials/dashboard.php:174
230
  #: lite/includes/classes/class-es-contacts-table.php:238
231
  #: lite/includes/pro-features.php:205
@@ -233,7 +237,7 @@ msgstr ""
233
  msgid "Audience"
234
  msgstr ""
235
 
236
- #: lite/admin/class-email-subscribers-admin.php:321
237
  #: lite/admin/class-es-form-admin.php:232
238
  #: lite/admin/class-es-form-admin.php:519
239
  #: lite/includes/classes/class-es-lists-table.php:34
@@ -241,7 +245,7 @@ msgstr ""
241
  msgid "Lists"
242
  msgstr ""
243
 
244
- #: lite/admin/class-email-subscribers-admin.php:327
245
  #: lite/admin/class-es-form-admin.php:397
246
  #: lite/includes/classes/class-es-form-widget.php:77
247
  #: lite/includes/classes/class-es-forms-table.php:39
@@ -252,7 +256,7 @@ msgstr ""
252
  msgid "Forms"
253
  msgstr ""
254
 
255
- #: lite/admin/class-email-subscribers-admin.php:333
256
  #: lite/admin/class-es-campaign-admin.php:474
257
  #: lite/admin/partials/gallery.php:10
258
  #: lite/includes/classes/class-es-campaigns-table.php:124
@@ -264,11 +268,11 @@ msgstr ""
264
  msgid "Campaigns"
265
  msgstr ""
266
 
267
- #: lite/admin/class-email-subscribers-admin.php:337
268
  msgid "Post Notifications"
269
  msgstr ""
270
 
271
- #: lite/admin/class-email-subscribers-admin.php:339
272
  #: lite/admin/class-es-campaign-admin.php:445
273
  #: lite/includes/classes/class-es-campaign-report.php:56
274
  #: lite/includes/classes/class-es-campaigns-table.php:357
@@ -282,19 +286,19 @@ msgstr ""
282
  msgid "Broadcast"
283
  msgstr ""
284
 
285
- #: lite/admin/class-email-subscribers-admin.php:340
286
  #: lite/includes/classes/class-es-newsletters.php:426
287
  #: lite/includes/classes/class-es-reports-table.php:595
288
  #: lite/includes/classes/class-es-templates-table.php:149
289
- #: lite/admin/js/src/views/GalleryItemPreview.js:18
290
  msgid "Template Preview"
291
  msgstr ""
292
 
293
- #: lite/admin/class-email-subscribers-admin.php:345
294
  msgid "Gallery"
295
  msgstr ""
296
 
297
- #: lite/admin/class-email-subscribers-admin.php:351
298
  #: lite/includes/pro-features.php:210
299
  #: lite/includes/workflows/admin/class-es-workflow-admin-edit.php:341
300
  #: lite/includes/workflows/class-es-workflows-table.php:53
@@ -304,7 +308,7 @@ msgstr ""
304
  msgid "Workflows"
305
  msgstr ""
306
 
307
- #: lite/admin/class-email-subscribers-admin.php:360
308
  #: lite/admin/partials/dashboard.php:614
309
  #: lite/includes/classes/class-es-campaign-report.php:17
310
  #: lite/includes/classes/class-es-reports-table.php:17
@@ -318,30 +322,30 @@ msgstr ""
318
  msgid "Reports"
319
  msgstr ""
320
 
321
- #: lite/admin/class-email-subscribers-admin.php:364
322
  #: lite/admin/class-es-form-admin.php:412
323
  #: lite/admin/partials/dashboard.php:622
324
  #: lite/includes/classes/class-es-admin-settings.php:136
325
  msgid "Settings"
326
  msgstr ""
327
 
328
- #: lite/admin/class-email-subscribers-admin.php:369
329
  msgid "Go To Icegram"
330
  msgstr ""
331
 
332
  #. translators: 1. WordPress URL 2. Email Subscribers version 3. Icegram site URL
333
- #: lite/admin/class-email-subscribers-admin.php:939
334
  msgid "<span id=\"footer-thankyou\">Thank you for creating with <a href=\"%1$s\" target=\"_blank\">WordPress</a> | Email Subscribers <b>%2$s</b>. Developed by team <a href=\"%3$s\" target=\"_blank\">Icegram</a></span>"
335
  msgstr ""
336
 
337
- #: lite/admin/class-email-subscribers-admin.php:967
338
- #: lite/admin/class-email-subscribers-admin.php:1776
339
- #: lite/admin/class-email-subscribers-admin.php:1799
340
  msgid "Something went wrong"
341
  msgstr ""
342
 
343
  #. translators: %s: Pricing page URL
344
- #: lite/admin/class-email-subscribers-admin.php:1431
345
  #: lite/includes/class-email-subscribers-activator.php:61
346
  #: lite/includes/class-email-subscribers.php:1527
347
  #: lite/includes/classes/class-email-subscribers-pricing.php:772
@@ -353,11 +357,11 @@ msgstr ""
353
  msgid "Email Subscribers"
354
  msgstr ""
355
 
356
- #: lite/admin/class-email-subscribers-admin.php:1473
357
  msgid "Last 30 days"
358
  msgstr ""
359
 
360
- #: lite/admin/class-email-subscribers-admin.php:1482
361
  #: lite/includes/class-es-common.php:362
362
  #: lite/includes/classes/class-es-contacts-table.php:356
363
  #: lite/includes/classes/class-es-import-subscribers.php:867
@@ -367,7 +371,7 @@ msgstr ""
367
  msgid "Subscribed"
368
  msgstr ""
369
 
370
- #: lite/admin/class-email-subscribers-admin.php:1490
371
  #: lite/admin/partials/dashboard.php:284
372
  #: lite/includes/class-es-common.php:364
373
  #: lite/includes/classes/class-es-campaign-report.php:262
@@ -380,24 +384,24 @@ msgstr ""
380
  msgid "Unsubscribed"
381
  msgstr ""
382
 
383
- #: lite/admin/class-email-subscribers-admin.php:1498
384
  #: lite/includes/pro-features.php:1339
385
  msgid "Avg Open Rate"
386
  msgstr ""
387
 
388
- #: lite/admin/class-email-subscribers-admin.php:1506
389
  msgid "Messages Sent"
390
  msgstr ""
391
 
392
- #: lite/admin/class-email-subscribers-admin.php:1517
393
  msgid "Last Campaign"
394
  msgstr ""
395
 
396
- #: lite/admin/class-email-subscribers-admin.php:1553
397
  msgid "Sent to"
398
  msgstr ""
399
 
400
- #: lite/admin/class-email-subscribers-admin.php:1565
401
  #: lite/admin/partials/dashboard.php:360
402
  #: lite/admin/partials/dashboard.php:378
403
  #: lite/admin/partials/dashboard.php:539
@@ -411,20 +415,20 @@ msgstr ""
411
  msgid "Opens"
412
  msgstr ""
413
 
414
- #: lite/admin/class-email-subscribers-admin.php:1579
415
  msgid "No campaigns sent yet"
416
  msgstr ""
417
 
418
- #: lite/admin/class-email-subscribers-admin.php:1587
419
  msgid "Latest Blog Posts from Icegram"
420
  msgstr ""
421
 
422
- #: lite/admin/class-email-subscribers-admin.php:1699
423
  msgid "Please publish it or save it as a draft."
424
  msgstr ""
425
 
426
  #. translators: %s: link to new keyword doc
427
- #: lite/admin/class-email-subscribers-admin.php:1755
428
  msgid "There seems to be some issue in sending your emails. You may have to check your %1$semail sending setting%2$s."
429
  msgstr ""
430
 
@@ -670,7 +674,7 @@ msgid "Placeholder"
670
  msgstr ""
671
 
672
  #: lite/admin/class-es-form-admin.php:165
673
- #: lite/admin/class-ig-es-campaign-rules.php:630
674
  #: lite/includes/classes/class-es-admin-settings.php:233
675
  #: lite/includes/classes/class-es-campaign-report.php:436
676
  #: lite/includes/classes/class-es-contacts-table.php:838
@@ -684,7 +688,7 @@ msgstr ""
684
  #: lite/includes/workflows/actions/abstracts/class-ig-es-action-send-email-abstract.php:29
685
  #: lite/includes/workflows/actions/class-es-action-send-email.php:31
686
  #: lite/public/partials/class-es-shortcode.php:302
687
- #: pro/classes/class-es-pro-campaign-rules.php:35
688
  #: pro/classes/class-es-pro-embed-form.php:175
689
  #: pro/pro-class-email-subscribers.php:2349
690
  msgid "Email"
@@ -790,11 +794,12 @@ msgstr ""
790
  #: lite/admin/class-ig-es-campaign-rules.php:198
791
  #: lite/admin/class-ig-es-campaign-rules.php:270
792
  #: lite/admin/class-ig-es-campaign-rules.php:272
793
- #: lite/admin/class-ig-es-campaign-rules.php:544
794
- #: lite/admin/class-ig-es-campaign-rules.php:549
795
- #: lite/admin/class-ig-es-campaign-rules.php:555
796
- #: lite/admin/class-ig-es-campaign-rules.php:561
797
- #: lite/admin/class-ig-es-campaign-rules.php:595
 
798
  #: pro/classes/class-es-pro-advanced-filters.php:72
799
  #: pro/classes/class-es-pro-advanced-filters.php:74
800
  msgid "or"
@@ -830,14 +835,14 @@ msgid "Total recipients"
830
  msgstr ""
831
 
832
  #: lite/admin/class-ig-es-campaign-rules.php:261
833
- #: lite/admin/class-ig-es-campaign-rules.php:444
834
- #: lite/admin/class-ig-es-campaign-rules.php:592
835
  #: lite/includes/workflows/admin/views/meta-box-rules.php:94
836
  msgid "and"
837
  msgstr ""
838
 
839
  #: lite/admin/class-ig-es-campaign-rules.php:270
840
- #: lite/admin/class-ig-es-campaign-rules.php:407
841
  #: pro/classes/class-es-pro-advanced-filters.php:72
842
  #: pro/classes/class-es-pro-advanced-filters.php:205
843
  msgid "Add Condition"
@@ -848,201 +853,201 @@ msgstr ""
848
  msgid "remove condition"
849
  msgstr ""
850
 
851
- #: lite/admin/class-ig-es-campaign-rules.php:364
852
- #: lite/admin/class-ig-es-campaign-rules.php:753
853
  msgid "Any campaign"
854
  msgstr ""
855
 
856
- #: lite/admin/class-ig-es-campaign-rules.php:370
857
- #: lite/admin/class-ig-es-campaign-rules.php:388
858
  #: pro/classes/class-es-pro-advanced-filters.php:183
859
  msgid "no title"
860
  msgstr ""
861
 
862
- #: lite/admin/class-ig-es-campaign-rules.php:383
863
- #: lite/admin/class-ig-es-campaign-rules.php:779
864
  #: pro/classes/class-es-pro-advanced-filters.php:178
865
  msgid "Any list"
866
  msgstr ""
867
 
868
- #: lite/admin/class-ig-es-campaign-rules.php:392
869
  #: pro/classes/class-es-pro-advanced-filters.php:187
870
  msgid "No campaigns available"
871
  msgstr ""
872
 
873
- #: lite/admin/class-ig-es-campaign-rules.php:457
874
  msgid " or"
875
  msgstr ""
876
 
877
- #: lite/admin/class-ig-es-campaign-rules.php:467
878
  msgid ") "
879
  msgstr ""
880
 
881
- #: lite/admin/class-ig-es-campaign-rules.php:537
882
  msgctxt "opening curly double quote"
883
  msgid "&#8220;"
884
  msgstr ""
885
 
886
- #: lite/admin/class-ig-es-campaign-rules.php:538
887
  msgctxt "closing curly double quote"
888
  msgid "&#8221;"
889
  msgstr ""
890
 
891
- #: lite/admin/class-ig-es-campaign-rules.php:613
892
  msgid "is in List"
893
  msgstr ""
894
 
895
- #: lite/admin/class-ig-es-campaign-rules.php:631
896
  #: lite/includes/pro-features.php:1416
897
  #: lite/includes/pro-features.php:1665
898
- #: pro/classes/class-es-pro-campaign-rules.php:38
899
  #: pro/classes/class-es-pro-reports-data.php:318
900
  msgid "Country"
901
  msgstr ""
902
 
903
- #: lite/admin/class-ig-es-campaign-rules.php:644
904
- #: pro/classes/class-es-pro-campaign-rules.php:46
905
  msgid "has received"
906
  msgstr ""
907
 
908
- #: lite/admin/class-ig-es-campaign-rules.php:645
909
- #: pro/classes/class-es-pro-campaign-rules.php:49
910
  msgid "has not received"
911
  msgstr ""
912
 
913
- #: lite/admin/class-ig-es-campaign-rules.php:646
914
- #: pro/classes/class-es-pro-campaign-rules.php:52
915
  msgid "has received and opened"
916
  msgstr ""
917
 
918
- #: lite/admin/class-ig-es-campaign-rules.php:647
919
- #: pro/classes/class-es-pro-campaign-rules.php:55
920
  msgid "has received but not opened"
921
  msgstr ""
922
 
923
- #: lite/admin/class-ig-es-campaign-rules.php:648
924
- #: pro/classes/class-es-pro-campaign-rules.php:58
925
  msgid "has received and clicked"
926
  msgstr ""
927
 
928
- #: lite/admin/class-ig-es-campaign-rules.php:649
929
- #: pro/classes/class-es-pro-campaign-rules.php:61
930
  msgid "has received and not clicked"
931
  msgstr ""
932
 
933
- #: lite/admin/class-ig-es-campaign-rules.php:661
934
  msgid "Any of the Last 5 Campaigns"
935
  msgstr ""
936
 
937
- #: lite/admin/class-ig-es-campaign-rules.php:662
938
  msgid "Any Campaigns within the last 7 days"
939
  msgstr ""
940
 
941
- #: lite/admin/class-ig-es-campaign-rules.php:663
942
  msgid "Any Campaigns within the last 1 month"
943
  msgstr ""
944
 
945
- #: lite/admin/class-ig-es-campaign-rules.php:664
946
  msgid "Any Campaigns within the last 3 months"
947
  msgstr ""
948
 
949
- #: lite/admin/class-ig-es-campaign-rules.php:665
950
  msgid "Any Campaigns within the last 6 months"
951
  msgstr ""
952
 
953
- #: lite/admin/class-ig-es-campaign-rules.php:666
954
  msgid "Any Campaigns within the last 12 months"
955
  msgstr ""
956
 
957
- #: lite/admin/class-ig-es-campaign-rules.php:678
958
- #: lite/admin/class-ig-es-campaign-rules.php:701
959
- #: lite/admin/class-ig-es-campaign-rules.php:718
960
- #: lite/admin/class-ig-es-campaign-rules.php:737
961
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:189
962
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:204
963
  msgid "is"
964
  msgstr ""
965
 
966
- #: lite/admin/class-ig-es-campaign-rules.php:679
967
- #: lite/admin/class-ig-es-campaign-rules.php:702
968
- #: lite/admin/class-ig-es-campaign-rules.php:719
969
- #: lite/admin/class-ig-es-campaign-rules.php:738
970
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:190
971
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:205
972
  msgid "is not"
973
  msgstr ""
974
 
975
- #: lite/admin/class-ig-es-campaign-rules.php:680
976
- #: lite/admin/class-ig-es-campaign-rules.php:720
977
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:202
978
  msgid "contains"
979
  msgstr ""
980
 
981
- #: lite/admin/class-ig-es-campaign-rules.php:681
982
- #: lite/admin/class-ig-es-campaign-rules.php:721
983
  msgid "contains not"
984
  msgstr ""
985
 
986
- #: lite/admin/class-ig-es-campaign-rules.php:682
987
- #: lite/admin/class-ig-es-campaign-rules.php:722
988
  msgid "begins with"
989
  msgstr ""
990
 
991
- #: lite/admin/class-ig-es-campaign-rules.php:683
992
- #: lite/admin/class-ig-es-campaign-rules.php:723
993
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:207
994
  msgid "ends with"
995
  msgstr ""
996
 
997
- #: lite/admin/class-ig-es-campaign-rules.php:684
998
- #: lite/admin/class-ig-es-campaign-rules.php:703
999
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:237
1000
  msgid "is greater than"
1001
  msgstr ""
1002
 
1003
- #: lite/admin/class-ig-es-campaign-rules.php:685
1004
- #: lite/admin/class-ig-es-campaign-rules.php:704
1005
  msgid "is smaller than"
1006
  msgstr ""
1007
 
1008
- #: lite/admin/class-ig-es-campaign-rules.php:686
1009
- #: lite/admin/class-ig-es-campaign-rules.php:705
1010
  msgid "is greater or equal"
1011
  msgstr ""
1012
 
1013
- #: lite/admin/class-ig-es-campaign-rules.php:687
1014
- #: lite/admin/class-ig-es-campaign-rules.php:706
1015
  msgid "is smaller or equal"
1016
  msgstr ""
1017
 
1018
- #: lite/admin/class-ig-es-campaign-rules.php:688
1019
- #: lite/admin/class-ig-es-campaign-rules.php:724
1020
  msgid "match regex pattern"
1021
  msgstr ""
1022
 
1023
- #: lite/admin/class-ig-es-campaign-rules.php:689
1024
- #: lite/admin/class-ig-es-campaign-rules.php:725
1025
  msgid "does not match regex pattern"
1026
  msgstr ""
1027
 
1028
- #: lite/admin/class-ig-es-campaign-rules.php:797
1029
- #: pro/classes/class-es-pro-bounce-handler.php:84
1030
- #: pro/classes/class-es-pro-bounce-handler.php:244
1031
  msgid "Hard bounced"
1032
  msgstr ""
1033
 
1034
- #: lite/admin/class-ig-es-campaign-rules.php:799
1035
- #: pro/classes/class-es-pro-bounce-handler.php:83
1036
- #: pro/classes/class-es-pro-bounce-handler.php:242
1037
  msgid "Soft bounced"
1038
  msgstr ""
1039
 
1040
- #: lite/admin/class-ig-es-campaign-rules.php:801
1041
  msgid "Un-bounced"
1042
  msgstr ""
1043
 
1044
- #: lite/admin/class-ig-es-campaign-rules.php:803
1045
- #: pro/classes/class-es-pro-bounce-handler.php:82
1046
  msgid "Any status"
1047
  msgstr ""
1048
 
@@ -1084,11 +1089,11 @@ msgstr ""
1084
  msgid "Welcome To Email Subscribers"
1085
  msgstr ""
1086
 
1087
- #: lite/admin/class-ig-es-onboarding.php:1017
1088
  msgid "Seems like your server is not setup correctly to send emails. Please confirm if you're getting any other emails from within WordPress"
1089
  msgstr ""
1090
 
1091
- #: lite/admin/class-ig-es-onboarding.php:1120
1092
  msgid "New Post Published - {{POSTTITLE}}"
1093
  msgstr ""
1094
 
@@ -1239,7 +1244,7 @@ msgid "New subscribers"
1239
  msgstr ""
1240
 
1241
  #: lite/admin/partials/dashboard.php:304
1242
- #: pro/classes/class-es-pro-campaign-rules.php:41
1243
  msgid "Engagement score"
1244
  msgstr ""
1245
 
@@ -1946,7 +1951,7 @@ msgstr ""
1946
  msgid "Date"
1947
  msgstr ""
1948
 
1949
- #: lite/includes/class-es-install.php:993
1950
  #: lite/includes/upgrade/es-update-functions.php:752
1951
  msgid "Your subscription was successful! Kindly check your mailbox and confirm your subscription. If you don't see the email within a few minutes, check the spam/junk folder."
1952
  msgstr ""
@@ -2817,12 +2822,12 @@ msgid "Manage Lists"
2817
  msgstr ""
2818
 
2819
  #: lite/includes/classes/class-es-contacts-table.php:193
2820
- #: lite/includes/classes/class-es-contacts-table.php:1474
2821
  msgid "Contact(s) moved to list successfully!"
2822
  msgstr ""
2823
 
2824
  #: lite/includes/classes/class-es-contacts-table.php:196
2825
- #: lite/includes/classes/class-es-contacts-table.php:1445
2826
  msgid "Contact(s) status changed successfully!"
2827
  msgstr ""
2828
 
@@ -2832,13 +2837,13 @@ msgid "Confirmation emails queued successfully and will be sent shortly."
2832
  msgstr ""
2833
 
2834
  #: lite/includes/classes/class-es-contacts-table.php:202
2835
- #: lite/includes/classes/class-es-contacts-table.php:1503
2836
  msgid "Contact(s) added to list successfully!"
2837
  msgstr ""
2838
 
2839
  #: lite/includes/classes/class-es-contacts-table.php:205
2840
  #: lite/includes/classes/class-es-contacts-table.php:1340
2841
- #: lite/includes/classes/class-es-contacts-table.php:1411
2842
  msgid "Contact(s) deleted successfully!"
2843
  msgstr ""
2844
 
@@ -2975,12 +2980,12 @@ msgstr ""
2975
  msgid "Please select subscribers to update."
2976
  msgstr ""
2977
 
2978
- #: lite/includes/classes/class-es-contacts-table.php:1427
2979
  msgid "Please select status."
2980
  msgstr ""
2981
 
2982
- #: lite/includes/classes/class-es-contacts-table.php:1462
2983
- #: lite/includes/classes/class-es-contacts-table.php:1491
2984
  #: lite/includes/classes/class-es-post-notifications.php:72
2985
  msgid "Please select list."
2986
  msgstr ""
@@ -3021,41 +3026,41 @@ msgstr ""
3021
  msgid "30 minutes"
3022
  msgstr ""
3023
 
3024
- #: lite/includes/classes/class-es-cron.php:654
3025
  msgid "Emails sent successfully!"
3026
  msgstr ""
3027
 
3028
- #: lite/includes/classes/class-es-cron.php:655
3029
  msgid "Emails not found."
3030
  msgstr ""
3031
 
3032
- #: lite/includes/classes/class-es-cron.php:656
3033
  msgid "No notifications found to send."
3034
  msgstr ""
3035
 
 
 
3036
  #: lite/includes/classes/class-es-cron.php:657
3037
- #: lite/includes/classes/class-es-cron.php:658
3038
- #: lite/includes/classes/class-es-cron.php:659
3039
  msgid "Invalid GUID."
3040
  msgstr ""
3041
 
3042
- #: lite/includes/classes/class-es-cron.php:660
3043
  msgid "Not allowed to process request."
3044
  msgstr ""
3045
 
3046
- #: lite/includes/classes/class-es-cron.php:661
3047
  msgid "GUID is empty."
3048
  msgstr ""
3049
 
3050
- #: lite/includes/classes/class-es-cron.php:662
3051
  msgid "Please try after sometime."
3052
  msgstr ""
3053
 
3054
- #: lite/includes/classes/class-es-cron.php:663
3055
  msgid "You have hit your hourly email sending limit. Please try after sometime."
3056
  msgstr ""
3057
 
3058
- #: lite/includes/classes/class-es-cron.php:664
3059
  msgid "Cron lock enabled. Please try after sometime."
3060
  msgstr ""
3061
 
@@ -3508,7 +3513,7 @@ msgstr ""
3508
 
3509
  #: lite/includes/classes/class-es-import-subscribers.php:870
3510
  #: lite/includes/classes/class-es-import-subscribers.php:1361
3511
- #: pro/classes/class-es-pro-bounce-handler.php:118
3512
  msgid "Hard Bounced"
3513
  msgstr ""
3514
 
@@ -3707,7 +3712,7 @@ msgstr ""
3707
  #: lite/includes/classes/class-es-newsletters.php:427
3708
  #: lite/includes/classes/class-es-reports-table.php:596
3709
  #: lite/includes/classes/class-es-templates-table.php:150
3710
- #: lite/admin/js/src/views/GalleryItemPreview.js:31
3711
  msgid "There could be a slight variation on how your customer will view the email content."
3712
  msgstr ""
3713
 
@@ -4318,7 +4323,7 @@ msgid "For example : Adds a checkbox to subscribe when people post a comment."
4318
  msgstr ""
4319
 
4320
  #: lite/includes/pro-features.php:331
4321
- #: pro/pro-class-email-subscribers.php:2887
4322
  #: starter/starter-class-email-subscribers.php:604
4323
  msgid "(toggle to enable this)"
4324
  msgstr ""
@@ -4866,7 +4871,7 @@ msgid "Send confirmation email [PRO]"
4866
  msgstr ""
4867
 
4868
  #: lite/includes/pro-features.php:1966
4869
- #: pro/classes/class-es-pro-custom-fields.php:82
4870
  msgid "Manage Custom Fields"
4871
  msgstr ""
4872
 
@@ -5726,7 +5731,7 @@ msgstr ""
5726
  msgid "Free!"
5727
  msgstr ""
5728
 
5729
- #: pro/classes/class-es-engagement-score.php:44
5730
  msgid "Score"
5731
  msgstr ""
5732
 
@@ -5739,47 +5744,47 @@ msgstr ""
5739
  msgid "Filter Contacts"
5740
  msgstr ""
5741
 
5742
- #: pro/classes/class-es-pro-bounce-handler.php:100
5743
  msgid "Bounce status"
5744
  msgstr ""
5745
 
5746
- #: pro/classes/class-es-pro-bounce-handler.php:117
5747
  msgid "Soft Bounced"
5748
  msgstr ""
5749
 
5750
- #: pro/classes/class-es-pro-bounce-handler.php:143
5751
  msgid "Mailjet Bounce notification URL"
5752
  msgstr ""
5753
 
5754
- #: pro/classes/class-es-pro-bounce-handler.php:152
5755
  msgid "Sendinblue Bounce notification URL"
5756
  msgstr ""
5757
 
5758
- #: pro/classes/class-es-pro-bounce-handler.php:159
5759
  msgid "Amazon SES Bounce notification URL"
5760
  msgstr ""
5761
 
5762
- #: pro/classes/class-es-pro-bounce-handler.php:166
5763
  msgid "PostMark Bounce WebHook URL"
5764
  msgstr ""
5765
 
5766
- #: pro/classes/class-es-pro-bounce-handler.php:173
5767
  msgid "SparkPost Bounce WebHook URL"
5768
  msgstr ""
5769
 
5770
- #: pro/classes/class-es-pro-bounce-handler.php:180
5771
  msgid "MailGun Bounce WebHook URL"
5772
  msgstr ""
5773
 
5774
- #: pro/classes/class-es-pro-bounce-handler.php:187
5775
  msgid "SendGrid Bounce WebHook URL"
5776
  msgstr ""
5777
 
5778
- #: pro/classes/class-es-pro-bounce-handler.php:194
5779
  msgid "PepiPost Bounce WebHook URL"
5780
  msgstr ""
5781
 
5782
- #: pro/classes/class-es-pro-campaign-rules.php:30
5783
  msgid "is not in List"
5784
  msgstr ""
5785
 
@@ -5863,8 +5868,12 @@ msgstr ""
5863
  msgid "No custom fields available."
5864
  msgstr ""
5865
 
5866
- #: pro/classes/class-es-pro-custom-fields.php:258
5867
- #: pro/classes/class-es-pro-custom-fields.php:401
 
 
 
 
5868
  msgid "Select option"
5869
  msgstr ""
5870
 
@@ -6094,81 +6103,81 @@ msgid "Generated by Email subscribers and Newsletters"
6094
  msgstr ""
6095
 
6096
  #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:120
6097
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:385
6098
  msgid "Access Key ID is empty."
6099
  msgstr ""
6100
 
6101
  #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:130
6102
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:395
6103
  msgid "Secret Access Key is empty."
6104
  msgstr ""
6105
 
6106
  #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:140
6107
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:405
6108
  msgid "Closest region is not set."
6109
  msgstr ""
6110
 
6111
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:459
6112
  msgid "US East (N. Virginia)"
6113
  msgstr ""
6114
 
6115
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:460
6116
  msgid "US East (Ohio)"
6117
  msgstr ""
6118
 
6119
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:461
6120
  msgid "US West (Oregon)"
6121
  msgstr ""
6122
 
6123
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:462
6124
  msgid "US AWS GovCloud"
6125
  msgstr ""
6126
 
6127
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:463
6128
  msgid "EU (Ireland)"
6129
  msgstr ""
6130
 
6131
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:464
6132
  msgid "EU (London)"
6133
  msgstr ""
6134
 
6135
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:465
6136
  msgid "EU (Frankfurt)"
6137
  msgstr ""
6138
 
6139
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:466
6140
  msgid "EU (Milan)"
6141
  msgstr ""
6142
 
6143
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:467
6144
  msgid "Asia Pacific (Mumbai)"
6145
  msgstr ""
6146
 
6147
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:468
6148
  msgid "Asia Pacific (Tokyo)"
6149
  msgstr ""
6150
 
6151
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:469
6152
  msgid "Asia Pacific (Seoul)"
6153
  msgstr ""
6154
 
6155
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:470
6156
  msgid "Asia Pacific (Singapore)"
6157
  msgstr ""
6158
 
6159
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:471
6160
  msgid "Asia Pacific (Sydney)"
6161
  msgstr ""
6162
 
6163
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:472
6164
  msgid "Canada (Central)"
6165
  msgstr ""
6166
 
6167
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:473
6168
  msgid "South America (São Paulo)"
6169
  msgstr ""
6170
 
6171
- #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:474
6172
  msgid "Africa (Cape Town)"
6173
  msgstr ""
6174
 
@@ -6480,15 +6489,15 @@ msgstr ""
6480
  msgid "How to configure Mailjet to send emails in the Email Subscribers plugin?"
6481
  msgstr ""
6482
 
6483
- #: pro/pro-class-email-subscribers.php:2777
6484
  msgid "No contacts found. May be they are already queued or there isn't any unconfirmed contact in your selection."
6485
  msgstr ""
6486
 
6487
- #: pro/pro-class-email-subscribers.php:2783
6488
  msgid "Failed to queue confirmation emails. Please try again later."
6489
  msgstr ""
6490
 
6491
- #: pro/pro-class-email-subscribers.php:2886
6492
  msgid "LearnDash optin consent"
6493
  msgstr ""
6494
 
@@ -7666,7 +7675,7 @@ msgstr ""
7666
  msgid "Create using Classic Editor"
7667
  msgstr ""
7668
 
7669
- #: lite/admin/js/src/views/GalleryItem.js:24
7670
  msgid "Use this"
7671
  msgstr ""
7672
 
@@ -7690,11 +7699,15 @@ msgstr ""
7690
  msgid "Clear all filters"
7691
  msgstr ""
7692
 
7693
- #: lite/admin/js/src/views/GalleryItemPreview.js:38
7694
  msgid "Use this template"
7695
  msgstr ""
7696
 
7697
- #: lite/admin/js/src/views/GalleryItemsPage.js:108
 
 
 
 
7698
  msgid "Create from scratch"
7699
  msgstr ""
7700
 
2
  # This file is distributed under the same license as the Email Subscribers & Newsletters plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Email Subscribers & Newsletters 5.4.14\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-subscribers\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-09-28T12:14:05+02:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: email-subscribers\n"
220
  msgid "Headers verified successfully"
221
  msgstr ""
222
 
223
+ #: lite/admin/class-email-subscribers-admin.php:232
224
+ msgid "Want to select contacts on all pages?"
225
+ msgstr ""
226
+
227
+ #: lite/admin/class-email-subscribers-admin.php:314
228
  #: lite/admin/partials/dashboard.php:167
229
  msgid "Dashboard"
230
  msgstr ""
231
 
232
+ #: lite/admin/class-email-subscribers-admin.php:319
233
  #: lite/admin/partials/dashboard.php:174
234
  #: lite/includes/classes/class-es-contacts-table.php:238
235
  #: lite/includes/pro-features.php:205
237
  msgid "Audience"
238
  msgstr ""
239
 
240
+ #: lite/admin/class-email-subscribers-admin.php:323
241
  #: lite/admin/class-es-form-admin.php:232
242
  #: lite/admin/class-es-form-admin.php:519
243
  #: lite/includes/classes/class-es-lists-table.php:34
245
  msgid "Lists"
246
  msgstr ""
247
 
248
+ #: lite/admin/class-email-subscribers-admin.php:329
249
  #: lite/admin/class-es-form-admin.php:397
250
  #: lite/includes/classes/class-es-form-widget.php:77
251
  #: lite/includes/classes/class-es-forms-table.php:39
256
  msgid "Forms"
257
  msgstr ""
258
 
259
+ #: lite/admin/class-email-subscribers-admin.php:335
260
  #: lite/admin/class-es-campaign-admin.php:474
261
  #: lite/admin/partials/gallery.php:10
262
  #: lite/includes/classes/class-es-campaigns-table.php:124
268
  msgid "Campaigns"
269
  msgstr ""
270
 
271
+ #: lite/admin/class-email-subscribers-admin.php:339
272
  msgid "Post Notifications"
273
  msgstr ""
274
 
275
+ #: lite/admin/class-email-subscribers-admin.php:341
276
  #: lite/admin/class-es-campaign-admin.php:445
277
  #: lite/includes/classes/class-es-campaign-report.php:56
278
  #: lite/includes/classes/class-es-campaigns-table.php:357
286
  msgid "Broadcast"
287
  msgstr ""
288
 
289
+ #: lite/admin/class-email-subscribers-admin.php:342
290
  #: lite/includes/classes/class-es-newsletters.php:426
291
  #: lite/includes/classes/class-es-reports-table.php:595
292
  #: lite/includes/classes/class-es-templates-table.php:149
293
+ #: lite/admin/js/src/views/GalleryItemPreview.js:21
294
  msgid "Template Preview"
295
  msgstr ""
296
 
297
+ #: lite/admin/class-email-subscribers-admin.php:347
298
  msgid "Gallery"
299
  msgstr ""
300
 
301
+ #: lite/admin/class-email-subscribers-admin.php:353
302
  #: lite/includes/pro-features.php:210
303
  #: lite/includes/workflows/admin/class-es-workflow-admin-edit.php:341
304
  #: lite/includes/workflows/class-es-workflows-table.php:53
308
  msgid "Workflows"
309
  msgstr ""
310
 
311
+ #: lite/admin/class-email-subscribers-admin.php:362
312
  #: lite/admin/partials/dashboard.php:614
313
  #: lite/includes/classes/class-es-campaign-report.php:17
314
  #: lite/includes/classes/class-es-reports-table.php:17
322
  msgid "Reports"
323
  msgstr ""
324
 
325
+ #: lite/admin/class-email-subscribers-admin.php:366
326
  #: lite/admin/class-es-form-admin.php:412
327
  #: lite/admin/partials/dashboard.php:622
328
  #: lite/includes/classes/class-es-admin-settings.php:136
329
  msgid "Settings"
330
  msgstr ""
331
 
332
+ #: lite/admin/class-email-subscribers-admin.php:371
333
  msgid "Go To Icegram"
334
  msgstr ""
335
 
336
  #. translators: 1. WordPress URL 2. Email Subscribers version 3. Icegram site URL
337
+ #: lite/admin/class-email-subscribers-admin.php:941
338
  msgid "<span id=\"footer-thankyou\">Thank you for creating with <a href=\"%1$s\" target=\"_blank\">WordPress</a> | Email Subscribers <b>%2$s</b>. Developed by team <a href=\"%3$s\" target=\"_blank\">Icegram</a></span>"
339
  msgstr ""
340
 
341
+ #: lite/admin/class-email-subscribers-admin.php:969
342
+ #: lite/admin/class-email-subscribers-admin.php:1791
343
+ #: lite/admin/class-email-subscribers-admin.php:1814
344
  msgid "Something went wrong"
345
  msgstr ""
346
 
347
  #. translators: %s: Pricing page URL
348
+ #: lite/admin/class-email-subscribers-admin.php:1441
349
  #: lite/includes/class-email-subscribers-activator.php:61
350
  #: lite/includes/class-email-subscribers.php:1527
351
  #: lite/includes/classes/class-email-subscribers-pricing.php:772
357
  msgid "Email Subscribers"
358
  msgstr ""
359
 
360
+ #: lite/admin/class-email-subscribers-admin.php:1483
361
  msgid "Last 30 days"
362
  msgstr ""
363
 
364
+ #: lite/admin/class-email-subscribers-admin.php:1492
365
  #: lite/includes/class-es-common.php:362
366
  #: lite/includes/classes/class-es-contacts-table.php:356
367
  #: lite/includes/classes/class-es-import-subscribers.php:867
371
  msgid "Subscribed"
372
  msgstr ""
373
 
374
+ #: lite/admin/class-email-subscribers-admin.php:1500
375
  #: lite/admin/partials/dashboard.php:284
376
  #: lite/includes/class-es-common.php:364
377
  #: lite/includes/classes/class-es-campaign-report.php:262
384
  msgid "Unsubscribed"
385
  msgstr ""
386
 
387
+ #: lite/admin/class-email-subscribers-admin.php:1508
388
  #: lite/includes/pro-features.php:1339
389
  msgid "Avg Open Rate"
390
  msgstr ""
391
 
392
+ #: lite/admin/class-email-subscribers-admin.php:1516
393
  msgid "Messages Sent"
394
  msgstr ""
395
 
396
+ #: lite/admin/class-email-subscribers-admin.php:1527
397
  msgid "Last Campaign"
398
  msgstr ""
399
 
400
+ #: lite/admin/class-email-subscribers-admin.php:1563
401
  msgid "Sent to"
402
  msgstr ""
403
 
404
+ #: lite/admin/class-email-subscribers-admin.php:1575
405
  #: lite/admin/partials/dashboard.php:360
406
  #: lite/admin/partials/dashboard.php:378
407
  #: lite/admin/partials/dashboard.php:539
415
  msgid "Opens"
416
  msgstr ""
417
 
418
+ #: lite/admin/class-email-subscribers-admin.php:1589
419
  msgid "No campaigns sent yet"
420
  msgstr ""
421
 
422
+ #: lite/admin/class-email-subscribers-admin.php:1597
423
  msgid "Latest Blog Posts from Icegram"
424
  msgstr ""
425
 
426
+ #: lite/admin/class-email-subscribers-admin.php:1714
427
  msgid "Please publish it or save it as a draft."
428
  msgstr ""
429
 
430
  #. translators: %s: link to new keyword doc
431
+ #: lite/admin/class-email-subscribers-admin.php:1770
432
  msgid "There seems to be some issue in sending your emails. You may have to check your %1$semail sending setting%2$s."
433
  msgstr ""
434
 
674
  msgstr ""
675
 
676
  #: lite/admin/class-es-form-admin.php:165
677
+ #: lite/admin/class-ig-es-campaign-rules.php:672
678
  #: lite/includes/classes/class-es-admin-settings.php:233
679
  #: lite/includes/classes/class-es-campaign-report.php:436
680
  #: lite/includes/classes/class-es-contacts-table.php:838
688
  #: lite/includes/workflows/actions/abstracts/class-ig-es-action-send-email-abstract.php:29
689
  #: lite/includes/workflows/actions/class-es-action-send-email.php:31
690
  #: lite/public/partials/class-es-shortcode.php:302
691
+ #: pro/classes/class-es-pro-campaign-rules.php:36
692
  #: pro/classes/class-es-pro-embed-form.php:175
693
  #: pro/pro-class-email-subscribers.php:2349
694
  msgid "Email"
794
  #: lite/admin/class-ig-es-campaign-rules.php:198
795
  #: lite/admin/class-ig-es-campaign-rules.php:270
796
  #: lite/admin/class-ig-es-campaign-rules.php:272
797
+ #: lite/admin/class-ig-es-campaign-rules.php:580
798
+ #: lite/admin/class-ig-es-campaign-rules.php:585
799
+ #: lite/admin/class-ig-es-campaign-rules.php:591
800
+ #: lite/admin/class-ig-es-campaign-rules.php:597
801
+ #: lite/admin/class-ig-es-campaign-rules.php:603
802
+ #: lite/admin/class-ig-es-campaign-rules.php:637
803
  #: pro/classes/class-es-pro-advanced-filters.php:72
804
  #: pro/classes/class-es-pro-advanced-filters.php:74
805
  msgid "or"
835
  msgstr ""
836
 
837
  #: lite/admin/class-ig-es-campaign-rules.php:261
838
+ #: lite/admin/class-ig-es-campaign-rules.php:480
839
+ #: lite/admin/class-ig-es-campaign-rules.php:634
840
  #: lite/includes/workflows/admin/views/meta-box-rules.php:94
841
  msgid "and"
842
  msgstr ""
843
 
844
  #: lite/admin/class-ig-es-campaign-rules.php:270
845
+ #: lite/admin/class-ig-es-campaign-rules.php:443
846
  #: pro/classes/class-es-pro-advanced-filters.php:72
847
  #: pro/classes/class-es-pro-advanced-filters.php:205
848
  msgid "Add Condition"
853
  msgid "remove condition"
854
  msgstr ""
855
 
856
+ #: lite/admin/class-ig-es-campaign-rules.php:400
857
+ #: lite/admin/class-ig-es-campaign-rules.php:795
858
  msgid "Any campaign"
859
  msgstr ""
860
 
861
+ #: lite/admin/class-ig-es-campaign-rules.php:406
862
+ #: lite/admin/class-ig-es-campaign-rules.php:424
863
  #: pro/classes/class-es-pro-advanced-filters.php:183
864
  msgid "no title"
865
  msgstr ""
866
 
867
+ #: lite/admin/class-ig-es-campaign-rules.php:419
868
+ #: lite/admin/class-ig-es-campaign-rules.php:821
869
  #: pro/classes/class-es-pro-advanced-filters.php:178
870
  msgid "Any list"
871
  msgstr ""
872
 
873
+ #: lite/admin/class-ig-es-campaign-rules.php:428
874
  #: pro/classes/class-es-pro-advanced-filters.php:187
875
  msgid "No campaigns available"
876
  msgstr ""
877
 
878
+ #: lite/admin/class-ig-es-campaign-rules.php:493
879
  msgid " or"
880
  msgstr ""
881
 
882
+ #: lite/admin/class-ig-es-campaign-rules.php:503
883
  msgid ") "
884
  msgstr ""
885
 
886
+ #: lite/admin/class-ig-es-campaign-rules.php:573
887
  msgctxt "opening curly double quote"
888
  msgid "&#8220;"
889
  msgstr ""
890
 
891
+ #: lite/admin/class-ig-es-campaign-rules.php:574
892
  msgctxt "closing curly double quote"
893
  msgid "&#8221;"
894
  msgstr ""
895
 
896
+ #: lite/admin/class-ig-es-campaign-rules.php:655
897
  msgid "is in List"
898
  msgstr ""
899
 
900
+ #: lite/admin/class-ig-es-campaign-rules.php:673
901
  #: lite/includes/pro-features.php:1416
902
  #: lite/includes/pro-features.php:1665
903
+ #: pro/classes/class-es-pro-campaign-rules.php:39
904
  #: pro/classes/class-es-pro-reports-data.php:318
905
  msgid "Country"
906
  msgstr ""
907
 
908
+ #: lite/admin/class-ig-es-campaign-rules.php:686
909
+ #: pro/classes/class-es-pro-campaign-rules.php:47
910
  msgid "has received"
911
  msgstr ""
912
 
913
+ #: lite/admin/class-ig-es-campaign-rules.php:687
914
+ #: pro/classes/class-es-pro-campaign-rules.php:50
915
  msgid "has not received"
916
  msgstr ""
917
 
918
+ #: lite/admin/class-ig-es-campaign-rules.php:688
919
+ #: pro/classes/class-es-pro-campaign-rules.php:53
920
  msgid "has received and opened"
921
  msgstr ""
922
 
923
+ #: lite/admin/class-ig-es-campaign-rules.php:689
924
+ #: pro/classes/class-es-pro-campaign-rules.php:56
925
  msgid "has received but not opened"
926
  msgstr ""
927
 
928
+ #: lite/admin/class-ig-es-campaign-rules.php:690
929
+ #: pro/classes/class-es-pro-campaign-rules.php:59
930
  msgid "has received and clicked"
931
  msgstr ""
932
 
933
+ #: lite/admin/class-ig-es-campaign-rules.php:691
934
+ #: pro/classes/class-es-pro-campaign-rules.php:62
935
  msgid "has received and not clicked"
936
  msgstr ""
937
 
938
+ #: lite/admin/class-ig-es-campaign-rules.php:703
939
  msgid "Any of the Last 5 Campaigns"
940
  msgstr ""
941
 
942
+ #: lite/admin/class-ig-es-campaign-rules.php:704
943
  msgid "Any Campaigns within the last 7 days"
944
  msgstr ""
945
 
946
+ #: lite/admin/class-ig-es-campaign-rules.php:705
947
  msgid "Any Campaigns within the last 1 month"
948
  msgstr ""
949
 
950
+ #: lite/admin/class-ig-es-campaign-rules.php:706
951
  msgid "Any Campaigns within the last 3 months"
952
  msgstr ""
953
 
954
+ #: lite/admin/class-ig-es-campaign-rules.php:707
955
  msgid "Any Campaigns within the last 6 months"
956
  msgstr ""
957
 
958
+ #: lite/admin/class-ig-es-campaign-rules.php:708
959
  msgid "Any Campaigns within the last 12 months"
960
  msgstr ""
961
 
962
+ #: lite/admin/class-ig-es-campaign-rules.php:720
963
+ #: lite/admin/class-ig-es-campaign-rules.php:743
964
+ #: lite/admin/class-ig-es-campaign-rules.php:760
965
+ #: lite/admin/class-ig-es-campaign-rules.php:779
966
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:189
967
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:204
968
  msgid "is"
969
  msgstr ""
970
 
971
+ #: lite/admin/class-ig-es-campaign-rules.php:721
972
+ #: lite/admin/class-ig-es-campaign-rules.php:744
973
+ #: lite/admin/class-ig-es-campaign-rules.php:761
974
+ #: lite/admin/class-ig-es-campaign-rules.php:780
975
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:190
976
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:205
977
  msgid "is not"
978
  msgstr ""
979
 
980
+ #: lite/admin/class-ig-es-campaign-rules.php:722
981
+ #: lite/admin/class-ig-es-campaign-rules.php:762
982
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:202
983
  msgid "contains"
984
  msgstr ""
985
 
986
+ #: lite/admin/class-ig-es-campaign-rules.php:723
987
+ #: lite/admin/class-ig-es-campaign-rules.php:763
988
  msgid "contains not"
989
  msgstr ""
990
 
991
+ #: lite/admin/class-ig-es-campaign-rules.php:724
992
+ #: lite/admin/class-ig-es-campaign-rules.php:764
993
  msgid "begins with"
994
  msgstr ""
995
 
996
+ #: lite/admin/class-ig-es-campaign-rules.php:725
997
+ #: lite/admin/class-ig-es-campaign-rules.php:765
998
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:207
999
  msgid "ends with"
1000
  msgstr ""
1001
 
1002
+ #: lite/admin/class-ig-es-campaign-rules.php:726
1003
+ #: lite/admin/class-ig-es-campaign-rules.php:745
1004
  #: lite/includes/workflows/abstracts/class-es-workflow-rule.php:237
1005
  msgid "is greater than"
1006
  msgstr ""
1007
 
1008
+ #: lite/admin/class-ig-es-campaign-rules.php:727
1009
+ #: lite/admin/class-ig-es-campaign-rules.php:746
1010
  msgid "is smaller than"
1011
  msgstr ""
1012
 
1013
+ #: lite/admin/class-ig-es-campaign-rules.php:728
1014
+ #: lite/admin/class-ig-es-campaign-rules.php:747
1015
  msgid "is greater or equal"
1016
  msgstr ""
1017
 
1018
+ #: lite/admin/class-ig-es-campaign-rules.php:729
1019
+ #: lite/admin/class-ig-es-campaign-rules.php:748
1020
  msgid "is smaller or equal"
1021
  msgstr ""
1022
 
1023
+ #: lite/admin/class-ig-es-campaign-rules.php:730
1024
+ #: lite/admin/class-ig-es-campaign-rules.php:766
1025
  msgid "match regex pattern"
1026
  msgstr ""
1027
 
1028
+ #: lite/admin/class-ig-es-campaign-rules.php:731
1029
+ #: lite/admin/class-ig-es-campaign-rules.php:767
1030
  msgid "does not match regex pattern"
1031
  msgstr ""
1032
 
1033
+ #: lite/admin/class-ig-es-campaign-rules.php:839
1034
+ #: pro/classes/class-es-pro-bounce-handler.php:85
1035
+ #: pro/classes/class-es-pro-bounce-handler.php:263
1036
  msgid "Hard bounced"
1037
  msgstr ""
1038
 
1039
+ #: lite/admin/class-ig-es-campaign-rules.php:841
1040
+ #: pro/classes/class-es-pro-bounce-handler.php:84
1041
+ #: pro/classes/class-es-pro-bounce-handler.php:261
1042
  msgid "Soft bounced"
1043
  msgstr ""
1044
 
1045
+ #: lite/admin/class-ig-es-campaign-rules.php:843
1046
  msgid "Un-bounced"
1047
  msgstr ""
1048
 
1049
+ #: lite/admin/class-ig-es-campaign-rules.php:845
1050
+ #: pro/classes/class-es-pro-bounce-handler.php:83
1051
  msgid "Any status"
1052
  msgstr ""
1053
 
1089
  msgid "Welcome To Email Subscribers"
1090
  msgstr ""
1091
 
1092
+ #: lite/admin/class-ig-es-onboarding.php:1000
1093
  msgid "Seems like your server is not setup correctly to send emails. Please confirm if you're getting any other emails from within WordPress"
1094
  msgstr ""
1095
 
1096
+ #: lite/admin/class-ig-es-onboarding.php:1103
1097
  msgid "New Post Published - {{POSTTITLE}}"
1098
  msgstr ""
1099
 
1244
  msgstr ""
1245
 
1246
  #: lite/admin/partials/dashboard.php:304
1247
+ #: pro/classes/class-es-pro-campaign-rules.php:42
1248
  msgid "Engagement score"
1249
  msgstr ""
1250
 
1951
  msgid "Date"
1952
  msgstr ""
1953
 
1954
+ #: lite/includes/class-es-install.php:988
1955
  #: lite/includes/upgrade/es-update-functions.php:752
1956
  msgid "Your subscription was successful! Kindly check your mailbox and confirm your subscription. If you don't see the email within a few minutes, check the spam/junk folder."
1957
  msgstr ""
2822
  msgstr ""
2823
 
2824
  #: lite/includes/classes/class-es-contacts-table.php:193
2825
+ #: lite/includes/classes/class-es-contacts-table.php:1479
2826
  msgid "Contact(s) moved to list successfully!"
2827
  msgstr ""
2828
 
2829
  #: lite/includes/classes/class-es-contacts-table.php:196
2830
+ #: lite/includes/classes/class-es-contacts-table.php:1448
2831
  msgid "Contact(s) status changed successfully!"
2832
  msgstr ""
2833
 
2837
  msgstr ""
2838
 
2839
  #: lite/includes/classes/class-es-contacts-table.php:202
2840
+ #: lite/includes/classes/class-es-contacts-table.php:1510
2841
  msgid "Contact(s) added to list successfully!"
2842
  msgstr ""
2843
 
2844
  #: lite/includes/classes/class-es-contacts-table.php:205
2845
  #: lite/includes/classes/class-es-contacts-table.php:1340
2846
+ #: lite/includes/classes/class-es-contacts-table.php:1412
2847
  msgid "Contact(s) deleted successfully!"
2848
  msgstr ""
2849
 
2980
  msgid "Please select subscribers to update."
2981
  msgstr ""
2982
 
2983
+ #: lite/includes/classes/class-es-contacts-table.php:1429
2984
  msgid "Please select status."
2985
  msgstr ""
2986
 
2987
+ #: lite/includes/classes/class-es-contacts-table.php:1466
2988
+ #: lite/includes/classes/class-es-contacts-table.php:1497
2989
  #: lite/includes/classes/class-es-post-notifications.php:72
2990
  msgid "Please select list."
2991
  msgstr ""
3026
  msgid "30 minutes"
3027
  msgstr ""
3028
 
3029
+ #: lite/includes/classes/class-es-cron.php:652
3030
  msgid "Emails sent successfully!"
3031
  msgstr ""
3032
 
3033
+ #: lite/includes/classes/class-es-cron.php:653
3034
  msgid "Emails not found."
3035
  msgstr ""
3036
 
3037
+ #: lite/includes/classes/class-es-cron.php:654
3038
  msgid "No notifications found to send."
3039
  msgstr ""
3040
 
3041
+ #: lite/includes/classes/class-es-cron.php:655
3042
+ #: lite/includes/classes/class-es-cron.php:656
3043
  #: lite/includes/classes/class-es-cron.php:657
 
 
3044
  msgid "Invalid GUID."
3045
  msgstr ""
3046
 
3047
+ #: lite/includes/classes/class-es-cron.php:658
3048
  msgid "Not allowed to process request."
3049
  msgstr ""
3050
 
3051
+ #: lite/includes/classes/class-es-cron.php:659
3052
  msgid "GUID is empty."
3053
  msgstr ""
3054
 
3055
+ #: lite/includes/classes/class-es-cron.php:660
3056
  msgid "Please try after sometime."
3057
  msgstr ""
3058
 
3059
+ #: lite/includes/classes/class-es-cron.php:661
3060
  msgid "You have hit your hourly email sending limit. Please try after sometime."
3061
  msgstr ""
3062
 
3063
+ #: lite/includes/classes/class-es-cron.php:662
3064
  msgid "Cron lock enabled. Please try after sometime."
3065
  msgstr ""
3066
 
3513
 
3514
  #: lite/includes/classes/class-es-import-subscribers.php:870
3515
  #: lite/includes/classes/class-es-import-subscribers.php:1361
3516
+ #: pro/classes/class-es-pro-bounce-handler.php:137
3517
  msgid "Hard Bounced"
3518
  msgstr ""
3519
 
3712
  #: lite/includes/classes/class-es-newsletters.php:427
3713
  #: lite/includes/classes/class-es-reports-table.php:596
3714
  #: lite/includes/classes/class-es-templates-table.php:150
3715
+ #: lite/admin/js/src/views/GalleryItemPreview.js:34
3716
  msgid "There could be a slight variation on how your customer will view the email content."
3717
  msgstr ""
3718
 
4323
  msgstr ""
4324
 
4325
  #: lite/includes/pro-features.php:331
4326
+ #: pro/pro-class-email-subscribers.php:2889
4327
  #: starter/starter-class-email-subscribers.php:604
4328
  msgid "(toggle to enable this)"
4329
  msgstr ""
4871
  msgstr ""
4872
 
4873
  #: lite/includes/pro-features.php:1966
4874
+ #: pro/classes/class-es-pro-custom-fields.php:207
4875
  msgid "Manage Custom Fields"
4876
  msgstr ""
4877
 
5731
  msgid "Free!"
5732
  msgstr ""
5733
 
5734
+ #: pro/classes/class-es-engagement-score.php:46
5735
  msgid "Score"
5736
  msgstr ""
5737
 
5744
  msgid "Filter Contacts"
5745
  msgstr ""
5746
 
5747
+ #: pro/classes/class-es-pro-bounce-handler.php:101
5748
  msgid "Bounce status"
5749
  msgstr ""
5750
 
5751
+ #: pro/classes/class-es-pro-bounce-handler.php:136
5752
  msgid "Soft Bounced"
5753
  msgstr ""
5754
 
5755
+ #: pro/classes/class-es-pro-bounce-handler.php:162
5756
  msgid "Mailjet Bounce notification URL"
5757
  msgstr ""
5758
 
5759
+ #: pro/classes/class-es-pro-bounce-handler.php:171
5760
  msgid "Sendinblue Bounce notification URL"
5761
  msgstr ""
5762
 
5763
+ #: pro/classes/class-es-pro-bounce-handler.php:178
5764
  msgid "Amazon SES Bounce notification URL"
5765
  msgstr ""
5766
 
5767
+ #: pro/classes/class-es-pro-bounce-handler.php:185
5768
  msgid "PostMark Bounce WebHook URL"
5769
  msgstr ""
5770
 
5771
+ #: pro/classes/class-es-pro-bounce-handler.php:192
5772
  msgid "SparkPost Bounce WebHook URL"
5773
  msgstr ""
5774
 
5775
+ #: pro/classes/class-es-pro-bounce-handler.php:199
5776
  msgid "MailGun Bounce WebHook URL"
5777
  msgstr ""
5778
 
5779
+ #: pro/classes/class-es-pro-bounce-handler.php:206
5780
  msgid "SendGrid Bounce WebHook URL"
5781
  msgstr ""
5782
 
5783
+ #: pro/classes/class-es-pro-bounce-handler.php:213
5784
  msgid "PepiPost Bounce WebHook URL"
5785
  msgstr ""
5786
 
5787
+ #: pro/classes/class-es-pro-campaign-rules.php:31
5788
  msgid "is not in List"
5789
  msgstr ""
5790
 
5868
  msgid "No custom fields available."
5869
  msgstr ""
5870
 
5871
+ #: pro/classes/class-es-pro-custom-fields.php:148
5872
+ msgid "Any"
5873
+ msgstr ""
5874
+
5875
+ #: pro/classes/class-es-pro-custom-fields.php:383
5876
+ #: pro/classes/class-es-pro-custom-fields.php:526
5877
  msgid "Select option"
5878
  msgstr ""
5879
 
6103
  msgstr ""
6104
 
6105
  #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:120
6106
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:407
6107
  msgid "Access Key ID is empty."
6108
  msgstr ""
6109
 
6110
  #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:130
6111
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:417
6112
  msgid "Secret Access Key is empty."
6113
  msgstr ""
6114
 
6115
  #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:140
6116
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:427
6117
  msgid "Closest region is not set."
6118
  msgstr ""
6119
 
6120
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:481
6121
  msgid "US East (N. Virginia)"
6122
  msgstr ""
6123
 
6124
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:482
6125
  msgid "US East (Ohio)"
6126
  msgstr ""
6127
 
6128
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:483
6129
  msgid "US West (Oregon)"
6130
  msgstr ""
6131
 
6132
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:484
6133
  msgid "US AWS GovCloud"
6134
  msgstr ""
6135
 
6136
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:485
6137
  msgid "EU (Ireland)"
6138
  msgstr ""
6139
 
6140
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:486
6141
  msgid "EU (London)"
6142
  msgstr ""
6143
 
6144
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:487
6145
  msgid "EU (Frankfurt)"
6146
  msgstr ""
6147
 
6148
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:488
6149
  msgid "EU (Milan)"
6150
  msgstr ""
6151
 
6152
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:489
6153
  msgid "Asia Pacific (Mumbai)"
6154
  msgstr ""
6155
 
6156
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:490
6157
  msgid "Asia Pacific (Tokyo)"
6158
  msgstr ""
6159
 
6160
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:491
6161
  msgid "Asia Pacific (Seoul)"
6162
  msgstr ""
6163
 
6164
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:492
6165
  msgid "Asia Pacific (Singapore)"
6166
  msgstr ""
6167
 
6168
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:493
6169
  msgid "Asia Pacific (Sydney)"
6170
  msgstr ""
6171
 
6172
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:494
6173
  msgid "Canada (Central)"
6174
  msgstr ""
6175
 
6176
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:495
6177
  msgid "South America (São Paulo)"
6178
  msgstr ""
6179
 
6180
+ #: pro/mailers/aws-ses/class-es-amazon-ses-mailer.php:496
6181
  msgid "Africa (Cape Town)"
6182
  msgstr ""
6183
 
6489
  msgid "How to configure Mailjet to send emails in the Email Subscribers plugin?"
6490
  msgstr ""
6491
 
6492
+ #: pro/pro-class-email-subscribers.php:2778
6493
  msgid "No contacts found. May be they are already queued or there isn't any unconfirmed contact in your selection."
6494
  msgstr ""
6495
 
6496
+ #: pro/pro-class-email-subscribers.php:2785
6497
  msgid "Failed to queue confirmation emails. Please try again later."
6498
  msgstr ""
6499
 
6500
+ #: pro/pro-class-email-subscribers.php:2888
6501
  msgid "LearnDash optin consent"
6502
  msgstr ""
6503
 
7675
  msgid "Create using Classic Editor"
7676
  msgstr ""
7677
 
7678
+ #: lite/admin/js/src/views/GalleryItem.js:31
7679
  msgid "Use this"
7680
  msgstr ""
7681
 
7699
  msgid "Clear all filters"
7700
  msgstr ""
7701
 
7702
+ #: lite/admin/js/src/views/GalleryItemPreview.js:41
7703
  msgid "Use this template"
7704
  msgstr ""
7705
 
7706
+ #: lite/admin/js/src/views/GalleryItemPreview.js:45
7707
+ msgid "Upgrade to"
7708
+ msgstr ""
7709
+
7710
+ #: lite/admin/js/src/views/GalleryItemsPage.js:124
7711
  msgid "Create from scratch"
7712
  msgstr ""
7713
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: email marketing, subscription, autoresponder, post notification, welcome e
6
  Requires at least: 3.9
7
  Tested up to: 6.0.2
8
  Requires PHP: 5.6
9
- Stable tag: 5.4.13
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses
12
 
@@ -310,13 +310,16 @@ Refer [here](https://www.icegram.com/documentation/es-faq/).
310
 
311
  == Upgrade Notice ==
312
 
313
- = 5.4.13 =
314
 
315
- * Enhancement: Bulk actions can now apply to all the contacts
316
- * Fix: Some keywords are not getting converted correctly in Amazon SES
317
 
318
  == Changelog ==
319
 
 
 
 
 
320
  **5.4.13 (22.09.2022)**
321
 
322
  * Enhancement: Bulk actions can now apply to all the contacts
6
  Requires at least: 3.9
7
  Tested up to: 6.0.2
8
  Requires PHP: 5.6
9
+ Stable tag: 5.4.14
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses
12
 
310
 
311
  == Upgrade Notice ==
312
 
313
+ = 5.4.14 =
314
 
315
+ * New : Filter subscribers using custom fields while sending emails[PRO]
 
316
 
317
  == Changelog ==
318
 
319
+ **5.4.14 (28.09.2022)**
320
+
321
+ * New : Filter subscribers using custom fields while sending emails[PRO]
322
+
323
  **5.4.13 (22.09.2022)**
324
 
325
  * Enhancement: Bulk actions can now apply to all the contacts