Version Description
(28.09.2018) =
- Fix: Invalid unsubscribe link
- Update: Use string instead of constant for Text Domain.
Download this release
Release Info
Developer | Icegram |
Plugin | Email Subscribers & Newsletters |
Version | 3.5.12 |
Comparing to | |
See all releases |
Code changes from version 3.5.11 to 3.5.12
- base/es-defined.php +1 -1
- changelog.txt +5 -0
- classes/es-common.php +11 -11
- classes/es-register.php +97 -152
- classes/es-sendmail.php +32 -27
- email-subscribers.php +1 -2
- export/export-email-address.php +2 -2
- help/help.php +88 -88
- job/es-optin.php +3 -3
- job/es-unsubscribe.php +2 -2
- notification/notification-add.php +23 -23
- notification/notification-edit.php +25 -25
- notification/notification-show.php +19 -19
- pricing/pricing.php +22 -22
- readme.txt +6 -1
- sendmail/sendmail.php +24 -24
- sentmail/deliverreport-show.php +18 -18
- sentmail/sentmail-preview.php +5 -5
- sentmail/sentmail-show.php +28 -28
- settings/setting-sync.php +4 -4
- settings/settings-edit.php +105 -105
- subscribers/view-subscriber-add.php +22 -22
- subscribers/view-subscriber-edit.php +21 -21
- subscribers/view-subscriber-export.php +30 -30
- subscribers/view-subscriber-import.php +25 -25
- subscribers/view-subscriber-show.php +60 -60
- subscribers/view-subscriber-sync.php +13 -13
- templates/template-preview.php +6 -6
- tools/tools.php +11 -11
base/es-defined.php
CHANGED
@@ -11,7 +11,7 @@ $es_current_folder = dirname(dirname(__FILE__));
|
|
11 |
|
12 |
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
|
13 |
|
14 |
-
if(!defined('ES_TDOMAIN')) define('ES_TDOMAIN',
|
15 |
|
16 |
if(!defined('ES_PLUGIN_NAME')) define('ES_PLUGIN_NAME', $es_plugin_name);
|
17 |
|
11 |
|
12 |
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
|
13 |
|
14 |
+
if(!defined('ES_TDOMAIN')) define('ES_TDOMAIN', 'email-subscribers');
|
15 |
|
16 |
if(!defined('ES_PLUGIN_NAME')) define('ES_PLUGIN_NAME', $es_plugin_name);
|
17 |
|
changelog.txt
CHANGED
@@ -4,6 +4,11 @@ Author : Icegram
|
|
4 |
Author URI : https://www.icegram.com/
|
5 |
License : GPLv3
|
6 |
|
|
|
|
|
|
|
|
|
|
|
7 |
***********************************************************Version 3.5.11***********************************************************
|
8 |
|
9 |
* Fix: Send test newsletter to "Test" group on update
|
4 |
Author URI : https://www.icegram.com/
|
5 |
License : GPLv3
|
6 |
|
7 |
+
***********************************************************Version 3.5.12***********************************************************
|
8 |
+
|
9 |
+
* Fix: Invalid unsubscribe link
|
10 |
+
* Update: Use string instead of constant for Text Domain.
|
11 |
+
|
12 |
***********************************************************Version 3.5.11***********************************************************
|
13 |
|
14 |
* Fix: Send test newsletter to "Test" group on update
|
classes/es-common.php
CHANGED
@@ -10,37 +10,37 @@ class es_cls_common {
|
|
10 |
$returnstring = "";
|
11 |
switch ($value) {
|
12 |
case "Confirmed":
|
13 |
-
$returnstring = __( '<span style="color:#006600;font-weight:bold;">Confirmed</span>',
|
14 |
break;
|
15 |
case "Unconfirmed":
|
16 |
-
$returnstring = __( '<span style="color:#FF0000">Unconfirmed</span>',
|
17 |
break;
|
18 |
case "Unsubscribed":
|
19 |
-
$returnstring = __( '<span style="color:#999900">Unsubscribed</span>',
|
20 |
break;
|
21 |
case "Single Opt In":
|
22 |
-
$returnstring = __( '<span style="color:#0000FF">Single Opt In</span>',
|
23 |
break;
|
24 |
case "Viewed":
|
25 |
-
$returnstring = __( '<span style="color:#00CC00;font-weight:bold;">Viewed</span>',
|
26 |
break;
|
27 |
case "Nodata":
|
28 |
-
$returnstring = __( '<span style="color:#999900;">Nodata</span>',
|
29 |
break;
|
30 |
case "Disable":
|
31 |
-
$returnstring = __( '<span style="color:#FF0000">Disabled</span>',
|
32 |
break;
|
33 |
case "In Queue":
|
34 |
-
$returnstring = __( '<span style="color:#FF0000">In Queue</span>',
|
35 |
break;
|
36 |
case "Sent":
|
37 |
-
$returnstring = __( '<span style="color:#00FF00;font-weight:bold;">Sent</span>',
|
38 |
break;
|
39 |
case "Cron":
|
40 |
-
$returnstring = __( '<span style="color:#20b2aa;font-weight:bold;">via Cron</span>',
|
41 |
break;
|
42 |
case "Immediately":
|
43 |
-
$returnstring = __( '<span style="color:#993399;">Immediately</span>',
|
44 |
break;
|
45 |
default:
|
46 |
$returnstring = $value;
|
10 |
$returnstring = "";
|
11 |
switch ($value) {
|
12 |
case "Confirmed":
|
13 |
+
$returnstring = __( '<span style="color:#006600;font-weight:bold;">Confirmed</span>', 'email-subscribers' );
|
14 |
break;
|
15 |
case "Unconfirmed":
|
16 |
+
$returnstring = __( '<span style="color:#FF0000">Unconfirmed</span>', 'email-subscribers' );
|
17 |
break;
|
18 |
case "Unsubscribed":
|
19 |
+
$returnstring = __( '<span style="color:#999900">Unsubscribed</span>', 'email-subscribers' );
|
20 |
break;
|
21 |
case "Single Opt In":
|
22 |
+
$returnstring = __( '<span style="color:#0000FF">Single Opt In</span>', 'email-subscribers' );
|
23 |
break;
|
24 |
case "Viewed":
|
25 |
+
$returnstring = __( '<span style="color:#00CC00;font-weight:bold;">Viewed</span>', 'email-subscribers' );
|
26 |
break;
|
27 |
case "Nodata":
|
28 |
+
$returnstring = __( '<span style="color:#999900;">Nodata</span>', 'email-subscribers' );
|
29 |
break;
|
30 |
case "Disable":
|
31 |
+
$returnstring = __( '<span style="color:#FF0000">Disabled</span>', 'email-subscribers' );
|
32 |
break;
|
33 |
case "In Queue":
|
34 |
+
$returnstring = __( '<span style="color:#FF0000">In Queue</span>', 'email-subscribers' );
|
35 |
break;
|
36 |
case "Sent":
|
37 |
+
$returnstring = __( '<span style="color:#00FF00;font-weight:bold;">Sent</span>', 'email-subscribers' );
|
38 |
break;
|
39 |
case "Cron":
|
40 |
+
$returnstring = __( '<span style="color:#20b2aa;font-weight:bold;">via Cron</span>', 'email-subscribers' );
|
41 |
break;
|
42 |
case "Immediately":
|
43 |
+
$returnstring = __( '<span style="color:#993399;">Immediately</span>', 'email-subscribers' );
|
44 |
break;
|
45 |
default:
|
46 |
$returnstring = $value;
|
classes/es-register.php
CHANGED
@@ -78,13 +78,13 @@ class es_cls_registerhook {
|
|
78 |
}
|
79 |
|
80 |
if ( $es_missing_tables ) {
|
81 |
-
$errors[] = __( 'These tables could not be created on installation ' . implode( ', ', $es_missing_tables ),
|
82 |
$es_has_errors = true;
|
83 |
}
|
84 |
|
85 |
// if error call wp_die()
|
86 |
if ( $es_has_errors ) {
|
87 |
-
wp_die( __( $errors[0],
|
88 |
|
89 |
return false;
|
90 |
} else {
|
@@ -183,36 +183,36 @@ class es_cls_registerhook {
|
|
183 |
$active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
|
184 |
}
|
185 |
|
186 |
-
add_menu_page( __( 'Email Subscribers',
|
187 |
-
__( 'Email Subscribers',
|
188 |
|
189 |
-
add_submenu_page( 'es-view-subscribers', __( 'Subscribers',
|
190 |
-
__( 'Subscribers',
|
191 |
|
192 |
-
add_submenu_page( 'es-view-subscribers', __( 'Templates',
|
193 |
-
__( 'Templates',
|
194 |
|
195 |
-
add_submenu_page( 'es-view-subscribers', __( 'Post Notifications',
|
196 |
-
__( 'Post Notifications',
|
197 |
|
198 |
-
add_submenu_page( 'es-view-subscribers', __( 'Newsletters',
|
199 |
-
__( 'Newsletters',
|
200 |
|
201 |
-
add_submenu_page( 'es-view-subscribers', __( 'Settings',
|
202 |
-
__( 'Settings',
|
203 |
|
204 |
-
add_submenu_page( 'es-view-subscribers', __( 'Tools',
|
205 |
-
__( 'Tools',
|
206 |
|
207 |
-
add_submenu_page( 'es-view-subscribers', __( 'Reports',
|
208 |
-
__( 'Reports',
|
209 |
|
210 |
-
add_submenu_page( 'es-view-subscribers', __( 'Help & Info',
|
211 |
-
__( '<span style="color:#f18500;font-weight:bolder;">Help & Info</span>',
|
212 |
|
213 |
if ( ! ( in_array( 'email-subscribers-premium/email-subscribers-premium.php', $active_plugins ) || array_key_exists( 'email-subscribers-premium/email-subscribers-premium.php', $active_plugins ) ) ) {
|
214 |
-
add_submenu_page( 'es-view-subscribers', __( 'Go Pro',
|
215 |
-
__( '<span style="color:#03a025;font-weight:bolder;">Go Pro</span>',
|
216 |
}
|
217 |
}
|
218 |
|
@@ -231,7 +231,7 @@ class es_cls_registerhook {
|
|
231 |
}
|
232 |
if ( in_array( $screen->id, array( 'email-subscribers_page_es-notification', 'email-subscribers_page_es-sendemail' ), true ) ) {
|
233 |
?>
|
234 |
-
<span class="es_upsale" ><?php _e( 'Save time using beautiful readymade templates <a href="https://www.icegram.com/documentation/how-ready-made-template-in-in-email-subscribers-look/?utm_source=es&utm_medium=in_app&utm_campaign=es_upsale" target="_blank">Checkout here</a>',
|
235 |
<?php
|
236 |
}
|
237 |
|
@@ -243,7 +243,7 @@ class es_cls_registerhook {
|
|
243 |
public static function add_captcha_link(){
|
244 |
?>
|
245 |
<tr class="es-admin active-settings">
|
246 |
-
<td class="es_upsale"><?php _e('Enable captcha to protect list from bot attacks <a href="https://www.icegram.com/documentation/es-how-to-add-captcha-in-subscribe-form-of-email-subscribers/?utm_source=es&utm_medium=in_app&utm_campaign=es_upsale" target="_blank">Lean more</a>',
|
247 |
</tr>
|
248 |
<?php
|
249 |
}
|
@@ -303,18 +303,18 @@ class es_cls_registerhook {
|
|
303 |
wp_register_script( 'es-view-subscribers', ES_URL . 'subscribers/view-subscriber.js', '', '', true );
|
304 |
wp_enqueue_script( 'es-view-subscribers' );
|
305 |
$es_select_params = array(
|
306 |
-
'es_subscriber_email' => _x( 'Please enter subscriber email address.', 'view-subscriber-enhanced-select',
|
307 |
-
'es_subscriber_email_status' => _x( 'Please select subscriber email status.', 'view-subscriber-enhanced-select',
|
308 |
-
'es_subscriber_group' => _x( 'Please select or create group for this subscriber.', 'view-subscriber-enhanced-select',
|
309 |
-
'es_subscriber_delete_record' => _x( 'Do you want to delete this record?', 'view-subscriber-enhanced-select',
|
310 |
-
'es_subscriber_bulk_action' => _x( 'Please select the bulk action.', 'view-subscriber-enhanced-select',
|
311 |
-
'es_subscriber_confirm_delete' => _x( 'Are you sure you want to delete selected records?', 'view-subscriber-enhanced-select',
|
312 |
-
'es_subscriber_resend_email' => _x( 'Do you want to resend confirmation email? Also please note, this will update subscriber current status to \'Unconfirmed\'.', 'view-subscriber-enhanced-select',
|
313 |
-
'es_subscriber_new_group' => _x( 'Please select new subscriber group.', 'view-subscriber-enhanced-select',
|
314 |
-
'es_subscriber_new_status' => _x( 'Please select new status for subscribers', 'view-subscriber-enhanced-select',
|
315 |
-
'es_subscriber_group_update' => _x( 'Do you want to update subscribers group?', 'view-subscriber-enhanced-select',
|
316 |
-
'es_subscriber_status_update' => _x( 'Do you want to update subscribers status?', 'view-subscriber-enhanced-select',
|
317 |
-
'es_subscriber_csv_file' => _x( 'Please select only csv file. Please check official website for csv structure..', 'view-subscriber-enhanced-select',
|
318 |
);
|
319 |
wp_localize_script( 'es-view-subscribers', 'es_view_subscriber_notices', $es_select_params );
|
320 |
break;
|
@@ -322,10 +322,10 @@ class es_cls_registerhook {
|
|
322 |
wp_register_script( 'es-notification', ES_URL . 'notification/notification.js', '', '', true );
|
323 |
wp_enqueue_script( 'es-notification' );
|
324 |
$es_select_params = array(
|
325 |
-
'es_notification_select_group' => _x( 'Please select subscribers group.', 'notification-enhanced-select',
|
326 |
-
'es_notification_mail_subject' => _x( 'Please select notification mail subject. Use templates menu to create new.', 'notification-enhanced-select',
|
327 |
-
'es_notification_status' => _x( 'Please select notification status.', 'notification-enhanced-select',
|
328 |
-
'es_notification_delete_record' => _x( 'Do you want to delete this record?', 'notification-enhanced-select',
|
329 |
);
|
330 |
wp_localize_script( 'es-notification', 'es_notification_notices', $es_select_params );
|
331 |
break;
|
@@ -333,9 +333,9 @@ class es_cls_registerhook {
|
|
333 |
wp_register_script( 'sendmail', ES_URL . 'sendmail/sendmail.js', '', '', true );
|
334 |
wp_enqueue_script( 'sendmail' );
|
335 |
$es_select_params = array(
|
336 |
-
'es_sendmail_subject' => _x( 'Please select your mail subject.', 'sendmail-enhanced-select',
|
337 |
-
'es_sendmail_status' => _x( 'Please select your mail type.', 'sendmail-enhanced-select',
|
338 |
-
'es_sendmail_confirm' => _x( 'Have you double checked your selected group? If so, let\'s go ahead and send this.', 'sendmail-enhanced-select',
|
339 |
);
|
340 |
wp_localize_script( 'sendmail', 'es_sendmail_notices', $es_select_params );
|
341 |
break;
|
@@ -343,8 +343,8 @@ class es_cls_registerhook {
|
|
343 |
wp_register_script( 'es-sentmail', ES_URL . 'sentmail/sentmail.js', '', '', true );
|
344 |
wp_enqueue_script( 'es-sentmail' );
|
345 |
$es_select_params = array(
|
346 |
-
'es_sentmail_delete' => _x( 'Do you want to delete this record?', 'sentmail-enhanced-select',
|
347 |
-
'es_sentmail_delete_all' => _x( 'Do you want to delete all records except latest 10?', 'sentmail-enhanced-select',
|
348 |
);
|
349 |
wp_localize_script( 'es-sentmail', 'es_sentmail_notices', $es_select_params );
|
350 |
break;
|
@@ -352,8 +352,8 @@ class es_cls_registerhook {
|
|
352 |
wp_register_script( 'es-settings', ES_URL . 'settings/es-settings.js', '', '', true );
|
353 |
wp_enqueue_script( 'es-settings' );
|
354 |
$es_select_params = array(
|
355 |
-
'es_cron_number' => _x( 'Please select enter number of mails you want to send per hour/trigger.', 'cron-enhanced-select',
|
356 |
-
'es_cron_input_type' => _x( 'Please enter the mail count, only number.', 'cron-enhanced-select',
|
357 |
);
|
358 |
wp_localize_script( 'es-settings', 'es_cron_notices', $es_select_params );
|
359 |
break;
|
@@ -366,13 +366,13 @@ class es_cls_registerhook {
|
|
366 |
wp_register_script( 'es-widget-page', ES_URL . 'widget/es-widget-page.js', array( 'jquery' ), '', true );
|
367 |
wp_enqueue_script( 'es-widget-page' );
|
368 |
$es_select_params = array(
|
369 |
-
'es_email_notice' => _x( 'Please enter email address', 'widget-page-enhanced-select',
|
370 |
-
'es_success_message' => _x( 'Successfully Subscribed.', 'widget-page-enhanced-select',
|
371 |
-
'es_success_notice' => _x( '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.', 'widget-page-enhanced-select',
|
372 |
-
'es_email_exists' => _x( 'Email Address already exists!', 'widget-page-enhanced-select',
|
373 |
-
'es_error' => _x( 'Oops.. Unexpected error occurred.', 'widget-page-enhanced-select',
|
374 |
-
'es_invalid_email' => _x( 'Invalid email address', 'widget-page-enhanced-select',
|
375 |
-
'es_try_later' => _x( 'Please try after some time', 'widget-page-enhanced-select',
|
376 |
'es_ajax_url' => admin_url( 'admin-ajax.php' ),
|
377 |
);
|
378 |
wp_localize_script( 'es-widget-page', 'es_widget_page_notices', $es_select_params );
|
@@ -802,71 +802,16 @@ class es_cls_registerhook {
|
|
802 |
$total_email_sent = es_cls_sentmail::es_sentmail_count( $id = 0 );
|
803 |
$es_star_review = get_option( 'es_star_review_email_subscribers' );
|
804 |
$es_rating_text = array();
|
805 |
-
$es_rating_text['star_review'] = __( 'If you like <strong>Email Subscribers</strong>, please consider leaving us a <a target="_blank" href="https://wordpress.org/support/plugin/email-subscribers/reviews/?filter=5#new-post">★★★★★</a> rating. A huge thank you from the team in advance!',
|
806 |
-
$es_rating_text['help_review'] = __( 'If you like <strong>Email Subscribers</strong>, tell us more about your experience and leave us <a target="_blank" href="https://wordpress.org/support/plugin/email-subscribers/reviews/?filter=5#new-post">★★★★★</a> rating. A huge thank you from the team in advance!',
|
807 |
|
808 |
if ( ( $total_subscribers >= 10 || $total_email_sent > 2 ) && $es_star_review != 'no' ) {
|
809 |
$key = array_rand($es_rating_text);
|
810 |
$es_rating_text = $es_rating_text[$key];
|
811 |
-
echo '<div class="notice notice-warning" style="background-color: #FFF;"><p style="letter-spacing: 0.6px;">' . $es_rating_text . ' <a style="float:right" class="es-admin-btn es-admin-btn-secondary" href="?dismiss_admin_notice=1&option_name=es_star_review">' . __( 'No, I don\'t like it',
|
812 |
}
|
813 |
}
|
814 |
|
815 |
-
public static function es_submit_survey() {
|
816 |
-
|
817 |
-
$url = 'https://www.icegram.com/wp-admin/admin-ajax.php';
|
818 |
-
|
819 |
-
if ( ! empty( $_POST ) ) {
|
820 |
-
|
821 |
-
if ( ! empty( $_POST['btn-val'] ) ) {
|
822 |
-
|
823 |
-
if ( 'cancel' === $_POST['btn-val'] ) {
|
824 |
-
update_option( 'ig_es_survey_for_problems_cancelled', true );
|
825 |
-
exit();
|
826 |
-
} elseif ( 'no' === $_POST['btn-val'] ) {
|
827 |
-
unset( $_POST['es_email'] );
|
828 |
-
}
|
829 |
-
}
|
830 |
-
|
831 |
-
$params = $_POST;
|
832 |
-
$params['domain'] = home_url();
|
833 |
-
|
834 |
-
$method = 'POST';
|
835 |
-
$qs = http_build_query( $params );
|
836 |
-
|
837 |
-
$options = array(
|
838 |
-
'timeout' => 15,
|
839 |
-
'method' => $method
|
840 |
-
);
|
841 |
-
|
842 |
-
if ( $method == 'POST' ) {
|
843 |
-
$options['body'] = $qs;
|
844 |
-
} else {
|
845 |
-
if ( strpos( $url, '?' ) !== false ) {
|
846 |
-
$url .= '&' . $qs;
|
847 |
-
} else {
|
848 |
-
$url .= '?' . $qs;
|
849 |
-
}
|
850 |
-
}
|
851 |
-
|
852 |
-
$response = wp_remote_request( $url, $options );
|
853 |
-
|
854 |
-
if ( wp_remote_retrieve_response_code( $response ) == 200 ) {
|
855 |
-
$data = json_decode( $response['body'], true );
|
856 |
-
|
857 |
-
if ( empty( $data['error'] ) ) {
|
858 |
-
if ( ! empty( $data ) && ! empty( $data['success'] ) ) {
|
859 |
-
update_option( 'ig_es_survey_for_problems_done', true );
|
860 |
-
}
|
861 |
-
echo( json_encode( $data ) );
|
862 |
-
}
|
863 |
-
}
|
864 |
-
}
|
865 |
-
|
866 |
-
exit();
|
867 |
-
|
868 |
-
}
|
869 |
-
|
870 |
// Function to dismiss any admin notice
|
871 |
public static function dismiss_admin_notice() {
|
872 |
|
@@ -887,7 +832,7 @@ class es_cls_registerhook {
|
|
887 |
global $post;
|
888 |
|
889 |
if ( ( isset( $_GET['page'] ) && ( $_GET['page'] == 'es-view-subscribers' || $_GET['page'] == 'es-notification' || $_GET['page'] == 'es-sendemail' || $_GET['page'] == 'es-settings' || $_GET['page'] == 'es-sentmail' || $_GET['page'] == 'es-general-information' || $_GET['page'] == 'es-pricing' ) ) || ( is_object( $post ) && $post->post_type == 'es_template' ) ) {
|
890 |
-
$es_rating_text = __( 'Thank you for using Email Subscribers! A huge thank you from Icegram!',
|
891 |
}
|
892 |
|
893 |
return $es_rating_text;
|
@@ -901,7 +846,7 @@ class es_cls_registerhook {
|
|
901 |
$es_current_version = $es_plugin_data['Version'];
|
902 |
|
903 |
if ( ( isset( $_GET['page'] ) && ( $_GET['page'] == 'es-view-subscribers' || $_GET['page'] == 'es-notification' || $_GET['page'] == 'es-sendemail' || $_GET['page'] == 'es-settings' || $_GET['page'] == 'es-sentmail' || $_GET['page'] == 'es-general-information' || $_GET['page'] == 'es-pricing' ) ) || ( is_object( $post ) && $post->post_type == 'es_template' ) ) {
|
904 |
-
$es_text = sprintf( __( 'Email Subscribers version: <strong>%s</strong>',
|
905 |
}
|
906 |
|
907 |
return $es_text;
|
@@ -910,21 +855,21 @@ class es_cls_registerhook {
|
|
910 |
public static function es_register_post_type() {
|
911 |
|
912 |
$labels = array(
|
913 |
-
'name' => __( 'Templates',
|
914 |
-
'singular_name' => __( 'Templates',
|
915 |
-
'add_new' => __( 'Add new Template',
|
916 |
-
'add_new_item' => __( 'Add new Template',
|
917 |
-
'edit_item' => __( 'Edit Templates',
|
918 |
-
'new_item' => __( 'New Templates',
|
919 |
-
'all_items' => __( 'Templates',
|
920 |
-
'view_item' => __( 'View Templates',
|
921 |
-
'search_items' => __( 'Search Templates',
|
922 |
-
'not_found' => __( 'No Templates found',
|
923 |
-
'not_found_in_trash' => __( 'No Templates found in Trash',
|
924 |
-
'parent_item_colon' => __( '',
|
925 |
-
'menu_name' => __( 'Email Subscribers',
|
926 |
-
'featured_image' => __( 'Thumbnail (For Visual Representation only)',
|
927 |
-
'set_featured_image' => __( 'Set thumbnail',
|
928 |
);
|
929 |
|
930 |
$args = array(
|
@@ -961,8 +906,8 @@ class es_cls_registerhook {
|
|
961 |
$date = $existing_columns['date'];
|
962 |
unset( $existing_columns['date'] );
|
963 |
|
964 |
-
$existing_columns['es_templ_type'] = __( 'Template Type',
|
965 |
-
$existing_columns['es_templ_thumbnail'] = __( 'Thumbnail',
|
966 |
$existing_columns['date'] = $date;
|
967 |
|
968 |
return $existing_columns;
|
@@ -1014,7 +959,7 @@ class es_cls_registerhook {
|
|
1014 |
$es_templ_type = get_post_meta( $post->ID, 'es_template_type', true );
|
1015 |
$page = ( ( $es_templ_type == 'Newsletter' ) ? 'es-sendemail' : 'es-notification' );
|
1016 |
$preview_url = ES_ADMINURL . "?page=" . $page . "&ac=preview&did=" . $post->ID;
|
1017 |
-
$actions['preview_campaign'] = '<a class="es-preview-template" target="_blank" href="' . $preview_url . '" >' . __( 'Preview',
|
1018 |
|
1019 |
return $actions;
|
1020 |
}
|
@@ -1036,21 +981,21 @@ class es_cls_registerhook {
|
|
1036 |
?>
|
1037 |
<p style="margin-top: 0em; !important;">
|
1038 |
<?php
|
1039 |
-
echo sprintf( __( '%s for Post Notification: {{POSTTITLE}}',
|
1040 |
?>
|
1041 |
</p>
|
1042 |
<?php
|
1043 |
}
|
1044 |
?>
|
1045 |
<p>
|
1046 |
-
<label for="tag-link"><?php echo __( 'Select your Email Template Type',
|
1047 |
<select name="es_template_type" id="es_template_type">
|
1048 |
<option value='Newsletter' <?php if ( $es_templ_type == 'Newsletter' ) {
|
1049 |
echo 'selected="selected"';
|
1050 |
-
} ?>><?php echo __( 'Newsletter',
|
1051 |
<option value='Post Notification' <?php if ( $es_templ_type == 'Post Notification' ) {
|
1052 |
echo 'selected="selected"';
|
1053 |
-
} ?>><?php echo __( 'Post Notification',
|
1054 |
</select>
|
1055 |
</p>
|
1056 |
<?php
|
@@ -1112,7 +1057,7 @@ class es_cls_registerhook {
|
|
1112 |
jQuery('#submitdiv .submitbox #minor-publishing-actions').after(prvw_button)
|
1113 |
prvw_button.fadeIn('fast');</script>";
|
1114 |
$preview_button = '<style>.es_preview_button{display: none;padding: 10px 10px 0;}</style><div id="" class="es_preview_button">
|
1115 |
-
<a href="' . $preview_url . '" target="_blank" class="button button-primary es_preview">' . __( 'Preview Template',
|
1116 |
<div class="clear"></div></div>';
|
1117 |
echo $preview_button;
|
1118 |
echo $script;
|
@@ -1131,8 +1076,8 @@ class es_cls_registerhook {
|
|
1131 |
?>
|
1132 |
<p>
|
1133 |
<?php
|
1134 |
-
echo sprintf( __( '%s for Post Notification: {{NAME}}, {{EMAIL}}, {{DATE}}, {{POSTTITLE}}, {{POSTIMAGE}}, {{POSTEXCERPT}}, {{POSTDESC}}, {{POSTAUTHOR}}, {{POSTLINK}}, {{POSTLINK-WITHTITLE}}, {{POSTLINK-ONLY}}, {{POSTFULL}}',
|
1135 |
-
echo sprintf( __( '<br/><br/>%s for Newsletter: {{NAME}}, {{EMAIL}}',
|
1136 |
?>
|
1137 |
</p>
|
1138 |
<?php
|
@@ -1147,7 +1092,7 @@ class es_cls_registerhook {
|
|
1147 |
?>
|
1148 |
<p>
|
1149 |
<?php
|
1150 |
-
echo sprintf( __( '%s for Post Notification: {{NAME}}, {{EMAIL}}, {{DATE}}, {{POSTTITLE}}, {{POSTIMAGE}}, {{POSTEXCERPT}}, {{POSTDESC}}, {{POSTAUTHOR}}, {{POSTLINK}}, {{POSTLINK-WITHTITLE}}, {{POSTLINK-ONLY}}, {{POSTFULL}}',
|
1151 |
?>
|
1152 |
</p>
|
1153 |
<?php
|
@@ -1155,7 +1100,7 @@ class es_cls_registerhook {
|
|
1155 |
?>
|
1156 |
<p>
|
1157 |
<?php
|
1158 |
-
echo sprintf( __( '%s for Newsletter: {{NAME}}, {{EMAIL}}',
|
1159 |
?>
|
1160 |
</p>
|
1161 |
<?php
|
@@ -1190,14 +1135,14 @@ class es_cls_registerhook {
|
|
1190 |
<?php } ?>
|
1191 |
<?php if ( $es_name == "YES" ) { ?>
|
1192 |
<div class="es_lablebox">
|
1193 |
-
<label class="es_<?php echo $es_pre ?>_form_name"><?php echo __( 'Name',
|
1194 |
</div>
|
1195 |
<div class="es_textbox">
|
1196 |
<input type="text" id="es_txt_name" class="es_textbox_class" name="es_txt_name" value="" maxlength="60">
|
1197 |
</div>
|
1198 |
<?php } ?>
|
1199 |
<div class="es_lablebox">
|
1200 |
-
<label class="es_<?php echo $es_pre ?>_form_email"><?php echo __( 'Email *',
|
1201 |
</div>
|
1202 |
<div class="es_textbox">
|
1203 |
<input type="email" id="es_txt_email" class="es_textbox_class" name="es_txt_email" value="" maxlength="60" required>
|
@@ -1206,7 +1151,7 @@ class es_cls_registerhook {
|
|
1206 |
echo GDPR::consent_checkboxes();
|
1207 |
} ?>
|
1208 |
<div class="es_button">
|
1209 |
-
<input type="submit" id="es_txt_button" class="es_textbox_button es_submit_button" name="es_txt_button" value="<?php echo __( 'Subscribe',
|
1210 |
</div>
|
1211 |
<div class="es_msg" id="es_<?php echo $es_pre ?>_msg">
|
1212 |
<span id="es_msg"></span>
|
@@ -1274,8 +1219,8 @@ function es_sync_registereduser( $user_id ) {
|
|
1274 |
|
1275 |
class es_widget_register extends WP_Widget {
|
1276 |
function __construct() {
|
1277 |
-
$widget_ops = array( 'classname' => 'widget_text elp-widget', 'description' => __( ES_PLUGIN_DISPLAY,
|
1278 |
-
parent::__construct( ES_PLUGIN_NAME, __( ES_PLUGIN_DISPLAY,
|
1279 |
}
|
1280 |
|
1281 |
function widget( $args, $instance ) {
|
@@ -1318,22 +1263,22 @@ class es_widget_register extends WP_Widget {
|
|
1318 |
$es_group = $instance['es_group'];
|
1319 |
?>
|
1320 |
<p>
|
1321 |
-
<label for="<?php echo $this->get_field_id( 'es_title' ); ?>"><?php echo __( 'Widget Title',
|
1322 |
<input class="widefat" id="<?php echo $this->get_field_id( 'es_title' ); ?>" name="<?php echo $this->get_field_name( 'es_title' ); ?>" type="text" value="<?php echo $es_title; ?>"/>
|
1323 |
</p>
|
1324 |
<p>
|
1325 |
-
<label for="<?php echo $this->get_field_id( 'es_desc' ); ?>"><?php echo __( 'Short description about subscription form',
|
1326 |
<input class="widefat" id="<?php echo $this->get_field_id( 'es_desc' ); ?>" name="<?php echo $this->get_field_name( 'es_desc' ); ?>" type="text" value="<?php echo $es_desc; ?>"/>
|
1327 |
</p>
|
1328 |
<p>
|
1329 |
-
<label for="<?php echo $this->get_field_id( 'es_name' ); ?>"><?php echo __( 'Display Name Field',
|
1330 |
<select class="widefat" id="<?php echo $this->get_field_id( 'es_name' ); ?>" name="<?php echo $this->get_field_name( 'es_name' ); ?>">
|
1331 |
-
<option value="YES" <?php $this->es_selected( $es_name == 'YES' ); ?>><?php echo __( 'YES',
|
1332 |
-
<option value="NO" <?php $this->es_selected( $es_name == 'NO' ); ?>><?php echo __( 'NO',
|
1333 |
</select>
|
1334 |
</p>
|
1335 |
<p>
|
1336 |
-
<label for="<?php echo $this->get_field_id( 'es_group' ); ?>"><?php echo __( 'Subscriber Group',
|
1337 |
<select class="widefat" name="<?php echo $this->get_field_name( 'es_group' ); ?>" id="<?php echo $this->get_field_id( 'es_group' ); ?>">
|
1338 |
<?php
|
1339 |
$groups = array();
|
78 |
}
|
79 |
|
80 |
if ( $es_missing_tables ) {
|
81 |
+
$errors[] = __( 'These tables could not be created on installation ' . implode( ', ', $es_missing_tables ), 'email-subscribers' );
|
82 |
$es_has_errors = true;
|
83 |
}
|
84 |
|
85 |
// if error call wp_die()
|
86 |
if ( $es_has_errors ) {
|
87 |
+
wp_die( __( $errors[0], 'email-subscribers' ) );
|
88 |
|
89 |
return false;
|
90 |
} else {
|
183 |
$active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
|
184 |
}
|
185 |
|
186 |
+
add_menu_page( __( 'Email Subscribers', 'email-subscribers' ),
|
187 |
+
__( 'Email Subscribers', 'email-subscribers' ), 'edit_posts', 'es-view-subscribers', array( 'es_cls_intermediate', 'es_subscribers' ), 'dashicons-email', 51 );
|
188 |
|
189 |
+
add_submenu_page( 'es-view-subscribers', __( 'Subscribers', 'email-subscribers' ),
|
190 |
+
__( 'Subscribers', 'email-subscribers' ), $es_roles_subscriber, 'es-view-subscribers', array( 'es_cls_intermediate', 'es_subscribers' ) );
|
191 |
|
192 |
+
add_submenu_page( 'es-view-subscribers', __( 'Templates', 'email-subscribers' ),
|
193 |
+
__( 'Templates', 'email-subscribers' ), $es_roles_mail, 'edit.php?post_type=es_template', null );
|
194 |
|
195 |
+
add_submenu_page( 'es-view-subscribers', __( 'Post Notifications', 'email-subscribers' ),
|
196 |
+
__( 'Post Notifications', 'email-subscribers' ), $es_roles_notification, 'es-notification', array( 'es_cls_intermediate', 'es_notification' ) );
|
197 |
|
198 |
+
add_submenu_page( 'es-view-subscribers', __( 'Newsletters', 'email-subscribers' ),
|
199 |
+
__( 'Newsletters', 'email-subscribers' ), $es_roles_sendmail, 'es-sendemail', array( 'es_cls_intermediate', 'es_sendemail' ) );
|
200 |
|
201 |
+
add_submenu_page( 'es-view-subscribers', __( 'Settings', 'email-subscribers' ),
|
202 |
+
__( 'Settings', 'email-subscribers' ), 'manage_options', 'es-settings', array( 'es_cls_intermediate', 'es_settings' ) );
|
203 |
|
204 |
+
add_submenu_page( 'es-view-subscribers', __( 'Tools', 'email-subscribers' ),
|
205 |
+
__( 'Tools', 'email-subscribers' ), 'manage_options', 'es-tools', array( 'es_cls_intermediate', 'es_tools' ) );
|
206 |
|
207 |
+
add_submenu_page( 'es-view-subscribers', __( 'Reports', 'email-subscribers' ),
|
208 |
+
__( 'Reports', 'email-subscribers' ), $es_roles_sentmail, 'es-sentmail', array( 'es_cls_intermediate', 'es_sentmail' ) );
|
209 |
|
210 |
+
add_submenu_page( 'es-view-subscribers', __( 'Help & Info', 'email-subscribers' ),
|
211 |
+
__( '<span style="color:#f18500;font-weight:bolder;">Help & Info</span>', 'email-subscribers' ), 'edit_posts', 'es-general-information', array( 'es_cls_intermediate', 'es_information' ) );
|
212 |
|
213 |
if ( ! ( in_array( 'email-subscribers-premium/email-subscribers-premium.php', $active_plugins ) || array_key_exists( 'email-subscribers-premium/email-subscribers-premium.php', $active_plugins ) ) ) {
|
214 |
+
add_submenu_page( 'es-view-subscribers', __( 'Go Pro', 'email-subscribers' ),
|
215 |
+
__( '<span style="color:#03a025;font-weight:bolder;">Go Pro</span>', 'email-subscribers' ), 'edit_posts', 'es-pricing', array( 'es_cls_intermediate', 'es_pricing' ) );
|
216 |
}
|
217 |
}
|
218 |
|
231 |
}
|
232 |
if ( in_array( $screen->id, array( 'email-subscribers_page_es-notification', 'email-subscribers_page_es-sendemail' ), true ) ) {
|
233 |
?>
|
234 |
+
<span class="es_upsale" ><?php _e( 'Save time using beautiful readymade templates <a href="https://www.icegram.com/documentation/how-ready-made-template-in-in-email-subscribers-look/?utm_source=es&utm_medium=in_app&utm_campaign=es_upsale" target="_blank">Checkout here</a>', 'email-subscribers' ) ?></span>
|
235 |
<?php
|
236 |
}
|
237 |
|
243 |
public static function add_captcha_link(){
|
244 |
?>
|
245 |
<tr class="es-admin active-settings">
|
246 |
+
<td class="es_upsale"><?php _e('Enable captcha to protect list from bot attacks <a href="https://www.icegram.com/documentation/es-how-to-add-captcha-in-subscribe-form-of-email-subscribers/?utm_source=es&utm_medium=in_app&utm_campaign=es_upsale" target="_blank">Lean more</a>', 'email-subscribers' )?></td>
|
247 |
</tr>
|
248 |
<?php
|
249 |
}
|
303 |
wp_register_script( 'es-view-subscribers', ES_URL . 'subscribers/view-subscriber.js', '', '', true );
|
304 |
wp_enqueue_script( 'es-view-subscribers' );
|
305 |
$es_select_params = array(
|
306 |
+
'es_subscriber_email' => _x( 'Please enter subscriber email address.', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
307 |
+
'es_subscriber_email_status' => _x( 'Please select subscriber email status.', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
308 |
+
'es_subscriber_group' => _x( 'Please select or create group for this subscriber.', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
309 |
+
'es_subscriber_delete_record' => _x( 'Do you want to delete this record?', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
310 |
+
'es_subscriber_bulk_action' => _x( 'Please select the bulk action.', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
311 |
+
'es_subscriber_confirm_delete' => _x( 'Are you sure you want to delete selected records?', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
312 |
+
'es_subscriber_resend_email' => _x( 'Do you want to resend confirmation email? Also please note, this will update subscriber current status to \'Unconfirmed\'.', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
313 |
+
'es_subscriber_new_group' => _x( 'Please select new subscriber group.', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
314 |
+
'es_subscriber_new_status' => _x( 'Please select new status for subscribers', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
315 |
+
'es_subscriber_group_update' => _x( 'Do you want to update subscribers group?', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
316 |
+
'es_subscriber_status_update' => _x( 'Do you want to update subscribers status?', 'view-subscriber-enhanced-select', 'email-subscribers' ),
|
317 |
+
'es_subscriber_csv_file' => _x( 'Please select only csv file. Please check official website for csv structure..', 'view-subscriber-enhanced-select', 'email-subscribers' )
|
318 |
);
|
319 |
wp_localize_script( 'es-view-subscribers', 'es_view_subscriber_notices', $es_select_params );
|
320 |
break;
|
322 |
wp_register_script( 'es-notification', ES_URL . 'notification/notification.js', '', '', true );
|
323 |
wp_enqueue_script( 'es-notification' );
|
324 |
$es_select_params = array(
|
325 |
+
'es_notification_select_group' => _x( 'Please select subscribers group.', 'notification-enhanced-select', 'email-subscribers' ),
|
326 |
+
'es_notification_mail_subject' => _x( 'Please select notification mail subject. Use templates menu to create new.', 'notification-enhanced-select', 'email-subscribers' ),
|
327 |
+
'es_notification_status' => _x( 'Please select notification status.', 'notification-enhanced-select', 'email-subscribers' ),
|
328 |
+
'es_notification_delete_record' => _x( 'Do you want to delete this record?', 'notification-enhanced-select', 'email-subscribers' )
|
329 |
);
|
330 |
wp_localize_script( 'es-notification', 'es_notification_notices', $es_select_params );
|
331 |
break;
|
333 |
wp_register_script( 'sendmail', ES_URL . 'sendmail/sendmail.js', '', '', true );
|
334 |
wp_enqueue_script( 'sendmail' );
|
335 |
$es_select_params = array(
|
336 |
+
'es_sendmail_subject' => _x( 'Please select your mail subject.', 'sendmail-enhanced-select', 'email-subscribers' ),
|
337 |
+
'es_sendmail_status' => _x( 'Please select your mail type.', 'sendmail-enhanced-select', 'email-subscribers' ),
|
338 |
+
'es_sendmail_confirm' => _x( 'Have you double checked your selected group? If so, let\'s go ahead and send this.', 'sendmail-enhanced-select', 'email-subscribers' )
|
339 |
);
|
340 |
wp_localize_script( 'sendmail', 'es_sendmail_notices', $es_select_params );
|
341 |
break;
|
343 |
wp_register_script( 'es-sentmail', ES_URL . 'sentmail/sentmail.js', '', '', true );
|
344 |
wp_enqueue_script( 'es-sentmail' );
|
345 |
$es_select_params = array(
|
346 |
+
'es_sentmail_delete' => _x( 'Do you want to delete this record?', 'sentmail-enhanced-select', 'email-subscribers' ),
|
347 |
+
'es_sentmail_delete_all' => _x( 'Do you want to delete all records except latest 10?', 'sentmail-enhanced-select', 'email-subscribers' )
|
348 |
);
|
349 |
wp_localize_script( 'es-sentmail', 'es_sentmail_notices', $es_select_params );
|
350 |
break;
|
352 |
wp_register_script( 'es-settings', ES_URL . 'settings/es-settings.js', '', '', true );
|
353 |
wp_enqueue_script( 'es-settings' );
|
354 |
$es_select_params = array(
|
355 |
+
'es_cron_number' => _x( 'Please select enter number of mails you want to send per hour/trigger.', 'cron-enhanced-select', 'email-subscribers' ),
|
356 |
+
'es_cron_input_type' => _x( 'Please enter the mail count, only number.', 'cron-enhanced-select', 'email-subscribers' )
|
357 |
);
|
358 |
wp_localize_script( 'es-settings', 'es_cron_notices', $es_select_params );
|
359 |
break;
|
366 |
wp_register_script( 'es-widget-page', ES_URL . 'widget/es-widget-page.js', array( 'jquery' ), '', true );
|
367 |
wp_enqueue_script( 'es-widget-page' );
|
368 |
$es_select_params = array(
|
369 |
+
'es_email_notice' => _x( 'Please enter email address', 'widget-page-enhanced-select', 'email-subscribers' ),
|
370 |
+
'es_success_message' => _x( 'Successfully Subscribed.', 'widget-page-enhanced-select', 'email-subscribers' ),
|
371 |
+
'es_success_notice' => _x( '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.', 'widget-page-enhanced-select', 'email-subscribers' ),
|
372 |
+
'es_email_exists' => _x( 'Email Address already exists!', 'widget-page-enhanced-select', 'email-subscribers' ),
|
373 |
+
'es_error' => _x( 'Oops.. Unexpected error occurred.', 'widget-page-enhanced-select', 'email-subscribers' ),
|
374 |
+
'es_invalid_email' => _x( 'Invalid email address', 'widget-page-enhanced-select', 'email-subscribers' ),
|
375 |
+
'es_try_later' => _x( 'Please try after some time', 'widget-page-enhanced-select', 'email-subscribers' ),
|
376 |
'es_ajax_url' => admin_url( 'admin-ajax.php' ),
|
377 |
);
|
378 |
wp_localize_script( 'es-widget-page', 'es_widget_page_notices', $es_select_params );
|
802 |
$total_email_sent = es_cls_sentmail::es_sentmail_count( $id = 0 );
|
803 |
$es_star_review = get_option( 'es_star_review_email_subscribers' );
|
804 |
$es_rating_text = array();
|
805 |
+
$es_rating_text['star_review'] = __( 'If you like <strong>Email Subscribers</strong>, please consider leaving us a <a target="_blank" href="https://wordpress.org/support/plugin/email-subscribers/reviews/?filter=5#new-post">★★★★★</a> rating. A huge thank you from the team in advance!', 'email-subscribers' );
|
806 |
+
$es_rating_text['help_review'] = __( 'If you like <strong>Email Subscribers</strong>, tell us more about your experience and leave us <a target="_blank" href="https://wordpress.org/support/plugin/email-subscribers/reviews/?filter=5#new-post">★★★★★</a> rating. A huge thank you from the team in advance!', 'email-subscribers' );
|
807 |
|
808 |
if ( ( $total_subscribers >= 10 || $total_email_sent > 2 ) && $es_star_review != 'no' ) {
|
809 |
$key = array_rand($es_rating_text);
|
810 |
$es_rating_text = $es_rating_text[$key];
|
811 |
+
echo '<div class="notice notice-warning" style="background-color: #FFF;"><p style="letter-spacing: 0.6px;">' . $es_rating_text . ' <a style="float:right" class="es-admin-btn es-admin-btn-secondary" href="?dismiss_admin_notice=1&option_name=es_star_review">' . __( 'No, I don\'t like it', 'email-subscribers' ) . '</a></p></div>';
|
812 |
}
|
813 |
}
|
814 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
815 |
// Function to dismiss any admin notice
|
816 |
public static function dismiss_admin_notice() {
|
817 |
|
832 |
global $post;
|
833 |
|
834 |
if ( ( isset( $_GET['page'] ) && ( $_GET['page'] == 'es-view-subscribers' || $_GET['page'] == 'es-notification' || $_GET['page'] == 'es-sendemail' || $_GET['page'] == 'es-settings' || $_GET['page'] == 'es-sentmail' || $_GET['page'] == 'es-general-information' || $_GET['page'] == 'es-pricing' ) ) || ( is_object( $post ) && $post->post_type == 'es_template' ) ) {
|
835 |
+
$es_rating_text = __( 'Thank you for using Email Subscribers! A huge thank you from Icegram!', 'email-subscribers' );
|
836 |
}
|
837 |
|
838 |
return $es_rating_text;
|
846 |
$es_current_version = $es_plugin_data['Version'];
|
847 |
|
848 |
if ( ( isset( $_GET['page'] ) && ( $_GET['page'] == 'es-view-subscribers' || $_GET['page'] == 'es-notification' || $_GET['page'] == 'es-sendemail' || $_GET['page'] == 'es-settings' || $_GET['page'] == 'es-sentmail' || $_GET['page'] == 'es-general-information' || $_GET['page'] == 'es-pricing' ) ) || ( is_object( $post ) && $post->post_type == 'es_template' ) ) {
|
849 |
+
$es_text = sprintf( __( 'Email Subscribers version: <strong>%s</strong>', 'email-subscribers' ), $es_current_version );
|
850 |
}
|
851 |
|
852 |
return $es_text;
|
855 |
public static function es_register_post_type() {
|
856 |
|
857 |
$labels = array(
|
858 |
+
'name' => __( 'Templates', 'email-subscribers' ),
|
859 |
+
'singular_name' => __( 'Templates', 'email-subscribers' ),
|
860 |
+
'add_new' => __( 'Add new Template', 'email-subscribers' ),
|
861 |
+
'add_new_item' => __( 'Add new Template', 'email-subscribers' ),
|
862 |
+
'edit_item' => __( 'Edit Templates', 'email-subscribers' ),
|
863 |
+
'new_item' => __( 'New Templates', 'email-subscribers' ),
|
864 |
+
'all_items' => __( 'Templates', 'email-subscribers' ),
|
865 |
+
'view_item' => __( 'View Templates', 'email-subscribers' ),
|
866 |
+
'search_items' => __( 'Search Templates', 'email-subscribers' ),
|
867 |
+
'not_found' => __( 'No Templates found', 'email-subscribers' ),
|
868 |
+
'not_found_in_trash' => __( 'No Templates found in Trash', 'email-subscribers' ),
|
869 |
+
'parent_item_colon' => __( '', 'email-subscribers' ),
|
870 |
+
'menu_name' => __( 'Email Subscribers', 'email-subscribers' ),
|
871 |
+
'featured_image' => __( 'Thumbnail (For Visual Representation only)', 'email-subscribers' ),
|
872 |
+
'set_featured_image' => __( 'Set thumbnail', 'email-subscribers' )
|
873 |
);
|
874 |
|
875 |
$args = array(
|
906 |
$date = $existing_columns['date'];
|
907 |
unset( $existing_columns['date'] );
|
908 |
|
909 |
+
$existing_columns['es_templ_type'] = __( 'Template Type', 'email-subscribers' );
|
910 |
+
$existing_columns['es_templ_thumbnail'] = __( 'Thumbnail', 'email-subscribers' );
|
911 |
$existing_columns['date'] = $date;
|
912 |
|
913 |
return $existing_columns;
|
959 |
$es_templ_type = get_post_meta( $post->ID, 'es_template_type', true );
|
960 |
$page = ( ( $es_templ_type == 'Newsletter' ) ? 'es-sendemail' : 'es-notification' );
|
961 |
$preview_url = ES_ADMINURL . "?page=" . $page . "&ac=preview&did=" . $post->ID;
|
962 |
+
$actions['preview_campaign'] = '<a class="es-preview-template" target="_blank" href="' . $preview_url . '" >' . __( 'Preview', 'email-subscribers' ) . '</a>';
|
963 |
|
964 |
return $actions;
|
965 |
}
|
981 |
?>
|
982 |
<p style="margin-top: 0em; !important;">
|
983 |
<?php
|
984 |
+
echo sprintf( __( '%s for Post Notification: {{POSTTITLE}}', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-what-are-the-available-keywords-in-the-post-notifications/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Available Keyword', 'email-subscribers' ) . '</a>' );
|
985 |
?>
|
986 |
</p>
|
987 |
<?php
|
988 |
}
|
989 |
?>
|
990 |
<p>
|
991 |
+
<label for="tag-link"><?php echo __( 'Select your Email Template Type', 'email-subscribers' ); ?></label><br/>
|
992 |
<select name="es_template_type" id="es_template_type">
|
993 |
<option value='Newsletter' <?php if ( $es_templ_type == 'Newsletter' ) {
|
994 |
echo 'selected="selected"';
|
995 |
+
} ?>><?php echo __( 'Newsletter', 'email-subscribers' ); ?></option>
|
996 |
<option value='Post Notification' <?php if ( $es_templ_type == 'Post Notification' ) {
|
997 |
echo 'selected="selected"';
|
998 |
+
} ?>><?php echo __( 'Post Notification', 'email-subscribers' ); ?></option>
|
999 |
</select>
|
1000 |
</p>
|
1001 |
<?php
|
1057 |
jQuery('#submitdiv .submitbox #minor-publishing-actions').after(prvw_button)
|
1058 |
prvw_button.fadeIn('fast');</script>";
|
1059 |
$preview_button = '<style>.es_preview_button{display: none;padding: 10px 10px 0;}</style><div id="" class="es_preview_button">
|
1060 |
+
<a href="' . $preview_url . '" target="_blank" class="button button-primary es_preview">' . __( 'Preview Template', 'email-subscribers' ) . '</a>
|
1061 |
<div class="clear"></div></div>';
|
1062 |
echo $preview_button;
|
1063 |
echo $script;
|
1076 |
?>
|
1077 |
<p>
|
1078 |
<?php
|
1079 |
+
echo sprintf( __( '%s for Post Notification: {{NAME}}, {{EMAIL}}, {{DATE}}, {{POSTTITLE}}, {{POSTIMAGE}}, {{POSTEXCERPT}}, {{POSTDESC}}, {{POSTAUTHOR}}, {{POSTLINK}}, {{POSTLINK-WITHTITLE}}, {{POSTLINK-ONLY}}, {{POSTFULL}}', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-what-are-the-available-keywords-in-the-post-notifications/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Available Keywords', 'email-subscribers' ) . '</a>' );
|
1080 |
+
echo sprintf( __( '<br/><br/>%s for Newsletter: {{NAME}}, {{EMAIL}}', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-what-are-the-available-keywords-in-the-newsletters/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Available Keywords', 'email-subscribers' ) . '</a>' );
|
1081 |
?>
|
1082 |
</p>
|
1083 |
<?php
|
1092 |
?>
|
1093 |
<p>
|
1094 |
<?php
|
1095 |
+
echo sprintf( __( '%s for Post Notification: {{NAME}}, {{EMAIL}}, {{DATE}}, {{POSTTITLE}}, {{POSTIMAGE}}, {{POSTEXCERPT}}, {{POSTDESC}}, {{POSTAUTHOR}}, {{POSTLINK}}, {{POSTLINK-WITHTITLE}}, {{POSTLINK-ONLY}}, {{POSTFULL}}', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-what-are-the-available-keywords-in-the-post-notifications/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Available Keywords', 'email-subscribers' ) . '</a>' );
|
1096 |
?>
|
1097 |
</p>
|
1098 |
<?php
|
1100 |
?>
|
1101 |
<p>
|
1102 |
<?php
|
1103 |
+
echo sprintf( __( '%s for Newsletter: {{NAME}}, {{EMAIL}}', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-what-are-the-available-keywords-in-the-newsletters/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Available Keywords', 'email-subscribers' ) . '</a>' );
|
1104 |
?>
|
1105 |
</p>
|
1106 |
<?php
|
1135 |
<?php } ?>
|
1136 |
<?php if ( $es_name == "YES" ) { ?>
|
1137 |
<div class="es_lablebox">
|
1138 |
+
<label class="es_<?php echo $es_pre ?>_form_name"><?php echo __( 'Name', 'email-subscribers' ); ?></label>
|
1139 |
</div>
|
1140 |
<div class="es_textbox">
|
1141 |
<input type="text" id="es_txt_name" class="es_textbox_class" name="es_txt_name" value="" maxlength="60">
|
1142 |
</div>
|
1143 |
<?php } ?>
|
1144 |
<div class="es_lablebox">
|
1145 |
+
<label class="es_<?php echo $es_pre ?>_form_email"><?php echo __( 'Email *', 'email-subscribers' ); ?></label>
|
1146 |
</div>
|
1147 |
<div class="es_textbox">
|
1148 |
<input type="email" id="es_txt_email" class="es_textbox_class" name="es_txt_email" value="" maxlength="60" required>
|
1151 |
echo GDPR::consent_checkboxes();
|
1152 |
} ?>
|
1153 |
<div class="es_button">
|
1154 |
+
<input type="submit" id="es_txt_button" class="es_textbox_button es_submit_button" name="es_txt_button" value="<?php echo __( 'Subscribe', 'email-subscribers' ); ?>">
|
1155 |
</div>
|
1156 |
<div class="es_msg" id="es_<?php echo $es_pre ?>_msg">
|
1157 |
<span id="es_msg"></span>
|
1219 |
|
1220 |
class es_widget_register extends WP_Widget {
|
1221 |
function __construct() {
|
1222 |
+
$widget_ops = array( 'classname' => 'widget_text elp-widget', 'description' => __( ES_PLUGIN_DISPLAY, 'email-subscribers' ), ES_PLUGIN_NAME );
|
1223 |
+
parent::__construct( ES_PLUGIN_NAME, __( ES_PLUGIN_DISPLAY, 'email-subscribers' ), $widget_ops );
|
1224 |
}
|
1225 |
|
1226 |
function widget( $args, $instance ) {
|
1263 |
$es_group = $instance['es_group'];
|
1264 |
?>
|
1265 |
<p>
|
1266 |
+
<label for="<?php echo $this->get_field_id( 'es_title' ); ?>"><?php echo __( 'Widget Title', 'email-subscribers' ); ?></label>
|
1267 |
<input class="widefat" id="<?php echo $this->get_field_id( 'es_title' ); ?>" name="<?php echo $this->get_field_name( 'es_title' ); ?>" type="text" value="<?php echo $es_title; ?>"/>
|
1268 |
</p>
|
1269 |
<p>
|
1270 |
+
<label for="<?php echo $this->get_field_id( 'es_desc' ); ?>"><?php echo __( 'Short description about subscription form', 'email-subscribers' ); ?></label>
|
1271 |
<input class="widefat" id="<?php echo $this->get_field_id( 'es_desc' ); ?>" name="<?php echo $this->get_field_name( 'es_desc' ); ?>" type="text" value="<?php echo $es_desc; ?>"/>
|
1272 |
</p>
|
1273 |
<p>
|
1274 |
+
<label for="<?php echo $this->get_field_id( 'es_name' ); ?>"><?php echo __( 'Display Name Field', 'email-subscribers' ); ?></label>
|
1275 |
<select class="widefat" id="<?php echo $this->get_field_id( 'es_name' ); ?>" name="<?php echo $this->get_field_name( 'es_name' ); ?>">
|
1276 |
+
<option value="YES" <?php $this->es_selected( $es_name == 'YES' ); ?>><?php echo __( 'YES', 'email-subscribers' ); ?></option>
|
1277 |
+
<option value="NO" <?php $this->es_selected( $es_name == 'NO' ); ?>><?php echo __( 'NO', 'email-subscribers' ); ?></option>
|
1278 |
</select>
|
1279 |
</p>
|
1280 |
<p>
|
1281 |
+
<label for="<?php echo $this->get_field_id( 'es_group' ); ?>"><?php echo __( 'Subscriber Group', 'email-subscribers' ); ?></label>
|
1282 |
<select class="widefat" name="<?php echo $this->get_field_name( 'es_group' ); ?>" id="<?php echo $this->get_field_id( 'es_group' ); ?>">
|
1283 |
<?php
|
1284 |
$groups = array();
|
classes/es-sendmail.php
CHANGED
@@ -86,13 +86,14 @@ class es_cls_sendmail {
|
|
86 |
$type = $cronmailqueue[0]['es_sent_source'];
|
87 |
$content = $cronmailqueue[0]['es_sent_preview'];
|
88 |
$subject = $cronmailqueue[0]['es_sent_subject'];
|
89 |
-
|
90 |
$replacefrom = array("<ul><br />", "</ul><br />", "<li><br />", "</li><br />", "<ol><br />", "</ol><br />", "</h2><br />", "</h1><br />");
|
91 |
$replaceto = array("<ul>", "</ul>", "<li>" ,"</li>", "<ol>", "</ol>", "</h2>", "</h1>");
|
92 |
$count = 1;
|
93 |
|
94 |
$settings = es_cls_settings::es_get_all_settings();
|
95 |
$unsublink = es_cls_registerhook::es_add_home_url($settings['ig_es_unsublink'], "?es=unsubscribe&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
|
|
|
96 |
if( trim($settings['ig_es_fromname']) == "" || trim($settings['ig_es_fromemail']) == '' ) {
|
97 |
$current_user = ( function_exists('wp_get_current_user') ) ? wp_get_current_user() : get_currentuserinfo();
|
98 |
$sender_name = $current_user->user_login;
|
@@ -131,13 +132,14 @@ class es_cls_sendmail {
|
|
131 |
$es_deliver_id = $crondelivery['es_deliver_id'];
|
132 |
$subscriber = es_cls_dbquery::es_view_subscriber_search("", $es_email_id);
|
133 |
if(count($subscriber) > 0) {
|
134 |
-
|
135 |
-
$
|
136 |
-
$
|
137 |
-
$
|
|
|
138 |
|
139 |
$unsubtext = stripslashes($settings['ig_es_unsubcontent']);
|
140 |
-
$unsubtext = str_replace("{{LINK}}", $
|
141 |
|
142 |
if ( $settings['ig_es_emailtype'] == "WP HTML MAIL" || $settings['ig_es_emailtype'] == "PHP HTML MAIL" ) {
|
143 |
$unsubtext = '<br>' . $unsubtext;
|
@@ -203,7 +205,6 @@ class es_cls_sendmail {
|
|
203 |
$data = array();
|
204 |
$wp_mail = false;
|
205 |
$php_mail = false;
|
206 |
-
$unsublink = "";
|
207 |
$unsubtext = "";
|
208 |
$sendguid = "";
|
209 |
$viewstatus = "";
|
@@ -213,12 +214,11 @@ class es_cls_sendmail {
|
|
213 |
$adminmailcontant = "";
|
214 |
$reportmail = "";
|
215 |
$currentdate = date('Y-m-d G:i:s');
|
216 |
-
$cacheid = es_cls_common::es_generate_guid(100);
|
217 |
$replacefrom = array("<ul><br />", "</ul><br />", "<li><br />", "</li><br />", "<ol><br />", "</ol><br />", "</h2><br />", "</h1><br />");
|
218 |
$replaceto = array("<ul>", "</ul>", "<li>" ,"</li>", "<ol>", "</ol>", "</h2>", "</h1>");
|
219 |
-
|
220 |
$settings = es_cls_settings::es_get_all_settings();
|
221 |
$unsublink = es_cls_registerhook::es_add_home_url($settings['ig_es_unsublink'], "?es=unsubscribe&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
|
|
|
222 |
|
223 |
$adminmail = $settings['ig_es_adminemail'];
|
224 |
$es_c_adminmailoption = $settings['ig_es_notifyadmin'];
|
@@ -372,6 +372,15 @@ class es_cls_sendmail {
|
|
372 |
foreach ($subscribers as $subscriber) {
|
373 |
$to = $subscriber['es_email_mail'];
|
374 |
$name = $subscriber['es_email_name'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
375 |
if( $name == "" ) {
|
376 |
$name = $to;
|
377 |
}
|
@@ -396,11 +405,7 @@ class es_cls_sendmail {
|
|
396 |
$content_send = str_replace("{{GROUP}}", $group, $content_send);
|
397 |
|
398 |
// Making an unsubscribe link
|
399 |
-
$
|
400 |
-
$unsublink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $unsublink);
|
401 |
-
$unsublink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $unsublink);
|
402 |
-
$unsublink = $unsublink . "&cache=".$cacheid;
|
403 |
-
$content_send = str_replace("{{LINK}}", $unsublink, $content_send);
|
404 |
|
405 |
$adminmailsubject = stripslashes($settings['ig_es_admin_new_sub_subject']);
|
406 |
$adminmailcontant = stripslashes($settings['ig_es_admin_new_sub_content']);
|
@@ -419,13 +424,8 @@ class es_cls_sendmail {
|
|
419 |
|
420 |
case 'newsletter':
|
421 |
if( $mailsenttype != "Cron" ) { // Cron mail not sending by this method
|
422 |
-
$unsublink = str_replace("{{DBID}}", $subscriber["es_email_id"], $unsublink);
|
423 |
-
$unsublink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $unsublink);
|
424 |
-
$unsublink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $unsublink);
|
425 |
-
$unsublink = $unsublink . "&cache=".$cacheid;
|
426 |
-
|
427 |
$unsubtext = stripslashes($settings['ig_es_unsubcontent']);
|
428 |
-
$unsubtext = str_replace("{{LINK}}", $
|
429 |
if ( $settings['ig_es_emailtype'] == "WP HTML MAIL" || $settings['ig_es_emailtype'] == "PHP HTML MAIL" ) {
|
430 |
$unsubtext = '<br>' . $unsubtext;
|
431 |
} else {
|
@@ -452,14 +452,8 @@ class es_cls_sendmail {
|
|
452 |
|
453 |
case 'notification': // notification mail to subscribers
|
454 |
if( $mailsenttype != "Cron" ) { // Cron mail not sending by this method
|
455 |
-
|
456 |
-
$unsublink = str_replace("{{DBID}}", $subscriber["es_email_id"], $unsublink);
|
457 |
-
$unsublink = str_replace("{{EMAIL}}", $subscriber["es_email_mail"], $unsublink);
|
458 |
-
$unsublink = str_replace("{{GUID}}", $subscriber["es_email_guid"], $unsublink);
|
459 |
-
$unsublink = $unsublink . "&cache=".$cacheid;
|
460 |
-
|
461 |
$unsubtext = stripslashes($settings['ig_es_unsubcontent']);
|
462 |
-
$unsubtext = str_replace("{{LINK}}", $
|
463 |
if ( $settings['ig_es_emailtype'] == "WP HTML MAIL" || $settings['ig_es_emailtype'] == "PHP HTML MAIL" ) {
|
464 |
$unsubtext = '<br>' . $unsubtext;
|
465 |
} else {
|
@@ -568,4 +562,15 @@ class es_cls_sendmail {
|
|
568 |
}
|
569 |
}
|
570 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
571 |
}
|
86 |
$type = $cronmailqueue[0]['es_sent_source'];
|
87 |
$content = $cronmailqueue[0]['es_sent_preview'];
|
88 |
$subject = $cronmailqueue[0]['es_sent_subject'];
|
89 |
+
|
90 |
$replacefrom = array("<ul><br />", "</ul><br />", "<li><br />", "</li><br />", "<ol><br />", "</ol><br />", "</h2><br />", "</h1><br />");
|
91 |
$replaceto = array("<ul>", "</ul>", "<li>" ,"</li>", "<ol>", "</ol>", "</h2>", "</h1>");
|
92 |
$count = 1;
|
93 |
|
94 |
$settings = es_cls_settings::es_get_all_settings();
|
95 |
$unsublink = es_cls_registerhook::es_add_home_url($settings['ig_es_unsublink'], "?es=unsubscribe&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
|
96 |
+
$cacheid = es_cls_common::es_generate_guid(100);
|
97 |
if( trim($settings['ig_es_fromname']) == "" || trim($settings['ig_es_fromemail']) == '' ) {
|
98 |
$current_user = ( function_exists('wp_get_current_user') ) ? wp_get_current_user() : get_currentuserinfo();
|
99 |
$sender_name = $current_user->user_login;
|
132 |
$es_deliver_id = $crondelivery['es_deliver_id'];
|
133 |
$subscriber = es_cls_dbquery::es_view_subscriber_search("", $es_email_id);
|
134 |
if(count($subscriber) > 0) {
|
135 |
+
|
136 |
+
$email = $subscriber[0]["es_email_mail"];
|
137 |
+
$dbid = $subscriber[0]["es_email_id"];
|
138 |
+
$guid = $subscriber[0]["es_email_guid"];
|
139 |
+
$unsubscribe_link = self::es_prepare_unsubscribe_link($unsublink, $email, $dbid, $guid, $cacheid);
|
140 |
|
141 |
$unsubtext = stripslashes($settings['ig_es_unsubcontent']);
|
142 |
+
$unsubtext = str_replace("{{LINK}}", $unsubscribe_link , $unsubtext);
|
143 |
|
144 |
if ( $settings['ig_es_emailtype'] == "WP HTML MAIL" || $settings['ig_es_emailtype'] == "PHP HTML MAIL" ) {
|
145 |
$unsubtext = '<br>' . $unsubtext;
|
205 |
$data = array();
|
206 |
$wp_mail = false;
|
207 |
$php_mail = false;
|
|
|
208 |
$unsubtext = "";
|
209 |
$sendguid = "";
|
210 |
$viewstatus = "";
|
214 |
$adminmailcontant = "";
|
215 |
$reportmail = "";
|
216 |
$currentdate = date('Y-m-d G:i:s');
|
|
|
217 |
$replacefrom = array("<ul><br />", "</ul><br />", "<li><br />", "</li><br />", "<ol><br />", "</ol><br />", "</h2><br />", "</h1><br />");
|
218 |
$replaceto = array("<ul>", "</ul>", "<li>" ,"</li>", "<ol>", "</ol>", "</h2>", "</h1>");
|
|
|
219 |
$settings = es_cls_settings::es_get_all_settings();
|
220 |
$unsublink = es_cls_registerhook::es_add_home_url($settings['ig_es_unsublink'], "?es=unsubscribe&db={{DBID}}&email={{EMAIL}}&guid={{GUID}}" );
|
221 |
+
$cacheid = es_cls_common::es_generate_guid(100);
|
222 |
|
223 |
$adminmail = $settings['ig_es_adminemail'];
|
224 |
$es_c_adminmailoption = $settings['ig_es_notifyadmin'];
|
372 |
foreach ($subscribers as $subscriber) {
|
373 |
$to = $subscriber['es_email_mail'];
|
374 |
$name = $subscriber['es_email_name'];
|
375 |
+
|
376 |
+
|
377 |
+
//Get Unsubscribe link
|
378 |
+
$dbid = (!empty($subscriber["es_email_id"])) ? $subscriber["es_email_id"] : '';
|
379 |
+
$guid = (!empty($subscriber["es_email_guid"])) ? $subscriber["es_email_guid"] : '';
|
380 |
+
|
381 |
+
$unsubscribe_link = self::es_prepare_unsubscribe_link($unsublink, $to, $dbid, $guid, $cacheid);
|
382 |
+
|
383 |
+
|
384 |
if( $name == "" ) {
|
385 |
$name = $to;
|
386 |
}
|
405 |
$content_send = str_replace("{{GROUP}}", $group, $content_send);
|
406 |
|
407 |
// Making an unsubscribe link
|
408 |
+
$content_send = str_replace("{{LINK}}", $unsubscribe_link, $content_send);
|
|
|
|
|
|
|
|
|
409 |
|
410 |
$adminmailsubject = stripslashes($settings['ig_es_admin_new_sub_subject']);
|
411 |
$adminmailcontant = stripslashes($settings['ig_es_admin_new_sub_content']);
|
424 |
|
425 |
case 'newsletter':
|
426 |
if( $mailsenttype != "Cron" ) { // Cron mail not sending by this method
|
|
|
|
|
|
|
|
|
|
|
427 |
$unsubtext = stripslashes($settings['ig_es_unsubcontent']);
|
428 |
+
$unsubtext = str_replace("{{LINK}}", $unsubscribe_link , $unsubtext);
|
429 |
if ( $settings['ig_es_emailtype'] == "WP HTML MAIL" || $settings['ig_es_emailtype'] == "PHP HTML MAIL" ) {
|
430 |
$unsubtext = '<br>' . $unsubtext;
|
431 |
} else {
|
452 |
|
453 |
case 'notification': // notification mail to subscribers
|
454 |
if( $mailsenttype != "Cron" ) { // Cron mail not sending by this method
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
$unsubtext = stripslashes($settings['ig_es_unsubcontent']);
|
456 |
+
$unsubtext = str_replace("{{LINK}}", $unsubscribe_link, $unsubtext);
|
457 |
if ( $settings['ig_es_emailtype'] == "WP HTML MAIL" || $settings['ig_es_emailtype'] == "PHP HTML MAIL" ) {
|
458 |
$unsubtext = '<br>' . $unsubtext;
|
459 |
} else {
|
562 |
}
|
563 |
}
|
564 |
}
|
565 |
+
|
566 |
+
public static function es_prepare_unsubscribe_link($unsublink, $email, $dbid, $guid, $cacheid) {
|
567 |
+
|
568 |
+
$unsublink = str_replace("{{DBID}}", $dbid, $unsublink);
|
569 |
+
$unsublink = str_replace("{{EMAIL}}", $email, $unsublink);
|
570 |
+
$unsublink = str_replace("{{GUID}}", $guid, $unsublink);
|
571 |
+
$unsublink = $unsublink . "&cache=".$cacheid;
|
572 |
+
|
573 |
+
return $unsublink;
|
574 |
+
|
575 |
+
}
|
576 |
}
|
email-subscribers.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Email Subscribers & Newsletters
|
4 |
* Plugin URI: https://www.icegram.com/
|
5 |
* Description: Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it is published.
|
6 |
-
* Version: 3.5.
|
7 |
* Author: Icegram
|
8 |
* Author URI: https://www.icegram.com/
|
9 |
* Requires at least: 3.9
|
@@ -38,7 +38,6 @@ add_action( 'admin_init', array( 'es_cls_registerhook', 'dismiss_admin_notice' )
|
|
38 |
add_shortcode( 'email-subscribers', 'es_shortcode' );
|
39 |
|
40 |
add_action( 'wp_ajax_es_klawoo_subscribe', array( 'es_cls_registerhook', 'klawoo_subscribe' ) );
|
41 |
-
add_action( 'wp_ajax_es_submit_survey', array( 'es_cls_registerhook', 'es_submit_survey' ) );
|
42 |
|
43 |
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.'es-directly.php');
|
44 |
|
3 |
* Plugin Name: Email Subscribers & Newsletters
|
4 |
* Plugin URI: https://www.icegram.com/
|
5 |
* Description: Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it is published.
|
6 |
+
* Version: 3.5.12
|
7 |
* Author: Icegram
|
8 |
* Author URI: https://www.icegram.com/
|
9 |
* Requires at least: 3.9
|
38 |
add_shortcode( 'email-subscribers', 'es_shortcode' );
|
39 |
|
40 |
add_action( 'wp_ajax_es_klawoo_subscribe', array( 'es_cls_registerhook', 'klawoo_subscribe' ) );
|
|
|
41 |
|
42 |
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.'es-directly.php');
|
43 |
|
export/export-email-address.php
CHANGED
@@ -64,10 +64,10 @@ if ( !empty($_SERVER) && !empty($_GET) && !empty($_GET['es']) && $_GET['es'] ==
|
|
64 |
es_cls_common::download( $wp_comment_posted_users, 'c', '' );
|
65 |
break;
|
66 |
default:
|
67 |
-
echo __( 'Unexpected url submit has been detected!',
|
68 |
break;
|
69 |
}
|
70 |
} else {
|
71 |
-
echo __( 'Unexpected url submit has been detected!',
|
72 |
}
|
73 |
die();
|
64 |
es_cls_common::download( $wp_comment_posted_users, 'c', '' );
|
65 |
break;
|
66 |
default:
|
67 |
+
echo __( 'Unexpected url submit has been detected!', 'email-subscribers' );
|
68 |
break;
|
69 |
}
|
70 |
} else {
|
71 |
+
echo __( 'Unexpected url submit has been detected!', 'email-subscribers' );
|
72 |
}
|
73 |
die();
|
help/help.php
CHANGED
@@ -217,25 +217,25 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
217 |
?>
|
218 |
|
219 |
<div class="about-header">
|
220 |
-
<h1><?php echo __( 'Welcome to the Email Subscribers Community!',
|
221 |
-
<div class="es-about-text"><?php echo __( 'We hope our plugin adds to your success 🏆',
|
222 |
-
<div class="es-notify-about-new-post-1"><?php echo __( 'To get started, we did some initial setup to save your time 😊',
|
223 |
<ul>
|
224 |
-
<li class="es-notify-about-new-post-2"><?php echo __( '1. Created a lead collecting form and added it the default widget area in your WP admin',
|
225 |
-
<li class="es-notify-about-new-post-2"><?php echo __( '2. Created a "Test" subscriber group and added "',
|
226 |
-
<li class="es-notify-about-new-post-2"><?php echo __( '3. Sent a test post notification, test newsletter to the test subscriber group.',
|
227 |
</ul>
|
228 |
|
229 |
<div class="wrap klawoo-form">
|
230 |
<table class="form-table">
|
231 |
-
<tr><td colspan="3" class="es-optin-headline"><?php echo __( 'Build your list and succeed with email marketing in 5 short weeks',
|
232 |
<tr>
|
233 |
<td class="es-emm-image"><img alt="Email Marketing Mastery" src="<?php echo ES_URL; ?>images/email-marketing-mastery.png" /></td>
|
234 |
<td class="es-emm-text">
|
235 |
-
<?php echo __( 'Do you want to build your list, keep off spam, write emails that people open and click through? Do you want to build your brand and nurture an amazing tribe?',
|
236 |
-
<b><?php echo __( 'Enter your name and email on the form on right to get it all.',
|
237 |
-
<?php echo __( 'First part is about the greatest mistake lot of people make (and you may as well be making). There are 5 steps to succeeding with email marketing and we\'ll cover it all.',
|
238 |
-
<?php echo __( 'It\'s time to get to full speed - and you get this training for free. Sign up now.',
|
239 |
</td>
|
240 |
<td class="es-emm-optin">
|
241 |
|
@@ -244,9 +244,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
244 |
<input class="es-ltr" type="text" name="email" id="email" placeholder="Your Email" /> <br />
|
245 |
<input type="hidden" name="list" value="hN8OkYzujUlKgDgfCTEcIA"/>
|
246 |
<input type="checkbox" name="es-gdpr-agree" id ="es-gdpr-agree" value="1" required="required">
|
247 |
-
<label for="es-gdpr-agree"><?php echo sprintf(__( 'I have read and agreed to your %s.',
|
248 |
<br /><br />
|
249 |
-
<input type="submit" name="submit" id="submit" class="button button-hero" value="<?php echo __( 'Subscribe',
|
250 |
<br><br>
|
251 |
<p id="klawoo_response"></p>
|
252 |
</form>
|
@@ -256,16 +256,16 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
256 |
</table>
|
257 |
</div>
|
258 |
<div class="es-badge">
|
259 |
-
<?php echo sprintf(__( "Version: %s",
|
260 |
</div>
|
261 |
<div class="es-support">
|
262 |
-
<?php echo __( 'Questions? Need Help?',
|
263 |
-
<div id="es-contact-us" class="es-contact-us"><a href="https://wordpress.org/support/plugin/email-subscribers" target="_blank"><?php echo __( "Contact Us",
|
264 |
</div>
|
265 |
</div>
|
266 |
</div>
|
267 |
<div class="es-donate-link">
|
268 |
-
<?php echo sprintf(__( '<b>Like Email Subscribers?</b> If yes, then consider %s to support further developments.',
|
269 |
</div>
|
270 |
|
271 |
<script type="text/javascript">
|
@@ -315,100 +315,100 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
315 |
|
316 |
<div class="feature-section col two-col">
|
317 |
<div class="col">
|
318 |
-
<h3><?php echo __( 'Description',
|
319 |
<p class="es_summary">
|
320 |
-
<?php echo __( 'Email Subscribers is a complete newsletter plugin which lets you collect leads, send automated new blog post notification emails, create & send newsletters and manage all this in one single place.',
|
321 |
</p>
|
322 |
-
<h3><?php echo __( 'Feature Overview',
|
323 |
<ul class="es_feature_list">
|
324 |
<li class="es_feature">
|
325 |
-
<?php echo __( 'Collect customer emails by adding a subscription box (Widget/Shortcode/PHP Code).',
|
326 |
</li>
|
327 |
<li class="es_feature">
|
328 |
-
<?php echo __( 'Configure double Opt-In and Single Opt-In facility for subscribers.',
|
329 |
</li>
|
330 |
<li class="es_feature">
|
331 |
-
<?php echo __( 'Send automatic welcome email to subscribers.',
|
332 |
</li>
|
333 |
<li class="es_feature">
|
334 |
-
<?php echo __( 'Send new post notification emails to subscribers when new posts are published on your website.',
|
335 |
</li>
|
336 |
<li class="es_feature">
|
337 |
-
<?php echo __( 'Schedule email (Cron job) or send them manually.',
|
338 |
</li>
|
339 |
<li class="es_feature">
|
340 |
-
<?php echo __( 'Send email notification to admin when a new user signs up.',
|
341 |
</li>
|
342 |
<li class="es_feature">
|
343 |
-
<?php echo __( 'Automatically add Unsubscribe link in the email.',
|
344 |
</li>
|
345 |
<li class="es_feature">
|
346 |
-
<?php echo __( 'Easily migrate subscribers from another app using Import & Export.',
|
347 |
</li>
|
348 |
<li class="es_feature">
|
349 |
-
<?php echo __( 'Use HTML editor to create newsletters and post notifications.',
|
350 |
</li>
|
351 |
<li class="es_feature">
|
352 |
-
<?php echo __( 'Send newsletters to different groups.',
|
353 |
</li>
|
354 |
<li class="es_feature">
|
355 |
-
<?php echo __( 'Get detailed sent email reports.',
|
356 |
</li>
|
357 |
<li class="es_feature">
|
358 |
-
<?php echo __( 'Control user access (User Roles and Capabilities).',
|
359 |
</li>
|
360 |
<li class="es_feature">
|
361 |
-
<?php echo __( 'Supports localization and internationalization.',
|
362 |
</li>
|
363 |
</ul>
|
364 |
</div>
|
365 |
|
366 |
<div class="col last-feature">
|
367 |
<div class="es-form-setup">
|
368 |
-
<h3><?php echo __( 'Add Subscribe form',
|
369 |
<p class="es_faq" style="margin-left: 0em!important;">
|
370 |
-
<?php echo sprintf(__( '%s',
|
371 |
</p>
|
372 |
<p style="line-height: 1.7em;font-size: 0.8em;margin-left: 0em!important;">
|
373 |
<?php echo sprintf(__( 'Use any of the following 3 methods :<br>
|
374 |
a) Shortcode in any page/post : <strong>[email-subscribers namefield="YES" desc="" group="Public"]</strong> <i>Or</i><br>
|
375 |
b) Go to Appearance -> Widgets. Click on widget Email subscribers and drag it to the sidebar on the right <i>Or</i><br>
|
376 |
-
c) Copy and past this php code to your desired template location : <strong>%s</strong>',
|
377 |
</p>
|
378 |
-
<h4> <?php echo __( 'Additional form settings',
|
379 |
<ul class="es_faq_list">
|
380 |
<li class="es_faq">
|
381 |
-
<?php echo sprintf(__( '%s',
|
382 |
</li>
|
383 |
<li class="es_faq">
|
384 |
-
<?php echo sprintf(__( '%s',
|
385 |
</li>
|
386 |
</ul>
|
387 |
</div>
|
388 |
<br />
|
389 |
<div class="es-setting">
|
390 |
-
<h3><?php echo __( 'General Plugin Configuration',
|
391 |
<ul class="es_faq_list">
|
392 |
<li class="es_faq">
|
393 |
-
<?php echo sprintf(__( 'Modify %s',
|
394 |
</li>
|
395 |
<li class="es_faq">
|
396 |
-
<?php echo sprintf(__( '%s',
|
397 |
</li>
|
398 |
<li class="es_faq">
|
399 |
-
<?php echo sprintf(__( '%s',
|
400 |
</li>
|
401 |
<li class="es_faq">
|
402 |
-
<?php echo sprintf(__( '%s',
|
403 |
</li>
|
404 |
<li class="es_faq">
|
405 |
-
<?php echo sprintf(__( '%s',
|
406 |
</li>
|
407 |
<li class="es_faq">
|
408 |
-
<?php echo sprintf(__( '%s',
|
409 |
</li>
|
410 |
<li class="es_faq">
|
411 |
-
<?php echo sprintf(__( '%s',
|
412 |
</li>
|
413 |
</ul>
|
414 |
</div>
|
@@ -417,66 +417,66 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
417 |
<hr />
|
418 |
<div class="feature-section col three-col">
|
419 |
<div class="col-1">
|
420 |
-
<h3><?php echo __( 'Newsletters',
|
421 |
<ul class="es_faq_list">
|
422 |
<li class="es_faq">
|
423 |
-
<?php echo sprintf(__( '%s',
|
424 |
</li>
|
425 |
<li class="es_faq">
|
426 |
-
<?php echo sprintf(__( '%s',
|
427 |
</li>
|
428 |
</ul>
|
429 |
<br><br><br>
|
430 |
-
<h3><?php echo __( 'Post Notifications',
|
431 |
<ul class="es_faq_list">
|
432 |
<li class="es_faq">
|
433 |
-
<?php echo sprintf(__( '%s',
|
434 |
</li>
|
435 |
<li class="es_faq">
|
436 |
-
<?php echo sprintf(__( '%s',
|
437 |
</li>
|
438 |
<li class="es_faq">
|
439 |
-
<?php echo sprintf(__( '%s',
|
440 |
</li>
|
441 |
</ul>
|
442 |
</div>
|
443 |
<div class="col-2">
|
444 |
-
<h3><?php echo __( 'Cron Job Setup',
|
445 |
<ul class="es_faq_list">
|
446 |
<li class="es_faq">
|
447 |
-
<?php echo sprintf(__( '%s',
|
448 |
</li>
|
449 |
<li class="es_faq">
|
450 |
-
<?php echo sprintf(__( '%s',
|
451 |
</li>
|
452 |
<li class="es_faq">
|
453 |
-
<?php echo sprintf(__( '%s',
|
454 |
</li>
|
455 |
<li class="es_faq">
|
456 |
-
<?php echo sprintf(__( '%s',
|
457 |
</li>
|
458 |
</ul>
|
459 |
-
<h3><?php echo __( 'Troubleshooting Steps',
|
460 |
<ul class="es_faq_list">
|
461 |
<li class="es_faq">
|
462 |
-
<?php echo sprintf(__( '%s',
|
463 |
</li>
|
464 |
<li class="es_faq">
|
465 |
-
<?php echo sprintf(__( '%s',
|
466 |
</li>
|
467 |
<li class="es_faq">
|
468 |
-
<?php echo sprintf(__( '%s',
|
469 |
</li>
|
470 |
</ul>
|
471 |
</div>
|
472 |
<div class="col-3 last-feature">
|
473 |
-
<h3><?php echo __( '[GDPR] Email Subscribers',
|
474 |
<ul class="es_faq_list">
|
475 |
<li class="es_faq">
|
476 |
-
<?php echo sprintf(__( '%s',
|
477 |
</li>
|
478 |
<li class="es_faq">
|
479 |
-
<?php echo sprintf(__( '%s',
|
480 |
</li>
|
481 |
</ul>
|
482 |
<?php
|
@@ -488,13 +488,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
488 |
if (( in_array('email-subscribers-advanced-form/email-subscribers-advanced-form.php', $active_plugins) || array_key_exists('email-subscribers-advanced-form/email-subscribers-advanced-form.php', $active_plugins) )) {
|
489 |
?>
|
490 |
<br><br><br>
|
491 |
-
<h3><?php echo __( '[GDPR] Email Subscribers - Group Selector',
|
492 |
<ul class="es_faq_list">
|
493 |
<li class="es_faq">
|
494 |
-
<?php echo sprintf(__( '%s',
|
495 |
</li>
|
496 |
<li class="es_faq">
|
497 |
-
<?php echo sprintf(__( '%s',
|
498 |
</li>
|
499 |
</ul>
|
500 |
<?php
|
@@ -503,62 +503,62 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
503 |
</div>
|
504 |
</div>
|
505 |
<hr />
|
506 |
-
<h2><?php echo __( 'Want to do more? Here\'s how..',
|
507 |
<div class="feature-section col three-col">
|
508 |
<div class="col-1">
|
509 |
-
<h3 style="text-align:left;"><?php echo __( 'Allow Subscribers to get subscribed to any group',
|
510 |
<div>
|
511 |
<img class="es-esaf-integration" alt="Group Selector" src="<?php echo ES_URL; ?>images/es-esaf-integration.png" />
|
512 |
</div>
|
513 |
<p class="es-integration-guide">
|
514 |
-
<?php echo __( 'Using our <b>free</b> ',
|
515 |
-
<a target="_blank" href="https://wordpress.org/plugins/email-subscribers-advanced-form/"><?php echo __( 'Group Selector',
|
516 |
-
<?php echo __( 'plugin, you can extend Email Subscribers Form functionality by providing an grouping option right next to the form.',
|
517 |
</p>
|
518 |
<p class="es-integration-guide">
|
519 |
-
<?php echo __( 'The user can then subscribe to whichever group most appeals to them.',
|
520 |
</p>
|
521 |
<p class="es-integration-guide">
|
522 |
-
<?php echo __( 'For example: Subscribe either to Updates or to Offers.',
|
523 |
</p>
|
524 |
</div>
|
525 |
<div class="col-2">
|
526 |
-
<h3 style="text-align:left;"><?php echo __( 'Show your subscribe form inside attractive popups',
|
527 |
<div>
|
528 |
<img class="es-ig-integration" alt="Icegram" src="<?php echo ES_URL; ?>images/es-ig-integration.png" />
|
529 |
</div>
|
530 |
<p class="es-integration-guide">
|
531 |
-
<?php echo __( 'Don\'t limit your subscriber form to a widget. Embed it within popups, hello bars, slide-ins, sidebars, full screen popups etc.',
|
532 |
</p>
|
533 |
<p class="es-integration-guide">
|
534 |
-
<?php echo __( 'Using Email Subscribers you can achieve this easily with our <b>free</b> plugin ',
|
535 |
-
<a target="_blank" href="https://wordpress.org/plugins/icegram/"><?php echo __( 'Icegram',
|
536 |
</p>
|
537 |
<p class="es-integration-guide">
|
538 |
-
<?php echo __( 'Icegram\'s beautiful designs instantly capture user attention and help increase sign-ups to your WordPress website.',
|
539 |
</p>
|
540 |
<p class="es_faq es-integration-guide">
|
541 |
-
<?php echo sprintf(__( 'How to %s',
|
542 |
</p>
|
543 |
</div>
|
544 |
<div class="col-3 last-feature">
|
545 |
-
<h3 style="text-align:left;"><?php echo __( 'Get beautiful and elegant form styles',
|
546 |
|
547 |
<div>
|
548 |
<img class="es-rm-integration" alt="Rainmaker" src="<?php echo ES_URL; ?>images/es-rm-integration.png" />
|
549 |
</div>
|
550 |
<p class="es-integration-guide">
|
551 |
-
<?php echo __( 'Email subscribers easily integrates with another <b>free</b> plugin ',
|
552 |
-
<a target="_blank" href="https://wordpress.org/plugins/icegram-rainmaker/"><?php echo __( 'Rainmaker',
|
553 |
</p>
|
554 |
<p class="es-integration-guide">
|
555 |
-
<?php echo __( 'Rainmaker extends the core features of Email Subscribers and provides elegant form styles.',
|
556 |
</p>
|
557 |
<p>
|
558 |
-
<?php echo __( 'These styles are well designed and beautify your subscription form making it more appealing.',
|
559 |
</p>
|
560 |
<p class="es_faq es-integration-guide">
|
561 |
-
<?php echo sprintf(__( 'How to %s',
|
562 |
</p>
|
563 |
</div>
|
564 |
</div>
|
217 |
?>
|
218 |
|
219 |
<div class="about-header">
|
220 |
+
<h1><?php echo __( 'Welcome to the Email Subscribers Community!', 'email-subscribers' ); ?></h1>
|
221 |
+
<div class="es-about-text"><?php echo __( 'We hope our plugin adds to your success 🏆', 'email-subscribers' ); ?></div>
|
222 |
+
<div class="es-notify-about-new-post-1"><?php echo __( 'To get started, we did some initial setup to save your time 😊', 'email-subscribers' ); ?></div>
|
223 |
<ul>
|
224 |
+
<li class="es-notify-about-new-post-2"><?php echo __( '1. Created a lead collecting form and added it the default widget area in your WP admin', 'email-subscribers' ); ?></li>
|
225 |
+
<li class="es-notify-about-new-post-2"><?php echo __( '2. Created a "Test" subscriber group and added "', 'email-subscribers' ) .$admin_email . __('" to it.', 'email-subscribers' ); ?></li>
|
226 |
+
<li class="es-notify-about-new-post-2"><?php echo __( '3. Sent a test post notification, test newsletter to the test subscriber group.', 'email-subscribers' ); ?></li>
|
227 |
</ul>
|
228 |
|
229 |
<div class="wrap klawoo-form">
|
230 |
<table class="form-table">
|
231 |
+
<tr><td colspan="3" class="es-optin-headline"><?php echo __( 'Build your list and succeed with email marketing in 5 short weeks', 'email-subscribers' ); ?></td></tr>
|
232 |
<tr>
|
233 |
<td class="es-emm-image"><img alt="Email Marketing Mastery" src="<?php echo ES_URL; ?>images/email-marketing-mastery.png" /></td>
|
234 |
<td class="es-emm-text">
|
235 |
+
<?php echo __( 'Do you want to build your list, keep off spam, write emails that people open and click through? Do you want to build your brand and nurture an amazing tribe?', 'email-subscribers' ); ?> <br /><br />
|
236 |
+
<b><?php echo __( 'Enter your name and email on the form on right to get it all.', 'email-subscribers' ); ?></b> <br /><br />
|
237 |
+
<?php echo __( 'First part is about the greatest mistake lot of people make (and you may as well be making). There are 5 steps to succeeding with email marketing and we\'ll cover it all.', 'email-subscribers' ); ?> <br /><br />
|
238 |
+
<?php echo __( 'It\'s time to get to full speed - and you get this training for free. Sign up now.', 'email-subscribers' ); ?>
|
239 |
</td>
|
240 |
<td class="es-emm-optin">
|
241 |
|
244 |
<input class="es-ltr" type="text" name="email" id="email" placeholder="Your Email" /> <br />
|
245 |
<input type="hidden" name="list" value="hN8OkYzujUlKgDgfCTEcIA"/>
|
246 |
<input type="checkbox" name="es-gdpr-agree" id ="es-gdpr-agree" value="1" required="required">
|
247 |
+
<label for="es-gdpr-agree"><?php echo sprintf(__( 'I have read and agreed to your %s.', 'email-subscribers' ), '<a href="https://www.icegram.com/privacy-policy/" target="_blank">' . __( 'Privacy Policy', 'email-subscribers' ) . '</a>' ); ?></label>
|
248 |
<br /><br />
|
249 |
+
<input type="submit" name="submit" id="submit" class="button button-hero" value="<?php echo __( 'Subscribe', 'email-subscribers' ); ?>">
|
250 |
<br><br>
|
251 |
<p id="klawoo_response"></p>
|
252 |
</form>
|
256 |
</table>
|
257 |
</div>
|
258 |
<div class="es-badge">
|
259 |
+
<?php echo sprintf(__( "Version: %s", 'email-subscribers' ), $es_current_version ); ?>
|
260 |
</div>
|
261 |
<div class="es-support">
|
262 |
+
<?php echo __( 'Questions? Need Help?', 'email-subscribers' ); ?>
|
263 |
+
<div id="es-contact-us" class="es-contact-us"><a href="https://wordpress.org/support/plugin/email-subscribers" target="_blank"><?php echo __( "Contact Us", 'email-subscribers' ); ?></a>
|
264 |
</div>
|
265 |
</div>
|
266 |
</div>
|
267 |
<div class="es-donate-link">
|
268 |
+
<?php echo sprintf(__( '<b>Like Email Subscribers?</b> If yes, then consider %s to support further developments.', 'email-subscribers' ), '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CPTHCDC382KVA" target="_blank">' . __( 'donating to us', 'email-subscribers' ) .'</a>' ); ?>
|
269 |
</div>
|
270 |
|
271 |
<script type="text/javascript">
|
315 |
|
316 |
<div class="feature-section col two-col">
|
317 |
<div class="col">
|
318 |
+
<h3><?php echo __( 'Description', 'email-subscribers' ); ?></h3>
|
319 |
<p class="es_summary">
|
320 |
+
<?php echo __( 'Email Subscribers is a complete newsletter plugin which lets you collect leads, send automated new blog post notification emails, create & send newsletters and manage all this in one single place.', 'email-subscribers' ); ?>
|
321 |
</p>
|
322 |
+
<h3><?php echo __( 'Feature Overview', 'email-subscribers' ); ?></h3>
|
323 |
<ul class="es_feature_list">
|
324 |
<li class="es_feature">
|
325 |
+
<?php echo __( 'Collect customer emails by adding a subscription box (Widget/Shortcode/PHP Code).', 'email-subscribers' ); ?>
|
326 |
</li>
|
327 |
<li class="es_feature">
|
328 |
+
<?php echo __( 'Configure double Opt-In and Single Opt-In facility for subscribers.', 'email-subscribers' ); ?>
|
329 |
</li>
|
330 |
<li class="es_feature">
|
331 |
+
<?php echo __( 'Send automatic welcome email to subscribers.', 'email-subscribers' ); ?>
|
332 |
</li>
|
333 |
<li class="es_feature">
|
334 |
+
<?php echo __( 'Send new post notification emails to subscribers when new posts are published on your website.', 'email-subscribers' ); ?>
|
335 |
</li>
|
336 |
<li class="es_feature">
|
337 |
+
<?php echo __( 'Schedule email (Cron job) or send them manually.', 'email-subscribers' ); ?>
|
338 |
</li>
|
339 |
<li class="es_feature">
|
340 |
+
<?php echo __( 'Send email notification to admin when a new user signs up.', 'email-subscribers' ); ?>
|
341 |
</li>
|
342 |
<li class="es_feature">
|
343 |
+
<?php echo __( 'Automatically add Unsubscribe link in the email.', 'email-subscribers' ); ?>
|
344 |
</li>
|
345 |
<li class="es_feature">
|
346 |
+
<?php echo __( 'Easily migrate subscribers from another app using Import & Export.', 'email-subscribers' ); ?>
|
347 |
</li>
|
348 |
<li class="es_feature">
|
349 |
+
<?php echo __( 'Use HTML editor to create newsletters and post notifications.', 'email-subscribers' ); ?>
|
350 |
</li>
|
351 |
<li class="es_feature">
|
352 |
+
<?php echo __( 'Send newsletters to different groups.', 'email-subscribers' ); ?>
|
353 |
</li>
|
354 |
<li class="es_feature">
|
355 |
+
<?php echo __( 'Get detailed sent email reports.', 'email-subscribers' ); ?>
|
356 |
</li>
|
357 |
<li class="es_feature">
|
358 |
+
<?php echo __( 'Control user access (User Roles and Capabilities).', 'email-subscribers' ); ?>
|
359 |
</li>
|
360 |
<li class="es_feature">
|
361 |
+
<?php echo __( 'Supports localization and internationalization.', 'email-subscribers' ); ?>
|
362 |
</li>
|
363 |
</ul>
|
364 |
</div>
|
365 |
|
366 |
<div class="col last-feature">
|
367 |
<div class="es-form-setup">
|
368 |
+
<h3><?php echo __( 'Add Subscribe form', 'email-subscribers' ); ?></h3>
|
369 |
<p class="es_faq" style="margin-left: 0em!important;">
|
370 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-add-subscription-box-to-website/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to Add Subscription box to website?', 'email-subscribers' ) . '</a>' ); ?>
|
371 |
</p>
|
372 |
<p style="line-height: 1.7em;font-size: 0.8em;margin-left: 0em!important;">
|
373 |
<?php echo sprintf(__( 'Use any of the following 3 methods :<br>
|
374 |
a) Shortcode in any page/post : <strong>[email-subscribers namefield="YES" desc="" group="Public"]</strong> <i>Or</i><br>
|
375 |
b) Go to Appearance -> Widgets. Click on widget Email subscribers and drag it to the sidebar on the right <i>Or</i><br>
|
376 |
+
c) Copy and past this php code to your desired template location : <strong>%s</strong>', 'email-subscribers' ), esc_html( '<?php es_subbox($namefield = "YES", $desc = "", $group = "Public"); ?>' ) ); ?>
|
377 |
</p>
|
378 |
+
<h4> <?php echo __( 'Additional form settings', 'email-subscribers' ); ?></h4>
|
379 |
<ul class="es_faq_list">
|
380 |
<li class="es_faq">
|
381 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-redirect-subscribers-to-a-new-page-url-after-successful-sign-up/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to Redirect Subscribers to a new page/url after successful sign up?', 'email-subscribers' ) . '</a>' ); ?>
|
382 |
</li>
|
383 |
<li class="es_faq">
|
384 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-add-captcha-in-subscribe-form-of-email-subscribers/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to add captcha in Subscribe form of Email Subscribers?', 'email-subscribers' ) . '</a>' ); ?>
|
385 |
</li>
|
386 |
</ul>
|
387 |
</div>
|
388 |
<br />
|
389 |
<div class="es-setting">
|
390 |
+
<h3><?php echo __( 'General Plugin Configuration', 'email-subscribers' ); ?></h3>
|
391 |
<ul class="es_faq_list">
|
392 |
<li class="es_faq">
|
393 |
+
<?php echo sprintf(__( 'Modify %s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-general-plugin-settings/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'default text, email contents', 'email-subscribers' ) . '</a>' . __( ' (like Confirmation, Welcome, Admin emails), Cron Settings and Assign User Roles', 'email-subscribers' ) ); ?>
|
394 |
</li>
|
395 |
<li class="es_faq">
|
396 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-does-sync-work/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How does Sync work?', 'email-subscribers' ) . '</a>' ); ?>
|
397 |
</li>
|
398 |
<li class="es_faq">
|
399 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-import-or-export-email-addresses/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to Import or Export Email Addresses?', 'email-subscribers' ) . '</a>' ); ?>
|
400 |
</li>
|
401 |
<li class="es_faq">
|
402 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-add-update-existing-subscribers-group/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to Add/Update Existing Subscribers Group & Status?', 'email-subscribers' ) . '</a>' ); ?>
|
403 |
</li>
|
404 |
<li class="es_faq">
|
405 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-change-update-translate-any-texts-from-email-subscribers/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to change/update/translate any texts from the plugin?', 'email-subscribers' ) . '</a>' ); ?>
|
406 |
</li>
|
407 |
<li class="es_faq">
|
408 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-add-unsubscribe-link-in-emails/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to add Unsubscribe link in emails?', 'email-subscribers' ) . '</a>' ); ?>
|
409 |
</li>
|
410 |
<li class="es_faq">
|
411 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-check-sent-emails/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to check sent emails?', 'email-subscribers' ) . '</a>' ); ?>
|
412 |
</li>
|
413 |
</ul>
|
414 |
</div>
|
417 |
<hr />
|
418 |
<div class="feature-section col three-col">
|
419 |
<div class="col-1">
|
420 |
+
<h3><?php echo __( 'Newsletters', 'email-subscribers' ); ?></h3>
|
421 |
<ul class="es_faq_list">
|
422 |
<li class="es_faq">
|
423 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-create-and-send-newsletter-emails/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Create and Send Newsletter Emails', 'email-subscribers' ) . '</a>' ); ?>
|
424 |
</li>
|
425 |
<li class="es_faq">
|
426 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-what-are-the-available-keywords-in-the-newsletters/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Keywords in the Newsletters', 'email-subscribers' ) . '</a>' ); ?>
|
427 |
</li>
|
428 |
</ul>
|
429 |
<br><br><br>
|
430 |
+
<h3><?php echo __( 'Post Notifications', 'email-subscribers' ); ?></h3>
|
431 |
<ul class="es_faq_list">
|
432 |
<li class="es_faq">
|
433 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-create-and-send-post-notification-emails-when-new-posts-are-published/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Create and Send Post Notification Emails when new posts are published', 'email-subscribers' ) . '</a>' ); ?>
|
434 |
</li>
|
435 |
<li class="es_faq">
|
436 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-what-are-the-available-keywords-in-the-post-notifications/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Keywords in the Post Notifications', 'email-subscribers' ) . '</a>' ); ?>
|
437 |
</li>
|
438 |
<li class="es_faq">
|
439 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-send-a-sample-new-post-notification-email-to-testgroup-myself/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Send a test post notification email to myself/testgroup', 'email-subscribers' ) . '</a>' ); ?>
|
440 |
</li>
|
441 |
</ul>
|
442 |
</div>
|
443 |
<div class="col-2">
|
444 |
+
<h3><?php echo __( 'Cron Job Setup', 'email-subscribers' ); ?></h3>
|
445 |
<ul class="es_faq_list">
|
446 |
<li class="es_faq">
|
447 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-schedule-cron-emails/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'What is Cron and how to Schedule Cron Emails?', 'email-subscribers' ) . '</a>' ); ?>
|
448 |
</li>
|
449 |
<li class="es_faq">
|
450 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-schedule-cron-emails-in-cpanel/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Schedule Cron Emails in cPanel', 'email-subscribers' ) . '</a>' ); ?>
|
451 |
</li>
|
452 |
<li class="es_faq">
|
453 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-schedule-cron-emails-in-parallels-plesk/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Schedule Cron Emails in Parallels Plesk', 'email-subscribers' ) . '</a>' ); ?>
|
454 |
</li>
|
455 |
<li class="es_faq">
|
456 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-what-to-do-if-hosting-doesnt-support-cron-jobs/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Hosting doesn’t support Cron Jobs?', 'email-subscribers' ) . '</a>' ); ?>
|
457 |
</li>
|
458 |
</ul>
|
459 |
+
<h3><?php echo __( 'Troubleshooting Steps', 'email-subscribers' ); ?></h3>
|
460 |
<ul class="es_faq_list">
|
461 |
<li class="es_faq">
|
462 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-subscribers-are-not-receiving-emails/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'Subscribers are not receiving Emails?', 'email-subscribers' ) . '</a>' ); ?>
|
463 |
</li>
|
464 |
<li class="es_faq">
|
465 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-css-help/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'CSS Help', 'email-subscribers' ) . '</a>' ); ?>
|
466 |
</li>
|
467 |
<li class="es_faq">
|
468 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-faq/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'FAQ\'s', 'email-subscribers' ) . '</a>' ); ?>
|
469 |
</li>
|
470 |
</ul>
|
471 |
</div>
|
472 |
<div class="col-3 last-feature">
|
473 |
+
<h3><?php echo __( '[GDPR] Email Subscribers', 'email-subscribers' ); ?></h3>
|
474 |
<ul class="es_faq_list">
|
475 |
<li class="es_faq">
|
476 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-gdpr-how-to-enable-consent-checkbox-in-the-subscription-form/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to enable consent checkbox in the subscribe form?', 'email-subscribers' ) . '</a>' ); ?>
|
477 |
</li>
|
478 |
<li class="es_faq">
|
479 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-gdpr-what-data-email-subscribers-stores-on-your-end/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'What data Email Subscribers stores on your end?', 'email-subscribers' ) . '</a>' ); ?>
|
480 |
</li>
|
481 |
</ul>
|
482 |
<?php
|
488 |
if (( in_array('email-subscribers-advanced-form/email-subscribers-advanced-form.php', $active_plugins) || array_key_exists('email-subscribers-advanced-form/email-subscribers-advanced-form.php', $active_plugins) )) {
|
489 |
?>
|
490 |
<br><br><br>
|
491 |
+
<h3><?php echo __( '[GDPR] Email Subscribers - Group Selector', 'email-subscribers' ); ?></h3>
|
492 |
<ul class="es_faq_list">
|
493 |
<li class="es_faq">
|
494 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/esaf-gdpr-how-to-enable-consent-checkbox-in-the-subscription-form/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'How to enable consent checkbox in the subscribe form?', 'email-subscribers' ) . '</a>' ); ?>
|
495 |
</li>
|
496 |
<li class="es_faq">
|
497 |
+
<?php echo sprintf(__( '%s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/esaf-gdpr-what-data-email-subscribers-group-selector-stores-on-your-end/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'What data Email Subscribers - Group Selector stores on your end?', 'email-subscribers' ) . '</a>' ); ?>
|
498 |
</li>
|
499 |
</ul>
|
500 |
<?php
|
503 |
</div>
|
504 |
</div>
|
505 |
<hr />
|
506 |
+
<h2><?php echo __( 'Want to do more? Here\'s how..', 'email-subscribers' ); ?></h2>
|
507 |
<div class="feature-section col three-col">
|
508 |
<div class="col-1">
|
509 |
+
<h3 style="text-align:left;"><?php echo __( 'Allow Subscribers to get subscribed to any group', 'email-subscribers' ); ?></h3>
|
510 |
<div>
|
511 |
<img class="es-esaf-integration" alt="Group Selector" src="<?php echo ES_URL; ?>images/es-esaf-integration.png" />
|
512 |
</div>
|
513 |
<p class="es-integration-guide">
|
514 |
+
<?php echo __( 'Using our <b>free</b> ', 'email-subscribers' ); ?>
|
515 |
+
<a target="_blank" href="https://wordpress.org/plugins/email-subscribers-advanced-form/"><?php echo __( 'Group Selector', 'email-subscribers' ); ?></a>
|
516 |
+
<?php echo __( 'plugin, you can extend Email Subscribers Form functionality by providing an grouping option right next to the form.', 'email-subscribers' ); ?>
|
517 |
</p>
|
518 |
<p class="es-integration-guide">
|
519 |
+
<?php echo __( 'The user can then subscribe to whichever group most appeals to them.', 'email-subscribers' ); ?>
|
520 |
</p>
|
521 |
<p class="es-integration-guide">
|
522 |
+
<?php echo __( 'For example: Subscribe either to Updates or to Offers.', 'email-subscribers' ); ?>
|
523 |
</p>
|
524 |
</div>
|
525 |
<div class="col-2">
|
526 |
+
<h3 style="text-align:left;"><?php echo __( 'Show your subscribe form inside attractive popups', 'email-subscribers' ); ?></h3>
|
527 |
<div>
|
528 |
<img class="es-ig-integration" alt="Icegram" src="<?php echo ES_URL; ?>images/es-ig-integration.png" />
|
529 |
</div>
|
530 |
<p class="es-integration-guide">
|
531 |
+
<?php echo __( 'Don\'t limit your subscriber form to a widget. Embed it within popups, hello bars, slide-ins, sidebars, full screen popups etc.', 'email-subscribers' ); ?>
|
532 |
</p>
|
533 |
<p class="es-integration-guide">
|
534 |
+
<?php echo __( 'Using Email Subscribers you can achieve this easily with our <b>free</b> plugin ', 'email-subscribers' ); ?>
|
535 |
+
<a target="_blank" href="https://wordpress.org/plugins/icegram/"><?php echo __( 'Icegram', 'email-subscribers' ); ?></a>
|
536 |
</p>
|
537 |
<p class="es-integration-guide">
|
538 |
+
<?php echo __( 'Icegram\'s beautiful designs instantly capture user attention and help increase sign-ups to your WordPress website.', 'email-subscribers' ); ?>
|
539 |
</p>
|
540 |
<p class="es_faq es-integration-guide">
|
541 |
+
<?php echo sprintf(__( 'How to %s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-show-subscribe-form-inside-a-popup/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'show subscribe form inside a popup', 'email-subscribers' ) . '</a>' ); ?>
|
542 |
</p>
|
543 |
</div>
|
544 |
<div class="col-3 last-feature">
|
545 |
+
<h3 style="text-align:left;"><?php echo __( 'Get beautiful and elegant form styles', 'email-subscribers' ); ?></h3>
|
546 |
|
547 |
<div>
|
548 |
<img class="es-rm-integration" alt="Rainmaker" src="<?php echo ES_URL; ?>images/es-rm-integration.png" />
|
549 |
</div>
|
550 |
<p class="es-integration-guide">
|
551 |
+
<?php echo __( 'Email subscribers easily integrates with another <b>free</b> plugin ', 'email-subscribers' ); ?>
|
552 |
+
<a target="_blank" href="https://wordpress.org/plugins/icegram-rainmaker/"><?php echo __( 'Rainmaker', 'email-subscribers' ); ?></a>
|
553 |
</p>
|
554 |
<p class="es-integration-guide">
|
555 |
+
<?php echo __( 'Rainmaker extends the core features of Email Subscribers and provides elegant form styles.', 'email-subscribers' ); ?>
|
556 |
</p>
|
557 |
<p>
|
558 |
+
<?php echo __( 'These styles are well designed and beautify your subscription form making it more appealing.', 'email-subscribers' ); ?>
|
559 |
</p>
|
560 |
<p class="es_faq es-integration-guide">
|
561 |
+
<?php echo sprintf(__( 'How to %s', 'email-subscribers' ), '<a href="https://www.icegram.com/documentation/es-how-to-use-rainmakers-form-in-email-subscribers/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page" target="_blank">' . __( 'add Rainmaker’s form in Email Subscribers', 'email-subscribers' ) . '</a>' ); ?>
|
562 |
</p>
|
563 |
</div>
|
564 |
</div>
|
job/es-optin.php
CHANGED
@@ -56,17 +56,17 @@ if( (isset($_GET['es'])) && ($_GET['es'] == "optin") ) {
|
|
56 |
$message = esc_html(stripslashes($es_c_message2));
|
57 |
}
|
58 |
if($message == "") {
|
59 |
-
$message = __( 'Oops.. We are getting some technical error. Please try again or contact admin.',
|
60 |
}
|
61 |
} else {
|
62 |
-
$message = __( 'This email address has already been confirmed.',
|
63 |
}
|
64 |
echo $message;
|
65 |
} else {
|
66 |
$message = esc_html(stripslashes($es_c_message2));
|
67 |
$message = str_replace("\r\n", "<br />", $message);
|
68 |
if($message == "") {
|
69 |
-
$message = __( 'Oops.. We are getting some technical error. Please try again or contact admin.',
|
70 |
}
|
71 |
echo $message;
|
72 |
}
|
56 |
$message = esc_html(stripslashes($es_c_message2));
|
57 |
}
|
58 |
if($message == "") {
|
59 |
+
$message = __( 'Oops.. We are getting some technical error. Please try again or contact admin.', 'email-subscribers' );
|
60 |
}
|
61 |
} else {
|
62 |
+
$message = __( 'This email address has already been confirmed.', 'email-subscribers' );
|
63 |
}
|
64 |
echo $message;
|
65 |
} else {
|
66 |
$message = esc_html(stripslashes($es_c_message2));
|
67 |
$message = str_replace("\r\n", "<br />", $message);
|
68 |
if($message == "") {
|
69 |
+
$message = __( 'Oops.. We are getting some technical error. Please try again or contact admin.', 'email-subscribers' );
|
70 |
}
|
71 |
echo $message;
|
72 |
}
|
job/es-unsubscribe.php
CHANGED
@@ -52,14 +52,14 @@ if( (isset($_GET['es'])) && ($_GET['es'] == "unsubscribe") ) {
|
|
52 |
$message = esc_html(stripslashes($es_c_message2));
|
53 |
}
|
54 |
if($message == "") {
|
55 |
-
$message = __( 'Oops.. We are getting some technical error. Please try again or contact admin.',
|
56 |
}
|
57 |
echo $message;
|
58 |
} else {
|
59 |
$message = esc_html(stripslashes($es_c_message2));
|
60 |
$message = str_replace("\r\n", "<br />", $message);
|
61 |
if($message == "") {
|
62 |
-
$message = __( 'Oops.. We are getting some technical error. Please try again or contact admin.',
|
63 |
}
|
64 |
echo $message;
|
65 |
}
|
52 |
$message = esc_html(stripslashes($es_c_message2));
|
53 |
}
|
54 |
if($message == "") {
|
55 |
+
$message = __( 'Oops.. We are getting some technical error. Please try again or contact admin.', 'email-subscribers' );
|
56 |
}
|
57 |
echo $message;
|
58 |
} else {
|
59 |
$message = esc_html(stripslashes($es_c_message2));
|
60 |
$message = str_replace("\r\n", "<br />", $message);
|
61 |
if($message == "") {
|
62 |
+
$message = __( 'Oops.. We are getting some technical error. Please try again or contact admin.', 'email-subscribers' );
|
63 |
}
|
64 |
echo $message;
|
65 |
}
|
notification/notification-add.php
CHANGED
@@ -30,25 +30,25 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
30 |
|
31 |
$form['es_note_group'] = isset($_POST['es_note_group']) ? $_POST['es_note_group'] : '';
|
32 |
if ($form['es_note_group'] == '') {
|
33 |
-
$es_errors[] = __( 'Please select subscribers group.',
|
34 |
$es_error_found = TRUE;
|
35 |
}
|
36 |
|
37 |
$form['es_note_status'] = isset($_POST['es_note_status']) ? $_POST['es_note_status'] : '';
|
38 |
if ($form['es_note_status'] == '') {
|
39 |
-
$es_errors[] = __( 'Please select notification status.',
|
40 |
$es_error_found = TRUE;
|
41 |
}
|
42 |
|
43 |
$form['es_note_templ'] = isset($_POST['es_note_templ']) ? $_POST['es_note_templ'] : '';
|
44 |
if ($form['es_note_templ'] == '') {
|
45 |
-
$es_errors[] = __( 'Please select notification mail subject. Use templates menu to create new.',
|
46 |
$es_error_found = TRUE;
|
47 |
}
|
48 |
|
49 |
$es_note_cat = isset($_POST['es_note_cat']) ? $_POST['es_note_cat'] : '';
|
50 |
if ($es_note_cat == '') {
|
51 |
-
$es_errors[] = __( 'Please select post categories.',
|
52 |
$es_error_found = TRUE;
|
53 |
}
|
54 |
|
@@ -68,7 +68,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
68 |
$form['es_note_cat'] = $listcategory;
|
69 |
$action = es_cls_notification::es_notification_ins($form, $action = "insert");
|
70 |
if($action) {
|
71 |
-
$es_success = __( 'Notification successfully created. ',
|
72 |
}
|
73 |
|
74 |
// Reset the form fields
|
@@ -109,8 +109,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
109 |
|
110 |
<div class="wrap">
|
111 |
<h2>
|
112 |
-
<?php echo __( 'Add Notification',
|
113 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
114 |
</h2>
|
115 |
<div class="es-form" style="width: 80%;float: left;">
|
116 |
<form name="es_form" method="post" action="#" onsubmit="return _es_submit()">
|
@@ -118,11 +118,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
118 |
<tbody>
|
119 |
<tr>
|
120 |
<th scope="row">
|
121 |
-
<label for="tag-link"><?php echo __( 'Subscribers Group to send post notification to',
|
122 |
</th>
|
123 |
<td>
|
124 |
<select name="es_note_group" id="es_note_group">
|
125 |
-
<option value=''><?php echo __( 'Select',
|
126 |
<?php
|
127 |
$groups = array();
|
128 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
@@ -140,13 +140,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
140 |
</tr>
|
141 |
<tr>
|
142 |
<th scope="row">
|
143 |
-
<label for="tag-link"><?php echo __( 'Select Notification Email Subject',
|
144 |
-
<p class="description"><?php echo __( '(Use templates menu to create new)',
|
145 |
</label>
|
146 |
</th>
|
147 |
<td>
|
148 |
<select class="es_tmpl_select" name="es_note_templ" id="es_note_templ" onchange="return _es_change(this.options[this.selectedIndex])">
|
149 |
-
<option value=''><?php echo __( 'Select',
|
150 |
<?php
|
151 |
$subject = array();
|
152 |
$subject = es_cls_templates::es_template_select_type($type = "Post Notification");
|
@@ -166,7 +166,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
166 |
</tr>
|
167 |
<tr>
|
168 |
<th scope="row">
|
169 |
-
<label for="tag-link"><?php echo __( 'Select Post Categories',
|
170 |
</th>
|
171 |
<td>
|
172 |
<?php
|
@@ -194,15 +194,15 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
194 |
echo "</tr></table>";
|
195 |
?>
|
196 |
<p class="select_all" style="margin-left: 0.7em;">
|
197 |
-
<input type="button" name="CheckAll" class="button add-new-h2" value="<?php echo __( 'Check All',
|
198 |
-
<input type="button" name="UnCheckAll" class="button add-new-h2" value="<?php echo __( 'Uncheck All',
|
199 |
</p>
|
200 |
</td>
|
201 |
</tr>
|
202 |
<tr>
|
203 |
<th scope="row">
|
204 |
-
<label for="tag-link"><?php echo __( 'Select your Custom Post Type',
|
205 |
-
<p class="description"><?php echo __( '(Optional)',
|
206 |
</label>
|
207 |
</th>
|
208 |
<td>
|
@@ -231,20 +231,20 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
231 |
}
|
232 |
echo "</tr></table>";
|
233 |
} else {
|
234 |
-
echo __( 'No Custom Post Types Available',
|
235 |
}
|
236 |
?>
|
237 |
</td>
|
238 |
</tr>
|
239 |
<tr>
|
240 |
<th scope="row">
|
241 |
-
<label for="tag-link"><?php echo __( 'Select Notification Status when a new post is published',
|
242 |
</th>
|
243 |
<td>
|
244 |
<select name="es_note_status" id="es_note_status">
|
245 |
-
<option value='Enable' selected="selected"><?php echo __( 'Send email immediately',
|
246 |
-
<option value='Cron'><?php echo __( 'Add to cron and send email via cron job',
|
247 |
-
<option value='Disable'><?php echo __( 'Disable email notification',
|
248 |
</select>
|
249 |
<?php do_action('es_after_email_sent_option'); ?>
|
250 |
</td>
|
@@ -253,7 +253,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
253 |
</table>
|
254 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
255 |
<p class="submit">
|
256 |
-
<input type="submit" class="button-primary" value="<?php echo __( 'Save',
|
257 |
</p>
|
258 |
<?php wp_nonce_field('es_form_add'); ?>
|
259 |
</form>
|
30 |
|
31 |
$form['es_note_group'] = isset($_POST['es_note_group']) ? $_POST['es_note_group'] : '';
|
32 |
if ($form['es_note_group'] == '') {
|
33 |
+
$es_errors[] = __( 'Please select subscribers group.', 'email-subscribers' );
|
34 |
$es_error_found = TRUE;
|
35 |
}
|
36 |
|
37 |
$form['es_note_status'] = isset($_POST['es_note_status']) ? $_POST['es_note_status'] : '';
|
38 |
if ($form['es_note_status'] == '') {
|
39 |
+
$es_errors[] = __( 'Please select notification status.', 'email-subscribers' );
|
40 |
$es_error_found = TRUE;
|
41 |
}
|
42 |
|
43 |
$form['es_note_templ'] = isset($_POST['es_note_templ']) ? $_POST['es_note_templ'] : '';
|
44 |
if ($form['es_note_templ'] == '') {
|
45 |
+
$es_errors[] = __( 'Please select notification mail subject. Use templates menu to create new.', 'email-subscribers' );
|
46 |
$es_error_found = TRUE;
|
47 |
}
|
48 |
|
49 |
$es_note_cat = isset($_POST['es_note_cat']) ? $_POST['es_note_cat'] : '';
|
50 |
if ($es_note_cat == '') {
|
51 |
+
$es_errors[] = __( 'Please select post categories.', 'email-subscribers' );
|
52 |
$es_error_found = TRUE;
|
53 |
}
|
54 |
|
68 |
$form['es_note_cat'] = $listcategory;
|
69 |
$action = es_cls_notification::es_notification_ins($form, $action = "insert");
|
70 |
if($action) {
|
71 |
+
$es_success = __( 'Notification successfully created. ', 'email-subscribers' );
|
72 |
}
|
73 |
|
74 |
// Reset the form fields
|
109 |
|
110 |
<div class="wrap">
|
111 |
<h2>
|
112 |
+
<?php echo __( 'Add Notification', 'email-subscribers' ); ?>
|
113 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
114 |
</h2>
|
115 |
<div class="es-form" style="width: 80%;float: left;">
|
116 |
<form name="es_form" method="post" action="#" onsubmit="return _es_submit()">
|
118 |
<tbody>
|
119 |
<tr>
|
120 |
<th scope="row">
|
121 |
+
<label for="tag-link"><?php echo __( 'Subscribers Group to send post notification to', 'email-subscribers' ); ?></label>
|
122 |
</th>
|
123 |
<td>
|
124 |
<select name="es_note_group" id="es_note_group">
|
125 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
126 |
<?php
|
127 |
$groups = array();
|
128 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
140 |
</tr>
|
141 |
<tr>
|
142 |
<th scope="row">
|
143 |
+
<label for="tag-link"><?php echo __( 'Select Notification Email Subject', 'email-subscribers' ); ?>
|
144 |
+
<p class="description"><?php echo __( '(Use templates menu to create new)', 'email-subscribers' ); ?></p>
|
145 |
</label>
|
146 |
</th>
|
147 |
<td>
|
148 |
<select class="es_tmpl_select" name="es_note_templ" id="es_note_templ" onchange="return _es_change(this.options[this.selectedIndex])">
|
149 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
150 |
<?php
|
151 |
$subject = array();
|
152 |
$subject = es_cls_templates::es_template_select_type($type = "Post Notification");
|
166 |
</tr>
|
167 |
<tr>
|
168 |
<th scope="row">
|
169 |
+
<label for="tag-link"><?php echo __( 'Select Post Categories', 'email-subscribers' ); ?></label>
|
170 |
</th>
|
171 |
<td>
|
172 |
<?php
|
194 |
echo "</tr></table>";
|
195 |
?>
|
196 |
<p class="select_all" style="margin-left: 0.7em;">
|
197 |
+
<input type="button" name="CheckAll" class="button add-new-h2" value="<?php echo __( 'Check All', 'email-subscribers' ); ?>" onClick="_es_checkall('es_form', 'es_note_cat[]', true);">
|
198 |
+
<input type="button" name="UnCheckAll" class="button add-new-h2" value="<?php echo __( 'Uncheck All', 'email-subscribers' ); ?>" onClick="_es_checkall('es_form', 'es_note_cat[]', false);">
|
199 |
</p>
|
200 |
</td>
|
201 |
</tr>
|
202 |
<tr>
|
203 |
<th scope="row">
|
204 |
+
<label for="tag-link"><?php echo __( 'Select your Custom Post Type', 'email-subscribers' ); ?>
|
205 |
+
<p class="description"><?php echo __( '(Optional)', 'email-subscribers' ); ?></p>
|
206 |
</label>
|
207 |
</th>
|
208 |
<td>
|
231 |
}
|
232 |
echo "</tr></table>";
|
233 |
} else {
|
234 |
+
echo __( 'No Custom Post Types Available', 'email-subscribers' );
|
235 |
}
|
236 |
?>
|
237 |
</td>
|
238 |
</tr>
|
239 |
<tr>
|
240 |
<th scope="row">
|
241 |
+
<label for="tag-link"><?php echo __( 'Select Notification Status when a new post is published', 'email-subscribers' ); ?></label>
|
242 |
</th>
|
243 |
<td>
|
244 |
<select name="es_note_status" id="es_note_status">
|
245 |
+
<option value='Enable' selected="selected"><?php echo __( 'Send email immediately', 'email-subscribers' ); ?></option>
|
246 |
+
<option value='Cron'><?php echo __( 'Add to cron and send email via cron job', 'email-subscribers' );?></option>
|
247 |
+
<option value='Disable'><?php echo __( 'Disable email notification', 'email-subscribers' ); ?></option>
|
248 |
</select>
|
249 |
<?php do_action('es_after_email_sent_option'); ?>
|
250 |
</td>
|
253 |
</table>
|
254 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
255 |
<p class="submit">
|
256 |
+
<input type="submit" class="button-primary" value="<?php echo __( 'Save', 'email-subscribers' ); ?>" />
|
257 |
</p>
|
258 |
<?php wp_nonce_field('es_form_add'); ?>
|
259 |
</form>
|
notification/notification-edit.php
CHANGED
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
17 |
if ($result != '1') {
|
18 |
?><div class="error fade">
|
19 |
<p><strong>
|
20 |
-
<?php echo __( 'Oops, selected details does not exists.',
|
21 |
</strong></p>
|
22 |
</div><?php
|
23 |
} else {
|
@@ -46,25 +46,25 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
46 |
|
47 |
$form['es_note_group'] = isset($_POST['es_note_group']) ? $_POST['es_note_group'] : '';
|
48 |
if ($form['es_note_group'] == '') {
|
49 |
-
$es_errors[] = __( 'Please select subscribers group',
|
50 |
$es_error_found = TRUE;
|
51 |
}
|
52 |
|
53 |
$form['es_note_status'] = isset($_POST['es_note_status']) ? $_POST['es_note_status'] : '';
|
54 |
if ($form['es_note_status'] == '') {
|
55 |
-
$es_errors[] = __( 'Please select notification status',
|
56 |
$es_error_found = TRUE;
|
57 |
}
|
58 |
|
59 |
$form['es_note_templ'] = isset($_POST['es_note_templ']) ? $_POST['es_note_templ'] : '';
|
60 |
if ($form['es_note_templ'] == '') {
|
61 |
-
$es_errors[] = __( 'Please select notification mail subject. Use templates menu to create new.',
|
62 |
$es_error_found = TRUE;
|
63 |
}
|
64 |
|
65 |
$es_note_cat = isset($_POST['es_note_cat']) ? $_POST['es_note_cat'] : '';
|
66 |
if ($es_note_cat == '') {
|
67 |
-
$es_errors[] = __( 'Please select post categories.',
|
68 |
$es_error_found = TRUE;
|
69 |
}
|
70 |
$form['es_note_id'] = isset($_POST['es_note_id']) ? $_POST['es_note_id'] : '';
|
@@ -86,7 +86,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
86 |
$form['es_note_cat'] = $listcategory;
|
87 |
$action = es_cls_notification::es_notification_ins($form, $action = "update");
|
88 |
if($action == "sus") {
|
89 |
-
$es_success = __( 'Notification successfully updated. ',
|
90 |
}
|
91 |
}
|
92 |
}
|
@@ -119,9 +119,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
119 |
|
120 |
<div class="wrap">
|
121 |
<h2>
|
122 |
-
<?php echo __( 'Edit Notification',
|
123 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-notification&ac=add"><?php echo __( 'Add New',
|
124 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
125 |
</h2>
|
126 |
<div class="es-form" style="width: 80%;float: left;">
|
127 |
<form name="es_form" method="post" action="#" onsubmit="return _es_submit()">
|
@@ -129,11 +129,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
129 |
<tbody>
|
130 |
<tr>
|
131 |
<th scope="row">
|
132 |
-
<label for="tag-link"><?php echo __( 'Subscribers Group to send post notification to',
|
133 |
</th>
|
134 |
<td>
|
135 |
<select name="es_note_group" id="es_note_group">
|
136 |
-
<option value=''><?php echo __( 'Select',
|
137 |
<?php
|
138 |
$thisselected = "";
|
139 |
$groups = array();
|
@@ -160,13 +160,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
160 |
<tr>
|
161 |
<th scope="row">
|
162 |
<label for="tag-link">
|
163 |
-
<?php echo __( 'Select Notification Email Subject',
|
164 |
-
<p class="description"><?php echo __( '(Use templates menu to create new)',
|
165 |
</label>
|
166 |
</th>
|
167 |
<td>
|
168 |
<select class="es_tmpl_select" name="es_note_templ" id="es_note_templ" onchange="return _es_change(this.options[this.selectedIndex])">
|
169 |
-
<option value=''><?php echo __( 'Select',
|
170 |
<?php
|
171 |
$subject = array();
|
172 |
$subject = es_cls_templates::es_template_select_type($type = "Post Notification");
|
@@ -189,7 +189,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
189 |
<tr>
|
190 |
<th scope="row">
|
191 |
<label for="tag-link">
|
192 |
-
<?php echo __( 'Select Post Categories',
|
193 |
</label>
|
194 |
</th>
|
195 |
<td>
|
@@ -224,16 +224,16 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
224 |
echo "</tr></table>";
|
225 |
?>
|
226 |
<p class="select_all" style="margin-left: 0.7em;">
|
227 |
-
<input type="button" name="CheckAll" class="button add-new-h2" value="<?php echo __( 'Check All',
|
228 |
-
<input type="button" name="UnCheckAll" class="button add-new-h2" value="<?php echo __( 'Uncheck All',
|
229 |
</p>
|
230 |
</td>
|
231 |
</tr>
|
232 |
<tr>
|
233 |
<th scope="row">
|
234 |
<label for="tag-link">
|
235 |
-
<?php echo __( 'Select your Custom Post Type',
|
236 |
-
<p class="description"><?php echo __( '(Optional)',
|
237 |
</label>
|
238 |
</th>
|
239 |
<td>
|
@@ -267,20 +267,20 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
267 |
}
|
268 |
echo "</tr></table>";
|
269 |
} else {
|
270 |
-
echo __( 'No Custom Post Types Available',
|
271 |
}
|
272 |
?>
|
273 |
</td>
|
274 |
</tr>
|
275 |
<tr>
|
276 |
<th scope="row">
|
277 |
-
<label for="tag-link"><?php echo __( 'Select Notification Status when a new post is published',
|
278 |
</th>
|
279 |
<td>
|
280 |
<select name="es_note_status" id="es_note_status">
|
281 |
-
<option value='Enable' <?php if($form['es_note_status']=='Enable') { echo 'selected="selected"' ; } ?>><?php echo __( 'Send email immediately',
|
282 |
-
<option value='Cron' <?php if($form['es_note_status']=='Cron') { echo 'selected="selected"' ; } ?>><?php echo __( 'Add to cron and send email via cron job',
|
283 |
-
<option value='Disable' <?php if($form['es_note_status']=='Disable') { echo 'selected="selected"' ; } ?>><?php echo __( 'Disable email notification',
|
284 |
</select>
|
285 |
<?php do_action('es_after_email_sent_option'); ?>
|
286 |
</td>
|
@@ -290,7 +290,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
290 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
291 |
<input type="hidden" name="es_note_id" id="es_note_id" value="<?php echo $form['es_note_id']; ?>"/>
|
292 |
<p class="submit">
|
293 |
-
<input type="submit" class="button-primary" value="<?php echo __( 'Save',
|
294 |
</p>
|
295 |
<?php wp_nonce_field('es_form_edit'); ?>
|
296 |
</form>
|
17 |
if ($result != '1') {
|
18 |
?><div class="error fade">
|
19 |
<p><strong>
|
20 |
+
<?php echo __( 'Oops, selected details does not exists.', 'email-subscribers' ); ?>
|
21 |
</strong></p>
|
22 |
</div><?php
|
23 |
} else {
|
46 |
|
47 |
$form['es_note_group'] = isset($_POST['es_note_group']) ? $_POST['es_note_group'] : '';
|
48 |
if ($form['es_note_group'] == '') {
|
49 |
+
$es_errors[] = __( 'Please select subscribers group', 'email-subscribers' );
|
50 |
$es_error_found = TRUE;
|
51 |
}
|
52 |
|
53 |
$form['es_note_status'] = isset($_POST['es_note_status']) ? $_POST['es_note_status'] : '';
|
54 |
if ($form['es_note_status'] == '') {
|
55 |
+
$es_errors[] = __( 'Please select notification status', 'email-subscribers' );
|
56 |
$es_error_found = TRUE;
|
57 |
}
|
58 |
|
59 |
$form['es_note_templ'] = isset($_POST['es_note_templ']) ? $_POST['es_note_templ'] : '';
|
60 |
if ($form['es_note_templ'] == '') {
|
61 |
+
$es_errors[] = __( 'Please select notification mail subject. Use templates menu to create new.', 'email-subscribers' );
|
62 |
$es_error_found = TRUE;
|
63 |
}
|
64 |
|
65 |
$es_note_cat = isset($_POST['es_note_cat']) ? $_POST['es_note_cat'] : '';
|
66 |
if ($es_note_cat == '') {
|
67 |
+
$es_errors[] = __( 'Please select post categories.', 'email-subscribers' );
|
68 |
$es_error_found = TRUE;
|
69 |
}
|
70 |
$form['es_note_id'] = isset($_POST['es_note_id']) ? $_POST['es_note_id'] : '';
|
86 |
$form['es_note_cat'] = $listcategory;
|
87 |
$action = es_cls_notification::es_notification_ins($form, $action = "update");
|
88 |
if($action == "sus") {
|
89 |
+
$es_success = __( 'Notification successfully updated. ', 'email-subscribers' );
|
90 |
}
|
91 |
}
|
92 |
}
|
119 |
|
120 |
<div class="wrap">
|
121 |
<h2>
|
122 |
+
<?php echo __( 'Edit Notification', 'email-subscribers' ); ?>
|
123 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-notification&ac=add"><?php echo __( 'Add New', 'email-subscribers' ); ?></a>
|
124 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
125 |
</h2>
|
126 |
<div class="es-form" style="width: 80%;float: left;">
|
127 |
<form name="es_form" method="post" action="#" onsubmit="return _es_submit()">
|
129 |
<tbody>
|
130 |
<tr>
|
131 |
<th scope="row">
|
132 |
+
<label for="tag-link"><?php echo __( 'Subscribers Group to send post notification to', 'email-subscribers' ); ?></label>
|
133 |
</th>
|
134 |
<td>
|
135 |
<select name="es_note_group" id="es_note_group">
|
136 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
137 |
<?php
|
138 |
$thisselected = "";
|
139 |
$groups = array();
|
160 |
<tr>
|
161 |
<th scope="row">
|
162 |
<label for="tag-link">
|
163 |
+
<?php echo __( 'Select Notification Email Subject', 'email-subscribers' ); ?>
|
164 |
+
<p class="description"><?php echo __( '(Use templates menu to create new)', 'email-subscribers' ); ?></p>
|
165 |
</label>
|
166 |
</th>
|
167 |
<td>
|
168 |
<select class="es_tmpl_select" name="es_note_templ" id="es_note_templ" onchange="return _es_change(this.options[this.selectedIndex])">
|
169 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
170 |
<?php
|
171 |
$subject = array();
|
172 |
$subject = es_cls_templates::es_template_select_type($type = "Post Notification");
|
189 |
<tr>
|
190 |
<th scope="row">
|
191 |
<label for="tag-link">
|
192 |
+
<?php echo __( 'Select Post Categories', 'email-subscribers' ); ?>
|
193 |
</label>
|
194 |
</th>
|
195 |
<td>
|
224 |
echo "</tr></table>";
|
225 |
?>
|
226 |
<p class="select_all" style="margin-left: 0.7em;">
|
227 |
+
<input type="button" name="CheckAll" class="button add-new-h2" value="<?php echo __( 'Check All', 'email-subscribers' ); ?>" onClick="_es_checkall('es_form', 'es_note_cat[]', true);">
|
228 |
+
<input type="button" name="UnCheckAll" class="button add-new-h2" value="<?php echo __( 'Uncheck All', 'email-subscribers' ); ?>" onClick="_es_checkall('es_form', 'es_note_cat[]', false);">
|
229 |
</p>
|
230 |
</td>
|
231 |
</tr>
|
232 |
<tr>
|
233 |
<th scope="row">
|
234 |
<label for="tag-link">
|
235 |
+
<?php echo __( 'Select your Custom Post Type', 'email-subscribers' ); ?>
|
236 |
+
<p class="description"><?php echo __( '(Optional)', 'email-subscribers' ); ?></p>
|
237 |
</label>
|
238 |
</th>
|
239 |
<td>
|
267 |
}
|
268 |
echo "</tr></table>";
|
269 |
} else {
|
270 |
+
echo __( 'No Custom Post Types Available', 'email-subscribers' );
|
271 |
}
|
272 |
?>
|
273 |
</td>
|
274 |
</tr>
|
275 |
<tr>
|
276 |
<th scope="row">
|
277 |
+
<label for="tag-link"><?php echo __( 'Select Notification Status when a new post is published', 'email-subscribers' ); ?></label>
|
278 |
</th>
|
279 |
<td>
|
280 |
<select name="es_note_status" id="es_note_status">
|
281 |
+
<option value='Enable' <?php if($form['es_note_status']=='Enable') { echo 'selected="selected"' ; } ?>><?php echo __( 'Send email immediately', 'email-subscribers' ); ?></option>
|
282 |
+
<option value='Cron' <?php if($form['es_note_status']=='Cron') { echo 'selected="selected"' ; } ?>><?php echo __( 'Add to cron and send email via cron job', 'email-subscribers' ); ?></option>
|
283 |
+
<option value='Disable' <?php if($form['es_note_status']=='Disable') { echo 'selected="selected"' ; } ?>><?php echo __( 'Disable email notification', 'email-subscribers' ); ?></option>
|
284 |
</select>
|
285 |
<?php do_action('es_after_email_sent_option'); ?>
|
286 |
</td>
|
290 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
291 |
<input type="hidden" name="es_note_id" id="es_note_id" value="<?php echo $form['es_note_id']; ?>"/>
|
292 |
<p class="submit">
|
293 |
+
<input type="submit" class="button-primary" value="<?php echo __( 'Save', 'email-subscribers' ); ?>" />
|
294 |
</p>
|
295 |
<?php wp_nonce_field('es_form_edit'); ?>
|
296 |
</form>
|
notification/notification-show.php
CHANGED
@@ -18,7 +18,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
18 |
if ($result != '1') {
|
19 |
?><div class="error fade">
|
20 |
<p><strong>
|
21 |
-
<?php echo __( 'Oops, selected details does not exists.',
|
22 |
</strong></p>
|
23 |
</div><?php
|
24 |
} else {
|
@@ -32,7 +32,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
32 |
|
33 |
// Set success message
|
34 |
$es_success_msg = TRUE;
|
35 |
-
$es_success = __( 'Selected record deleted.',
|
36 |
}
|
37 |
}
|
38 |
|
@@ -49,12 +49,12 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
49 |
|
50 |
<div class="wrap">
|
51 |
<h2>
|
52 |
-
<?php echo __( 'Post Notifications',
|
53 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-notification&ac=add"><?php echo __( 'Add New',
|
54 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
55 |
</h2>
|
56 |
<p class="description" style="margin-bottom:1em;">
|
57 |
-
<?php echo __( 'Use this to setup and send notification emails to your subscribers when a new post is published in your blog.',
|
58 |
</p>
|
59 |
<div class="tool-box">
|
60 |
<?php
|
@@ -65,18 +65,18 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
65 |
<table width="100%" class="widefat" id="straymanage">
|
66 |
<thead>
|
67 |
<tr>
|
68 |
-
<th scope="col"><?php echo __( 'Email Subject',
|
69 |
-
<th scope="col"><?php echo __( 'Subscribers Group',
|
70 |
-
<th scope="col"><?php echo __( 'Post Categories / Custom Post Types',
|
71 |
-
<th scope="col"><?php echo __( 'Notification Status',
|
72 |
</tr>
|
73 |
</thead>
|
74 |
<tfoot>
|
75 |
<tr>
|
76 |
-
<th scope="col"><?php echo __( 'Email Subject',
|
77 |
-
<th scope="col"><?php echo __( 'Subscribers Group',
|
78 |
-
<th scope="col"><?php echo __( 'Post Categories / Custom Post Types',
|
79 |
-
<th scope="col"><?php echo __( 'Notification Status',
|
80 |
</tr>
|
81 |
</tfoot>
|
82 |
<tbody>
|
@@ -97,10 +97,10 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
97 |
?>
|
98 |
<div class="row-actions">
|
99 |
<span class="edit">
|
100 |
-
<a title="Edit" href="<?php echo ES_ADMINURL; ?>?page=es-notification&ac=edit&did=<?php echo $data['es_note_id']; ?>"><?php echo __( 'Edit',
|
101 |
</span>
|
102 |
<span class="trash">
|
103 |
-
| <a onClick="javascript:_es_delete('<?php echo $data['es_note_id']; ?>')" href="javascript:void(0);"><?php echo __( 'Delete',
|
104 |
</span>
|
105 |
</div>
|
106 |
</td>
|
@@ -127,9 +127,9 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
127 |
<td>
|
128 |
<?php
|
129 |
if ($data['es_note_status'] == "Enable") {
|
130 |
-
echo __( 'Send email immediately',
|
131 |
} elseif ($data['es_note_status'] == "Cron") {
|
132 |
-
echo __( 'Add to cron and send email via cron job',
|
133 |
} else {
|
134 |
echo es_cls_common::es_disp_status($data['es_note_status']);
|
135 |
}
|
@@ -140,7 +140,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
140 |
$i = $i+1;
|
141 |
}
|
142 |
} else {
|
143 |
-
?><tr><td colspan="4" align="center"><?php echo __( 'No records available.',
|
144 |
}
|
145 |
?>
|
146 |
</tbody>
|
18 |
if ($result != '1') {
|
19 |
?><div class="error fade">
|
20 |
<p><strong>
|
21 |
+
<?php echo __( 'Oops, selected details does not exists.', 'email-subscribers' ); ?>
|
22 |
</strong></p>
|
23 |
</div><?php
|
24 |
} else {
|
32 |
|
33 |
// Set success message
|
34 |
$es_success_msg = TRUE;
|
35 |
+
$es_success = __( 'Selected record deleted.', 'email-subscribers' );
|
36 |
}
|
37 |
}
|
38 |
|
49 |
|
50 |
<div class="wrap">
|
51 |
<h2>
|
52 |
+
<?php echo __( 'Post Notifications', 'email-subscribers' ); ?>
|
53 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-notification&ac=add"><?php echo __( 'Add New', 'email-subscribers' ); ?></a>
|
54 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
55 |
</h2>
|
56 |
<p class="description" style="margin-bottom:1em;">
|
57 |
+
<?php echo __( 'Use this to setup and send notification emails to your subscribers when a new post is published in your blog.', 'email-subscribers' ); ?>
|
58 |
</p>
|
59 |
<div class="tool-box">
|
60 |
<?php
|
65 |
<table width="100%" class="widefat" id="straymanage">
|
66 |
<thead>
|
67 |
<tr>
|
68 |
+
<th scope="col"><?php echo __( 'Email Subject', 'email-subscribers' ); ?></th>
|
69 |
+
<th scope="col"><?php echo __( 'Subscribers Group', 'email-subscribers' ); ?></th>
|
70 |
+
<th scope="col"><?php echo __( 'Post Categories / Custom Post Types', 'email-subscribers' ); ?></th>
|
71 |
+
<th scope="col"><?php echo __( 'Notification Status', 'email-subscribers' ); ?></th>
|
72 |
</tr>
|
73 |
</thead>
|
74 |
<tfoot>
|
75 |
<tr>
|
76 |
+
<th scope="col"><?php echo __( 'Email Subject', 'email-subscribers' ); ?></th>
|
77 |
+
<th scope="col"><?php echo __( 'Subscribers Group', 'email-subscribers' ); ?></th>
|
78 |
+
<th scope="col"><?php echo __( 'Post Categories / Custom Post Types', 'email-subscribers' ); ?></th>
|
79 |
+
<th scope="col"><?php echo __( 'Notification Status', 'email-subscribers' ); ?></th>
|
80 |
</tr>
|
81 |
</tfoot>
|
82 |
<tbody>
|
97 |
?>
|
98 |
<div class="row-actions">
|
99 |
<span class="edit">
|
100 |
+
<a title="Edit" href="<?php echo ES_ADMINURL; ?>?page=es-notification&ac=edit&did=<?php echo $data['es_note_id']; ?>"><?php echo __( 'Edit', 'email-subscribers' ); ?></a>
|
101 |
</span>
|
102 |
<span class="trash">
|
103 |
+
| <a onClick="javascript:_es_delete('<?php echo $data['es_note_id']; ?>')" href="javascript:void(0);"><?php echo __( 'Delete', 'email-subscribers' ); ?></a>
|
104 |
</span>
|
105 |
</div>
|
106 |
</td>
|
127 |
<td>
|
128 |
<?php
|
129 |
if ($data['es_note_status'] == "Enable") {
|
130 |
+
echo __( 'Send email immediately', 'email-subscribers' );
|
131 |
} elseif ($data['es_note_status'] == "Cron") {
|
132 |
+
echo __( 'Add to cron and send email via cron job', 'email-subscribers' );
|
133 |
} else {
|
134 |
echo es_cls_common::es_disp_status($data['es_note_status']);
|
135 |
}
|
140 |
$i = $i+1;
|
141 |
}
|
142 |
} else {
|
143 |
+
?><tr><td colspan="4" align="center"><?php echo __( 'No records available.', 'email-subscribers' ); ?></td></tr><?php
|
144 |
}
|
145 |
?>
|
146 |
</tbody>
|
pricing/pricing.php
CHANGED
@@ -174,38 +174,38 @@ ul.checkmark li:after {
|
|
174 |
</style>
|
175 |
|
176 |
<div class="wrap about-wrap es">
|
177 |
-
<div class="es_main_heading"><?php _e('Go a notch higher',
|
178 |
-
<div class="es_pro_heading"><?php _e('Get the Email Subscribers Pro / Max Plugin at',
|
179 |
<div class="row">
|
180 |
<div class="es_featured_column_container">
|
181 |
<div class="column column_one_third es_monthly">
|
182 |
<div class="es_plan"><h4>Pro - Monthly</h4> (Single Site)</div>
|
183 |
-
<div class="es_monthly_price"><b>$19.99/</b><?php _e('month',
|
184 |
-
<a href="https://www.icegram.com/?buy-now=39043&qty=1&coupon=&with-cart=1&page=5&utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_monthly" target="_blank" rel="noopener" class="es_button"><?php _e('Get Pro Monthly',
|
185 |
</div>
|
186 |
<div class="column column_one_third">
|
187 |
<div class="es_plan"><h4>Pro - Annual</h4> (Single Site)</div>
|
188 |
-
<div class="es_yearly_price"><strike>$199</strike></b> <b>$129/</b><?php _e('year',
|
189 |
-
<a href="https://www.icegram.com/?buy-now=39944&qty=1&coupon=&with-cart=1&page=5utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_yearly" target="_blank" rel="noopener" class="es_button"><?php _e('Get Pro Annual',
|
190 |
</div>
|
191 |
<div class="column column_one_third last es_save_price es_max">
|
192 |
<div class="es_plan"><h4>Max - Multi Site, Annual</h4> (3 Sites)</div>
|
193 |
-
<div class="es_yearly_price"><strike>$597</strike></b> <b>$177/</b><?php _e('year',
|
194 |
-
<a href="https://www.icegram.com/?buy-now=404335&qty=1&coupon=&with-cart=1&page=5utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_yearly" target="_blank" rel="noopener" class="es_button"><?php _e('Get Max Annual',
|
195 |
</div>
|
196 |
</div>
|
197 |
</div>
|
198 |
-
<div class="es_pro_feature"><?php _e('Get more with Email Subscribers Pro / Max',
|
199 |
<div class="row">
|
200 |
-
<div class="pricing__headline"><?php _e('All features of Email Subscribers free plugin + everything below:',
|
201 |
<div class="es_featured_column_container">
|
202 |
<div class="column column_one_half">
|
203 |
-
<h4><strong><?php _e('Protect your list from bot attacks',
|
204 |
-
<p style="text-align: left;"><?php _e('Use ',
|
205 |
</div>
|
206 |
<div class="column column_one_half last">
|
207 |
-
<h4><strong><?php _e('Check email status & increase email success rate',
|
208 |
-
<p style="text-align: left;"><?php _e('Double check the status of the emails addresses and increase ',
|
209 |
</div>
|
210 |
</div>
|
211 |
</div>
|
@@ -213,24 +213,24 @@ ul.checkmark li:after {
|
|
213 |
<div class="row">
|
214 |
<div class="es_featured_column_container">
|
215 |
<div class="column column_one_half">
|
216 |
-
<h4><strong><?php _e('Fullproof email deliverability',
|
217 |
-
<p style="text-align: left;"><?php _e('Reduce the risk of emails ending in trash or spam. Increase email deliverability by double checking emails for their ',
|
218 |
</div>
|
219 |
<div class="column column_one_half last">
|
220 |
-
<h4><strong><?php _e('Track email leads in Google',
|
221 |
-
<p style="text-align: left;"><?php _e('Insert ',
|
222 |
</div>
|
223 |
</div>
|
224 |
</div>
|
225 |
<div class="row">
|
226 |
<div class="es_featured_column_container">
|
227 |
<div class="column column_one_half">
|
228 |
-
<h4><strong><?php _e('Save time, use readymade email templates',
|
229 |
-
<p style="text-align: left;"><?php _e('Don’t waste time on HTML or CSS. Pick one from the many <strong>ready to use elegant templates</strong> to send your next email campaign.',
|
230 |
</div>
|
231 |
<div class="column column_one_half last">
|
232 |
-
<h4><strong><?php _e('Customize confirmation and unsubscribe page',
|
233 |
-
<p style="text-align: left;"><?php _e('Communicate with subscribers. Redirect them to beautifully designed <strong>confirmation and unsubscribe pages</strong> on your website.',
|
234 |
</div>
|
235 |
</div>
|
236 |
</div>
|
174 |
</style>
|
175 |
|
176 |
<div class="wrap about-wrap es">
|
177 |
+
<div class="es_main_heading"><?php _e('Go a notch higher', 'email-subscribers'); ?></div>
|
178 |
+
<div class="es_pro_heading"><?php _e('Get the Email Subscribers Pro / Max Plugin at', 'email-subscribers'); ?></div>
|
179 |
<div class="row">
|
180 |
<div class="es_featured_column_container">
|
181 |
<div class="column column_one_third es_monthly">
|
182 |
<div class="es_plan"><h4>Pro - Monthly</h4> (Single Site)</div>
|
183 |
+
<div class="es_monthly_price"><b>$19.99/</b><?php _e('month', 'email-subscribers'); ?></div>
|
184 |
+
<a href="https://www.icegram.com/?buy-now=39043&qty=1&coupon=&with-cart=1&page=5&utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_monthly" target="_blank" rel="noopener" class="es_button"><?php _e('Get Pro Monthly', 'email-subscribers'); ?></a>
|
185 |
</div>
|
186 |
<div class="column column_one_third">
|
187 |
<div class="es_plan"><h4>Pro - Annual</h4> (Single Site)</div>
|
188 |
+
<div class="es_yearly_price"><strike>$199</strike></b> <b>$129/</b><?php _e('year', 'email-subscribers'); ?></div>
|
189 |
+
<a href="https://www.icegram.com/?buy-now=39944&qty=1&coupon=&with-cart=1&page=5utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_yearly" target="_blank" rel="noopener" class="es_button"><?php _e('Get Pro Annual', 'email-subscribers'); ?></a>
|
190 |
</div>
|
191 |
<div class="column column_one_third last es_save_price es_max">
|
192 |
<div class="es_plan"><h4>Max - Multi Site, Annual</h4> (3 Sites)</div>
|
193 |
+
<div class="es_yearly_price"><strike>$597</strike></b> <b>$177/</b><?php _e('year', 'email-subscribers'); ?></div>
|
194 |
+
<a href="https://www.icegram.com/?buy-now=404335&qty=1&coupon=&with-cart=1&page=5utm_source=es&utm_medium=in_app_pricing&utm_campaign=es_yearly" target="_blank" rel="noopener" class="es_button"><?php _e('Get Max Annual', 'email-subscribers'); ?></a>
|
195 |
</div>
|
196 |
</div>
|
197 |
</div>
|
198 |
+
<div class="es_pro_feature"><?php _e('Get more with Email Subscribers Pro / Max', 'email-subscribers'); ?></div>
|
199 |
<div class="row">
|
200 |
+
<div class="pricing__headline"><?php _e('All features of Email Subscribers free plugin + everything below:', 'email-subscribers'); ?></div>
|
201 |
<div class="es_featured_column_container">
|
202 |
<div class="column column_one_half">
|
203 |
+
<h4><strong><?php _e('Protect your list from bot attacks', 'email-subscribers'); ?></strong></h4>
|
204 |
+
<p style="text-align: left;"><?php _e('Use ', 'email-subscribers'); ?><strong><?php _e('captcha', 'email-subscribers'); ?></strong> <?php _e('to protect your email list from bots. The simple maths captcha helps identifying bots from humans and eliminates spam signups.', 'email-subscribers'); ?></p>
|
205 |
</div>
|
206 |
<div class="column column_one_half last">
|
207 |
+
<h4><strong><?php _e('Check email status & increase email success rate', 'email-subscribers'); ?></strong></h4>
|
208 |
+
<p style="text-align: left;"><?php _e('Double check the status of the emails addresses and increase ', 'email-subscribers'); ?><strong><?php _e('email success rate', 'email-subscribers'); ?></strong> <?php _e('of your email campaign. ', 'email-subscribers'); ?></p>
|
209 |
</div>
|
210 |
</div>
|
211 |
</div>
|
213 |
<div class="row">
|
214 |
<div class="es_featured_column_container">
|
215 |
<div class="column column_one_half">
|
216 |
+
<h4><strong><?php _e('Fullproof email deliverability', 'email-subscribers'); ?></strong></h4>
|
217 |
+
<p style="text-align: left;"><?php _e('Reduce the risk of emails ending in trash or spam. Increase email deliverability by double checking emails for their ', 'email-subscribers'); ?><strong><?php _e('spam score', 'email-subscribers'); ?></strong> <?php _e('before hitting send.', 'email-subscribers'); ?></p>
|
218 |
</div>
|
219 |
<div class="column column_one_half last">
|
220 |
+
<h4><strong><?php _e('Track email leads in Google', 'email-subscribers'); ?></strong></h4>
|
221 |
+
<p style="text-align: left;"><?php _e('Insert ', 'email-subscribers'); ?><strong><?php _e('UTM tracking', 'email-subscribers'); ?></strong> <?php _e('in all your email CTA’s and track the effectiveness of your emails directly within Google. Know which/ how many leads landed up from your emails and tweak emails for better performance.', 'email-subscribers'); ?></p>
|
222 |
</div>
|
223 |
</div>
|
224 |
</div>
|
225 |
<div class="row">
|
226 |
<div class="es_featured_column_container">
|
227 |
<div class="column column_one_half">
|
228 |
+
<h4><strong><?php _e('Save time, use readymade email templates', 'email-subscribers'); ?></strong></h4>
|
229 |
+
<p style="text-align: left;"><?php _e('Don’t waste time on HTML or CSS. Pick one from the many <strong>ready to use elegant templates</strong> to send your next email campaign.', 'email-subscribers'); ?></p>
|
230 |
</div>
|
231 |
<div class="column column_one_half last">
|
232 |
+
<h4><strong><?php _e('Customize confirmation and unsubscribe page', 'email-subscribers'); ?></strong></h4>
|
233 |
+
<p style="text-align: left;"><?php _e('Communicate with subscribers. Redirect them to beautifully designed <strong>confirmation and unsubscribe pages</strong> on your website.', 'email-subscribers'); ?></p>
|
234 |
</div>
|
235 |
</div>
|
236 |
</div>
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Author URI: https://www.icegram.com/
|
|
5 |
Tags: subscription, newsletter, email marketing, post notification, email newsletter form, email signup, email widget, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
|
6 |
Requires at least: 3.9
|
7 |
Tested up to: 4.9.8
|
8 |
-
Stable tag: 3.5.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses
|
11 |
|
@@ -342,6 +342,11 @@ Use our free plugin [Email Subscribers - Group Selector](https://wordpress.org/p
|
|
342 |
|
343 |
== Changelog ==
|
344 |
|
|
|
|
|
|
|
|
|
|
|
345 |
= 3.5.11 (24.09.2018) =
|
346 |
|
347 |
* Fix: Send test newsletter to "Test" group on update
|
5 |
Tags: subscription, newsletter, email marketing, post notification, email newsletter form, email signup, email widget, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
|
6 |
Requires at least: 3.9
|
7 |
Tested up to: 4.9.8
|
8 |
+
Stable tag: 3.5.12
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses
|
11 |
|
342 |
|
343 |
== Changelog ==
|
344 |
|
345 |
+
= 3.5.12 (28.09.2018) =
|
346 |
+
|
347 |
+
* Fix: Invalid unsubscribe link
|
348 |
+
* Update: Use string instead of constant for Text Domain.
|
349 |
+
|
350 |
= 3.5.11 (24.09.2018) =
|
351 |
|
352 |
* Fix: Send test newsletter to "Test" group on update
|
sendmail/sendmail.php
CHANGED
@@ -15,7 +15,7 @@ if ($es_c_email_subscribers_ver != "2.9") {
|
|
15 |
<div class="error fade">
|
16 |
<p>
|
17 |
Note: You have recently upgraded the plugin and your tables are not sync.
|
18 |
-
Please <a title="Sync plugin tables." href="<?php echo ES_ADMINURL; ?>?page=es-settings&ac=sync"><?php echo __( 'Click Here',
|
19 |
This is mandatory and it will not affect your data.
|
20 |
</p>
|
21 |
</div>
|
@@ -37,36 +37,36 @@ if ($sendmailsubmit == 'yes') {
|
|
37 |
|
38 |
$form['es_templ_heading'] = isset($_POST['es_templ_heading']) ? $_POST['es_templ_heading'] : '';
|
39 |
if ( $form['es_templ_heading'] == '' ) {
|
40 |
-
$es_errors[] = __( 'Please select your mail subject.',
|
41 |
$es_error_found = TRUE;
|
42 |
}
|
43 |
|
44 |
$form['es_sent_type'] = isset($_POST['es_sent_type']) ? $_POST['es_sent_type'] : '';
|
45 |
if ( $form['es_sent_type'] == '' ) {
|
46 |
-
$es_errors[] = __( 'Please select your mail type.',
|
47 |
$es_error_found = TRUE;
|
48 |
}
|
49 |
|
50 |
$form['es_email_group'] = isset($_POST['es_email_group']) ? $_POST['es_email_group'] : '';
|
51 |
if( $form['es_email_group'] == '' ) {
|
52 |
-
$es_errors[] = __( 'Please select your group.',
|
53 |
$es_error_found = TRUE;
|
54 |
}
|
55 |
|
56 |
if ($es_error_found == FALSE) {
|
57 |
es_cls_sendmail::es_prepare_newsletter_manual( $es_templ_heading, $es_sent_type, $es_email_group );
|
58 |
$es_success_msg = TRUE;
|
59 |
-
$es_success = __( 'Email sent successfully. ',
|
60 |
if ($es_success_msg == TRUE) {
|
61 |
?><div class="notice notice-success is-dismissible">
|
62 |
<p><strong>
|
63 |
-
<?php echo $es_success; ?><a href="<?php echo ES_ADMINURL; ?>?page=es-sentmail"><?php echo __( 'Click here to check Statistics',
|
64 |
</strong></p>
|
65 |
</div><?php
|
66 |
} else {
|
67 |
?><div class="error fade">
|
68 |
<p><strong>
|
69 |
-
<?php echo __( 'Oops.. We are getting some error. mail not sending.',
|
70 |
</strong></p>
|
71 |
</div><?php
|
72 |
}
|
@@ -90,11 +90,11 @@ if ($es_error_found == TRUE && isset($es_errors[0]) == TRUE) {
|
|
90 |
|
91 |
<div class="wrap">
|
92 |
<h2>
|
93 |
-
<?php echo __( 'Newsletters',
|
94 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
95 |
</h2>
|
96 |
<p class="description">
|
97 |
-
<?php echo __( 'Use this to send newsletter emails to your subscribers.',
|
98 |
</p>
|
99 |
<div class="es-form" style="width: 80%;float: left;">
|
100 |
<form name="es_form" method="post" action="#" onsubmit="return _es_submit()">
|
@@ -103,12 +103,12 @@ if ($es_error_found == TRUE && isset($es_errors[0]) == TRUE) {
|
|
103 |
<tr>
|
104 |
<th scope="row">
|
105 |
<label for="tag-image">
|
106 |
-
<?php echo __( 'Select Email Subject from available list',
|
107 |
</label>
|
108 |
</th>
|
109 |
<td>
|
110 |
<select class="es_tmpl_select" name="es_templ_heading" id="es_templ_heading" onchange="return _es_change(this.options[this.selectedIndex])">
|
111 |
-
<option value=''><?php echo __( 'Select',
|
112 |
<?php
|
113 |
$subject = array();
|
114 |
$subject = es_cls_templates::es_template_select_type($type = "Newsletter");
|
@@ -131,14 +131,14 @@ if ($es_error_found == TRUE && isset($es_errors[0]) == TRUE) {
|
|
131 |
<tr>
|
132 |
<th scope="row">
|
133 |
<label for="tag-image">
|
134 |
-
<?php echo __( 'Select Email Type',
|
135 |
</label>
|
136 |
</th>
|
137 |
<td>
|
138 |
<select name="es_sent_type" id="es_sent_type">
|
139 |
-
<option value=''><?php echo __( 'Select',
|
140 |
-
<option value='Immediately' <?php if($es_sent_type == 'Immediately') { echo "selected='selected'" ; } ?>><?php echo __( 'Send email immediately',
|
141 |
-
<option value='Cron' <?php if($es_sent_type == 'Cron') { echo "selected='selected'" ; } ?>><?php echo __( 'Send email via cron job',
|
142 |
</select>
|
143 |
<?php do_action('es_after_email_sent_option'); ?>
|
144 |
</td>
|
@@ -146,12 +146,12 @@ if ($es_error_found == TRUE && isset($es_errors[0]) == TRUE) {
|
|
146 |
<tr>
|
147 |
<th scope="row">
|
148 |
<label for="tag-image">
|
149 |
-
<?php echo __( 'Select Subscribers group to Send Email',
|
150 |
</label>
|
151 |
</th>
|
152 |
<td>
|
153 |
<select name="es_email_group" id="es_email_group" onChange="_es_mailgroup(this.options[this.selectedIndex].value)">
|
154 |
-
<option value=''><?php echo __( 'Select',
|
155 |
<?php
|
156 |
$groups = array();
|
157 |
$thisselected = "";
|
@@ -178,12 +178,12 @@ if ($es_error_found == TRUE && isset($es_errors[0]) == TRUE) {
|
|
178 |
$subscribers_count = array();
|
179 |
$subscribers_count = es_cls_dbquery::es_subscriber_count_in_group($es_email_group);
|
180 |
if( $subscribers_count == '0' ) {
|
181 |
-
echo __( 'Recipients : 0 ',
|
182 |
} else {
|
183 |
-
echo sprintf(__( 'Recipients : %s',
|
184 |
}
|
185 |
if( $subscribers_count > '100' && $es_sent_type == 'Immediately' ) {
|
186 |
-
echo __( '<br><br><strong>Your Recipients count is above 100.<br>We strongly recommend that you change above Mail Type to Cron and Send Mail via Cron Job.</strong><br>Click on Help for more information.',
|
187 |
}
|
188 |
?>
|
189 |
</td>
|
@@ -195,12 +195,12 @@ if ($es_error_found == TRUE && isset($es_errors[0]) == TRUE) {
|
|
195 |
<input type="hidden" name="sendmailsubmit" id="sendmailsubmit" value=""/>
|
196 |
<input type="hidden" name="wp_create_nonce" id="wp_create_nonce" value="<?php echo $nonce; ?>"/>
|
197 |
<?php if( $subscribers_count != 0 ) { ?>
|
198 |
-
<input type="submit" name="Submit" class="send button-primary" style="width:160px;" value="<?php echo __( 'Send Email',
|
199 |
<?php } else { ?>
|
200 |
-
<input type="submit" name="Submit" disabled="disabled" class="send button add-new-h2" style="width:160px;" value="<?php echo __( 'Send Email',
|
201 |
<?php } ?>
|
202 |
<?php wp_nonce_field('es_form_submit'); ?>
|
203 |
-
<input type="button" class="button-primary" onclick="_es_redirect()" value="<?php echo __( 'Reset',
|
204 |
<?php do_action('es_after_reset_button_newsletter'); ?>
|
205 |
</form>
|
206 |
</div>
|
15 |
<div class="error fade">
|
16 |
<p>
|
17 |
Note: You have recently upgraded the plugin and your tables are not sync.
|
18 |
+
Please <a title="Sync plugin tables." href="<?php echo ES_ADMINURL; ?>?page=es-settings&ac=sync"><?php echo __( 'Click Here', 'email-subscribers' ); ?></a> to sync the table.
|
19 |
This is mandatory and it will not affect your data.
|
20 |
</p>
|
21 |
</div>
|
37 |
|
38 |
$form['es_templ_heading'] = isset($_POST['es_templ_heading']) ? $_POST['es_templ_heading'] : '';
|
39 |
if ( $form['es_templ_heading'] == '' ) {
|
40 |
+
$es_errors[] = __( 'Please select your mail subject.', 'email-subscribers' );
|
41 |
$es_error_found = TRUE;
|
42 |
}
|
43 |
|
44 |
$form['es_sent_type'] = isset($_POST['es_sent_type']) ? $_POST['es_sent_type'] : '';
|
45 |
if ( $form['es_sent_type'] == '' ) {
|
46 |
+
$es_errors[] = __( 'Please select your mail type.', 'email-subscribers' );
|
47 |
$es_error_found = TRUE;
|
48 |
}
|
49 |
|
50 |
$form['es_email_group'] = isset($_POST['es_email_group']) ? $_POST['es_email_group'] : '';
|
51 |
if( $form['es_email_group'] == '' ) {
|
52 |
+
$es_errors[] = __( 'Please select your group.', 'email-subscribers' );
|
53 |
$es_error_found = TRUE;
|
54 |
}
|
55 |
|
56 |
if ($es_error_found == FALSE) {
|
57 |
es_cls_sendmail::es_prepare_newsletter_manual( $es_templ_heading, $es_sent_type, $es_email_group );
|
58 |
$es_success_msg = TRUE;
|
59 |
+
$es_success = __( 'Email sent successfully. ', 'email-subscribers' );
|
60 |
if ($es_success_msg == TRUE) {
|
61 |
?><div class="notice notice-success is-dismissible">
|
62 |
<p><strong>
|
63 |
+
<?php echo $es_success; ?><a href="<?php echo ES_ADMINURL; ?>?page=es-sentmail"><?php echo __( 'Click here to check Statistics', 'email-subscribers' ); ?></a>
|
64 |
</strong></p>
|
65 |
</div><?php
|
66 |
} else {
|
67 |
?><div class="error fade">
|
68 |
<p><strong>
|
69 |
+
<?php echo __( 'Oops.. We are getting some error. mail not sending.', 'email-subscribers' ); ?>
|
70 |
</strong></p>
|
71 |
</div><?php
|
72 |
}
|
90 |
|
91 |
<div class="wrap">
|
92 |
<h2>
|
93 |
+
<?php echo __( 'Newsletters', 'email-subscribers' ); ?>
|
94 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
95 |
</h2>
|
96 |
<p class="description">
|
97 |
+
<?php echo __( 'Use this to send newsletter emails to your subscribers.', 'email-subscribers' ); ?>
|
98 |
</p>
|
99 |
<div class="es-form" style="width: 80%;float: left;">
|
100 |
<form name="es_form" method="post" action="#" onsubmit="return _es_submit()">
|
103 |
<tr>
|
104 |
<th scope="row">
|
105 |
<label for="tag-image">
|
106 |
+
<?php echo __( 'Select Email Subject from available list', 'email-subscribers' ); ?>
|
107 |
</label>
|
108 |
</th>
|
109 |
<td>
|
110 |
<select class="es_tmpl_select" name="es_templ_heading" id="es_templ_heading" onchange="return _es_change(this.options[this.selectedIndex])">
|
111 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
112 |
<?php
|
113 |
$subject = array();
|
114 |
$subject = es_cls_templates::es_template_select_type($type = "Newsletter");
|
131 |
<tr>
|
132 |
<th scope="row">
|
133 |
<label for="tag-image">
|
134 |
+
<?php echo __( 'Select Email Type', 'email-subscribers' ); ?>
|
135 |
</label>
|
136 |
</th>
|
137 |
<td>
|
138 |
<select name="es_sent_type" id="es_sent_type">
|
139 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
140 |
+
<option value='Immediately' <?php if($es_sent_type == 'Immediately') { echo "selected='selected'" ; } ?>><?php echo __( 'Send email immediately', 'email-subscribers' ); ?></option>
|
141 |
+
<option value='Cron' <?php if($es_sent_type == 'Cron') { echo "selected='selected'" ; } ?>><?php echo __( 'Send email via cron job', 'email-subscribers' ); ?></option>
|
142 |
</select>
|
143 |
<?php do_action('es_after_email_sent_option'); ?>
|
144 |
</td>
|
146 |
<tr>
|
147 |
<th scope="row">
|
148 |
<label for="tag-image">
|
149 |
+
<?php echo __( 'Select Subscribers group to Send Email', 'email-subscribers' ); ?>
|
150 |
</label>
|
151 |
</th>
|
152 |
<td>
|
153 |
<select name="es_email_group" id="es_email_group" onChange="_es_mailgroup(this.options[this.selectedIndex].value)">
|
154 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
155 |
<?php
|
156 |
$groups = array();
|
157 |
$thisselected = "";
|
178 |
$subscribers_count = array();
|
179 |
$subscribers_count = es_cls_dbquery::es_subscriber_count_in_group($es_email_group);
|
180 |
if( $subscribers_count == '0' ) {
|
181 |
+
echo __( 'Recipients : 0 ', 'email-subscribers' );
|
182 |
} else {
|
183 |
+
echo sprintf(__( 'Recipients : %s', 'email-subscribers' ), $subscribers_count );
|
184 |
}
|
185 |
if( $subscribers_count > '100' && $es_sent_type == 'Immediately' ) {
|
186 |
+
echo __( '<br><br><strong>Your Recipients count is above 100.<br>We strongly recommend that you change above Mail Type to Cron and Send Mail via Cron Job.</strong><br>Click on Help for more information.', 'email-subscribers' );
|
187 |
}
|
188 |
?>
|
189 |
</td>
|
195 |
<input type="hidden" name="sendmailsubmit" id="sendmailsubmit" value=""/>
|
196 |
<input type="hidden" name="wp_create_nonce" id="wp_create_nonce" value="<?php echo $nonce; ?>"/>
|
197 |
<?php if( $subscribers_count != 0 ) { ?>
|
198 |
+
<input type="submit" name="Submit" class="send button-primary" style="width:160px;" value="<?php echo __( 'Send Email', 'email-subscribers' ); ?>" />
|
199 |
<?php } else { ?>
|
200 |
+
<input type="submit" name="Submit" disabled="disabled" class="send button add-new-h2" style="width:160px;" value="<?php echo __( 'Send Email', 'email-subscribers' ); ?>" />
|
201 |
<?php } ?>
|
202 |
<?php wp_nonce_field('es_form_submit'); ?>
|
203 |
+
<input type="button" class="button-primary" onclick="_es_redirect()" value="<?php echo __( 'Reset', 'email-subscribers' ); ?>" />
|
204 |
<?php do_action('es_after_reset_button_newsletter'); ?>
|
205 |
</form>
|
206 |
</div>
|
sentmail/deliverreport-show.php
CHANGED
@@ -11,7 +11,7 @@ es_cls_security::es_check_guid($sentguid);
|
|
11 |
if ($sentguid == '') {
|
12 |
?><div class="error fade">
|
13 |
<p><strong>
|
14 |
-
<?php echo __( 'Oops.. Unexpected error occurred. Please try again.',
|
15 |
</strong></p>
|
16 |
</div><?php
|
17 |
}
|
@@ -57,8 +57,8 @@ if ($sentguid == '') {
|
|
57 |
|
58 |
<div class="wrap">
|
59 |
<h2>
|
60 |
-
<?php echo __( 'Delivery Report',
|
61 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
62 |
</h2>
|
63 |
<div class="tablenav">
|
64 |
<div class="alignleft" style="padding-bottom:10px;"><?php echo 'Viewed ' . $email_viewed_count . '/' .$total_email_sent; ?></div>
|
@@ -69,24 +69,24 @@ if ($sentguid == '') {
|
|
69 |
<table width="100%" class="widefat" id="straymanage">
|
70 |
<thead>
|
71 |
<tr>
|
72 |
-
<th width="3%" scope="col"><?php echo __( 'Sno',
|
73 |
-
<th scope="col"><?php echo __( 'Email',
|
74 |
-
<th scope="col"><?php echo __( 'Status',
|
75 |
-
<th scope="col"><?php echo __( 'Sent',
|
76 |
-
<th scope="col"><?php echo __( 'Sent Date',
|
77 |
-
<th scope="col"><?php echo __( 'Viewed Status',
|
78 |
-
<th scope="col"><?php echo __( 'Viewed Date',
|
79 |
</tr>
|
80 |
</thead>
|
81 |
<tfoot>
|
82 |
<tr>
|
83 |
-
<th width="3%" scope="col"><?php echo __( 'Sno',
|
84 |
-
<th scope="col"><?php echo __( 'Email',
|
85 |
-
<th scope="col"><?php echo __( 'Status',
|
86 |
-
<th scope="col"><?php echo __( 'Sent',
|
87 |
-
<th scope="col"><?php echo __( 'Sent Date',
|
88 |
-
<th scope="col"><?php echo __( 'Viewed Status',
|
89 |
-
<th scope="col"><?php echo __( 'Viewed Date',
|
90 |
</tr>
|
91 |
</tfoot>
|
92 |
<tbody>
|
@@ -125,7 +125,7 @@ if ($sentguid == '') {
|
|
125 |
$i = $i+1;
|
126 |
}
|
127 |
} else {
|
128 |
-
?><tr><td colspan="8" align="center"><?php echo __( 'No records available.',
|
129 |
}
|
130 |
?>
|
131 |
</tbody>
|
11 |
if ($sentguid == '') {
|
12 |
?><div class="error fade">
|
13 |
<p><strong>
|
14 |
+
<?php echo __( 'Oops.. Unexpected error occurred. Please try again.', 'email-subscribers' ); ?>
|
15 |
</strong></p>
|
16 |
</div><?php
|
17 |
}
|
57 |
|
58 |
<div class="wrap">
|
59 |
<h2>
|
60 |
+
<?php echo __( 'Delivery Report', 'email-subscribers' ); ?>
|
61 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
62 |
</h2>
|
63 |
<div class="tablenav">
|
64 |
<div class="alignleft" style="padding-bottom:10px;"><?php echo 'Viewed ' . $email_viewed_count . '/' .$total_email_sent; ?></div>
|
69 |
<table width="100%" class="widefat" id="straymanage">
|
70 |
<thead>
|
71 |
<tr>
|
72 |
+
<th width="3%" scope="col"><?php echo __( 'Sno', 'email-subscribers' ); ?></th>
|
73 |
+
<th scope="col"><?php echo __( 'Email', 'email-subscribers' ); ?></th>
|
74 |
+
<th scope="col"><?php echo __( 'Status', 'email-subscribers' ); ?></th>
|
75 |
+
<th scope="col"><?php echo __( 'Sent', 'email-subscribers' ); ?></th>
|
76 |
+
<th scope="col"><?php echo __( 'Sent Date', 'email-subscribers' ); ?></th>
|
77 |
+
<th scope="col"><?php echo __( 'Viewed Status', 'email-subscribers' ); ?></th>
|
78 |
+
<th scope="col"><?php echo __( 'Viewed Date', 'email-subscribers' ); ?></th>
|
79 |
</tr>
|
80 |
</thead>
|
81 |
<tfoot>
|
82 |
<tr>
|
83 |
+
<th width="3%" scope="col"><?php echo __( 'Sno', 'email-subscribers' ); ?></th>
|
84 |
+
<th scope="col"><?php echo __( 'Email', 'email-subscribers' ); ?></th>
|
85 |
+
<th scope="col"><?php echo __( 'Status', 'email-subscribers' ); ?></th>
|
86 |
+
<th scope="col"><?php echo __( 'Sent', 'email-subscribers' ); ?></th>
|
87 |
+
<th scope="col"><?php echo __( 'Sent Date', 'email-subscribers' ); ?></th>
|
88 |
+
<th scope="col"><?php echo __( 'Viewed Status', 'email-subscribers' ); ?></th>
|
89 |
+
<th scope="col"><?php echo __( 'Viewed Date', 'email-subscribers' ); ?></th>
|
90 |
</tr>
|
91 |
</tfoot>
|
92 |
<tbody>
|
125 |
$i = $i+1;
|
126 |
}
|
127 |
} else {
|
128 |
+
?><tr><td colspan="8" align="center"><?php echo __( 'No records available.', 'email-subscribers' ); ?></td></tr><?php
|
129 |
}
|
130 |
?>
|
131 |
</tbody>
|
sentmail/sentmail-preview.php
CHANGED
@@ -15,7 +15,7 @@ $result = es_cls_sentmail::es_sentmail_count($did);
|
|
15 |
if ($result != '1') {
|
16 |
?><div class="error fade">
|
17 |
<p><strong>
|
18 |
-
<?php echo __( 'Oops, selected details does not exists.',
|
19 |
</strong></p>
|
20 |
</div><?php
|
21 |
}
|
@@ -24,11 +24,11 @@ if ($result != '1') {
|
|
24 |
|
25 |
<div class="wrap">
|
26 |
<h2 style="margin-bottom:1em;">
|
27 |
-
<?php echo __( 'Preview Email',
|
28 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
29 |
</h2>
|
30 |
<p>
|
31 |
-
<?php echo __( 'This is how the email you sent may look. <br>Note: Different email services (like gmail, yahoo etc) display email content differently. So there could be a slight variation on how your customer will view the email content.',
|
32 |
</p>
|
33 |
<div class="tool-box">
|
34 |
<div style="padding:15px;background-color:#FFFFFF;">
|
@@ -50,7 +50,7 @@ if ($result != '1') {
|
|
50 |
</div>
|
51 |
<div class="tablenav">
|
52 |
<h2>
|
53 |
-
<a class="button-primary" href="<?php echo ES_ADMINURL; ?>?page=es-sentmail&pagenum=<?php echo $pagenum; ?>"><?php echo __( 'Back',
|
54 |
</h2>
|
55 |
</div>
|
56 |
</div>
|
15 |
if ($result != '1') {
|
16 |
?><div class="error fade">
|
17 |
<p><strong>
|
18 |
+
<?php echo __( 'Oops, selected details does not exists.', 'email-subscribers' ); ?>
|
19 |
</strong></p>
|
20 |
</div><?php
|
21 |
}
|
24 |
|
25 |
<div class="wrap">
|
26 |
<h2 style="margin-bottom:1em;">
|
27 |
+
<?php echo __( 'Preview Email', 'email-subscribers' ); ?>
|
28 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
29 |
</h2>
|
30 |
<p>
|
31 |
+
<?php echo __( 'This is how the email you sent may look. <br>Note: Different email services (like gmail, yahoo etc) display email content differently. So there could be a slight variation on how your customer will view the email content.', 'email-subscribers' ); ?>
|
32 |
</p>
|
33 |
<div class="tool-box">
|
34 |
<div style="padding:15px;background-color:#FFFFFF;">
|
50 |
</div>
|
51 |
<div class="tablenav">
|
52 |
<h2>
|
53 |
+
<a class="button-primary" href="<?php echo ES_ADMINURL; ?>?page=es-sentmail&pagenum=<?php echo $pagenum; ?>"><?php echo __( 'Back', 'email-subscribers' ); ?></a>
|
54 |
</h2>
|
55 |
</div>
|
56 |
</div>
|
sentmail/sentmail-show.php
CHANGED
@@ -19,7 +19,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
19 |
if ($result != '1') {
|
20 |
?><div class="error fade">
|
21 |
<p><strong>
|
22 |
-
<?php echo __( 'Oops, selected details does not exists.',
|
23 |
</strong></p>
|
24 |
</div><?php
|
25 |
} else {
|
@@ -33,14 +33,14 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
33 |
|
34 |
// Set success message
|
35 |
$es_success_msg = TRUE;
|
36 |
-
$es_success = __( 'Selected record deleted.',
|
37 |
}
|
38 |
}
|
39 |
} else {
|
40 |
check_admin_referer('es_form_show');
|
41 |
es_cls_optimize::es_optimize_setdetails();
|
42 |
$es_success_msg = TRUE;
|
43 |
-
$es_success = __( 'Successfully deleted all reports except latest 10.',
|
44 |
}
|
45 |
if ($es_success_msg == TRUE) {
|
46 |
?><div class="notice notice-success is-dismissible">
|
@@ -90,11 +90,11 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
90 |
|
91 |
<div class="wrap">
|
92 |
<h2>
|
93 |
-
<?php echo __( 'Reports',
|
94 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
95 |
</h2>
|
96 |
<p class="description">
|
97 |
-
<?php echo __( 'It will show reports for all Newsletters & Post Notification emails sent.',
|
98 |
</p>
|
99 |
<div class="tablenav">
|
100 |
<div class="alignright" style="padding-bottom:10px;"><?php echo $page_links; ?></div>
|
@@ -104,28 +104,28 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
104 |
<table width="100%" class="widefat" id="straymanage">
|
105 |
<thead>
|
106 |
<tr>
|
107 |
-
<th scope="col"><?php echo __( 'View Reports',
|
108 |
-
<th scope="col"><?php echo __( 'Preview',
|
109 |
-
<th scope="col"><?php echo __( 'Type',
|
110 |
-
<th scope="col"><?php echo __( 'Status',
|
111 |
-
<th scope="col"><?php echo __( 'Sent',
|
112 |
-
<th scope="col"><?php echo __( 'Start Date',
|
113 |
-
<th scope="col"><?php echo __( 'End Date',
|
114 |
-
<th scope="col"><?php echo __( 'Total',
|
115 |
-
<th scope="col"><?php echo __( 'Action',
|
116 |
</tr>
|
117 |
</thead>
|
118 |
<tfoot>
|
119 |
<tr>
|
120 |
-
<th scope="col"><?php echo __( 'View Reports',
|
121 |
-
<th scope="col"><?php echo __( 'Preview',
|
122 |
-
<th scope="col"><?php echo __( 'Type',
|
123 |
-
<th scope="col"><?php echo __( 'Status',
|
124 |
-
<th scope="col"><?php echo __( 'Sent',
|
125 |
-
<th scope="col"><?php echo __( 'Start Date',
|
126 |
-
<th scope="col"><?php echo __( 'End Date',
|
127 |
-
<th scope="col"><?php echo __( 'Total',
|
128 |
-
<th scope="col"><?php echo __( 'Action',
|
129 |
</tr>
|
130 |
</tfoot>
|
131 |
<tbody>
|
@@ -177,7 +177,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
177 |
$i = $i+1;
|
178 |
}
|
179 |
} else {
|
180 |
-
?><tr><td colspan="9" align="center"><?php echo __( 'No records available.',
|
181 |
}
|
182 |
?>
|
183 |
</tbody>
|
@@ -187,7 +187,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
187 |
<div class="tablenav" style="padding-top:10px;">
|
188 |
<div class="alignleft">
|
189 |
<input type="hidden" name="action" id="action" value="optimize-table">
|
190 |
-
<input type="submit" value="<?php echo __( 'Optimize Table & Delete Records',
|
191 |
</div>
|
192 |
<div class="alignright"><?php echo $page_links; ?></div>
|
193 |
</div>
|
@@ -198,7 +198,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
198 |
?>
|
199 |
<div class="error fade">
|
200 |
<p>
|
201 |
-
<?php echo __( 'Note: Please click on <strong>Optimize Table & Delete Records</strong> button to delete all reports except latest 10.',
|
202 |
</p>
|
203 |
</div>
|
204 |
<?php
|
@@ -213,7 +213,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
213 |
?>
|
214 |
<br>
|
215 |
<p>
|
216 |
-
<?php echo __( '<strong>Note:</strong> If you delete record for the emails with Status = <span style="color:#FF0000;">In Queue</span>, then cron job in queue will be deleted too and email will not be sent.',
|
217 |
</p>
|
218 |
<?php
|
219 |
}
|
19 |
if ($result != '1') {
|
20 |
?><div class="error fade">
|
21 |
<p><strong>
|
22 |
+
<?php echo __( 'Oops, selected details does not exists.', 'email-subscribers' ); ?>
|
23 |
</strong></p>
|
24 |
</div><?php
|
25 |
} else {
|
33 |
|
34 |
// Set success message
|
35 |
$es_success_msg = TRUE;
|
36 |
+
$es_success = __( 'Selected record deleted.', 'email-subscribers' );
|
37 |
}
|
38 |
}
|
39 |
} else {
|
40 |
check_admin_referer('es_form_show');
|
41 |
es_cls_optimize::es_optimize_setdetails();
|
42 |
$es_success_msg = TRUE;
|
43 |
+
$es_success = __( 'Successfully deleted all reports except latest 10.', 'email-subscribers' );
|
44 |
}
|
45 |
if ($es_success_msg == TRUE) {
|
46 |
?><div class="notice notice-success is-dismissible">
|
90 |
|
91 |
<div class="wrap">
|
92 |
<h2>
|
93 |
+
<?php echo __( 'Reports', 'email-subscribers' ); ?>
|
94 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
95 |
</h2>
|
96 |
<p class="description">
|
97 |
+
<?php echo __( 'It will show reports for all Newsletters & Post Notification emails sent.', 'email-subscribers' ); ?>
|
98 |
</p>
|
99 |
<div class="tablenav">
|
100 |
<div class="alignright" style="padding-bottom:10px;"><?php echo $page_links; ?></div>
|
104 |
<table width="100%" class="widefat" id="straymanage">
|
105 |
<thead>
|
106 |
<tr>
|
107 |
+
<th scope="col"><?php echo __( 'View Reports', 'email-subscribers' ); ?></th>
|
108 |
+
<th scope="col"><?php echo __( 'Preview', 'email-subscribers' ); ?></th>
|
109 |
+
<th scope="col"><?php echo __( 'Type', 'email-subscribers' ); ?></th>
|
110 |
+
<th scope="col"><?php echo __( 'Status', 'email-subscribers' ); ?></th>
|
111 |
+
<th scope="col"><?php echo __( 'Sent', 'email-subscribers' ); ?></th>
|
112 |
+
<th scope="col"><?php echo __( 'Start Date', 'email-subscribers' ); ?></th>
|
113 |
+
<th scope="col"><?php echo __( 'End Date', 'email-subscribers' ); ?></th>
|
114 |
+
<th scope="col"><?php echo __( 'Total', 'email-subscribers' ); ?></th>
|
115 |
+
<th scope="col"><?php echo __( 'Action', 'email-subscribers' ); ?></th>
|
116 |
</tr>
|
117 |
</thead>
|
118 |
<tfoot>
|
119 |
<tr>
|
120 |
+
<th scope="col"><?php echo __( 'View Reports', 'email-subscribers' ); ?></th>
|
121 |
+
<th scope="col"><?php echo __( 'Preview', 'email-subscribers' ); ?></th>
|
122 |
+
<th scope="col"><?php echo __( 'Type', 'email-subscribers' ); ?></th>
|
123 |
+
<th scope="col"><?php echo __( 'Status', 'email-subscribers' ); ?></th>
|
124 |
+
<th scope="col"><?php echo __( 'Sent', 'email-subscribers' ); ?></th>
|
125 |
+
<th scope="col"><?php echo __( 'Start Date', 'email-subscribers' ); ?></th>
|
126 |
+
<th scope="col"><?php echo __( 'End Date', 'email-subscribers' ); ?></th>
|
127 |
+
<th scope="col"><?php echo __( 'Total', 'email-subscribers' ); ?></th>
|
128 |
+
<th scope="col"><?php echo __( 'Action', 'email-subscribers' ); ?></th>
|
129 |
</tr>
|
130 |
</tfoot>
|
131 |
<tbody>
|
177 |
$i = $i+1;
|
178 |
}
|
179 |
} else {
|
180 |
+
?><tr><td colspan="9" align="center"><?php echo __( 'No records available.', 'email-subscribers' ); ?></td></tr><?php
|
181 |
}
|
182 |
?>
|
183 |
</tbody>
|
187 |
<div class="tablenav" style="padding-top:10px;">
|
188 |
<div class="alignleft">
|
189 |
<input type="hidden" name="action" id="action" value="optimize-table">
|
190 |
+
<input type="submit" value="<?php echo __( 'Optimize Table & Delete Records', 'email-subscribers' ); ?>" class="button-primary action" id="doaction" name="">
|
191 |
</div>
|
192 |
<div class="alignright"><?php echo $page_links; ?></div>
|
193 |
</div>
|
198 |
?>
|
199 |
<div class="error fade">
|
200 |
<p>
|
201 |
+
<?php echo __( 'Note: Please click on <strong>Optimize Table & Delete Records</strong> button to delete all reports except latest 10.', 'email-subscribers' ); ?>
|
202 |
</p>
|
203 |
</div>
|
204 |
<?php
|
213 |
?>
|
214 |
<br>
|
215 |
<p>
|
216 |
+
<?php echo __( '<strong>Note:</strong> If you delete record for the emails with Status = <span style="color:#FF0000;">In Queue</span>, then cron job in queue will be deleted too and email will not be sent.', 'email-subscribers' ); ?>
|
217 |
</p>
|
218 |
<?php
|
219 |
}
|
settings/setting-sync.php
CHANGED
@@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
if (isset($_POST['es_form_submit']) && $_POST['es_form_submit'] == 'yes') {
|
14 |
check_admin_referer('es_form_sync');
|
15 |
|
16 |
-
$es_success = __( 'Table sync completed successfully.',
|
17 |
es_cls_registerhook::es_synctables();
|
18 |
?><div class="notice notice-success is-dismissible">
|
19 |
<p><strong>
|
@@ -24,13 +24,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
24 |
?>
|
25 |
<div class="form-wrap">
|
26 |
<div id="icon-plugins" class="icon32"></div>
|
27 |
-
<h2><?php echo __( ES_PLUGIN_DISPLAY,
|
28 |
<form name="form_addemail" method="post" action="#" onsubmit="return _es_addemail()" >
|
29 |
-
<h3 class="title"><?php echo __( 'Sync plugin tables',
|
30 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
31 |
<div style="padding-top:5px;"></div>
|
32 |
<p>
|
33 |
-
<input type="submit" name="publish" lang="publish" class="button-primary" value="<?php echo __( 'Click to sync tables',
|
34 |
</p>
|
35 |
<?php wp_nonce_field('es_form_sync'); ?>
|
36 |
</form>
|
13 |
if (isset($_POST['es_form_submit']) && $_POST['es_form_submit'] == 'yes') {
|
14 |
check_admin_referer('es_form_sync');
|
15 |
|
16 |
+
$es_success = __( 'Table sync completed successfully.', 'email-subscribers' );
|
17 |
es_cls_registerhook::es_synctables();
|
18 |
?><div class="notice notice-success is-dismissible">
|
19 |
<p><strong>
|
24 |
?>
|
25 |
<div class="form-wrap">
|
26 |
<div id="icon-plugins" class="icon32"></div>
|
27 |
+
<h2><?php echo __( ES_PLUGIN_DISPLAY, 'email-subscribers' ); ?></h2>
|
28 |
<form name="form_addemail" method="post" action="#" onsubmit="return _es_addemail()" >
|
29 |
+
<h3 class="title"><?php echo __( 'Sync plugin tables', 'email-subscribers' ); ?></h3>
|
30 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
31 |
<div style="padding-top:5px;"></div>
|
32 |
<p>
|
33 |
+
<input type="submit" name="publish" lang="publish" class="button-primary" value="<?php echo __( 'Click to sync tables', 'email-subscribers' ); ?>" />
|
34 |
</p>
|
35 |
<?php wp_nonce_field('es_form_sync'); ?>
|
36 |
</form>
|
settings/settings-edit.php
CHANGED
@@ -20,10 +20,10 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
20 |
|
21 |
public function es_get_tabs_list() {
|
22 |
$tabs = array(
|
23 |
-
'admin' => __( 'Admin',
|
24 |
-
'signup-confirmation' => __( 'Signup Confirmation',
|
25 |
-
'cron' => __( 'Cron',
|
26 |
-
'roles' => __( 'User Roles',
|
27 |
);
|
28 |
|
29 |
return apply_filters( 'es_settings_tabs', $tabs );
|
@@ -39,8 +39,8 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
39 |
|
40 |
<div class="wrap">
|
41 |
<h2>
|
42 |
-
<?php echo __( 'Settings',
|
43 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
44 |
</h2>
|
45 |
<div id="icon-options-general" class="icon32"><br /></div>
|
46 |
<h2 id="es-tabs" class="nav-tab-wrapper">
|
@@ -64,7 +64,7 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
64 |
</table>
|
65 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
66 |
<p style="padding-top:10px;">
|
67 |
-
<input type="submit" name="publish" id="es-save-settings" class="button-primary" value="<?php echo __( 'Save Settings',
|
68 |
</p>
|
69 |
<?php wp_nonce_field('es_form_edit'); ?>
|
70 |
</form>
|
@@ -75,8 +75,8 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
75 |
?>
|
76 |
<tr class="es-admin active-settings">
|
77 |
<th scope="row">
|
78 |
-
<label for="elp"><?php echo __( 'Sender of Notifications',
|
79 |
-
<p class="description"><?php echo __( 'Choose a FROM name and FROM email address for all the emails to be sent from this plugin.',
|
80 |
</label>
|
81 |
</th>
|
82 |
<td>
|
@@ -86,91 +86,91 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
86 |
</tr>
|
87 |
<tr class="es-admin active-settings">
|
88 |
<th scope="row">
|
89 |
-
<label for="elp"><?php echo __( 'Email Type',
|
90 |
-
<p class="description"><?php echo __( 'Option 1 & 2 is to send emails with default Wordpress method wp_mail(). Option 3 & 4 is to send emails with PHP method mail().',
|
91 |
</th>
|
92 |
<td>
|
93 |
<select name="es_c_mailtype" id="es_c_mailtype">
|
94 |
-
<option value='WP HTML MAIL' <?php if($this->form['ig_es_emailtype'] == 'WP HTML MAIL') { echo 'selected' ; } ?>><?php echo __( '1. WP HTML MAIL',
|
95 |
-
<option value='WP PLAINTEXT MAIL' <?php if($this->form['ig_es_emailtype'] == 'WP PLAINTEXT MAIL') { echo 'selected' ; } ?>><?php echo __( '2. WP PLAINTEXT MAIL',
|
96 |
-
<option value='PHP HTML MAIL' <?php if($this->form['ig_es_emailtype'] == 'PHP HTML MAIL') { echo 'selected' ; } ?>><?php echo __( '3. PHP HTML MAIL',
|
97 |
-
<option value='PHP PLAINTEXT MAIL' <?php if($this->form['ig_es_emailtype'] == 'PHP PLAINTEXT MAIL') { echo 'selected' ; } ?>><?php echo __( '4. PHP PLAINTEXT MAIL',
|
98 |
</select>
|
99 |
</td>
|
100 |
</tr>
|
101 |
<!-------------------------------------------------------------------------------->
|
102 |
<tr class="es-admin active-settings">
|
103 |
<th scope="row">
|
104 |
-
<label for="elp"><?php echo __( 'Opt-In Type',
|
105 |
-
<p class="description"><?php echo __( 'Double Opt-In : In this type, the subscriber is sent an activation link as soon as they subscribe to your list. They have to confirm their subscription by clicking on the activation link.<br />Single Opt-In : In this type, the subscriber is not asked to confirm their email address. They are subscribed directly in the list.',
|
106 |
</th>
|
107 |
<td>
|
108 |
<select name="es_c_optinoption" id="es_c_optinoption">
|
109 |
-
<option value='Double Opt In' <?php if($this->form['ig_es_optintype'] == 'Double Opt In') { echo 'selected' ; } ?>><?php echo __( 'Double Opt In',
|
110 |
-
<option value='Single Opt In' <?php if($this->form['ig_es_optintype'] == 'Single Opt In') { echo 'selected' ; } ?>><?php echo __( 'Single Opt In',
|
111 |
</select>
|
112 |
</td>
|
113 |
</tr>
|
114 |
<?php do_action('es_after_optin_settings', $this->form); ?>
|
115 |
<tr class="es-admin active-settings">
|
116 |
<th scope="row">
|
117 |
-
<label for="elp"><?php echo __( 'Image Size',
|
118 |
-
<p class="description"><?php echo __( 'Select image size for {{POSTIMAGE}} to be shown in the Post Notification Emails.',
|
119 |
</th>
|
120 |
<td>
|
121 |
<select name="es_c_post_image_size" id="es_c_post_image_size">
|
122 |
-
<option value='full' <?php if($this->form['ig_es_post_image_size'] == 'full') { echo 'selected' ; } ?>><?php echo __( 'Full Size',
|
123 |
-
<option value='medium' <?php if($this->form['ig_es_post_image_size'] == 'medium') { echo 'selected' ; } ?>><?php echo __( 'Medium Size',
|
124 |
-
<option value='thumbnail' <?php if($this->form['ig_es_post_image_size'] == 'thumbnail') { echo 'selected' ; } ?>><?php echo __( 'Thumbnail',
|
125 |
</select>
|
126 |
</td>
|
127 |
</tr>
|
128 |
<tr class="es-admin active-settings">
|
129 |
<th scope="row">
|
130 |
-
<label for="elp"><?php echo __( 'Admin Email Addresses',
|
131 |
-
<p class="description"><?php echo __( 'Enter the admin email addresses that should receive notifications (separated by comma).',
|
132 |
</th>
|
133 |
<td><input name="es_c_adminemail" type="text" id="es_c_adminemail" value="<?php echo esc_html(stripslashes($this->form['ig_es_adminemail'])); ?>" size="60" maxlength="225" /></td>
|
134 |
</tr>
|
135 |
<tr class="es-admin active-settings">
|
136 |
<th scope="row">
|
137 |
-
<label for="elp"><?php echo __( 'Notify Admin when a new subscriber signs up',
|
138 |
-
<p class="description"><?php echo __( 'To send admin email notifications for the new subscriber. This option must be set to YES.',
|
139 |
</label>
|
140 |
</th>
|
141 |
<td>
|
142 |
<select name="es_c_adminmailoption" id="es_c_adminmailoption">
|
143 |
-
<option value='YES' <?php if($this->form['ig_es_notifyadmin'] == 'YES') { echo 'selected' ; } ?>><?php echo __( 'YES',
|
144 |
-
<option value='NO' <?php if($this->form['ig_es_notifyadmin'] == 'NO') { echo 'selected' ; } ?>><?php echo __( 'NO',
|
145 |
</select>
|
146 |
</td>
|
147 |
</tr>
|
148 |
<tr class="es-admin active-settings">
|
149 |
<th scope="row">
|
150 |
-
<label for="elp"><?php echo __( 'Admin Email Subject on new subscriber sign up',
|
151 |
-
<p class="description"><?php echo __( 'Subject for the admin email whenever a new subscriber signs up and is confirmed.',
|
152 |
</th>
|
153 |
<td><input name="es_c_adminmailsubject" type="text" id="es_c_adminmailsubject" value="<?php echo esc_html(stripslashes($this->form['ig_es_admin_new_sub_subject'])); ?>" size="60" maxlength="225" /></td>
|
154 |
</tr>
|
155 |
<tr class="es-admin active-settings">
|
156 |
<th scope="row">
|
157 |
-
<label for="elp"><?php echo __( 'Admin Email Content on new subscriber signs up',
|
158 |
-
<p class="description"><?php echo __( 'Content for the admin email whenever a new subscriber signs up and is confirmed.<br />Available Keywords: {{NAME}}, {{EMAIL}}, {{GROUP}}',
|
159 |
</th>
|
160 |
<td><textarea size="100" id="es_c_adminmailcontant" rows="10" cols="58" name="es_c_adminmailcontant"><?php echo esc_html(stripslashes($this->form['ig_es_admin_new_sub_content'])); ?></textarea></td>
|
161 |
</tr>
|
162 |
<!-------------------------------------------------------------------------------->
|
163 |
<tr class="es-admin active-settings">
|
164 |
<th scope="row">
|
165 |
-
<label for="elp"><?php echo __( 'Sent Report Subject',
|
166 |
-
<p class="description"><?php echo __( 'Subject for the email report which will be sent to admin.<br />(Will be sent only if sending email via immediately)',
|
167 |
</th>
|
168 |
<td><input name="es_c_sentreport_subject" type="text" id="es_c_sentreport_subject" value="<?php echo esc_html(stripslashes($this->form['ig_es_sentreport_subject'])); ?>" size="60" maxlength="225" /></td>
|
169 |
</tr>
|
170 |
<tr class="es-admin active-settings">
|
171 |
<th scope="row">
|
172 |
-
<label for="elp"><?php echo __( 'Sent Report Content',
|
173 |
-
<p class="description"><?php echo __( 'Content for the email report which will be sent to admin.<br />Available Keywords: {{COUNT}}, {{UNIQUE}}, {{STARTTIME}}, {{ENDTIME}}<br />(Will be sent only if sending email via immediately)',
|
174 |
</th>
|
175 |
<td><textarea size="100" id="es_c_sentreport" rows="8" cols="58" name="es_c_sentreport"><?php echo esc_html(stripslashes($this->form['ig_es_sentreport'])); ?></textarea></td>
|
176 |
</tr>
|
@@ -181,66 +181,66 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
181 |
?>
|
182 |
<tr class="es-signup-confirmation hidden">
|
183 |
<th scope="row">
|
184 |
-
<label for="elp"><?php echo __( 'Double Opt-In Email Subject (Confirmation Email)',
|
185 |
-
<p class="description"><?php echo __( 'Subject for the confirmation email to be sent for Double Opt-In whenever a subscriber signs up.',
|
186 |
</th>
|
187 |
<td><input name="es_c_optinsubject" type="text" id="es_c_optinsubject" value="<?php echo esc_html(stripslashes($this->form['ig_es_confirmsubject'])); ?>" size="60" maxlength="225" /></td>
|
188 |
</tr>
|
189 |
<tr class="es-signup-confirmation hidden">
|
190 |
<th scope="row">
|
191 |
-
<label for="elp"><?php echo __('Double Opt-In Email Content (Confirmation Email)',
|
192 |
-
<p class="description"><?php echo __( 'Content for the confirmation email to be sent for Double Opt-In whenever a subscriber signs up.<br />Available Keywords: {{NAME}}, {{LINK}}',
|
193 |
</th>
|
194 |
<td><textarea size="100" id="es_c_optincontent" rows="10" cols="58" name="es_c_optincontent"><?php echo esc_html(stripslashes($this->form['ig_es_confirmcontent'])); ?></textarea></td>
|
195 |
</tr>
|
196 |
<tr class="es-signup-confirmation hidden">
|
197 |
<th scope="row">
|
198 |
-
<label for="elp"><?php echo __( 'Double Opt-In Confirmation Link',
|
199 |
-
<?php echo __( 'It is a readonly field and you are advised not to modify it.',
|
200 |
</th>
|
201 |
<td><input name="es_c_optinlink" type="text" id="es_c_optinlink" value="<?php echo esc_html(stripslashes($this->form['ig_es_optinlink'])); ?>" size="60" maxlength="225" readonly /></td>
|
202 |
</tr>
|
203 |
<?php ob_start(); ?>
|
204 |
<tr class="es-signup-confirmation hidden">
|
205 |
<th scope="row">
|
206 |
-
<label for="elp"><?php echo __( 'Text to display after an email address is successfully subscribed from Double Opt-In (Confirmation) Email',
|
207 |
-
<p class="description"><?php echo __( 'This text will be displayed once user clicks on email confirmation link from the Double Opt In (confirmation) Email.',
|
208 |
</th>
|
209 |
<td>
|
210 |
<textarea size="100" id="es_c_subhtml" rows="4" cols="58" name="es_c_subhtml"><?php echo esc_html(stripslashes($this->form['ig_es_successmsg'])); ?></textarea>
|
211 |
</td>
|
212 |
</tr>
|
213 |
-
<?php do_action('es_beside_optin_textarea'); ?>
|
214 |
<?php $es_optin_settings = ob_get_clean();
|
215 |
$es_type = 'es_optin';
|
216 |
$es_optin_settings = apply_filters('es_optin_settings', $es_optin_settings, $es_type);
|
217 |
echo $es_optin_settings;
|
218 |
|
219 |
?>
|
|
|
220 |
<!-------------------------------------------------------------------------------->
|
221 |
<tr class="es-signup-confirmation hidden">
|
222 |
<th scope="row">
|
223 |
-
<label for="elp"><?php echo __( 'Send Welcome Email to New Subscribers after Sign Up?',
|
224 |
-
<p class="description"><?php echo __( 'To send welcome email to subscriber after successful signup. This option must be set to YES.',
|
225 |
</th>
|
226 |
<td>
|
227 |
<select name="es_c_usermailoption" id="es_c_usermailoption">
|
228 |
-
<option value='YES' <?php if($this->form['ig_es_welcomeemail'] == 'YES') { echo 'selected' ; } ?>><?php echo __( 'YES',
|
229 |
-
<option value='NO' <?php if($this->form['ig_es_welcomeemail'] == 'NO') { echo 'selected' ; } ?>><?php echo __( 'NO',
|
230 |
</select>
|
231 |
</td>
|
232 |
</tr>
|
233 |
<tr class="es-signup-confirmation hidden">
|
234 |
<th scope="row">
|
235 |
-
<label for="elp"><?php echo __( 'Subject for Welcome Email',
|
236 |
-
<p class="description"><?php echo __( 'Subject for the subscriber welcome email. This will be sent whenever a user\'s email is either confirmed (if Double Opt-In) / subscribed (if Single Opt-In) successfully.',
|
237 |
</th>
|
238 |
<td><input name="es_c_usermailsubject" type="text" id="es_c_usermailsubject" value="<?php echo esc_html(stripslashes($this->form['ig_es_welcomesubject'])); ?>" size="60" maxlength="225" /></td>
|
239 |
</tr>
|
240 |
<tr class="es-signup-confirmation hidden">
|
241 |
<th scope="row">
|
242 |
-
<label for="elp"><?php echo __( 'Email Content for Welcome Email',
|
243 |
-
<p class="description"><?php echo __( 'Content for the subscriber welcome email whenever a user\'s email is either confirmed (if Double Opt In) / subscribed (if Single Opt In) successfully.<br />Available Keywords: {{NAME}}, {{GROUP}}, {{LINK}}',
|
244 |
</label>
|
245 |
</th>
|
246 |
<td><textarea size="100" id="es_c_usermailcontant" rows="10" cols="58" name="es_c_usermailcontant"><?php echo esc_html(stripslashes($this->form['ig_es_welcomecontent'])); ?></textarea></td>
|
@@ -248,46 +248,46 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
248 |
<!-------------------------------------------------------------------------------->
|
249 |
<tr class="es-signup-confirmation hidden">
|
250 |
<th scope="row">
|
251 |
-
<label for="elp"><?php echo __( 'Unsubscribe Link',
|
252 |
-
<p class="description"><?php echo __( 'This unsubscribe link is automatically added to all the emails that are sent from this plugin. It is a readonly field and you are advised not to modify it.',
|
253 |
</th>
|
254 |
<td><input name="es_c_unsublink" type="text" id="es_c_unsublink" value="<?php echo esc_html(stripslashes($this->form['ig_es_unsublink'])); ?>" size="60" maxlength="225" readonly /></td>
|
255 |
</tr>
|
256 |
<tr class="es-signup-confirmation hidden">
|
257 |
<th scope="row">
|
258 |
-
<label for="elp"><?php echo __( 'Unsubscribe Text in Email',
|
259 |
-
<p class="description"><?php echo __( 'The text for the unsubscribe link. This text is automatically added with unsubscribe link in the emails.<br />Available Keyword: {{LINK}}',
|
260 |
</th>
|
261 |
<td><textarea size="100" id="es_c_unsubtext" rows="4" cols="58" name="es_c_unsubtext"><?php echo esc_html(stripslashes($this->form['ig_es_unsubcontent'])); ?></textarea></td>
|
262 |
</tr>
|
263 |
<?php ob_start(); ?>
|
264 |
<tr class="es-signup-confirmation hidden">
|
265 |
<th scope="row">
|
266 |
-
<label for="elp"><?php echo __( 'Text to display after an email address is unsubscribed',
|
267 |
-
<p class="description"><?php echo __( 'This text will be displayed once user clicks on unsubscribe link from the email.',
|
268 |
</th>
|
269 |
<td>
|
270 |
<textarea size="100" id="es_c_unsubhtml" rows="4" cols="58" name="es_c_unsubhtml"><?php echo esc_html(stripslashes($this->form['ig_es_unsubtext'])); ?></textarea>
|
271 |
</td>
|
272 |
</tr>
|
273 |
-
<?php do_action('es_beside_unsubscribe_textarea'); ?>
|
274 |
<?php $es_optin_settings = ob_get_clean();
|
275 |
$es_type = 'es_unsubscribe';
|
276 |
$es_optin_settings = apply_filters('es_optin_settings', $es_optin_settings, $es_type);
|
277 |
echo $es_optin_settings;
|
278 |
?>
|
|
|
279 |
<!-------------------------------------------------------------------------------->
|
280 |
<tr class="es-signup-confirmation hidden">
|
281 |
<th scope="row">
|
282 |
-
<label for="elp"><?php echo __( 'Error in the Subscribe / Confirmation Link',
|
283 |
-
<p class="description"><?php echo __( 'Default message to display if there is any issue while clicking on subscribe / confirmation link from the Double Opt-In (Confirmation) emails.',
|
284 |
</th>
|
285 |
<td><textarea size="100" id="es_c_message1" rows="4" cols="58" name="es_c_message1"><?php echo esc_html(stripslashes($this->form['ig_es_suberror'])); ?></textarea></td>
|
286 |
</tr>
|
287 |
<tr class="es-signup-confirmation hidden">
|
288 |
<th scope="row">
|
289 |
-
<label for="elp"><?php echo __( 'Error in the Unsubscribe Link',
|
290 |
-
<p class="description"><?php echo __( 'Default message to display if there is any issue while clicking on unsubscribe link from the emails.',
|
291 |
</th>
|
292 |
<td><textarea size="100" id="es_c_message2" rows="4" cols="58" name="es_c_message2"><?php echo esc_html(stripslashes($this->form['ig_es_unsuberror'])); ?></textarea></td>
|
293 |
</tr>
|
@@ -299,67 +299,67 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
299 |
<tr class="es-roles hidden">
|
300 |
<td colspan=2>
|
301 |
<p class="description">
|
302 |
-
<?php echo __( 'Select user roles who can access following menus. Only Admin can change this.',
|
303 |
</p>
|
304 |
</td>
|
305 |
</tr>
|
306 |
<tr class="es-roles hidden">
|
307 |
<th scope="row">
|
308 |
-
<label for="tag-image"><?php echo __( 'Subscribers Menu',
|
309 |
</th>
|
310 |
<td>
|
311 |
<select name="es_roles_subscriber" id="es_roles_subscriber">
|
312 |
-
<option value='manage_options' <?php if($this->form['es_roles_subscriber'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only',
|
313 |
-
<option value='edit_others_pages' <?php if($this->form['es_roles_subscriber'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor',
|
314 |
-
<option value='edit_posts' <?php if($this->form['es_roles_subscriber'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor',
|
315 |
</select>
|
316 |
</td>
|
317 |
</tr>
|
318 |
<tr class="es-roles hidden">
|
319 |
<th scope="row">
|
320 |
-
<label for="tag-image"><?php echo __( 'Templates Menu',
|
321 |
</th>
|
322 |
<td>
|
323 |
<select name="es_roles_mail" id="es_roles_mail">
|
324 |
-
<option value='manage_options' <?php if($this->form['es_roles_mail'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only',
|
325 |
-
<option value='edit_others_pages' <?php if($this->form['es_roles_mail'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor',
|
326 |
-
<option value='edit_posts' <?php if($this->form['es_roles_mail'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor',
|
327 |
</select>
|
328 |
</td>
|
329 |
</tr>
|
330 |
<tr class="es-roles hidden">
|
331 |
<th scope="row">
|
332 |
-
<label for="tag-image"><?php echo __( 'Post Notifications Menu',
|
333 |
</th>
|
334 |
<td>
|
335 |
<select name="es_roles_notification" id="es_roles_notification">
|
336 |
-
<option value='manage_options' <?php if($this->form['es_roles_notification'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only',
|
337 |
-
<option value='edit_others_pages' <?php if($this->form['es_roles_notification'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor',
|
338 |
-
<option value='edit_posts' <?php if($this->form['es_roles_notification'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor',
|
339 |
</select>
|
340 |
</td>
|
341 |
</tr>
|
342 |
<tr class="es-roles hidden">
|
343 |
<th scope="row">
|
344 |
-
<label for="tag-image"><?php echo __( 'Newsletters',
|
345 |
</th>
|
346 |
<td>
|
347 |
<select name="es_roles_sendmail" id="es_roles_sendmail">
|
348 |
-
<option value='manage_options' <?php if($this->form['es_roles_sendmail'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only',
|
349 |
-
<option value='edit_others_pages' <?php if($this->form['es_roles_sendmail'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor',
|
350 |
-
<option value='edit_posts' <?php if($this->form['es_roles_sendmail'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor',
|
351 |
</select>
|
352 |
</td>
|
353 |
</tr>
|
354 |
<tr class="es-roles hidden">
|
355 |
<th scope="row">
|
356 |
-
<label for="tag-image"><?php echo __( 'Reports Menu',
|
357 |
</th>
|
358 |
<td>
|
359 |
<select name="es_roles_sentmail" id="es_roles_sentmail">
|
360 |
-
<option value='manage_options' <?php if($this->form['es_roles_sentmail'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only',
|
361 |
-
<option value='edit_others_pages' <?php if($this->form['es_roles_sentmail'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor',
|
362 |
-
<option value='edit_posts' <?php if($this->form['es_roles_sentmail'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor',
|
363 |
</select>
|
364 |
</td>
|
365 |
</tr>
|
@@ -370,8 +370,8 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
370 |
?>
|
371 |
<tr class="es-cron hidden">
|
372 |
<th scope="row">
|
373 |
-
<label for="tag-image"><?php echo __( 'Cron job URL',
|
374 |
-
<p class="description"><?php echo __( 'This is your Cron Job URL. It is a readonly field and you are advised not to modify it.',
|
375 |
</label>
|
376 |
</th>
|
377 |
<td>
|
@@ -381,23 +381,23 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
381 |
<?php do_action('es_after_cron_url', $this->form); ?>
|
382 |
<tr class="es-cron hidden">
|
383 |
<th scope="row">
|
384 |
-
<label for="tag-image"><?php echo __( 'Email Count',
|
385 |
-
<p class="description"><?php echo __( 'Number of emails that you want to trigger per hour.',
|
386 |
</label>
|
387 |
</th>
|
388 |
<td>
|
389 |
<input type="number" name="es_cron_mailcount" id="es_cron_mailcount" value="<?php echo $this->form['ig_es_cron_mailcount']; ?>" maxlength="3" />
|
390 |
-
<p class="description"><?php echo __( '(Your web host has limits. We suggest 50 emails per hour to be safe.)',
|
391 |
</td>
|
392 |
</tr>
|
393 |
<tr class="es-cron hidden">
|
394 |
<th scope="row">
|
395 |
-
<label for="tag-image"><?php echo __( 'Cron Report',
|
396 |
-
<p class="description"><?php echo __( 'Email to admin whenever a cron URL is triggered from your server.<br />Available Keywords: {{DATE}}, {{SUBJECT}}, {{COUNT}}',
|
397 |
</label>
|
398 |
</th>
|
399 |
<td>
|
400 |
-
<label><input type="checkbox" name="ig_es_enable_cron_adminmail" value="yes" <?php ( !empty( $this->form['ig_es_enable_cron_adminmail'] ) ) ? checked( $this->form['ig_es_enable_cron_adminmail'], 'yes' ) : ''; ?>/><?php echo __( 'Enabling this will send a cron report email on every successfully cron hit',
|
401 |
<textarea size="100" id="es_cron_adminmail" rows="7" cols="72" name="es_cron_adminmail"><?php echo esc_html(stripslashes($this->form['ig_es_cron_adminmail'])); ?></textarea>
|
402 |
</td>
|
403 |
</tr>
|
@@ -405,11 +405,11 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
405 |
<tr class="es-cron hidden">
|
406 |
<td colspan=2>
|
407 |
<div class="tool-box">
|
408 |
-
<h3><?php echo __( 'What is Cron (auto emails) and how to setup Cron Job?',
|
409 |
-
<li><?php echo __( '<a target="_blank" href="https://www.icegram.com/documentation/es-how-to-schedule-cron-emails/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page">What is Cron?</a>',
|
410 |
-
<li><?php echo __( '<a target="_blank" href="https://www.icegram.com/documentation/es-how-to-schedule-cron-emails-in-cpanel/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page">Setup cron job in cPanel</a>',
|
411 |
-
<li><?php echo __( '<a target="_blank" href="https://www.icegram.com/documentation/es-how-to-schedule-cron-emails-in-parallels-plesk/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page">Setup cron job in Plesk</a>',
|
412 |
-
<li><?php echo __( '<a target="_blank" href="https://www.icegram.com/documentation/es-what-to-do-if-hosting-doesnt-support-cron-jobs/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page">Hosting does not support cron jobs?</a>',
|
413 |
</div>
|
414 |
</td>
|
415 |
</tr>
|
@@ -527,12 +527,12 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
527 |
$form['ig_es_fromname'] = isset($_POST['es_c_fromname']) ? $_POST['es_c_fromname'] : '';
|
528 |
$form['ig_es_fromname'] = stripslashes($form['ig_es_fromname']);
|
529 |
if ($form['ig_es_fromname'] == '') {
|
530 |
-
$es_errors[] = __( 'Please enter sender of notifications from name.',
|
531 |
$es_error_found = TRUE;
|
532 |
}
|
533 |
$form['ig_es_fromemail'] = isset($_POST['es_c_fromemail']) ? $_POST['es_c_fromemail'] : '';
|
534 |
if ($form['ig_es_fromemail'] == '') {
|
535 |
-
$es_errors[] = __( 'Please enter sender of notifications from email.',
|
536 |
$es_error_found = TRUE;
|
537 |
}
|
538 |
$form['ig_es_emailtype'] = isset($_POST['es_c_mailtype']) ? $_POST['es_c_mailtype'] : '';
|
@@ -576,7 +576,7 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
576 |
// Fetch submitted Cron Data
|
577 |
$es_cron_mailcount = isset($_POST['es_cron_mailcount']) ? $_POST['es_cron_mailcount'] : '';
|
578 |
if( $es_cron_mailcount == "0" && strlen ($es_cron_mailcount) > 0 ) {
|
579 |
-
$es_errors[] = __('Please enter valid email count.',
|
580 |
$es_error_found = TRUE;
|
581 |
} else {
|
582 |
$form['ig_es_cron_mailcount'] = $es_cron_mailcount;
|
@@ -591,10 +591,10 @@ if ( ! class_exists( 'ES_Settings' ) ) {
|
|
591 |
$action = $this->es_settings_update( $form, $roles );
|
592 |
do_action('es_before_settings_update', $form);
|
593 |
if($action == "sus") {
|
594 |
-
$es_success = __( 'Settings Saved.',
|
595 |
} else {
|
596 |
$es_error_found == TRUE;
|
597 |
-
$es_errors[] = __( 'Oops, unable to update.',
|
598 |
}
|
599 |
}
|
600 |
}
|
20 |
|
21 |
public function es_get_tabs_list() {
|
22 |
$tabs = array(
|
23 |
+
'admin' => __( 'Admin', 'email-subscribers' ),
|
24 |
+
'signup-confirmation' => __( 'Signup Confirmation', 'email-subscribers' ),
|
25 |
+
'cron' => __( 'Cron', 'email-subscribers' ),
|
26 |
+
'roles' => __( 'User Roles', 'email-subscribers' ),
|
27 |
);
|
28 |
|
29 |
return apply_filters( 'es_settings_tabs', $tabs );
|
39 |
|
40 |
<div class="wrap">
|
41 |
<h2>
|
42 |
+
<?php echo __( 'Settings', 'email-subscribers' ); ?>
|
43 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
44 |
</h2>
|
45 |
<div id="icon-options-general" class="icon32"><br /></div>
|
46 |
<h2 id="es-tabs" class="nav-tab-wrapper">
|
64 |
</table>
|
65 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
66 |
<p style="padding-top:10px;">
|
67 |
+
<input type="submit" name="publish" id="es-save-settings" class="button-primary" value="<?php echo __( 'Save Settings', 'email-subscribers' ); ?>" />
|
68 |
</p>
|
69 |
<?php wp_nonce_field('es_form_edit'); ?>
|
70 |
</form>
|
75 |
?>
|
76 |
<tr class="es-admin active-settings">
|
77 |
<th scope="row">
|
78 |
+
<label for="elp"><?php echo __( 'Sender of Notifications', 'email-subscribers' ); ?>
|
79 |
+
<p class="description"><?php echo __( 'Choose a FROM name and FROM email address for all the emails to be sent from this plugin.', 'email-subscribers' ); ?></p>
|
80 |
</label>
|
81 |
</th>
|
82 |
<td>
|
86 |
</tr>
|
87 |
<tr class="es-admin active-settings">
|
88 |
<th scope="row">
|
89 |
+
<label for="elp"><?php echo __( 'Email Type', 'email-subscribers' ); ?>
|
90 |
+
<p class="description"><?php echo __( 'Option 1 & 2 is to send emails with default Wordpress method wp_mail(). Option 3 & 4 is to send emails with PHP method mail().', 'email-subscribers' ); ?></p></label>
|
91 |
</th>
|
92 |
<td>
|
93 |
<select name="es_c_mailtype" id="es_c_mailtype">
|
94 |
+
<option value='WP HTML MAIL' <?php if($this->form['ig_es_emailtype'] == 'WP HTML MAIL') { echo 'selected' ; } ?>><?php echo __( '1. WP HTML MAIL', 'email-subscribers' ); ?></option>
|
95 |
+
<option value='WP PLAINTEXT MAIL' <?php if($this->form['ig_es_emailtype'] == 'WP PLAINTEXT MAIL') { echo 'selected' ; } ?>><?php echo __( '2. WP PLAINTEXT MAIL', 'email-subscribers' ); ?></option>
|
96 |
+
<option value='PHP HTML MAIL' <?php if($this->form['ig_es_emailtype'] == 'PHP HTML MAIL') { echo 'selected' ; } ?>><?php echo __( '3. PHP HTML MAIL', 'email-subscribers' ); ?></option>
|
97 |
+
<option value='PHP PLAINTEXT MAIL' <?php if($this->form['ig_es_emailtype'] == 'PHP PLAINTEXT MAIL') { echo 'selected' ; } ?>><?php echo __( '4. PHP PLAINTEXT MAIL', 'email-subscribers' ); ?></option>
|
98 |
</select>
|
99 |
</td>
|
100 |
</tr>
|
101 |
<!-------------------------------------------------------------------------------->
|
102 |
<tr class="es-admin active-settings">
|
103 |
<th scope="row">
|
104 |
+
<label for="elp"><?php echo __( 'Opt-In Type', 'email-subscribers' ); ?>
|
105 |
+
<p class="description"><?php echo __( 'Double Opt-In : In this type, the subscriber is sent an activation link as soon as they subscribe to your list. They have to confirm their subscription by clicking on the activation link.<br />Single Opt-In : In this type, the subscriber is not asked to confirm their email address. They are subscribed directly in the list.', 'email-subscribers' ); ?></p></label>
|
106 |
</th>
|
107 |
<td>
|
108 |
<select name="es_c_optinoption" id="es_c_optinoption">
|
109 |
+
<option value='Double Opt In' <?php if($this->form['ig_es_optintype'] == 'Double Opt In') { echo 'selected' ; } ?>><?php echo __( 'Double Opt In', 'email-subscribers' ); ?></option>
|
110 |
+
<option value='Single Opt In' <?php if($this->form['ig_es_optintype'] == 'Single Opt In') { echo 'selected' ; } ?>><?php echo __( 'Single Opt In', 'email-subscribers' ); ?></option>
|
111 |
</select>
|
112 |
</td>
|
113 |
</tr>
|
114 |
<?php do_action('es_after_optin_settings', $this->form); ?>
|
115 |
<tr class="es-admin active-settings">
|
116 |
<th scope="row">
|
117 |
+
<label for="elp"><?php echo __( 'Image Size', 'email-subscribers' ); ?>
|
118 |
+
<p class="description"><?php echo __( 'Select image size for {{POSTIMAGE}} to be shown in the Post Notification Emails.', 'email-subscribers' ); ?></p></label>
|
119 |
</th>
|
120 |
<td>
|
121 |
<select name="es_c_post_image_size" id="es_c_post_image_size">
|
122 |
+
<option value='full' <?php if($this->form['ig_es_post_image_size'] == 'full') { echo 'selected' ; } ?>><?php echo __( 'Full Size', 'email-subscribers' ); ?></option>
|
123 |
+
<option value='medium' <?php if($this->form['ig_es_post_image_size'] == 'medium') { echo 'selected' ; } ?>><?php echo __( 'Medium Size', 'email-subscribers' ); ?></option>
|
124 |
+
<option value='thumbnail' <?php if($this->form['ig_es_post_image_size'] == 'thumbnail') { echo 'selected' ; } ?>><?php echo __( 'Thumbnail', 'email-subscribers' ); ?></option>
|
125 |
</select>
|
126 |
</td>
|
127 |
</tr>
|
128 |
<tr class="es-admin active-settings">
|
129 |
<th scope="row">
|
130 |
+
<label for="elp"><?php echo __( 'Admin Email Addresses', 'email-subscribers' ); ?>
|
131 |
+
<p class="description"><?php echo __( 'Enter the admin email addresses that should receive notifications (separated by comma).', 'email-subscribers' ); ?></p></label>
|
132 |
</th>
|
133 |
<td><input name="es_c_adminemail" type="text" id="es_c_adminemail" value="<?php echo esc_html(stripslashes($this->form['ig_es_adminemail'])); ?>" size="60" maxlength="225" /></td>
|
134 |
</tr>
|
135 |
<tr class="es-admin active-settings">
|
136 |
<th scope="row">
|
137 |
+
<label for="elp"><?php echo __( 'Notify Admin when a new subscriber signs up', 'email-subscribers' ); ?>
|
138 |
+
<p class="description"><?php echo __( 'To send admin email notifications for the new subscriber. This option must be set to YES.', 'email-subscribers' ); ?></p>
|
139 |
</label>
|
140 |
</th>
|
141 |
<td>
|
142 |
<select name="es_c_adminmailoption" id="es_c_adminmailoption">
|
143 |
+
<option value='YES' <?php if($this->form['ig_es_notifyadmin'] == 'YES') { echo 'selected' ; } ?>><?php echo __( 'YES', 'email-subscribers' ); ?></option>
|
144 |
+
<option value='NO' <?php if($this->form['ig_es_notifyadmin'] == 'NO') { echo 'selected' ; } ?>><?php echo __( 'NO', 'email-subscribers' ); ?></option>
|
145 |
</select>
|
146 |
</td>
|
147 |
</tr>
|
148 |
<tr class="es-admin active-settings">
|
149 |
<th scope="row">
|
150 |
+
<label for="elp"><?php echo __( 'Admin Email Subject on new subscriber sign up', 'email-subscribers' ); ?>
|
151 |
+
<p class="description"><?php echo __( 'Subject for the admin email whenever a new subscriber signs up and is confirmed.', 'email-subscribers' ); ?></p></label>
|
152 |
</th>
|
153 |
<td><input name="es_c_adminmailsubject" type="text" id="es_c_adminmailsubject" value="<?php echo esc_html(stripslashes($this->form['ig_es_admin_new_sub_subject'])); ?>" size="60" maxlength="225" /></td>
|
154 |
</tr>
|
155 |
<tr class="es-admin active-settings">
|
156 |
<th scope="row">
|
157 |
+
<label for="elp"><?php echo __( 'Admin Email Content on new subscriber signs up', 'email-subscribers' ); ?>
|
158 |
+
<p class="description"><?php echo __( 'Content for the admin email whenever a new subscriber signs up and is confirmed.<br />Available Keywords: {{NAME}}, {{EMAIL}}, {{GROUP}}', 'email-subscribers' ); ?></p></label>
|
159 |
</th>
|
160 |
<td><textarea size="100" id="es_c_adminmailcontant" rows="10" cols="58" name="es_c_adminmailcontant"><?php echo esc_html(stripslashes($this->form['ig_es_admin_new_sub_content'])); ?></textarea></td>
|
161 |
</tr>
|
162 |
<!-------------------------------------------------------------------------------->
|
163 |
<tr class="es-admin active-settings">
|
164 |
<th scope="row">
|
165 |
+
<label for="elp"><?php echo __( 'Sent Report Subject', 'email-subscribers' ); ?>
|
166 |
+
<p class="description"><?php echo __( 'Subject for the email report which will be sent to admin.<br />(Will be sent only if sending email via immediately)', 'email-subscribers' ); ?></p></label>
|
167 |
</th>
|
168 |
<td><input name="es_c_sentreport_subject" type="text" id="es_c_sentreport_subject" value="<?php echo esc_html(stripslashes($this->form['ig_es_sentreport_subject'])); ?>" size="60" maxlength="225" /></td>
|
169 |
</tr>
|
170 |
<tr class="es-admin active-settings">
|
171 |
<th scope="row">
|
172 |
+
<label for="elp"><?php echo __( 'Sent Report Content', 'email-subscribers' ); ?>
|
173 |
+
<p class="description"><?php echo __( 'Content for the email report which will be sent to admin.<br />Available Keywords: {{COUNT}}, {{UNIQUE}}, {{STARTTIME}}, {{ENDTIME}}<br />(Will be sent only if sending email via immediately)', 'email-subscribers' ); ?></p></label>
|
174 |
</th>
|
175 |
<td><textarea size="100" id="es_c_sentreport" rows="8" cols="58" name="es_c_sentreport"><?php echo esc_html(stripslashes($this->form['ig_es_sentreport'])); ?></textarea></td>
|
176 |
</tr>
|
181 |
?>
|
182 |
<tr class="es-signup-confirmation hidden">
|
183 |
<th scope="row">
|
184 |
+
<label for="elp"><?php echo __( 'Double Opt-In Email Subject (Confirmation Email)', 'email-subscribers' ); ?>
|
185 |
+
<p class="description"><?php echo __( 'Subject for the confirmation email to be sent for Double Opt-In whenever a subscriber signs up.', 'email-subscribers' ); ?></p></label>
|
186 |
</th>
|
187 |
<td><input name="es_c_optinsubject" type="text" id="es_c_optinsubject" value="<?php echo esc_html(stripslashes($this->form['ig_es_confirmsubject'])); ?>" size="60" maxlength="225" /></td>
|
188 |
</tr>
|
189 |
<tr class="es-signup-confirmation hidden">
|
190 |
<th scope="row">
|
191 |
+
<label for="elp"><?php echo __('Double Opt-In Email Content (Confirmation Email)', 'email-subscribers'); ?>
|
192 |
+
<p class="description"><?php echo __( 'Content for the confirmation email to be sent for Double Opt-In whenever a subscriber signs up.<br />Available Keywords: {{NAME}}, {{LINK}}', 'email-subscribers' ); ?></p></label>
|
193 |
</th>
|
194 |
<td><textarea size="100" id="es_c_optincontent" rows="10" cols="58" name="es_c_optincontent"><?php echo esc_html(stripslashes($this->form['ig_es_confirmcontent'])); ?></textarea></td>
|
195 |
</tr>
|
196 |
<tr class="es-signup-confirmation hidden">
|
197 |
<th scope="row">
|
198 |
+
<label for="elp"><?php echo __( 'Double Opt-In Confirmation Link', 'email-subscribers' ); ?><p class="description">
|
199 |
+
<?php echo __( 'It is a readonly field and you are advised not to modify it.', 'email-subscribers' ); ?></p></label>
|
200 |
</th>
|
201 |
<td><input name="es_c_optinlink" type="text" id="es_c_optinlink" value="<?php echo esc_html(stripslashes($this->form['ig_es_optinlink'])); ?>" size="60" maxlength="225" readonly /></td>
|
202 |
</tr>
|
203 |
<?php ob_start(); ?>
|
204 |
<tr class="es-signup-confirmation hidden">
|
205 |
<th scope="row">
|
206 |
+
<label for="elp"><?php echo __( 'Text to display after an email address is successfully subscribed from Double Opt-In (Confirmation) Email', 'email-subscribers' ); ?>
|
207 |
+
<p class="description"><?php echo __( 'This text will be displayed once user clicks on email confirmation link from the Double Opt In (confirmation) Email.', 'email-subscribers' ); ?></p></label>
|
208 |
</th>
|
209 |
<td>
|
210 |
<textarea size="100" id="es_c_subhtml" rows="4" cols="58" name="es_c_subhtml"><?php echo esc_html(stripslashes($this->form['ig_es_successmsg'])); ?></textarea>
|
211 |
</td>
|
212 |
</tr>
|
|
|
213 |
<?php $es_optin_settings = ob_get_clean();
|
214 |
$es_type = 'es_optin';
|
215 |
$es_optin_settings = apply_filters('es_optin_settings', $es_optin_settings, $es_type);
|
216 |
echo $es_optin_settings;
|
217 |
|
218 |
?>
|
219 |
+
<?php do_action('es_beside_optin_textarea'); ?>
|
220 |
<!-------------------------------------------------------------------------------->
|
221 |
<tr class="es-signup-confirmation hidden">
|
222 |
<th scope="row">
|
223 |
+
<label for="elp"><?php echo __( 'Send Welcome Email to New Subscribers after Sign Up?', 'email-subscribers' ); ?>
|
224 |
+
<p class="description"><?php echo __( 'To send welcome email to subscriber after successful signup. This option must be set to YES.', 'email-subscribers' ); ?></p></label>
|
225 |
</th>
|
226 |
<td>
|
227 |
<select name="es_c_usermailoption" id="es_c_usermailoption">
|
228 |
+
<option value='YES' <?php if($this->form['ig_es_welcomeemail'] == 'YES') { echo 'selected' ; } ?>><?php echo __( 'YES', 'email-subscribers' ); ?></option>
|
229 |
+
<option value='NO' <?php if($this->form['ig_es_welcomeemail'] == 'NO') { echo 'selected' ; } ?>><?php echo __( 'NO', 'email-subscribers' ); ?></option>
|
230 |
</select>
|
231 |
</td>
|
232 |
</tr>
|
233 |
<tr class="es-signup-confirmation hidden">
|
234 |
<th scope="row">
|
235 |
+
<label for="elp"><?php echo __( 'Subject for Welcome Email', 'email-subscribers' ); ?>
|
236 |
+
<p class="description"><?php echo __( 'Subject for the subscriber welcome email. This will be sent whenever a user\'s email is either confirmed (if Double Opt-In) / subscribed (if Single Opt-In) successfully.', 'email-subscribers' ); ?></p></label>
|
237 |
</th>
|
238 |
<td><input name="es_c_usermailsubject" type="text" id="es_c_usermailsubject" value="<?php echo esc_html(stripslashes($this->form['ig_es_welcomesubject'])); ?>" size="60" maxlength="225" /></td>
|
239 |
</tr>
|
240 |
<tr class="es-signup-confirmation hidden">
|
241 |
<th scope="row">
|
242 |
+
<label for="elp"><?php echo __( 'Email Content for Welcome Email', 'email-subscribers' ); ?>
|
243 |
+
<p class="description"><?php echo __( 'Content for the subscriber welcome email whenever a user\'s email is either confirmed (if Double Opt In) / subscribed (if Single Opt In) successfully.<br />Available Keywords: {{NAME}}, {{GROUP}}, {{LINK}}', 'email-subscribers' ); ?></p>
|
244 |
</label>
|
245 |
</th>
|
246 |
<td><textarea size="100" id="es_c_usermailcontant" rows="10" cols="58" name="es_c_usermailcontant"><?php echo esc_html(stripslashes($this->form['ig_es_welcomecontent'])); ?></textarea></td>
|
248 |
<!-------------------------------------------------------------------------------->
|
249 |
<tr class="es-signup-confirmation hidden">
|
250 |
<th scope="row">
|
251 |
+
<label for="elp"><?php echo __( 'Unsubscribe Link', 'email-subscribers' ); ?>
|
252 |
+
<p class="description"><?php echo __( 'This unsubscribe link is automatically added to all the emails that are sent from this plugin. It is a readonly field and you are advised not to modify it.', 'email-subscribers' ); ?></p></label>
|
253 |
</th>
|
254 |
<td><input name="es_c_unsublink" type="text" id="es_c_unsublink" value="<?php echo esc_html(stripslashes($this->form['ig_es_unsublink'])); ?>" size="60" maxlength="225" readonly /></td>
|
255 |
</tr>
|
256 |
<tr class="es-signup-confirmation hidden">
|
257 |
<th scope="row">
|
258 |
+
<label for="elp"><?php echo __( 'Unsubscribe Text in Email', 'email-subscribers' ); ?>
|
259 |
+
<p class="description"><?php echo __( 'The text for the unsubscribe link. This text is automatically added with unsubscribe link in the emails.<br />Available Keyword: {{LINK}}', 'email-subscribers' ); ?></p></label>
|
260 |
</th>
|
261 |
<td><textarea size="100" id="es_c_unsubtext" rows="4" cols="58" name="es_c_unsubtext"><?php echo esc_html(stripslashes($this->form['ig_es_unsubcontent'])); ?></textarea></td>
|
262 |
</tr>
|
263 |
<?php ob_start(); ?>
|
264 |
<tr class="es-signup-confirmation hidden">
|
265 |
<th scope="row">
|
266 |
+
<label for="elp"><?php echo __( 'Text to display after an email address is unsubscribed', 'email-subscribers' ); ?>
|
267 |
+
<p class="description"><?php echo __( 'This text will be displayed once user clicks on unsubscribe link from the email.', 'email-subscribers' ); ?></p></label>
|
268 |
</th>
|
269 |
<td>
|
270 |
<textarea size="100" id="es_c_unsubhtml" rows="4" cols="58" name="es_c_unsubhtml"><?php echo esc_html(stripslashes($this->form['ig_es_unsubtext'])); ?></textarea>
|
271 |
</td>
|
272 |
</tr>
|
|
|
273 |
<?php $es_optin_settings = ob_get_clean();
|
274 |
$es_type = 'es_unsubscribe';
|
275 |
$es_optin_settings = apply_filters('es_optin_settings', $es_optin_settings, $es_type);
|
276 |
echo $es_optin_settings;
|
277 |
?>
|
278 |
+
<?php do_action('es_beside_unsubscribe_textarea'); ?>
|
279 |
<!-------------------------------------------------------------------------------->
|
280 |
<tr class="es-signup-confirmation hidden">
|
281 |
<th scope="row">
|
282 |
+
<label for="elp"><?php echo __( 'Error in the Subscribe / Confirmation Link', 'email-subscribers' ); ?>
|
283 |
+
<p class="description"><?php echo __( 'Default message to display if there is any issue while clicking on subscribe / confirmation link from the Double Opt-In (Confirmation) emails.', 'email-subscribers' ); ?></p></label>
|
284 |
</th>
|
285 |
<td><textarea size="100" id="es_c_message1" rows="4" cols="58" name="es_c_message1"><?php echo esc_html(stripslashes($this->form['ig_es_suberror'])); ?></textarea></td>
|
286 |
</tr>
|
287 |
<tr class="es-signup-confirmation hidden">
|
288 |
<th scope="row">
|
289 |
+
<label for="elp"><?php echo __( 'Error in the Unsubscribe Link', 'email-subscribers' ); ?>
|
290 |
+
<p class="description"><?php echo __( 'Default message to display if there is any issue while clicking on unsubscribe link from the emails.', 'email-subscribers' ); ?></p></label>
|
291 |
</th>
|
292 |
<td><textarea size="100" id="es_c_message2" rows="4" cols="58" name="es_c_message2"><?php echo esc_html(stripslashes($this->form['ig_es_unsuberror'])); ?></textarea></td>
|
293 |
</tr>
|
299 |
<tr class="es-roles hidden">
|
300 |
<td colspan=2>
|
301 |
<p class="description">
|
302 |
+
<?php echo __( 'Select user roles who can access following menus. Only Admin can change this.', 'email-subscribers' ); ?>
|
303 |
</p>
|
304 |
</td>
|
305 |
</tr>
|
306 |
<tr class="es-roles hidden">
|
307 |
<th scope="row">
|
308 |
+
<label for="tag-image"><?php echo __( 'Subscribers Menu', 'email-subscribers' ); ?></label>
|
309 |
</th>
|
310 |
<td>
|
311 |
<select name="es_roles_subscriber" id="es_roles_subscriber">
|
312 |
+
<option value='manage_options' <?php if($this->form['es_roles_subscriber'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only', 'email-subscribers' ); ?></option>
|
313 |
+
<option value='edit_others_pages' <?php if($this->form['es_roles_subscriber'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor', 'email-subscribers' ); ?></option>
|
314 |
+
<option value='edit_posts' <?php if($this->form['es_roles_subscriber'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor', 'email-subscribers' ); ?></option>
|
315 |
</select>
|
316 |
</td>
|
317 |
</tr>
|
318 |
<tr class="es-roles hidden">
|
319 |
<th scope="row">
|
320 |
+
<label for="tag-image"><?php echo __( 'Templates Menu', 'email-subscribers' ); ?></label>
|
321 |
</th>
|
322 |
<td>
|
323 |
<select name="es_roles_mail" id="es_roles_mail">
|
324 |
+
<option value='manage_options' <?php if($this->form['es_roles_mail'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only', 'email-subscribers' ); ?></option>
|
325 |
+
<option value='edit_others_pages' <?php if($this->form['es_roles_mail'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor', 'email-subscribers' ); ?></option>
|
326 |
+
<option value='edit_posts' <?php if($this->form['es_roles_mail'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor', 'email-subscribers' ); ?></option>
|
327 |
</select>
|
328 |
</td>
|
329 |
</tr>
|
330 |
<tr class="es-roles hidden">
|
331 |
<th scope="row">
|
332 |
+
<label for="tag-image"><?php echo __( 'Post Notifications Menu', 'email-subscribers' ); ?></label>
|
333 |
</th>
|
334 |
<td>
|
335 |
<select name="es_roles_notification" id="es_roles_notification">
|
336 |
+
<option value='manage_options' <?php if($this->form['es_roles_notification'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only', 'email-subscribers' ); ?></option>
|
337 |
+
<option value='edit_others_pages' <?php if($this->form['es_roles_notification'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor', 'email-subscribers' ); ?></option>
|
338 |
+
<option value='edit_posts' <?php if($this->form['es_roles_notification'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor', 'email-subscribers' ); ?></option>
|
339 |
</select>
|
340 |
</td>
|
341 |
</tr>
|
342 |
<tr class="es-roles hidden">
|
343 |
<th scope="row">
|
344 |
+
<label for="tag-image"><?php echo __( 'Newsletters', 'email-subscribers' ); ?></label>
|
345 |
</th>
|
346 |
<td>
|
347 |
<select name="es_roles_sendmail" id="es_roles_sendmail">
|
348 |
+
<option value='manage_options' <?php if($this->form['es_roles_sendmail'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only', 'email-subscribers' ); ?></option>
|
349 |
+
<option value='edit_others_pages' <?php if($this->form['es_roles_sendmail'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor', 'email-subscribers' ); ?></option>
|
350 |
+
<option value='edit_posts' <?php if($this->form['es_roles_sendmail'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor', 'email-subscribers' ); ?></option>
|
351 |
</select>
|
352 |
</td>
|
353 |
</tr>
|
354 |
<tr class="es-roles hidden">
|
355 |
<th scope="row">
|
356 |
+
<label for="tag-image"><?php echo __( 'Reports Menu', 'email-subscribers' ); ?></label>
|
357 |
</th>
|
358 |
<td>
|
359 |
<select name="es_roles_sentmail" id="es_roles_sentmail">
|
360 |
+
<option value='manage_options' <?php if($this->form['es_roles_sentmail'] == 'manage_options') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator Only', 'email-subscribers' ); ?></option>
|
361 |
+
<option value='edit_others_pages' <?php if($this->form['es_roles_sentmail'] == 'edit_others_pages') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor', 'email-subscribers' ); ?></option>
|
362 |
+
<option value='edit_posts' <?php if($this->form['es_roles_sentmail'] == 'edit_posts') { echo "selected='selected'" ; } ?>><?php echo __( 'Administrator/Editor/Author/Contributor', 'email-subscribers' ); ?></option>
|
363 |
</select>
|
364 |
</td>
|
365 |
</tr>
|
370 |
?>
|
371 |
<tr class="es-cron hidden">
|
372 |
<th scope="row">
|
373 |
+
<label for="tag-image"><?php echo __( 'Cron job URL', 'email-subscribers' ); ?>
|
374 |
+
<p class="description"><?php echo __( 'This is your Cron Job URL. It is a readonly field and you are advised not to modify it.', 'email-subscribers' ); ?></p>
|
375 |
</label>
|
376 |
</th>
|
377 |
<td>
|
381 |
<?php do_action('es_after_cron_url', $this->form); ?>
|
382 |
<tr class="es-cron hidden">
|
383 |
<th scope="row">
|
384 |
+
<label for="tag-image"><?php echo __( 'Email Count', 'email-subscribers' ); ?>
|
385 |
+
<p class="description"><?php echo __( 'Number of emails that you want to trigger per hour.', 'email-subscribers' ); ?></p>
|
386 |
</label>
|
387 |
</th>
|
388 |
<td>
|
389 |
<input type="number" name="es_cron_mailcount" id="es_cron_mailcount" value="<?php echo $this->form['ig_es_cron_mailcount']; ?>" maxlength="3" />
|
390 |
+
<p class="description"><?php echo __( '(Your web host has limits. We suggest 50 emails per hour to be safe.)', 'email-subscribers' ) ?></p>
|
391 |
</td>
|
392 |
</tr>
|
393 |
<tr class="es-cron hidden">
|
394 |
<th scope="row">
|
395 |
+
<label for="tag-image"><?php echo __( 'Cron Report', 'email-subscribers' ); ?>
|
396 |
+
<p class="description"><?php echo __( 'Email to admin whenever a cron URL is triggered from your server.<br />Available Keywords: {{DATE}}, {{SUBJECT}}, {{COUNT}}', 'email-subscribers' ); ?></p>
|
397 |
</label>
|
398 |
</th>
|
399 |
<td>
|
400 |
+
<label><input type="checkbox" name="ig_es_enable_cron_adminmail" value="yes" <?php ( !empty( $this->form['ig_es_enable_cron_adminmail'] ) ) ? checked( $this->form['ig_es_enable_cron_adminmail'], 'yes' ) : ''; ?>/><?php echo __( 'Enabling this will send a cron report email on every successfully cron hit', 'email-subscribers' ); ?></label><br/><br/>
|
401 |
<textarea size="100" id="es_cron_adminmail" rows="7" cols="72" name="es_cron_adminmail"><?php echo esc_html(stripslashes($this->form['ig_es_cron_adminmail'])); ?></textarea>
|
402 |
</td>
|
403 |
</tr>
|
405 |
<tr class="es-cron hidden">
|
406 |
<td colspan=2>
|
407 |
<div class="tool-box">
|
408 |
+
<h3><?php echo __( 'What is Cron (auto emails) and how to setup Cron Job?', 'email-subscribers' ); ?></h3>
|
409 |
+
<li><?php echo __( '<a target="_blank" href="https://www.icegram.com/documentation/es-how-to-schedule-cron-emails/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page">What is Cron?</a>', 'email-subscribers' ); ?></li>
|
410 |
+
<li><?php echo __( '<a target="_blank" href="https://www.icegram.com/documentation/es-how-to-schedule-cron-emails-in-cpanel/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page">Setup cron job in cPanel</a>', 'email-subscribers' ); ?></li>
|
411 |
+
<li><?php echo __( '<a target="_blank" href="https://www.icegram.com/documentation/es-how-to-schedule-cron-emails-in-parallels-plesk/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page">Setup cron job in Plesk</a>', 'email-subscribers' ); ?></li>
|
412 |
+
<li><?php echo __( '<a target="_blank" href="https://www.icegram.com/documentation/es-what-to-do-if-hosting-doesnt-support-cron-jobs/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page">Hosting does not support cron jobs?</a>', 'email-subscribers' ); ?></li><br>
|
413 |
</div>
|
414 |
</td>
|
415 |
</tr>
|
527 |
$form['ig_es_fromname'] = isset($_POST['es_c_fromname']) ? $_POST['es_c_fromname'] : '';
|
528 |
$form['ig_es_fromname'] = stripslashes($form['ig_es_fromname']);
|
529 |
if ($form['ig_es_fromname'] == '') {
|
530 |
+
$es_errors[] = __( 'Please enter sender of notifications from name.', 'email-subscribers' );
|
531 |
$es_error_found = TRUE;
|
532 |
}
|
533 |
$form['ig_es_fromemail'] = isset($_POST['es_c_fromemail']) ? $_POST['es_c_fromemail'] : '';
|
534 |
if ($form['ig_es_fromemail'] == '') {
|
535 |
+
$es_errors[] = __( 'Please enter sender of notifications from email.', 'email-subscribers' );
|
536 |
$es_error_found = TRUE;
|
537 |
}
|
538 |
$form['ig_es_emailtype'] = isset($_POST['es_c_mailtype']) ? $_POST['es_c_mailtype'] : '';
|
576 |
// Fetch submitted Cron Data
|
577 |
$es_cron_mailcount = isset($_POST['es_cron_mailcount']) ? $_POST['es_cron_mailcount'] : '';
|
578 |
if( $es_cron_mailcount == "0" && strlen ($es_cron_mailcount) > 0 ) {
|
579 |
+
$es_errors[] = __('Please enter valid email count.', 'email-subscribers');
|
580 |
$es_error_found = TRUE;
|
581 |
} else {
|
582 |
$form['ig_es_cron_mailcount'] = $es_cron_mailcount;
|
591 |
$action = $this->es_settings_update( $form, $roles );
|
592 |
do_action('es_before_settings_update', $form);
|
593 |
if($action == "sus") {
|
594 |
+
$es_success = __( 'Settings Saved.', 'email-subscribers' );
|
595 |
} else {
|
596 |
$es_error_found == TRUE;
|
597 |
+
$es_errors[] = __( 'Oops, unable to update.', 'email-subscribers' );
|
598 |
}
|
599 |
}
|
600 |
}
|
subscribers/view-subscriber-add.php
CHANGED
@@ -36,7 +36,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
36 |
|
37 |
$form['es_email_mail'] = isset($_POST['es_email_mail']) ? $_POST['es_email_mail'] : '';
|
38 |
if ($form['es_email_mail'] == '') {
|
39 |
-
$es_errors[] = __( 'Please enter subscriber email address.',
|
40 |
$es_error_found = TRUE;
|
41 |
}
|
42 |
|
@@ -49,14 +49,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
49 |
}
|
50 |
|
51 |
if ( $form['es_email_group'] == '' ) {
|
52 |
-
$es_errors[] = __( 'Please select or create your group for this email.',
|
53 |
$es_error_found = TRUE;
|
54 |
}
|
55 |
|
56 |
if( $form['es_email_group'] != '' ) {
|
57 |
$special_letters = es_cls_common::es_special_letters();
|
58 |
if (preg_match($special_letters, $form['es_email_group'])) {
|
59 |
-
$es_errors[] = __( 'Error: Special characters ([\'^$%&*()}{@#~?><>,|=_+\"]) are not allowed in the group name.',
|
60 |
$es_error_found = TRUE;
|
61 |
}
|
62 |
}
|
@@ -66,12 +66,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
66 |
$action = "";
|
67 |
$action = es_cls_dbquery::es_view_subscriber_ins($form, "insert");
|
68 |
if($action == "sus") {
|
69 |
-
$es_success = __( 'Subscriber has been saved.',
|
70 |
} elseif($action == "ext") {
|
71 |
-
$es_errors[] = __( 'Subscriber already exists.',
|
72 |
$es_error_found = TRUE;
|
73 |
} elseif($action == "invalid") {
|
74 |
-
$es_errors[] = __( 'Invalid Email.',
|
75 |
$es_error_found = TRUE;
|
76 |
}
|
77 |
|
@@ -111,11 +111,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
111 |
|
112 |
<div class="wrap">
|
113 |
<h2>
|
114 |
-
<?php echo __( 'Add New Subscriber',
|
115 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import',
|
116 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export',
|
117 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync',
|
118 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
119 |
</h2>
|
120 |
<form name="form_addemail" method="post" action="#" onsubmit="return _es_addemail()">
|
121 |
<div class="tool-box">
|
@@ -124,7 +124,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
124 |
<tr>
|
125 |
<th scope="row">
|
126 |
<label for="tag-image">
|
127 |
-
<?php echo __( 'Enter Subscriber\'s Full name',
|
128 |
</label>
|
129 |
</th>
|
130 |
<td>
|
@@ -134,7 +134,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
134 |
<tr>
|
135 |
<th>
|
136 |
<label for="tag-image">
|
137 |
-
<?php echo __( 'Enter Subscriber\'s Email Address',
|
138 |
</label>
|
139 |
</th>
|
140 |
<td>
|
@@ -144,26 +144,26 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
144 |
<tr>
|
145 |
<th>
|
146 |
<label for="tag-display-status">
|
147 |
-
<?php echo __( 'Select Subscriber\'s Status',
|
148 |
</label>
|
149 |
</th>
|
150 |
<td>
|
151 |
<select name="es_email_status" id="es_email_status">
|
152 |
-
<option value='Confirmed' selected="selected"><?php echo __( 'Confirmed',
|
153 |
-
<option value='Unconfirmed'><?php echo __( 'Unconfirmed',
|
154 |
-
<option value='Unsubscribed'><?php echo __( 'Unsubscribed',
|
155 |
-
<option value='Single Opt In'><?php echo __( 'Single Opt In',
|
156 |
</select>
|
157 |
</td>
|
158 |
</tr>
|
159 |
<tr>
|
160 |
<th>
|
161 |
<label for="tag-display-status">
|
162 |
-
<?php echo __( 'Select (or) Create Group for Subscriber',
|
163 |
</th>
|
164 |
<td>
|
165 |
<select name="es_email_group" id="es_email_group">
|
166 |
-
<option value=''><?php echo __( 'Select',
|
167 |
<?php
|
168 |
$groups = array();
|
169 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
@@ -175,7 +175,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
175 |
}
|
176 |
?>
|
177 |
</select>
|
178 |
-
<?php echo __('(or)',
|
179 |
<input name="es_email_group_txt" type="text" id="es_email_group_txt" value="" maxlength="225" />
|
180 |
</td>
|
181 |
</tr>
|
@@ -184,7 +184,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
184 |
</div>
|
185 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
186 |
<p style="padding-top:5px;">
|
187 |
-
<input type="submit" class="button-primary" value="<?php echo __( 'Add Subscriber',
|
188 |
</p>
|
189 |
<?php wp_nonce_field( 'es-subscribe', 'es-subscribe' ); ?>
|
190 |
</form>
|
36 |
|
37 |
$form['es_email_mail'] = isset($_POST['es_email_mail']) ? $_POST['es_email_mail'] : '';
|
38 |
if ($form['es_email_mail'] == '') {
|
39 |
+
$es_errors[] = __( 'Please enter subscriber email address.', 'email-subscribers' );
|
40 |
$es_error_found = TRUE;
|
41 |
}
|
42 |
|
49 |
}
|
50 |
|
51 |
if ( $form['es_email_group'] == '' ) {
|
52 |
+
$es_errors[] = __( 'Please select or create your group for this email.', 'email-subscribers' );
|
53 |
$es_error_found = TRUE;
|
54 |
}
|
55 |
|
56 |
if( $form['es_email_group'] != '' ) {
|
57 |
$special_letters = es_cls_common::es_special_letters();
|
58 |
if (preg_match($special_letters, $form['es_email_group'])) {
|
59 |
+
$es_errors[] = __( 'Error: Special characters ([\'^$%&*()}{@#~?><>,|=_+\"]) are not allowed in the group name.', 'email-subscribers' );
|
60 |
$es_error_found = TRUE;
|
61 |
}
|
62 |
}
|
66 |
$action = "";
|
67 |
$action = es_cls_dbquery::es_view_subscriber_ins($form, "insert");
|
68 |
if($action == "sus") {
|
69 |
+
$es_success = __( 'Subscriber has been saved.', 'email-subscribers' );
|
70 |
} elseif($action == "ext") {
|
71 |
+
$es_errors[] = __( 'Subscriber already exists.', 'email-subscribers' );
|
72 |
$es_error_found = TRUE;
|
73 |
} elseif($action == "invalid") {
|
74 |
+
$es_errors[] = __( 'Invalid Email.', 'email-subscribers' );
|
75 |
$es_error_found = TRUE;
|
76 |
}
|
77 |
|
111 |
|
112 |
<div class="wrap">
|
113 |
<h2>
|
114 |
+
<?php echo __( 'Add New Subscriber', 'email-subscribers' ); ?>
|
115 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import', 'email-subscribers' ); ?></a>
|
116 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export', 'email-subscribers' ); ?></a>
|
117 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync', 'email-subscribers' ); ?></a>
|
118 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
119 |
</h2>
|
120 |
<form name="form_addemail" method="post" action="#" onsubmit="return _es_addemail()">
|
121 |
<div class="tool-box">
|
124 |
<tr>
|
125 |
<th scope="row">
|
126 |
<label for="tag-image">
|
127 |
+
<?php echo __( 'Enter Subscriber\'s Full name', 'email-subscribers' ); ?>
|
128 |
</label>
|
129 |
</th>
|
130 |
<td>
|
134 |
<tr>
|
135 |
<th>
|
136 |
<label for="tag-image">
|
137 |
+
<?php echo __( 'Enter Subscriber\'s Email Address', 'email-subscribers' ); ?>
|
138 |
</label>
|
139 |
</th>
|
140 |
<td>
|
144 |
<tr>
|
145 |
<th>
|
146 |
<label for="tag-display-status">
|
147 |
+
<?php echo __( 'Select Subscriber\'s Status', 'email-subscribers' ); ?>
|
148 |
</label>
|
149 |
</th>
|
150 |
<td>
|
151 |
<select name="es_email_status" id="es_email_status">
|
152 |
+
<option value='Confirmed' selected="selected"><?php echo __( 'Confirmed', 'email-subscribers' ); ?></option>
|
153 |
+
<option value='Unconfirmed'><?php echo __( 'Unconfirmed', 'email-subscribers' ); ?></option>
|
154 |
+
<option value='Unsubscribed'><?php echo __( 'Unsubscribed', 'email-subscribers' ); ?></option>
|
155 |
+
<option value='Single Opt In'><?php echo __( 'Single Opt In', 'email-subscribers' ); ?></option>
|
156 |
</select>
|
157 |
</td>
|
158 |
</tr>
|
159 |
<tr>
|
160 |
<th>
|
161 |
<label for="tag-display-status">
|
162 |
+
<?php echo __( 'Select (or) Create Group for Subscriber', 'email-subscribers' ); ?></label>
|
163 |
</th>
|
164 |
<td>
|
165 |
<select name="es_email_group" id="es_email_group">
|
166 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
167 |
<?php
|
168 |
$groups = array();
|
169 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
175 |
}
|
176 |
?>
|
177 |
</select>
|
178 |
+
<?php echo __('(or)', 'email-subscribers' );?>
|
179 |
<input name="es_email_group_txt" type="text" id="es_email_group_txt" value="" maxlength="225" />
|
180 |
</td>
|
181 |
</tr>
|
184 |
</div>
|
185 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
186 |
<p style="padding-top:5px;">
|
187 |
+
<input type="submit" class="button-primary" value="<?php echo __( 'Add Subscriber', 'email-subscribers' ); ?>" />
|
188 |
</p>
|
189 |
<?php wp_nonce_field( 'es-subscribe', 'es-subscribe' ); ?>
|
190 |
</form>
|
subscribers/view-subscriber-edit.php
CHANGED
@@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
19 |
if ($result != '1') {
|
20 |
?><div class="error fade">
|
21 |
<p><strong>
|
22 |
-
<?php echo __( 'Oops, selected details does not exists.',
|
23 |
</strong></p>
|
24 |
</div><?php
|
25 |
} else {
|
@@ -51,7 +51,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
51 |
$form['es_nonce'] = $_POST['es-subscribe'];
|
52 |
|
53 |
if ( $form['es_email_mail'] == '' ) {
|
54 |
-
$es_errors[] = __( 'Please enter subscriber email address.',
|
55 |
$es_error_found = TRUE;
|
56 |
}
|
57 |
|
@@ -61,7 +61,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
61 |
if( $form['es_email_group'] != "" ) {
|
62 |
$special_letters = es_cls_common::es_special_letters();
|
63 |
if (preg_match($special_letters, $form['es_email_group'])) {
|
64 |
-
$es_errors[] = __( 'Error: Special characters are not allowed in the group name.',
|
65 |
$es_error_found = TRUE;
|
66 |
}
|
67 |
}
|
@@ -71,9 +71,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
71 |
$action = "";
|
72 |
$action = es_cls_dbquery::es_view_subscriber_ins($form, "update");
|
73 |
if($action == "sus") {
|
74 |
-
$es_success = __( 'Subscriber details updated.',
|
75 |
} elseif($action == "ext") {
|
76 |
-
$es_errors[] = __( 'Subscriber already exists for this group.',
|
77 |
$es_error_found = TRUE;
|
78 |
}
|
79 |
}
|
@@ -105,12 +105,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
105 |
|
106 |
<div class="wrap">
|
107 |
<h2>
|
108 |
-
<?php echo __( 'Edit Subscriber',
|
109 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber',
|
110 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import',
|
111 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export',
|
112 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync',
|
113 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
114 |
</h2>
|
115 |
<form name="form_addemail" method="post" action="#" onsubmit="return _es_addemail()">
|
116 |
<div class="tool-box">
|
@@ -119,7 +119,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
119 |
<tr>
|
120 |
<th scope="row">
|
121 |
<label for="tag-image">
|
122 |
-
<?php echo __( 'Subscriber\'s Full Name',
|
123 |
</label>
|
124 |
</th>
|
125 |
<td>
|
@@ -129,7 +129,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
129 |
<tr>
|
130 |
<th scope="row">
|
131 |
<label for="tag-image">
|
132 |
-
<?php echo __( 'Subscriber\'s Email Address',
|
133 |
</label>
|
134 |
</th>
|
135 |
<td>
|
@@ -139,27 +139,27 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
139 |
<tr>
|
140 |
<th scope="row">
|
141 |
<label for="tag-display-status">
|
142 |
-
<?php echo __( 'Update Subscriber\'s Status',
|
143 |
</label>
|
144 |
</th>
|
145 |
<td>
|
146 |
<select name="es_email_status" id="es_email_status">
|
147 |
-
<option value='Confirmed' <?php if($form['es_email_status'] == 'Confirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Confirmed',
|
148 |
-
<option value='Unconfirmed' <?php if($form['es_email_status'] =='Unconfirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unconfirmed',
|
149 |
-
<option value='Unsubscribed' <?php if($form['es_email_status'] == 'Unsubscribed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unsubscribed',
|
150 |
-
<option value='Single Opt In' <?php if($form['es_email_status'] == 'Single Opt In') { echo 'selected="selected"' ; } ?>><?php echo __( 'Single Opt In',
|
151 |
</select>
|
152 |
</td>
|
153 |
</tr>
|
154 |
<tr>
|
155 |
<th scope="row">
|
156 |
<label for="tag-display-status">
|
157 |
-
<?php echo __( 'Update Subscriber\'s Group',
|
158 |
</label>
|
159 |
</th>
|
160 |
<td>
|
161 |
<select name="es_email_group" id="es_email_group">
|
162 |
-
<option value=''><?php echo __( 'Select',
|
163 |
<?php
|
164 |
$thisselected = "";
|
165 |
$groups = array();
|
@@ -188,7 +188,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
188 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
189 |
<input type="hidden" name="es_email_id" id="es_email_id" value="<?php echo $form['es_email_id']; ?>"/>
|
190 |
<p style="padding-top:5px;">
|
191 |
-
<input class="button-primary" value="<?php echo __( 'Save',
|
192 |
</p>
|
193 |
<?php wp_nonce_field( 'es-subscribe', 'es-subscribe' ); ?>
|
194 |
</form>
|
19 |
if ($result != '1') {
|
20 |
?><div class="error fade">
|
21 |
<p><strong>
|
22 |
+
<?php echo __( 'Oops, selected details does not exists.', 'email-subscribers' ); ?>
|
23 |
</strong></p>
|
24 |
</div><?php
|
25 |
} else {
|
51 |
$form['es_nonce'] = $_POST['es-subscribe'];
|
52 |
|
53 |
if ( $form['es_email_mail'] == '' ) {
|
54 |
+
$es_errors[] = __( 'Please enter subscriber email address.', 'email-subscribers' );
|
55 |
$es_error_found = TRUE;
|
56 |
}
|
57 |
|
61 |
if( $form['es_email_group'] != "" ) {
|
62 |
$special_letters = es_cls_common::es_special_letters();
|
63 |
if (preg_match($special_letters, $form['es_email_group'])) {
|
64 |
+
$es_errors[] = __( 'Error: Special characters are not allowed in the group name.', 'email-subscribers' );
|
65 |
$es_error_found = TRUE;
|
66 |
}
|
67 |
}
|
71 |
$action = "";
|
72 |
$action = es_cls_dbquery::es_view_subscriber_ins($form, "update");
|
73 |
if($action == "sus") {
|
74 |
+
$es_success = __( 'Subscriber details updated.', 'email-subscribers' );
|
75 |
} elseif($action == "ext") {
|
76 |
+
$es_errors[] = __( 'Subscriber already exists for this group.', 'email-subscribers' );
|
77 |
$es_error_found = TRUE;
|
78 |
}
|
79 |
}
|
105 |
|
106 |
<div class="wrap">
|
107 |
<h2>
|
108 |
+
<?php echo __( 'Edit Subscriber', 'email-subscribers' ); ?>
|
109 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber', 'email-subscribers' ); ?></a>
|
110 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import', 'email-subscribers' ); ?></a>
|
111 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export', 'email-subscribers' ); ?></a>
|
112 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync', 'email-subscribers' ); ?></a>
|
113 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
114 |
</h2>
|
115 |
<form name="form_addemail" method="post" action="#" onsubmit="return _es_addemail()">
|
116 |
<div class="tool-box">
|
119 |
<tr>
|
120 |
<th scope="row">
|
121 |
<label for="tag-image">
|
122 |
+
<?php echo __( 'Subscriber\'s Full Name', 'email-subscribers' ); ?>
|
123 |
</label>
|
124 |
</th>
|
125 |
<td>
|
129 |
<tr>
|
130 |
<th scope="row">
|
131 |
<label for="tag-image">
|
132 |
+
<?php echo __( 'Subscriber\'s Email Address', 'email-subscribers' ); ?>
|
133 |
</label>
|
134 |
</th>
|
135 |
<td>
|
139 |
<tr>
|
140 |
<th scope="row">
|
141 |
<label for="tag-display-status">
|
142 |
+
<?php echo __( 'Update Subscriber\'s Status', 'email-subscribers' ); ?>
|
143 |
</label>
|
144 |
</th>
|
145 |
<td>
|
146 |
<select name="es_email_status" id="es_email_status">
|
147 |
+
<option value='Confirmed' <?php if($form['es_email_status'] == 'Confirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Confirmed', 'email-subscribers' ); ?></option>
|
148 |
+
<option value='Unconfirmed' <?php if($form['es_email_status'] =='Unconfirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unconfirmed', 'email-subscribers' ); ?></option>
|
149 |
+
<option value='Unsubscribed' <?php if($form['es_email_status'] == 'Unsubscribed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unsubscribed', 'email-subscribers' ); ?></option>
|
150 |
+
<option value='Single Opt In' <?php if($form['es_email_status'] == 'Single Opt In') { echo 'selected="selected"' ; } ?>><?php echo __( 'Single Opt In', 'email-subscribers' ); ?></option>
|
151 |
</select>
|
152 |
</td>
|
153 |
</tr>
|
154 |
<tr>
|
155 |
<th scope="row">
|
156 |
<label for="tag-display-status">
|
157 |
+
<?php echo __( 'Update Subscriber\'s Group', 'email-subscribers' ); ?>
|
158 |
</label>
|
159 |
</th>
|
160 |
<td>
|
161 |
<select name="es_email_group" id="es_email_group">
|
162 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
163 |
<?php
|
164 |
$thisselected = "";
|
165 |
$groups = array();
|
188 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
189 |
<input type="hidden" name="es_email_id" id="es_email_id" value="<?php echo $form['es_email_id']; ?>"/>
|
190 |
<p style="padding-top:5px;">
|
191 |
+
<input class="button-primary" value="<?php echo __( 'Save', 'email-subscribers' ); ?>" type="submit" />
|
192 |
</p>
|
193 |
<?php wp_nonce_field( 'es-subscribe', 'es-subscribe' ); ?>
|
194 |
</form>
|
subscribers/view-subscriber-export.php
CHANGED
@@ -9,9 +9,9 @@ global $current_user;
|
|
9 |
if ( !( $current_user instanceof WP_User ) || !current_user_can( 'manage_options' ) ) {
|
10 |
?>
|
11 |
<div style="text-align: center; width: 90%; height: 75%; display: flex; position: fixed; align-items: center; justify-content: center;">
|
12 |
-
<h1><?php echo __( 'Oops! Looks like you are not the site administrator.<br><br>Only the site administrator can export subscriber list.',
|
13 |
<br><br>
|
14 |
-
<a style="line-height: 30px; height: 35px;" class="button-primary" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers"><?php echo __( 'Go back to Subscribers dashboard',
|
15 |
</h1>
|
16 |
</div>
|
17 |
<?php
|
@@ -47,61 +47,61 @@ $cnt_comment_author = $wpdb->get_var( $get_wp_commented_users_on_blog );
|
|
47 |
|
48 |
<div class="wrap">
|
49 |
<h2 style="margin-bottom:1em;">
|
50 |
-
<?php echo __( 'Export Email Addresses',
|
51 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber',
|
52 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import',
|
53 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync',
|
54 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
55 |
</h2>
|
56 |
<div class="tool-box">
|
57 |
<form name="frm_es_subscriberexport" method="post">
|
58 |
<table width="100%" class="widefat" id="straymanage">
|
59 |
<thead>
|
60 |
<tr>
|
61 |
-
<th scope="col"><?php echo __( 'Sno',
|
62 |
-
<th scope="col"><?php echo __( 'Type of List to Export',
|
63 |
-
<th scope="col"><?php echo __( 'Total Emails Count',
|
64 |
-
<th scope="col"><?php echo __( 'Action',
|
65 |
</tr>
|
66 |
</thead>
|
67 |
<tfoot>
|
68 |
<tr>
|
69 |
-
<th scope="col"><?php echo __( 'Sno',
|
70 |
-
<th scope="col"><?php echo __( 'Type of List to Export',
|
71 |
-
<th scope="col"><?php echo __( 'Total Emails Count',
|
72 |
-
<th scope="col"><?php echo __( 'Action',
|
73 |
</tr>
|
74 |
</tfoot>
|
75 |
<tbody>
|
76 |
<tr>
|
77 |
-
<td><?php echo __( '1',
|
78 |
-
<td><?php echo __( 'All Subscribers',
|
79 |
<td><?php echo $cnt_all_subscribers; ?></td>
|
80 |
-
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'view_all_subscribers')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV',
|
81 |
</tr>
|
82 |
<tr class="alternate">
|
83 |
-
<td><?php echo __( '2',
|
84 |
-
<td><?php echo __( 'Active Subscribers (Status: Confirmed & Single Opt In)',
|
85 |
<td><?php echo $cnt_active_subscribers; ?></td>
|
86 |
-
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'view_active_subscribers')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV',
|
87 |
</tr>
|
88 |
<tr>
|
89 |
-
<td><?php echo __( '3',
|
90 |
-
<td><?php echo __( 'Inactive Subscribers (Status: Unconfirmed & Unsubscribed)',
|
91 |
<td><?php echo $cnt_inactive_subscribers; ?></td>
|
92 |
-
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'view_inactive_subscribers')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV',
|
93 |
</tr>
|
94 |
<tr class="alternate">
|
95 |
-
<td><?php echo __( '4',
|
96 |
-
<td><?php echo __( 'WordPress Registered Users',
|
97 |
<td><?php echo $cnt_users; ?></td>
|
98 |
-
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'registered_user')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV',
|
99 |
</tr>
|
100 |
<tr>
|
101 |
-
<td><?php echo __( '5',
|
102 |
-
<td><?php echo __( 'Commented Authors',
|
103 |
<td><?php echo $cnt_comment_author; ?></td>
|
104 |
-
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'commentposed_user')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV',
|
105 |
</tr>
|
106 |
</tbody>
|
107 |
</table>
|
9 |
if ( !( $current_user instanceof WP_User ) || !current_user_can( 'manage_options' ) ) {
|
10 |
?>
|
11 |
<div style="text-align: center; width: 90%; height: 75%; display: flex; position: fixed; align-items: center; justify-content: center;">
|
12 |
+
<h1><?php echo __( 'Oops! Looks like you are not the site administrator.<br><br>Only the site administrator can export subscriber list.', 'email-subscribers' ); ?>
|
13 |
<br><br>
|
14 |
+
<a style="line-height: 30px; height: 35px;" class="button-primary" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers"><?php echo __( 'Go back to Subscribers dashboard', 'email-subscribers' ); ?></a>
|
15 |
</h1>
|
16 |
</div>
|
17 |
<?php
|
47 |
|
48 |
<div class="wrap">
|
49 |
<h2 style="margin-bottom:1em;">
|
50 |
+
<?php echo __( 'Export Email Addresses', 'email-subscribers' ); ?>
|
51 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber', 'email-subscribers' ); ?></a>
|
52 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import', 'email-subscribers' ); ?></a>
|
53 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync', 'email-subscribers' ); ?></a>
|
54 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
55 |
</h2>
|
56 |
<div class="tool-box">
|
57 |
<form name="frm_es_subscriberexport" method="post">
|
58 |
<table width="100%" class="widefat" id="straymanage">
|
59 |
<thead>
|
60 |
<tr>
|
61 |
+
<th scope="col"><?php echo __( 'Sno', 'email-subscribers' ); ?></th>
|
62 |
+
<th scope="col"><?php echo __( 'Type of List to Export', 'email-subscribers' ); ?></th>
|
63 |
+
<th scope="col"><?php echo __( 'Total Emails Count', 'email-subscribers' ); ?></th>
|
64 |
+
<th scope="col"><?php echo __( 'Action', 'email-subscribers' ); ?></th>
|
65 |
</tr>
|
66 |
</thead>
|
67 |
<tfoot>
|
68 |
<tr>
|
69 |
+
<th scope="col"><?php echo __( 'Sno', 'email-subscribers' ); ?></th>
|
70 |
+
<th scope="col"><?php echo __( 'Type of List to Export', 'email-subscribers' ); ?></th>
|
71 |
+
<th scope="col"><?php echo __( 'Total Emails Count', 'email-subscribers' ); ?></th>
|
72 |
+
<th scope="col"><?php echo __( 'Action', 'email-subscribers' ); ?></th>
|
73 |
</tr>
|
74 |
</tfoot>
|
75 |
<tbody>
|
76 |
<tr>
|
77 |
+
<td><?php echo __( '1', 'email-subscribers' ); ?></td>
|
78 |
+
<td><?php echo __( 'All Subscribers', 'email-subscribers' ); ?></td>
|
79 |
<td><?php echo $cnt_all_subscribers; ?></td>
|
80 |
+
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'view_all_subscribers')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV', 'email-subscribers' ); ?></a></td>
|
81 |
</tr>
|
82 |
<tr class="alternate">
|
83 |
+
<td><?php echo __( '2', 'email-subscribers' ); ?></td>
|
84 |
+
<td><?php echo __( 'Active Subscribers (Status: Confirmed & Single Opt In)', 'email-subscribers' ); ?></td>
|
85 |
<td><?php echo $cnt_active_subscribers; ?></td>
|
86 |
+
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'view_active_subscribers')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV', 'email-subscribers' ); ?></a></td>
|
87 |
</tr>
|
88 |
<tr>
|
89 |
+
<td><?php echo __( '3', 'email-subscribers' ); ?></td>
|
90 |
+
<td><?php echo __( 'Inactive Subscribers (Status: Unconfirmed & Unsubscribed)', 'email-subscribers' ); ?></td>
|
91 |
<td><?php echo $cnt_inactive_subscribers; ?></td>
|
92 |
+
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'view_inactive_subscribers')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV', 'email-subscribers' ); ?></a></td>
|
93 |
</tr>
|
94 |
<tr class="alternate">
|
95 |
+
<td><?php echo __( '4', 'email-subscribers' ); ?></td>
|
96 |
+
<td><?php echo __( 'WordPress Registered Users', 'email-subscribers' ); ?></td>
|
97 |
<td><?php echo $cnt_users; ?></td>
|
98 |
+
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'registered_user')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV', 'email-subscribers' ); ?></a></td>
|
99 |
</tr>
|
100 |
<tr>
|
101 |
+
<td><?php echo __( '5', 'email-subscribers' ); ?></td>
|
102 |
+
<td><?php echo __( 'Commented Authors', 'email-subscribers' ); ?></td>
|
103 |
<td><?php echo $cnt_comment_author; ?></td>
|
104 |
+
<td><a onClick="javascript:_es_exportcsv('<?php echo $home_url. "?es=export"; ?>', 'commentposed_user')" href="javascript:void(0);"><?php echo __( 'Click to Export in CSV', 'email-subscribers' ); ?></a></td>
|
105 |
</tr>
|
106 |
</tbody>
|
107 |
</table>
|
subscribers/view-subscriber-import.php
CHANGED
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
42 |
if( $es_email_group != "" ) {
|
43 |
$special_letters = es_cls_common::es_special_letters();
|
44 |
if (preg_match($special_letters, $es_email_group)) {
|
45 |
-
$es_errors[] = __( 'Error: Special characters ([\'^$%&*()}{@#~?><>,|=_+\"]) are not allowed in the Group name.',
|
46 |
$es_error_found = TRUE;
|
47 |
}
|
48 |
}
|
@@ -93,12 +93,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
93 |
|
94 |
?>
|
95 |
<div class="notice notice-success is-dismissible">
|
96 |
-
<p><strong><?php echo $inserted; ?> <?php echo __( 'email imported.',
|
97 |
-
<p><strong><?php echo $duplicate; ?> <?php echo __( 'email already exists.',
|
98 |
-
<p><strong><?php echo $invalid; ?> <?php echo __( 'email are invalid.',
|
99 |
<p><strong>
|
100 |
<a href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers">
|
101 |
-
<?php echo __( 'Click here',
|
102 |
</strong></p>
|
103 |
</div>
|
104 |
<?php
|
@@ -106,7 +106,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
106 |
?>
|
107 |
<div class="error fade">
|
108 |
<p><strong>
|
109 |
-
<?php echo __( 'File Upload Failed.',
|
110 |
</strong></p>
|
111 |
</div>
|
112 |
<?php
|
@@ -127,7 +127,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
127 |
<div class="notice notice-success is-dismissible">
|
128 |
<p><strong>
|
129 |
<?php echo $es_success; ?><a href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers">
|
130 |
-
<?php echo __( 'Click here',
|
131 |
</strong></p>
|
132 |
</div>
|
133 |
<?php
|
@@ -143,11 +143,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
143 |
|
144 |
<div class="wrap">
|
145 |
<h2>
|
146 |
-
<?php echo __( 'Import Email Addresses',
|
147 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber',
|
148 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export',
|
149 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync',
|
150 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
151 |
</h2>
|
152 |
<div class="tool-box">
|
153 |
<form name="form_addemail" id="form_addemail" method="post" action="#" onsubmit="return _es_importemail()" enctype="multipart/form-data">
|
@@ -156,10 +156,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
156 |
<tr>
|
157 |
<th scope="row">
|
158 |
<label for="tag-image">
|
159 |
-
<?php echo __( 'Select CSV file',
|
160 |
<p class="description">
|
161 |
-
<?php echo __( 'Check CSV structure ',
|
162 |
-
<a target="_blank" href="https://www.icegram.com/documentation/es-how-to-import-or-export-email-addresses/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page"><?php echo __( 'from here',
|
163 |
</p>
|
164 |
</label>
|
165 |
</th>
|
@@ -170,28 +170,28 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
170 |
<tr>
|
171 |
<th scope="row">
|
172 |
<label for="tag-email-status">
|
173 |
-
<?php echo __( 'Select Subscribers Email Status',
|
174 |
-
<p><?php echo __( '',
|
175 |
</label>
|
176 |
</th>
|
177 |
<td>
|
178 |
<select name="es_email_status" id="es_email_status">
|
179 |
-
<option value='Confirmed' selected="selected"><?php echo __( 'Confirmed',
|
180 |
-
<option value='Unconfirmed'><?php echo __( 'Unconfirmed',
|
181 |
-
<option value='Unsubscribed'><?php echo __( 'Unsubscribed',
|
182 |
-
<option value='Single Opt In'><?php echo __( 'Single Opt In',
|
183 |
</select>
|
184 |
</td>
|
185 |
</tr>
|
186 |
<tr>
|
187 |
<th>
|
188 |
<label for="tag-email-group">
|
189 |
-
<?php echo __( 'Select (or) Create Group for Subscribers',
|
190 |
</label>
|
191 |
</th>
|
192 |
<td>
|
193 |
<select name="es_email_group" id="es_email_group">
|
194 |
-
<option value=''><?php echo __( 'Select',
|
195 |
<?php
|
196 |
$groups = array();
|
197 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
@@ -203,7 +203,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
203 |
}
|
204 |
?>
|
205 |
</select>
|
206 |
-
<?php echo __( '(or)',
|
207 |
<input name="es_email_group_txt" type="text" id="es_email_group_txt" value="" maxlength="225" />
|
208 |
</td>
|
209 |
</tr>
|
@@ -211,7 +211,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
211 |
</table>
|
212 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
213 |
<p style="padding-top:10px;">
|
214 |
-
<input type="submit" class="button-primary" value="<?php echo __( 'Import',
|
215 |
</p>
|
216 |
<?php wp_nonce_field('es_form_add'); ?>
|
217 |
</form>
|
42 |
if( $es_email_group != "" ) {
|
43 |
$special_letters = es_cls_common::es_special_letters();
|
44 |
if (preg_match($special_letters, $es_email_group)) {
|
45 |
+
$es_errors[] = __( 'Error: Special characters ([\'^$%&*()}{@#~?><>,|=_+\"]) are not allowed in the Group name.', 'email-subscribers' );
|
46 |
$es_error_found = TRUE;
|
47 |
}
|
48 |
}
|
93 |
|
94 |
?>
|
95 |
<div class="notice notice-success is-dismissible">
|
96 |
+
<p><strong><?php echo $inserted; ?> <?php echo __( 'email imported.', 'email-subscribers' ); ?></strong></p>
|
97 |
+
<p><strong><?php echo $duplicate; ?> <?php echo __( 'email already exists.', 'email-subscribers' ); ?></strong></p>
|
98 |
+
<p><strong><?php echo $invalid; ?> <?php echo __( 'email are invalid.', 'email-subscribers' ); ?></strong></p>
|
99 |
<p><strong>
|
100 |
<a href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers">
|
101 |
+
<?php echo __( 'Click here', 'email-subscribers' ); ?></a> <?php echo __(' to view details.', 'email-subscribers' ); ?>
|
102 |
</strong></p>
|
103 |
</div>
|
104 |
<?php
|
106 |
?>
|
107 |
<div class="error fade">
|
108 |
<p><strong>
|
109 |
+
<?php echo __( 'File Upload Failed.', 'email-subscribers' ); ?>
|
110 |
</strong></p>
|
111 |
</div>
|
112 |
<?php
|
127 |
<div class="notice notice-success is-dismissible">
|
128 |
<p><strong>
|
129 |
<?php echo $es_success; ?><a href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers">
|
130 |
+
<?php echo __( 'Click here', 'email-subscribers' ); ?></a> <?php echo __( ' to view details.', 'email-subscribers' ); ?>
|
131 |
</strong></p>
|
132 |
</div>
|
133 |
<?php
|
143 |
|
144 |
<div class="wrap">
|
145 |
<h2>
|
146 |
+
<?php echo __( 'Import Email Addresses', 'email-subscribers' ); ?>
|
147 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber', 'email-subscribers' ); ?></a>
|
148 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export', 'email-subscribers' ); ?></a>
|
149 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync', 'email-subscribers' ); ?></a>
|
150 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
151 |
</h2>
|
152 |
<div class="tool-box">
|
153 |
<form name="form_addemail" id="form_addemail" method="post" action="#" onsubmit="return _es_importemail()" enctype="multipart/form-data">
|
156 |
<tr>
|
157 |
<th scope="row">
|
158 |
<label for="tag-image">
|
159 |
+
<?php echo __( 'Select CSV file', 'email-subscribers' ); ?>
|
160 |
<p class="description">
|
161 |
+
<?php echo __( 'Check CSV structure ', 'email-subscribers' ); ?>
|
162 |
+
<a target="_blank" href="https://www.icegram.com/documentation/es-how-to-import-or-export-email-addresses/?utm_source=es&utm_medium=in_app&utm_campaign=view_docs_help_page"><?php echo __( 'from here', 'email-subscribers' ); ?></a>
|
163 |
</p>
|
164 |
</label>
|
165 |
</th>
|
170 |
<tr>
|
171 |
<th scope="row">
|
172 |
<label for="tag-email-status">
|
173 |
+
<?php echo __( 'Select Subscribers Email Status', 'email-subscribers' ); ?>
|
174 |
+
<p><?php echo __( '', 'email-subscribers' ); ?></p>
|
175 |
</label>
|
176 |
</th>
|
177 |
<td>
|
178 |
<select name="es_email_status" id="es_email_status">
|
179 |
+
<option value='Confirmed' selected="selected"><?php echo __( 'Confirmed', 'email-subscribers' ); ?></option>
|
180 |
+
<option value='Unconfirmed'><?php echo __( 'Unconfirmed', 'email-subscribers' ); ?></option>
|
181 |
+
<option value='Unsubscribed'><?php echo __( 'Unsubscribed', 'email-subscribers' ); ?></option>
|
182 |
+
<option value='Single Opt In'><?php echo __( 'Single Opt In', 'email-subscribers' ); ?></option>
|
183 |
</select>
|
184 |
</td>
|
185 |
</tr>
|
186 |
<tr>
|
187 |
<th>
|
188 |
<label for="tag-email-group">
|
189 |
+
<?php echo __( 'Select (or) Create Group for Subscribers', 'email-subscribers' ); ?>
|
190 |
</label>
|
191 |
</th>
|
192 |
<td>
|
193 |
<select name="es_email_group" id="es_email_group">
|
194 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
195 |
<?php
|
196 |
$groups = array();
|
197 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
203 |
}
|
204 |
?>
|
205 |
</select>
|
206 |
+
<?php echo __( '(or)', 'email-subscribers' ); ?>
|
207 |
<input name="es_email_group_txt" type="text" id="es_email_group_txt" value="" maxlength="225" />
|
208 |
</td>
|
209 |
</tr>
|
211 |
</table>
|
212 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
213 |
<p style="padding-top:10px;">
|
214 |
+
<input type="submit" class="button-primary" value="<?php echo __( 'Import', 'email-subscribers' ); ?>" />
|
215 |
</p>
|
216 |
<?php wp_nonce_field('es_form_add'); ?>
|
217 |
</form>
|
subscribers/view-subscriber-show.php
CHANGED
@@ -14,7 +14,7 @@ if ( $es_c_email_subscribers_ver != "2.9" ) {
|
|
14 |
?><div class="error fade">
|
15 |
<p>
|
16 |
Note: You have recently upgraded the plugin and your tables are not sync.
|
17 |
-
Please <a title="Sync plugin tables." href="<?php echo ES_ADMINURL; ?>?page=es-settings&ac=sync"><?php echo __( 'Click Here',
|
18 |
This is mandatory and it will not affect your data.
|
19 |
</p>
|
20 |
</div><?php
|
@@ -42,7 +42,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
42 |
if ($result != '1') {
|
43 |
?><div class="error fade">
|
44 |
<p><strong>
|
45 |
-
<?php echo __( 'Selected details does not exists.',
|
46 |
</strong></p>
|
47 |
</div><?php
|
48 |
} else {
|
@@ -53,7 +53,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
53 |
|
54 |
// Set success message
|
55 |
$es_success_msg = TRUE;
|
56 |
-
$es_success = __( 'Record deleted.',
|
57 |
}
|
58 |
|
59 |
if (isset($_GET['ac']) && $_GET['ac'] == 'resend' && isset($_GET['did']) && $_GET['did'] != '') {
|
@@ -64,7 +64,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
64 |
?>
|
65 |
<div class="error fade">
|
66 |
<p><strong>
|
67 |
-
<?php echo __( 'To send confirmation email, please change the Opt-in option to Double Opt In.',
|
68 |
</strong></p>
|
69 |
</div>
|
70 |
<?php
|
@@ -72,7 +72,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
72 |
es_cls_sendmail::es_prepare_optin("single", $did, $idlist = "");
|
73 |
es_cls_dbquery::es_view_subscriber_upd_status("Unconfirmed", $did);
|
74 |
$es_success_msg = TRUE;
|
75 |
-
$es_success = __( 'Confirmation emails resent successfully.',
|
76 |
}
|
77 |
}
|
78 |
}
|
@@ -92,12 +92,12 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
92 |
|
93 |
// Set success message
|
94 |
$es_success_msg = TRUE;
|
95 |
-
$es_success = __( 'Record deleted.',
|
96 |
} else {
|
97 |
?>
|
98 |
<div class="error fade is-dismissible">
|
99 |
<p><strong>
|
100 |
-
<?php echo __( 'No record was selected.',
|
101 |
</strong></p>
|
102 |
</div>
|
103 |
<?php
|
@@ -112,7 +112,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
112 |
?>
|
113 |
<div class="error fade">
|
114 |
<p><strong>
|
115 |
-
<?php echo __( 'To send confirmation mail, please change the Opt-in option to Double Opt In.',
|
116 |
</strong></p>
|
117 |
</div>
|
118 |
<?php
|
@@ -131,12 +131,12 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
131 |
es_cls_sendmail::es_prepare_optin("group", 0, $idlist);
|
132 |
es_cls_dbquery::es_view_subscriber_upd_status("Unconfirmed", $idlist);
|
133 |
$es_success_msg = TRUE;
|
134 |
-
$es_success = __( 'Confirmation emails resent successfully.',
|
135 |
} else {
|
136 |
?>
|
137 |
<div class="error fade">
|
138 |
<p><strong>
|
139 |
-
<?php echo __( 'No record was selected.',
|
140 |
</strong></p>
|
141 |
</div>
|
142 |
<?php
|
@@ -161,12 +161,12 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
161 |
}
|
162 |
es_cls_dbquery::es_view_subscriber_upd_group($es_email_group, $idlist);
|
163 |
$es_success_msg = TRUE;
|
164 |
-
$es_success = __( 'Subscribers Group updated.',
|
165 |
} else {
|
166 |
?>
|
167 |
<div class="error fade">
|
168 |
<p><strong>
|
169 |
-
<?php echo __( 'Please select New group to update.',
|
170 |
</strong></p>
|
171 |
</div>
|
172 |
<?php
|
@@ -175,7 +175,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
175 |
?>
|
176 |
<div class="error fade">
|
177 |
<p><strong>
|
178 |
-
<?php echo __( 'No record was selected.',
|
179 |
</strong></p>
|
180 |
</div>
|
181 |
<?php
|
@@ -200,12 +200,12 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
200 |
// es_cls_dbquery::es_bulk_update_subscriber_status($es_email_status, $idstatus);
|
201 |
es_cls_dbquery::es_view_subscriber_upd_status($es_email_status, $idstatus);
|
202 |
$es_success_msg = TRUE;
|
203 |
-
$es_success = __( 'Subscribers Status updated.',
|
204 |
} else {
|
205 |
?>
|
206 |
<div class="error fade">
|
207 |
<p><strong>
|
208 |
-
<?php echo __( 'Please select New Status to update.',
|
209 |
</strong></p>
|
210 |
</div>
|
211 |
<?php
|
@@ -214,7 +214,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
214 |
?>
|
215 |
<div class="error fade is-dismissible">
|
216 |
<p><strong>
|
217 |
-
<?php echo __( 'No record was selected.',
|
218 |
</strong></p>
|
219 |
</div>
|
220 |
<?php
|
@@ -239,12 +239,12 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
239 |
|
240 |
<div class="wrap">
|
241 |
<h2>
|
242 |
-
<?php echo __( 'Subscribers',
|
243 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber',
|
244 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import',
|
245 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export',
|
246 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync',
|
247 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
248 |
<?php
|
249 |
do_action('es_after_action_buttons');
|
250 |
?>
|
@@ -253,9 +253,9 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
253 |
<?php
|
254 |
$total_subscribers = es_cls_dbquery::es_view_subscriber_count(0);
|
255 |
$active_subscribers = es_cls_dbquery::es_active_subscribers();
|
256 |
-
echo '<span>'.__( 'Total Subscribers: ',
|
257 |
echo '<br>';
|
258 |
-
echo sprintf(__( 'Active Subscribers: %s',
|
259 |
?>
|
260 |
</div>
|
261 |
<div class="tool-box">
|
@@ -285,26 +285,26 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
285 |
|
286 |
//Columns for Subscribers Dashboard
|
287 |
$es_subscribers_col = array();
|
288 |
-
$es_subscribers_col['email'] = __( 'Email Address',
|
289 |
-
$es_subscribers_col['name'] = __( 'Name',
|
290 |
-
$es_subscribers_col['status'] = __( 'Status',
|
291 |
-
$es_subscribers_col['group'] = __( 'Group',
|
292 |
-
$es_subscribers_col['date'] = __( 'Signup Date & Time<br>(Y-M-D H:I:S)',
|
293 |
-
$es_subscribers_col['action'] = __( 'Action',
|
294 |
$es_subscribers_col = apply_filters('es_subscribers_col', $es_subscribers_col);
|
295 |
?>
|
296 |
|
297 |
<div class="tablenav">
|
298 |
<span style="text-align:left;">
|
299 |
<select name="bulk_action" id="bulk_action" onchange="return _es_action_visible(this.value)">
|
300 |
-
<option value=""><?php echo __( 'Bulk Actions',
|
301 |
-
<option value="delete"><?php echo __( 'Delete',
|
302 |
-
<option value="resend"><?php echo __( 'Resend Confirmation',
|
303 |
-
<option value="groupupdate"><?php echo __( 'Update Subscribers Group',
|
304 |
-
<option value="updatestatus"><?php echo __( 'Update Subscribers Status',
|
305 |
</select>
|
306 |
<select name="es_email_group" id="es_email_group" disabled="disabled">
|
307 |
-
<option value=''><?php echo __( 'Select Group',
|
308 |
<?php
|
309 |
$groups = array();
|
310 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
@@ -319,20 +319,20 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
319 |
?>
|
320 |
</select>
|
321 |
<select name="es_update_status" id="es_update_status" disabled="disabled">
|
322 |
-
<option value=""><?php echo __( 'Select Status',
|
323 |
-
<option value="Confirmed"><?php echo __( 'Confirmed',
|
324 |
-
<option value="Unconfirmed"><?php echo __( 'Unconfirmed',
|
325 |
-
<option value="Unsubscribed"><?php echo __( 'Unsubscribed',
|
326 |
-
<option value="Single Opt In"><?php echo __( 'Single Opt In',
|
327 |
</select>
|
328 |
-
<input type="submit" value="<?php echo __( 'Apply',
|
329 |
</span>
|
330 |
<?php
|
331 |
do_action('es_after_bulk_action');
|
332 |
?>
|
333 |
<span style="float:right;">
|
334 |
<select name="search_group_action" id="search_group_action" onchange="return _es_search_group_action(this.value)">
|
335 |
-
<option value=""><?php echo __( 'All Groups',
|
336 |
<?php
|
337 |
$groups = array();
|
338 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
@@ -349,21 +349,21 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
349 |
?>
|
350 |
</select>
|
351 |
<select name="search_sts_action" id="search_sts_action" onchange="return _es_search_sts_action(this.value)">
|
352 |
-
<option value=""><?php echo __( 'All Status',
|
353 |
-
<option value="Confirmed" <?php if($search_sts=='Confirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Confirmed',
|
354 |
-
<option value="Unconfirmed" <?php if($search_sts=='Unconfirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unconfirmed',
|
355 |
-
<option value="Unsubscribed" <?php if($search_sts=='Unsubscribed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unsubscribed',
|
356 |
-
<option value="Single Opt In" <?php if($search_sts=='Single Opt In') { echo 'selected="selected"' ; } ?>><?php echo __( 'Single Opt In',
|
357 |
</select>
|
358 |
<select name="search_count_action" id="search_count_action" onchange="return _es_search_count_action(this.value)">
|
359 |
-
<option value="1" <?php if($search_count=='1') { echo 'selected="selected"' ; } ?>><?php echo __( '1 to 500 emails',
|
360 |
-
<option value="501" <?php if($search_count=='501') { echo 'selected="selected"' ; } ?>><?php echo __( '501 to 1000',
|
361 |
-
<option value="1001" <?php if($search_count=='1001') { echo 'selected="selected"' ; } ?>><?php echo __( '1001 to 1500',
|
362 |
-
<option value="1501" <?php if($search_count=='1501') { echo 'selected="selected"' ; } ?>><?php echo __( '1501 to 2000',
|
363 |
-
<option value="2001" <?php if($search_count=='2001') { echo 'selected="selected"' ; } ?>><?php echo __( '2001 to 4000',
|
364 |
-
<option value="4001" <?php if($search_count=='4001') { echo 'selected="selected"' ; } ?>><?php echo __( '4001 to 6000',
|
365 |
-
<option value="6001" <?php if($search_count=='6001') { echo 'selected="selected"' ; } ?>><?php echo __( '6001 to 10000',
|
366 |
-
<option value="0" <?php if($search_count=='0') { echo 'selected="selected"' ; } ?>><?php echo __( 'Display All',
|
367 |
</select>
|
368 |
</span>
|
369 |
</div>
|
@@ -410,16 +410,16 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
410 |
$es_col_data['es_email_status'] = es_cls_common::es_disp_status($data['es_email_status']);
|
411 |
$es_col_data['es_email_group'] = stripslashes($data['es_email_group']);
|
412 |
$es_col_data['es_email_created'] = get_date_from_gmt($data['es_email_created'],'Y-m-d H:i:s');
|
413 |
-
$es_resend_link = ($data['es_email_status'] != 'Confirmed' && $data['es_email_status'] != 'Single Opt In' ) ? "<span class=edit>| <a onClick=javascript:_es_resend(".$data['es_email_id'].") href=javascript:void(0);>".__( "Resend Confirmation",
|
414 |
$es_col_data['es_quick_actions'] = "<div>
|
415 |
<span class=edit>
|
416 |
<a href=".ES_ADMINURL."?page=es-view-subscribers&ac=edit&did=".$data['es_email_id'].">
|
417 |
-
". __( 'Edit',
|
418 |
</a> |
|
419 |
</span>
|
420 |
<span class=trash>
|
421 |
<a onClick=javascript:_es_delete(".$data["es_email_id"].") href=javascript:void(0);>
|
422 |
-
". __( 'Delete',
|
423 |
</a>
|
424 |
</span>"
|
425 |
.$es_resend_link.
|
@@ -453,7 +453,7 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
|
|
453 |
} else {
|
454 |
?>
|
455 |
<tr>
|
456 |
-
<td colspan="7" align="center"><?php echo __( 'No records available.',
|
457 |
</tr>
|
458 |
<?php
|
459 |
}
|
14 |
?><div class="error fade">
|
15 |
<p>
|
16 |
Note: You have recently upgraded the plugin and your tables are not sync.
|
17 |
+
Please <a title="Sync plugin tables." href="<?php echo ES_ADMINURL; ?>?page=es-settings&ac=sync"><?php echo __( 'Click Here', 'email-subscribers' ); ?></a> to sync the table.
|
18 |
This is mandatory and it will not affect your data.
|
19 |
</p>
|
20 |
</div><?php
|
42 |
if ($result != '1') {
|
43 |
?><div class="error fade">
|
44 |
<p><strong>
|
45 |
+
<?php echo __( 'Selected details does not exists.', 'email-subscribers' ); ?>
|
46 |
</strong></p>
|
47 |
</div><?php
|
48 |
} else {
|
53 |
|
54 |
// Set success message
|
55 |
$es_success_msg = TRUE;
|
56 |
+
$es_success = __( 'Record deleted.', 'email-subscribers' );
|
57 |
}
|
58 |
|
59 |
if (isset($_GET['ac']) && $_GET['ac'] == 'resend' && isset($_GET['did']) && $_GET['did'] != '') {
|
64 |
?>
|
65 |
<div class="error fade">
|
66 |
<p><strong>
|
67 |
+
<?php echo __( 'To send confirmation email, please change the Opt-in option to Double Opt In.', 'email-subscribers' ); ?>
|
68 |
</strong></p>
|
69 |
</div>
|
70 |
<?php
|
72 |
es_cls_sendmail::es_prepare_optin("single", $did, $idlist = "");
|
73 |
es_cls_dbquery::es_view_subscriber_upd_status("Unconfirmed", $did);
|
74 |
$es_success_msg = TRUE;
|
75 |
+
$es_success = __( 'Confirmation emails resent successfully.', 'email-subscribers' );
|
76 |
}
|
77 |
}
|
78 |
}
|
92 |
|
93 |
// Set success message
|
94 |
$es_success_msg = TRUE;
|
95 |
+
$es_success = __( 'Record deleted.', 'email-subscribers' );
|
96 |
} else {
|
97 |
?>
|
98 |
<div class="error fade is-dismissible">
|
99 |
<p><strong>
|
100 |
+
<?php echo __( 'No record was selected.', 'email-subscribers' ); ?>
|
101 |
</strong></p>
|
102 |
</div>
|
103 |
<?php
|
112 |
?>
|
113 |
<div class="error fade">
|
114 |
<p><strong>
|
115 |
+
<?php echo __( 'To send confirmation mail, please change the Opt-in option to Double Opt In.', 'email-subscribers' ); ?>
|
116 |
</strong></p>
|
117 |
</div>
|
118 |
<?php
|
131 |
es_cls_sendmail::es_prepare_optin("group", 0, $idlist);
|
132 |
es_cls_dbquery::es_view_subscriber_upd_status("Unconfirmed", $idlist);
|
133 |
$es_success_msg = TRUE;
|
134 |
+
$es_success = __( 'Confirmation emails resent successfully.', 'email-subscribers' );
|
135 |
} else {
|
136 |
?>
|
137 |
<div class="error fade">
|
138 |
<p><strong>
|
139 |
+
<?php echo __( 'No record was selected.', 'email-subscribers' ); ?>
|
140 |
</strong></p>
|
141 |
</div>
|
142 |
<?php
|
161 |
}
|
162 |
es_cls_dbquery::es_view_subscriber_upd_group($es_email_group, $idlist);
|
163 |
$es_success_msg = TRUE;
|
164 |
+
$es_success = __( 'Subscribers Group updated.', 'email-subscribers' );
|
165 |
} else {
|
166 |
?>
|
167 |
<div class="error fade">
|
168 |
<p><strong>
|
169 |
+
<?php echo __( 'Please select New group to update.', 'email-subscribers' ); ?>
|
170 |
</strong></p>
|
171 |
</div>
|
172 |
<?php
|
175 |
?>
|
176 |
<div class="error fade">
|
177 |
<p><strong>
|
178 |
+
<?php echo __( 'No record was selected.', 'email-subscribers' ); ?>
|
179 |
</strong></p>
|
180 |
</div>
|
181 |
<?php
|
200 |
// es_cls_dbquery::es_bulk_update_subscriber_status($es_email_status, $idstatus);
|
201 |
es_cls_dbquery::es_view_subscriber_upd_status($es_email_status, $idstatus);
|
202 |
$es_success_msg = TRUE;
|
203 |
+
$es_success = __( 'Subscribers Status updated.', 'email-subscribers' );
|
204 |
} else {
|
205 |
?>
|
206 |
<div class="error fade">
|
207 |
<p><strong>
|
208 |
+
<?php echo __( 'Please select New Status to update.', 'email-subscribers' ); ?>
|
209 |
</strong></p>
|
210 |
</div>
|
211 |
<?php
|
214 |
?>
|
215 |
<div class="error fade is-dismissible">
|
216 |
<p><strong>
|
217 |
+
<?php echo __( 'No record was selected.', 'email-subscribers' ); ?>
|
218 |
</strong></p>
|
219 |
</div>
|
220 |
<?php
|
239 |
|
240 |
<div class="wrap">
|
241 |
<h2>
|
242 |
+
<?php echo __( 'Subscribers', 'email-subscribers' ); ?>
|
243 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber', 'email-subscribers' ); ?></a>
|
244 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import', 'email-subscribers' ); ?></a>
|
245 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export', 'email-subscribers' ); ?></a>
|
246 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=sync"><?php echo __( 'Sync', 'email-subscribers' ); ?></a>
|
247 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
248 |
<?php
|
249 |
do_action('es_after_action_buttons');
|
250 |
?>
|
253 |
<?php
|
254 |
$total_subscribers = es_cls_dbquery::es_view_subscriber_count(0);
|
255 |
$active_subscribers = es_cls_dbquery::es_active_subscribers();
|
256 |
+
echo '<span>'.__( 'Total Subscribers: ', 'email-subscribers' ).'</span><span class="es_total_subscribers">'.$total_subscribers.'</span>';
|
257 |
echo '<br>';
|
258 |
+
echo sprintf(__( 'Active Subscribers: %s', 'email-subscribers' ), $active_subscribers );
|
259 |
?>
|
260 |
</div>
|
261 |
<div class="tool-box">
|
285 |
|
286 |
//Columns for Subscribers Dashboard
|
287 |
$es_subscribers_col = array();
|
288 |
+
$es_subscribers_col['email'] = __( 'Email Address', 'email-subscribers' );
|
289 |
+
$es_subscribers_col['name'] = __( 'Name', 'email-subscribers' );
|
290 |
+
$es_subscribers_col['status'] = __( 'Status', 'email-subscribers' );
|
291 |
+
$es_subscribers_col['group'] = __( 'Group', 'email-subscribers' );
|
292 |
+
$es_subscribers_col['date'] = __( 'Signup Date & Time<br>(Y-M-D H:I:S)', 'email-subscribers' );
|
293 |
+
$es_subscribers_col['action'] = __( 'Action', 'email-subscribers' );
|
294 |
$es_subscribers_col = apply_filters('es_subscribers_col', $es_subscribers_col);
|
295 |
?>
|
296 |
|
297 |
<div class="tablenav">
|
298 |
<span style="text-align:left;">
|
299 |
<select name="bulk_action" id="bulk_action" onchange="return _es_action_visible(this.value)">
|
300 |
+
<option value=""><?php echo __( 'Bulk Actions', 'email-subscribers' ); ?></option>
|
301 |
+
<option value="delete"><?php echo __( 'Delete', 'email-subscribers' ); ?></option>
|
302 |
+
<option value="resend"><?php echo __( 'Resend Confirmation', 'email-subscribers' ); ?></option>
|
303 |
+
<option value="groupupdate"><?php echo __( 'Update Subscribers Group', 'email-subscribers' ); ?></option>
|
304 |
+
<option value="updatestatus"><?php echo __( 'Update Subscribers Status', 'email-subscribers' ); ?></option>
|
305 |
</select>
|
306 |
<select name="es_email_group" id="es_email_group" disabled="disabled">
|
307 |
+
<option value=''><?php echo __( 'Select Group', 'email-subscribers' ); ?></option>
|
308 |
<?php
|
309 |
$groups = array();
|
310 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
319 |
?>
|
320 |
</select>
|
321 |
<select name="es_update_status" id="es_update_status" disabled="disabled">
|
322 |
+
<option value=""><?php echo __( 'Select Status', 'email-subscribers' ); ?></option>
|
323 |
+
<option value="Confirmed"><?php echo __( 'Confirmed', 'email-subscribers' ); ?></option>
|
324 |
+
<option value="Unconfirmed"><?php echo __( 'Unconfirmed', 'email-subscribers' ); ?></option>
|
325 |
+
<option value="Unsubscribed"><?php echo __( 'Unsubscribed', 'email-subscribers' ); ?></option>
|
326 |
+
<option value="Single Opt In"><?php echo __( 'Single Opt In', 'email-subscribers' ); ?></option>
|
327 |
</select>
|
328 |
+
<input type="submit" value="<?php echo __( 'Apply', 'email-subscribers' ); ?>" class="button action" id="doaction" name="doaction">
|
329 |
</span>
|
330 |
<?php
|
331 |
do_action('es_after_bulk_action');
|
332 |
?>
|
333 |
<span style="float:right;">
|
334 |
<select name="search_group_action" id="search_group_action" onchange="return _es_search_group_action(this.value)">
|
335 |
+
<option value=""><?php echo __( 'All Groups', 'email-subscribers' ); ?></option>
|
336 |
<?php
|
337 |
$groups = array();
|
338 |
$groups = es_cls_dbquery::es_view_subscriber_group();
|
349 |
?>
|
350 |
</select>
|
351 |
<select name="search_sts_action" id="search_sts_action" onchange="return _es_search_sts_action(this.value)">
|
352 |
+
<option value=""><?php echo __( 'All Status', 'email-subscribers' ); ?></option>
|
353 |
+
<option value="Confirmed" <?php if($search_sts=='Confirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Confirmed', 'email-subscribers' ); ?></option>
|
354 |
+
<option value="Unconfirmed" <?php if($search_sts=='Unconfirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unconfirmed', 'email-subscribers' ); ?></option>
|
355 |
+
<option value="Unsubscribed" <?php if($search_sts=='Unsubscribed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unsubscribed', 'email-subscribers' ); ?></option>
|
356 |
+
<option value="Single Opt In" <?php if($search_sts=='Single Opt In') { echo 'selected="selected"' ; } ?>><?php echo __( 'Single Opt In', 'email-subscribers' ); ?></option>
|
357 |
</select>
|
358 |
<select name="search_count_action" id="search_count_action" onchange="return _es_search_count_action(this.value)">
|
359 |
+
<option value="1" <?php if($search_count=='1') { echo 'selected="selected"' ; } ?>><?php echo __( '1 to 500 emails', 'email-subscribers' ); ?></option>
|
360 |
+
<option value="501" <?php if($search_count=='501') { echo 'selected="selected"' ; } ?>><?php echo __( '501 to 1000', 'email-subscribers' ); ?></option>
|
361 |
+
<option value="1001" <?php if($search_count=='1001') { echo 'selected="selected"' ; } ?>><?php echo __( '1001 to 1500', 'email-subscribers' ); ?></option>
|
362 |
+
<option value="1501" <?php if($search_count=='1501') { echo 'selected="selected"' ; } ?>><?php echo __( '1501 to 2000', 'email-subscribers' ); ?></option>
|
363 |
+
<option value="2001" <?php if($search_count=='2001') { echo 'selected="selected"' ; } ?>><?php echo __( '2001 to 4000', 'email-subscribers' ); ?></option>
|
364 |
+
<option value="4001" <?php if($search_count=='4001') { echo 'selected="selected"' ; } ?>><?php echo __( '4001 to 6000', 'email-subscribers' ); ?></option>
|
365 |
+
<option value="6001" <?php if($search_count=='6001') { echo 'selected="selected"' ; } ?>><?php echo __( '6001 to 10000', 'email-subscribers' ); ?></option>
|
366 |
+
<option value="0" <?php if($search_count=='0') { echo 'selected="selected"' ; } ?>><?php echo __( 'Display All', 'email-subscribers' );?></option>
|
367 |
</select>
|
368 |
</span>
|
369 |
</div>
|
410 |
$es_col_data['es_email_status'] = es_cls_common::es_disp_status($data['es_email_status']);
|
411 |
$es_col_data['es_email_group'] = stripslashes($data['es_email_group']);
|
412 |
$es_col_data['es_email_created'] = get_date_from_gmt($data['es_email_created'],'Y-m-d H:i:s');
|
413 |
+
$es_resend_link = ($data['es_email_status'] != 'Confirmed' && $data['es_email_status'] != 'Single Opt In' ) ? "<span class=edit>| <a onClick=javascript:_es_resend(".$data['es_email_id'].") href=javascript:void(0);>".__( "Resend Confirmation", 'email-subscribers' )."</a> </span>" : '' ;
|
414 |
$es_col_data['es_quick_actions'] = "<div>
|
415 |
<span class=edit>
|
416 |
<a href=".ES_ADMINURL."?page=es-view-subscribers&ac=edit&did=".$data['es_email_id'].">
|
417 |
+
". __( 'Edit', 'email-subscribers' ) ."
|
418 |
</a> |
|
419 |
</span>
|
420 |
<span class=trash>
|
421 |
<a onClick=javascript:_es_delete(".$data["es_email_id"].") href=javascript:void(0);>
|
422 |
+
". __( 'Delete', 'email-subscribers' )."
|
423 |
</a>
|
424 |
</span>"
|
425 |
.$es_resend_link.
|
453 |
} else {
|
454 |
?>
|
455 |
<tr>
|
456 |
+
<td colspan="7" align="center"><?php echo __( 'No records available.', 'email-subscribers' ); ?></td>
|
457 |
</tr>
|
458 |
<?php
|
459 |
}
|
subscribers/view-subscriber-sync.php
CHANGED
@@ -33,7 +33,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
33 |
$form['es_registered_group'] = isset($_POST['es_registered_group']) ? $_POST['es_registered_group'] : '';
|
34 |
|
35 |
if ($form['es_registered_group'] == '' && $form['es_registered'] == "YES") {
|
36 |
-
$es_errors[] = __( 'Please select default group to newly registered user.',
|
37 |
$es_error_found = TRUE;
|
38 |
}
|
39 |
|
@@ -47,7 +47,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
47 |
'es_registered_group' => ''
|
48 |
);
|
49 |
|
50 |
-
$es_success = __( 'Emails Successfully Synced.',
|
51 |
}
|
52 |
}
|
53 |
|
@@ -85,11 +85,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
85 |
|
86 |
<div class="wrap">
|
87 |
<h2>
|
88 |
-
<?php echo __( 'Sync Email',
|
89 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber',
|
90 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import',
|
91 |
-
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export',
|
92 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
93 |
</h2>
|
94 |
<form name="form_addemail" method="post" action="#" onsubmit="return _es_addemail()">
|
95 |
<div class="tool-box">
|
@@ -98,25 +98,25 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
98 |
<tr>
|
99 |
<th scope="row">
|
100 |
<label for="tag-image">
|
101 |
-
<?php echo __( 'Sync newly registered users to subscribers list',
|
102 |
</label>
|
103 |
</th>
|
104 |
<td>
|
105 |
<select name="es_registered" id="es_email_status">
|
106 |
-
<option value='NO' <?php if($es_registered == 'NO') { echo "selected='selected'" ; } ?>><?php echo __( 'NO',
|
107 |
-
<option value='YES' <?php if($es_registered == 'YES') { echo "selected='selected'" ; } ?>><?php echo __( 'YES',
|
108 |
</select>
|
109 |
</td>
|
110 |
</tr>
|
111 |
<tr>
|
112 |
<th>
|
113 |
<label for="tag-display-status">
|
114 |
-
<?php echo __( 'Select group to add newly registered users to',
|
115 |
</label>
|
116 |
</th>
|
117 |
<td>
|
118 |
<select name="es_registered_group" id="es_email_group">
|
119 |
-
<option value=''><?php echo __( 'Select',
|
120 |
<?php
|
121 |
$thisselected = "";
|
122 |
$groups = array();
|
@@ -140,7 +140,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
140 |
</div>
|
141 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
142 |
<p style="padding-top:5px;">
|
143 |
-
<input type="submit" class="button-primary" value="<?php echo __( 'Sync',
|
144 |
</p>
|
145 |
<?php wp_nonce_field('es_form_add'); ?>
|
146 |
</form>
|
33 |
$form['es_registered_group'] = isset($_POST['es_registered_group']) ? $_POST['es_registered_group'] : '';
|
34 |
|
35 |
if ($form['es_registered_group'] == '' && $form['es_registered'] == "YES") {
|
36 |
+
$es_errors[] = __( 'Please select default group to newly registered user.', 'email-subscribers' );
|
37 |
$es_error_found = TRUE;
|
38 |
}
|
39 |
|
47 |
'es_registered_group' => ''
|
48 |
);
|
49 |
|
50 |
+
$es_success = __( 'Emails Successfully Synced.', 'email-subscribers' );
|
51 |
}
|
52 |
}
|
53 |
|
85 |
|
86 |
<div class="wrap">
|
87 |
<h2>
|
88 |
+
<?php echo __( 'Sync Email', 'email-subscribers' ); ?>
|
89 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=add"><?php echo __( 'Add New Subscriber', 'email-subscribers' ); ?></a>
|
90 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=import"><?php echo __( 'Import', 'email-subscribers' ); ?></a>
|
91 |
+
<a class="add-new-h2" href="<?php echo ES_ADMINURL; ?>?page=es-view-subscribers&ac=export"><?php echo __( 'Export', 'email-subscribers' ); ?></a>
|
92 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
93 |
</h2>
|
94 |
<form name="form_addemail" method="post" action="#" onsubmit="return _es_addemail()">
|
95 |
<div class="tool-box">
|
98 |
<tr>
|
99 |
<th scope="row">
|
100 |
<label for="tag-image">
|
101 |
+
<?php echo __( 'Sync newly registered users to subscribers list', 'email-subscribers' ); ?>
|
102 |
</label>
|
103 |
</th>
|
104 |
<td>
|
105 |
<select name="es_registered" id="es_email_status">
|
106 |
+
<option value='NO' <?php if($es_registered == 'NO') { echo "selected='selected'" ; } ?>><?php echo __( 'NO', 'email-subscribers' ); ?></option>
|
107 |
+
<option value='YES' <?php if($es_registered == 'YES') { echo "selected='selected'" ; } ?>><?php echo __( 'YES', 'email-subscribers' ); ?></option>
|
108 |
</select>
|
109 |
</td>
|
110 |
</tr>
|
111 |
<tr>
|
112 |
<th>
|
113 |
<label for="tag-display-status">
|
114 |
+
<?php echo __( 'Select group to add newly registered users to', 'email-subscribers' ); ?>
|
115 |
</label>
|
116 |
</th>
|
117 |
<td>
|
118 |
<select name="es_registered_group" id="es_email_group">
|
119 |
+
<option value=''><?php echo __( 'Select', 'email-subscribers' ); ?></option>
|
120 |
<?php
|
121 |
$thisselected = "";
|
122 |
$groups = array();
|
140 |
</div>
|
141 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
142 |
<p style="padding-top:5px;">
|
143 |
+
<input type="submit" class="button-primary" value="<?php echo __( 'Sync', 'email-subscribers' ); ?>" />
|
144 |
</p>
|
145 |
<?php wp_nonce_field('es_form_add'); ?>
|
146 |
</form>
|
templates/template-preview.php
CHANGED
@@ -29,19 +29,19 @@ $template_type = get_post_meta( $did, 'es_template_type', true );
|
|
29 |
<div class="es-main" style="display:inline-flex;">
|
30 |
<div class="es-sidebar">
|
31 |
<h2 style="margin-bottom:1em;">
|
32 |
-
<?php echo __( 'Template Preview',
|
33 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
34 |
</h2>
|
35 |
<p>
|
36 |
-
<a class="button-primary" target="_blank" href="<?php echo admin_url(); ?>post.php?post=<?php echo $did; ?>&action=edit"><?php echo __( 'Edit',
|
37 |
</p>
|
38 |
<p>
|
39 |
<?php
|
40 |
-
echo __( 'This is how your email may look.',
|
41 |
if ( $template_type == 'Post Notification' ) {
|
42 |
-
echo __( '<br><br>This Post Notification preview has replaced keywords from your last published blog post.',
|
43 |
}
|
44 |
-
echo __( '<br><br>Note: Different email services (like gmail, yahoo etc) display email content differently. So there could be a slight variation on how your customer will view the email content.',
|
45 |
|
46 |
?>
|
47 |
</p>
|
29 |
<div class="es-main" style="display:inline-flex;">
|
30 |
<div class="es-sidebar">
|
31 |
<h2 style="margin-bottom:1em;">
|
32 |
+
<?php echo __( 'Template Preview', 'email-subscribers' ); ?>
|
33 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
34 |
</h2>
|
35 |
<p>
|
36 |
+
<a class="button-primary" target="_blank" href="<?php echo admin_url(); ?>post.php?post=<?php echo $did; ?>&action=edit"><?php echo __( 'Edit', 'email-subscribers' ); ?></a>
|
37 |
</p>
|
38 |
<p>
|
39 |
<?php
|
40 |
+
echo __( 'This is how your email may look.', 'email-subscribers' );
|
41 |
if ( $template_type == 'Post Notification' ) {
|
42 |
+
echo __( '<br><br>This Post Notification preview has replaced keywords from your last published blog post.', 'email-subscribers' );
|
43 |
}
|
44 |
+
echo __( '<br><br>Note: Different email services (like gmail, yahoo etc) display email content differently. So there could be a slight variation on how your customer will view the email content.', 'email-subscribers' );
|
45 |
|
46 |
?>
|
47 |
</p>
|
tools/tools.php
CHANGED
@@ -20,7 +20,7 @@ if ( ! class_exists( 'ES_Tools' ) ) {
|
|
20 |
|
21 |
public function es_get_tabs_list() {
|
22 |
$tabs = array(
|
23 |
-
'test-email' => __( 'Test Email',
|
24 |
);
|
25 |
|
26 |
return apply_filters( 'es_tools_tabs', $tabs );
|
@@ -36,8 +36,8 @@ if ( ! class_exists( 'ES_Tools' ) ) {
|
|
36 |
|
37 |
<div class="wrap">
|
38 |
<h2>
|
39 |
-
<?php echo __( 'Tools',
|
40 |
-
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help',
|
41 |
</h2>
|
42 |
<div id="icon-options-general" class="icon32"><br /></div>
|
43 |
<h2 id="es-tabs" class="nav-tab-wrapper">
|
@@ -58,7 +58,7 @@ if ( ! class_exists( 'ES_Tools' ) ) {
|
|
58 |
</table>
|
59 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
60 |
<p style="padding-top:10px;">
|
61 |
-
<input type="submit" name="publish" id="es-save-settings" class="button-primary" value="<?php echo __( 'Send Email',
|
62 |
</p>
|
63 |
<?php wp_nonce_field('es_form_edit'); ?>
|
64 |
</form>
|
@@ -69,8 +69,8 @@ if ( ! class_exists( 'ES_Tools' ) ) {
|
|
69 |
?>
|
70 |
<tr class="es-admin test-email">
|
71 |
<th scope="row">
|
72 |
-
<label for="elp"><?php echo __( 'Sende a Test Email',
|
73 |
-
<p class="description"><?php echo __( 'Type an email address here and then click a button below to generate a test email.',
|
74 |
</label>
|
75 |
</th>
|
76 |
<td>
|
@@ -100,7 +100,7 @@ if ( ! class_exists( 'ES_Tools' ) ) {
|
|
100 |
// Fetch submitted Admin Data
|
101 |
$form['ig_es_toemail'] = isset($_POST['es_c_toemail']) ? $_POST['es_c_toemail'] : '';
|
102 |
if ($form['ig_es_toemail'] == '') {
|
103 |
-
$es_error = __( 'Please enter email.',
|
104 |
$es_error_found = true;
|
105 |
} else {
|
106 |
|
@@ -109,9 +109,9 @@ if ( ! class_exists( 'ES_Tools' ) ) {
|
|
109 |
|
110 |
if('ERROR' === $status) {
|
111 |
$es_error_found = true;
|
112 |
-
$es_error = __( sprintf("Error Sending Email: %s", $result['message']),
|
113 |
} else {
|
114 |
-
$es_success = __( 'Email have been sent successfully.',
|
115 |
}
|
116 |
|
117 |
}
|
@@ -181,8 +181,8 @@ if ( ! class_exists( 'ES_Tools' ) ) {
|
|
181 |
$send_mail = wp_mail(
|
182 |
$email,
|
183 |
/* translators: %s - email address a test email will be sent to. */
|
184 |
-
'Email Subscribers: ' . sprintf( esc_html__( 'Test email to %s',
|
185 |
-
sprintf( esc_html__( 'This email was generated by the Email Subscribers WordPress plugin.',
|
186 |
$headers
|
187 |
);
|
188 |
|
20 |
|
21 |
public function es_get_tabs_list() {
|
22 |
$tabs = array(
|
23 |
+
'test-email' => __( 'Test Email', 'email-subscribers' )
|
24 |
);
|
25 |
|
26 |
return apply_filters( 'es_tools_tabs', $tabs );
|
36 |
|
37 |
<div class="wrap">
|
38 |
<h2>
|
39 |
+
<?php echo __( 'Tools', 'email-subscribers' ); ?>
|
40 |
+
<a class="add-new-h2" target="_blank" href="<?php echo ES_FAV; ?>"><?php echo __( 'Help', 'email-subscribers' ); ?></a>
|
41 |
</h2>
|
42 |
<div id="icon-options-general" class="icon32"><br /></div>
|
43 |
<h2 id="es-tabs" class="nav-tab-wrapper">
|
58 |
</table>
|
59 |
<input type="hidden" name="es_form_submit" value="yes"/>
|
60 |
<p style="padding-top:10px;">
|
61 |
+
<input type="submit" name="publish" id="es-save-settings" class="button-primary" value="<?php echo __( 'Send Email', 'email-subscribers' ); ?>" />
|
62 |
</p>
|
63 |
<?php wp_nonce_field('es_form_edit'); ?>
|
64 |
</form>
|
69 |
?>
|
70 |
<tr class="es-admin test-email">
|
71 |
<th scope="row">
|
72 |
+
<label for="elp"><?php echo __( 'Sende a Test Email', 'email-subscribers' ); ?>
|
73 |
+
<p class="description"><?php echo __( 'Type an email address here and then click a button below to generate a test email.', 'email-subscribers' ); ?></p>
|
74 |
</label>
|
75 |
</th>
|
76 |
<td>
|
100 |
// Fetch submitted Admin Data
|
101 |
$form['ig_es_toemail'] = isset($_POST['es_c_toemail']) ? $_POST['es_c_toemail'] : '';
|
102 |
if ($form['ig_es_toemail'] == '') {
|
103 |
+
$es_error = __( 'Please enter email.', 'email-subscribers' );
|
104 |
$es_error_found = true;
|
105 |
} else {
|
106 |
|
109 |
|
110 |
if('ERROR' === $status) {
|
111 |
$es_error_found = true;
|
112 |
+
$es_error = __( sprintf("Error Sending Email: %s", $result['message']), 'email-subscribers' );
|
113 |
} else {
|
114 |
+
$es_success = __( 'Email have been sent successfully.', 'email-subscribers' );
|
115 |
}
|
116 |
|
117 |
}
|
181 |
$send_mail = wp_mail(
|
182 |
$email,
|
183 |
/* translators: %s - email address a test email will be sent to. */
|
184 |
+
'Email Subscribers: ' . sprintf( esc_html__( 'Test email to %s', 'email-subscribers' ), $email ),
|
185 |
+
sprintf( esc_html__( 'This email was generated by the Email Subscribers WordPress plugin.', 'email-subscribers' )),
|
186 |
$headers
|
187 |
);
|
188 |
|