Official MailerLite Sign Up Forms - Version 1.3.6

Version Description

  • Feature - Status page to provide information about your environment
  • Tweak - Even better support for older PHP versions in main plugin file
  • Fix - Plugin's stylesheet is only included in pages where it is required
Download this release

Release Info

Developer mailerlite
Plugin Icon 128x128 Official MailerLite Sign Up Forms
Version 1.3.6
Comparing to
See all releases

Code changes from version 1.3.5 to 1.3.6

assets/css/mailerlite.css CHANGED
@@ -111,10 +111,6 @@ p.success {
111
  max-width: 100%;
112
  }
113
 
114
- @media screen and (max-width: 782px) {
115
-
116
- }
117
-
118
  .mailerlite-col .mailerlite-icon {
119
  margin: 0 auto;
120
  display: block;
111
  max-width: 100%;
112
  }
113
 
 
 
 
 
114
  .mailerlite-col .mailerlite-icon {
115
  margin: 0 auto;
116
  display: block;
include/mailerlite-admin-status.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!");
2
+
3
+
4
+ /**
5
+ * Class MailerLite_Admin_Status
6
+ */
7
+ class MailerLite_Admin_Status
8
+ {
9
+ public static function init()
10
+ {
11
+ self::init_hooks();
12
+ }
13
+
14
+ private static function init_hooks()
15
+ {
16
+ add_action(
17
+ 'admin_menu', array(
18
+ 'MailerLite_Admin_Status',
19
+ 'mailerlite_admin_generate_menu_link',
20
+ )
21
+ );
22
+ }
23
+
24
+ /**
25
+ * Generates admin menu links
26
+ */
27
+ public static function mailerlite_admin_generate_menu_link() {
28
+ global $menu, $submenu;
29
+
30
+
31
+ if(in_array('mailerlite_main', wp_list_pluck($menu,2))) {
32
+ return;
33
+ }
34
+
35
+ add_menu_page(
36
+ 'MailerLite',
37
+ 'MailerLite',
38
+ 'manage_options',
39
+ 'mailerlite_status',
40
+ null, MAILERLITE_PLUGIN_URL . '/assets/image/icon.png'
41
+ );
42
+
43
+ add_submenu_page(
44
+ 'mailerlite_main',
45
+ __( 'Status', 'mailerlite' ),
46
+ __( 'Status', 'mailerlite' ),
47
+ 'manage_options',
48
+ 'mailerlite_status',
49
+ array( 'MailerLite_Admin_Status', 'mailerlite_status' )
50
+ );
51
+ }
52
+
53
+ /**
54
+ * status page method
55
+ */
56
+ public static function mailerlite_status() {
57
+ global $mailerlite_error;
58
+
59
+ $information = mailerlite_status_information();
60
+ include( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/status.php' );
61
+ }
62
+
63
+ }
include/mailerlite-admin.php CHANGED
@@ -68,14 +68,29 @@ class MailerLite_Admin {
68
  ]
69
  );
70
 
71
- wp_register_style(
72
- 'mailerlite.css',
73
- MAILERLITE_PLUGIN_URL . '/assets/css/mailerlite.css', [],
74
- MAILERLITE_VERSION
75
- );
76
- wp_enqueue_style( 'mailerlite.css' );
77
  }
78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  /**
80
  * Generates admin menu links
81
  */
@@ -86,16 +101,29 @@ class MailerLite_Admin {
86
  );
87
 
88
  add_submenu_page(
89
- 'mailerlite_main', __( 'Forms', 'mailerlite' ),
90
- __( 'Signup forms', 'mailerlite' ), 'manage_options',
91
- 'mailerlite_main', [ 'MailerLite_Admin', 'mailerlite_main' ]
 
 
 
92
  );
93
  add_submenu_page(
94
- 'mailerlite_main', __( 'Settings', 'mailerlite' ),
95
- __( 'Settings', 'mailerlite' ), 'manage_options',
 
 
96
  'mailerlite_settings',
97
  [ 'MailerLite_Admin', 'mailerlite_settings' ]
98
  );
 
 
 
 
 
 
 
 
99
  }
100
 
101
  public static function mailerlite_admin_init_setting() {
@@ -105,6 +133,8 @@ class MailerLite_Admin {
105
  * Checks if there is API key set
106
  */
107
  private static function mailerlite_api_key_require() {
 
 
108
  if ( self::$api_key == false ) {
109
  include( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/api_key.php' );
110
  exit;
@@ -115,7 +145,7 @@ class MailerLite_Admin {
115
  * Create, edit, list pages method
116
  */
117
  public static function mailerlite_main() {
118
- global $wpdb;
119
 
120
  // Check for api key
121
  self::mailerlite_api_key_require();
@@ -337,6 +367,7 @@ class MailerLite_Admin {
337
  * Settings page method
338
  */
339
  public static function mailerlite_settings() {
 
340
  self::mailerlite_api_key_require();
341
 
342
  $api_key = self::$api_key;
@@ -458,7 +489,7 @@ class MailerLite_Admin {
458
  * @param $data
459
  */
460
  private static function create_new_form( $data ) {
461
- global $wpdb;
462
 
463
  $form_type = in_array( $data['form_type'], [ MailerLite_Form::TYPE_CUSTOM, MailerLite_Form::TYPE_EMBEDDED ] )
464
  ? $data['form_type'] : MailerLite_Form::TYPE_CUSTOM;
68
  ]
69
  );
70
 
71
+ add_action( 'admin_enqueue_scripts', ['MailerLite_Admin', 'load_mailerlite_admin_css'] );
 
 
 
 
 
72
  }
73
 
74
+ public static function load_mailerlite_admin_css($hook)
75
+ {
76
+ $allowed_hooks = [
77
+ 'toplevel_page_mailerlite_main',
78
+ 'mailerlite_page_mailerlite_settings',
79
+ 'mailerlite_page_mailerlite_status',
80
+ ];
81
+
82
+ if (!in_array($hook, $allowed_hooks)) {
83
+ return;
84
+ }
85
+
86
+ wp_register_style(
87
+ 'mailerlite.css',
88
+ MAILERLITE_PLUGIN_URL . '/assets/css/mailerlite.css', [],
89
+ MAILERLITE_VERSION
90
+ );
91
+ wp_enqueue_style( 'mailerlite.css' );
92
+ }
93
+
94
  /**
95
  * Generates admin menu links
96
  */
101
  );
102
 
103
  add_submenu_page(
104
+ 'mailerlite_main',
105
+ __( 'Forms', 'mailerlite' ),
106
+ __( 'Signup forms', 'mailerlite' ),
107
+ 'manage_options',
108
+ 'mailerlite_main',
109
+ [ 'MailerLite_Admin', 'mailerlite_main' ]
110
  );
111
  add_submenu_page(
112
+ 'mailerlite_main',
113
+ __( 'Settings', 'mailerlite' ),
114
+ __( 'Settings', 'mailerlite' ),
115
+ 'manage_options',
116
  'mailerlite_settings',
117
  [ 'MailerLite_Admin', 'mailerlite_settings' ]
118
  );
119
+ add_submenu_page(
120
+ 'mailerlite_main',
121
+ __( 'Status', 'mailerlite' ),
122
+ __( 'Status', 'mailerlite' ),
123
+ 'manage_options',
124
+ 'mailerlite_status',
125
+ [ 'MailerLite_Admin_Status', 'mailerlite_status' ]
126
+ );
127
  }
128
 
129
  public static function mailerlite_admin_init_setting() {
133
  * Checks if there is API key set
134
  */
135
  private static function mailerlite_api_key_require() {
136
+ global $mailerlite_error;
137
+
138
  if ( self::$api_key == false ) {
139
  include( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/api_key.php' );
140
  exit;
145
  * Create, edit, list pages method
146
  */
147
  public static function mailerlite_main() {
148
+ global $wpdb, $mailerlite_error;
149
 
150
  // Check for api key
151
  self::mailerlite_api_key_require();
367
  * Settings page method
368
  */
369
  public static function mailerlite_settings() {
370
+ global $mailerlite_error;
371
  self::mailerlite_api_key_require();
372
 
373
  $api_key = self::$api_key;
489
  * @param $data
490
  */
491
  private static function create_new_form( $data ) {
492
+ global $wpdb, $mailerlite_error;
493
 
494
  $form_type = in_array( $data['form_type'], [ MailerLite_Form::TYPE_CUSTOM, MailerLite_Form::TYPE_EMBEDDED ] )
495
  ? $data['form_type'] : MailerLite_Form::TYPE_CUSTOM;
include/mailerlite-form.php CHANGED
@@ -76,7 +76,7 @@ class MailerLite_Form {
76
  $fields = [];
77
 
78
  foreach ( $form_fields as $field => $value ) {
79
- $fields[] = [ 'name' => $field, 'value' => $value ];
80
  }
81
 
82
  $subscriber = [
76
  $fields = [];
77
 
78
  foreach ( $form_fields as $field => $value ) {
79
+ $fields[$field] = $value;
80
  }
81
 
82
  $subscriber = [
include/templates/admin/sidebar.php CHANGED
@@ -7,8 +7,8 @@
7
  <p><?php echo _e( 'Have any questions? Stuck on something or found bug? Feel free to contact us!',
8
  'mailerlite' ); ?></p>
9
 
10
- <p><a href="mailto:info@mailerlite.com">info@mailerlite.com</a></p>
11
  </div>
12
  </div>
13
 
14
- </div>
7
  <p><?php echo _e( 'Have any questions? Stuck on something or found bug? Feel free to contact us!',
8
  'mailerlite' ); ?></p>
9
 
10
+ <p><a href="mailto:info@mailerlite.com?subject=Official MailerLite Sign Up Forms for WordPress&body=<?php echo mailerlite_status_information_for_mailto_link();?>">info@mailerlite.com</a></p>
11
  </div>
12
  </div>
13
 
14
+ </div>
include/templates/admin/status.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!"); ?>
2
+ <?php include_once('header.php'); ?>
3
+
4
+ <div class="wrap columns-2 dd-wrap">
5
+ <h1><?php echo __('Status', 'mailerlite'); ?></h1>
6
+
7
+ <div class="metabox-holder has-right-sidebar">
8
+ <?php include("sidebar.php"); ?>
9
+ <div id="post-body">
10
+ <div id="post-body-content" class="mailerlite-activate">
11
+ <table class="form-table">
12
+ <?php foreach ($information as $group => $fields) { ?>
13
+ <tr>
14
+ <th valign="top">
15
+ <label for="mailerlite-api-key">
16
+ <?php echo $group; ?>
17
+ </label>
18
+ </th>
19
+ <td>
20
+ <ul>
21
+ <?php foreach ($fields as $name => $value) {
22
+ echo sprintf('<li></li><strong>%s:</strong> %s</li>', $name, $value);
23
+ } ?>
24
+ </ul>
25
+ </td>
26
+ </tr>
27
+ <?php } ?>
28
+ <tr>
29
+ <th><?php _e('Copy this for support', 'mailerlite'); ?></th>
30
+ <td>
31
+
32
+ <textarea onclick="this.focus();this.select()" readonly="readonly" style="width: 100%"
33
+ rows="10"><?php
34
+ foreach ($information as $group => $fields) {
35
+
36
+ echo sprintf("# %s\n\n", $group);
37
+
38
+ foreach ($fields as $name => $value) {
39
+ echo sprintf("%s: %s\n", $name, $value);
40
+ }
41
+
42
+ echo "\n";
43
+ }
44
+ ?></textarea>
45
+ </td>
46
+ </tr>
47
+ </table>
48
+
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
languages/mailerlite-lt_LT.mo CHANGED
Binary file
languages/mailerlite-lt_LT.po CHANGED
@@ -2,10 +2,10 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Official MailerLite sign up forms v1.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2019-01-14 08:12+0000\n"
6
- "PO-Revision-Date: 2019-01-14 13:33+0000\n"
7
  "Last-Translator: \n"
8
- "Language-Team: Lithuanian\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -20,6 +20,20 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Loco-Version: 2.2.0; wp-5.0.3"
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  # @ mailerlite
24
  #: include/mailerlite-form.php:94
25
  msgid "Subscriber successfully saved"
@@ -45,89 +59,89 @@ msgid "MailerLite sign up form Widget"
45
  msgstr "MailerLite naujienlaiškio formos skydelis"
46
 
47
  # @ mailerlite
48
- #: include/mailerlite-widget.php:85
49
  msgid "Select form:"
50
  msgstr "Pasirinkite formą:"
51
 
52
  # @ mailerlite
53
- #: include/mailerlite-admin.php:89
54
  msgid "Forms"
55
  msgstr "Formos"
56
 
57
  # @ mailerlite
58
- #: include/mailerlite-admin.php:90 include/templates/admin/main.php:26
59
  msgid "Signup forms"
60
  msgstr "Prenumeratos formos"
61
 
62
  # @ mailerlite
63
- #: include/mailerlite-admin.php:94 include/mailerlite-admin.php:95
64
  msgid "Settings"
65
  msgstr "Nustatymai"
66
 
67
  # @ mailerlite
68
- #: include/mailerlite-admin.php:144 include/mailerlite-admin.php:264
69
  msgid "Error happened"
70
  msgstr "Įvyko klaida"
71
 
72
  # @ mailerlite
73
- #: include/mailerlite-admin.php:148 include/mailerlite-admin.php:180
74
- #: include/mailerlite-admin.php:269 include/mailerlite-admin.php:384
75
  msgid "Send this error to info@mailerlite.com or our chat"
76
  msgstr "Atsiųskite šį klaidos pranešimą info@mailerlite.com arba per chat"
77
 
78
  # @ mailerlite
79
- #: include/mailerlite-admin.php:190
80
  msgid "Subscribe for newsletter!"
81
  msgstr "Užsisakyti naujienlaiškį!"
82
 
83
  # @ mailerlite
84
- #: include/mailerlite-admin.php:192 include/mailerlite-admin.php:469
85
  msgid "Newsletter signup"
86
  msgstr "Naujienlaiškio prenumerata."
87
 
88
  # @ mailerlite
89
- #: include/mailerlite-admin.php:194 include/mailerlite-admin.php:470
90
  msgid "Just simple MailerLite form!"
91
  msgstr "Tai pavyzdinė MailerLite prenumeratos forma!"
92
 
93
- #: include/mailerlite-admin.php:196 include/mailerlite-admin.php:473
94
  msgid "Thank you for sign up!"
95
  msgstr "Dėkojame, kad užsiprenumeravote!"
96
 
97
  # @ mailerlite
98
  # @ default
99
- #: include/mailerlite-admin.php:198 include/mailerlite-admin.php:476
100
  msgid "Subscribe"
101
  msgstr "Prenumeruoti"
102
 
103
  # @ mailerlite
104
- #: include/mailerlite-admin.php:212 include/mailerlite-admin.php:478
105
  msgid "Email"
106
  msgstr "El. paštas"
107
 
108
  # @ mailerlite
109
- #: include/mailerlite-admin.php:280
110
  msgid "Embedded webform"
111
  msgstr "Sugeneruota forma"
112
 
113
  # @ mailerlite
114
- #: include/mailerlite-admin.php:363 include/mailerlite-admin.php:401
115
- #: include/mailerlite-admin.php:412
116
  msgid "You not allowed to do that"
117
  msgstr "Šis veiksmas draudžiamas"
118
 
119
  # @ mailerlite
120
- #: include/mailerlite-admin.php:382
121
  msgid "Wrong MailerLite API key"
122
  msgstr "Neteisingas MailerLite API raktas"
123
 
124
  # @ mailerlite
125
- #: include/mailerlite-admin.php:467
126
  msgid "New custom signup form"
127
  msgstr "Nauja naujienlaiškio forma"
128
 
129
  # @ mailerlite
130
- #: include/mailerlite-admin.php:493
131
  msgid "New embedded signup form"
132
  msgstr "Nauja integruojama naujienlaiškio forma"
133
 
@@ -319,12 +333,12 @@ msgstr "Įjunkite arba išjunkite iššokančias formas sukurtas MailerLite."
319
  # @ mailerlite
320
  #: include/templates/admin/settings.php:70
321
  msgid "Double opt-in"
322
- msgstr "Double opt-in"
323
 
324
  # @ mailerlite
325
  #: include/templates/admin/settings.php:85
326
  msgid "Are you sure you want to disable double opt-in?"
327
- msgstr "Are you sure you want to disable double opt-in?"
328
 
329
  #: include/templates/admin/settings.php:91
330
  msgid ""
@@ -503,6 +517,10 @@ msgstr ""
503
  "Sveiki! Čia galėsite susikurti nuostabias naujienlaiškių prenumeratos formas,"
504
  " bet prieš tai turite įvesti MailerLite API raktą!"
505
 
 
 
 
 
506
  # @ mailerlite
507
  #: include/templates/admin/edit_embedded.php:5
508
  msgid "Edit webform"
2
  msgstr ""
3
  "Project-Id-Version: Official MailerLite sign up forms v1.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2019-01-28 10:27+0000\n"
6
+ "PO-Revision-Date: 2019-01-28 10:28+0000\n"
7
  "Last-Translator: \n"
8
+ "Language-Team: Lietuvių kalba\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Loco-Version: 2.2.0; wp-5.0.3"
22
 
23
+ #: mailerlite.php:158
24
+ msgid "Environment"
25
+ msgstr "Aplinka"
26
+
27
+ #: mailerlite.php:159
28
+ msgid "Plugin"
29
+ msgstr "Įskiepis"
30
+
31
+ #: include/mailerlite-admin-status.php:45
32
+ #: include/mailerlite-admin-status.php:46 include/mailerlite-admin.php:121
33
+ #: include/mailerlite-admin.php:122 include/templates/admin/status.php:5
34
+ msgid "Status"
35
+ msgstr "Statusas"
36
+
37
  # @ mailerlite
38
  #: include/mailerlite-form.php:94
39
  msgid "Subscriber successfully saved"
59
  msgstr "MailerLite naujienlaiškio formos skydelis"
60
 
61
  # @ mailerlite
62
+ #: include/mailerlite-widget.php:83
63
  msgid "Select form:"
64
  msgstr "Pasirinkite formą:"
65
 
66
  # @ mailerlite
67
+ #: include/mailerlite-admin.php:105
68
  msgid "Forms"
69
  msgstr "Formos"
70
 
71
  # @ mailerlite
72
+ #: include/mailerlite-admin.php:106 include/templates/admin/main.php:26
73
  msgid "Signup forms"
74
  msgstr "Prenumeratos formos"
75
 
76
  # @ mailerlite
77
+ #: include/mailerlite-admin.php:113 include/mailerlite-admin.php:114
78
  msgid "Settings"
79
  msgstr "Nustatymai"
80
 
81
  # @ mailerlite
82
+ #: include/mailerlite-admin.php:174 include/mailerlite-admin.php:294
83
  msgid "Error happened"
84
  msgstr "Įvyko klaida"
85
 
86
  # @ mailerlite
87
+ #: include/mailerlite-admin.php:178 include/mailerlite-admin.php:210
88
+ #: include/mailerlite-admin.php:299 include/mailerlite-admin.php:415
89
  msgid "Send this error to info@mailerlite.com or our chat"
90
  msgstr "Atsiųskite šį klaidos pranešimą info@mailerlite.com arba per chat"
91
 
92
  # @ mailerlite
93
+ #: include/mailerlite-admin.php:220
94
  msgid "Subscribe for newsletter!"
95
  msgstr "Užsisakyti naujienlaiškį!"
96
 
97
  # @ mailerlite
98
+ #: include/mailerlite-admin.php:222 include/mailerlite-admin.php:500
99
  msgid "Newsletter signup"
100
  msgstr "Naujienlaiškio prenumerata."
101
 
102
  # @ mailerlite
103
+ #: include/mailerlite-admin.php:224 include/mailerlite-admin.php:501
104
  msgid "Just simple MailerLite form!"
105
  msgstr "Tai pavyzdinė MailerLite prenumeratos forma!"
106
 
107
+ #: include/mailerlite-admin.php:226 include/mailerlite-admin.php:504
108
  msgid "Thank you for sign up!"
109
  msgstr "Dėkojame, kad užsiprenumeravote!"
110
 
111
  # @ mailerlite
112
  # @ default
113
+ #: include/mailerlite-admin.php:228 include/mailerlite-admin.php:507
114
  msgid "Subscribe"
115
  msgstr "Prenumeruoti"
116
 
117
  # @ mailerlite
118
+ #: include/mailerlite-admin.php:242 include/mailerlite-admin.php:509
119
  msgid "Email"
120
  msgstr "El. paštas"
121
 
122
  # @ mailerlite
123
+ #: include/mailerlite-admin.php:310
124
  msgid "Embedded webform"
125
  msgstr "Sugeneruota forma"
126
 
127
  # @ mailerlite
128
+ #: include/mailerlite-admin.php:394 include/mailerlite-admin.php:432
129
+ #: include/mailerlite-admin.php:443
130
  msgid "You not allowed to do that"
131
  msgstr "Šis veiksmas draudžiamas"
132
 
133
  # @ mailerlite
134
+ #: include/mailerlite-admin.php:413
135
  msgid "Wrong MailerLite API key"
136
  msgstr "Neteisingas MailerLite API raktas"
137
 
138
  # @ mailerlite
139
+ #: include/mailerlite-admin.php:498
140
  msgid "New custom signup form"
141
  msgstr "Nauja naujienlaiškio forma"
142
 
143
  # @ mailerlite
144
+ #: include/mailerlite-admin.php:524
145
  msgid "New embedded signup form"
146
  msgstr "Nauja integruojama naujienlaiškio forma"
147
 
333
  # @ mailerlite
334
  #: include/templates/admin/settings.php:70
335
  msgid "Double opt-in"
336
+ msgstr "Prenumeratos patvirtinimas"
337
 
338
  # @ mailerlite
339
  #: include/templates/admin/settings.php:85
340
  msgid "Are you sure you want to disable double opt-in?"
341
+ msgstr "Ar norite išjungti prenumeratos patvirtinimą?"
342
 
343
  #: include/templates/admin/settings.php:91
344
  msgid ""
517
  "Sveiki! Čia galėsite susikurti nuostabias naujienlaiškių prenumeratos formas,"
518
  " bet prieš tai turite įvesti MailerLite API raktą!"
519
 
520
+ #: include/templates/admin/status.php:29
521
+ msgid "Copy this for support"
522
+ msgstr "Nukopijuokite šį tekstą jei reikia pagalbos"
523
+
524
  # @ mailerlite
525
  #: include/templates/admin/edit_embedded.php:5
526
  msgid "Edit webform"
languages/mailerlite-ru_RU.mo CHANGED
Binary file
languages/mailerlite-ru_RU.po CHANGED
@@ -6,8 +6,8 @@ msgstr ""
6
  "X-Generator: Loco https://localise.biz/\n"
7
  "Project-Id-Version: MailerLite wordpress plugin\n"
8
  "Language: ru_RU\n"
9
- "POT-Creation-Date: 2019-01-14 08:12+0000\n"
10
- "PO-Revision-Date: 2019-01-14 13:31+0000\n"
11
  "Last-Translator: \n"
12
  "Language-Team: Russian\n"
13
  "Report-Msgid-Bugs-To: \n"
@@ -15,6 +15,20 @@ msgstr ""
15
  "n%10<=4 &&(n%100<10||n%100 >= 20)? 1 : 2);\n"
16
  "X-Loco-Version: 2.2.0; wp-5.0.3"
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  #. mailerlite
19
  #: include/mailerlite-form.php:94
20
  msgid "Subscriber successfully saved"
@@ -40,89 +54,89 @@ msgid "MailerLite sign up form Widget"
40
  msgstr "Виджет формы подписки Mailerlite"
41
 
42
  #. mailerlite
43
- #: include/mailerlite-widget.php:85
44
  msgid "Select form:"
45
  msgstr "Выберите форму:"
46
 
47
  #. mailerlite
48
- #: include/mailerlite-admin.php:89
49
  msgid "Forms"
50
  msgstr "Формы"
51
 
52
  #. mailerlite
53
- #: include/mailerlite-admin.php:90 include/templates/admin/main.php:26
54
  msgid "Signup forms"
55
  msgstr "Формы подписки"
56
 
57
  #. mailerlite
58
- #: include/mailerlite-admin.php:94 include/mailerlite-admin.php:95
59
  msgid "Settings"
60
  msgstr "Настройки"
61
 
62
  # @ mailerlite
63
- #: include/mailerlite-admin.php:144 include/mailerlite-admin.php:264
64
  msgid "Error happened"
65
  msgstr "Произошла ошибка"
66
 
67
  # @ mailerlite
68
- #: include/mailerlite-admin.php:148 include/mailerlite-admin.php:180
69
- #: include/mailerlite-admin.php:269 include/mailerlite-admin.php:384
70
  msgid "Send this error to info@mailerlite.com or our chat"
71
  msgstr "Отправьте эту ошибку на info@mailerlite.com или чат на нашем сайте."
72
 
73
  #. mailerlite
74
- #: include/mailerlite-admin.php:190
75
  msgid "Subscribe for newsletter!"
76
  msgstr "Подпишитесь на новости!"
77
 
78
  #. mailerlite
79
- #: include/mailerlite-admin.php:192 include/mailerlite-admin.php:469
80
  msgid "Newsletter signup"
81
  msgstr "Подписка на новости"
82
 
83
  #. mailerlite
84
- #: include/mailerlite-admin.php:194 include/mailerlite-admin.php:470
85
  msgid "Just simple MailerLite form!"
86
  msgstr "Простая форма подписки MailerLite!"
87
 
88
- #: include/mailerlite-admin.php:196 include/mailerlite-admin.php:473
89
  msgid "Thank you for sign up!"
90
  msgstr "Благодарим за подписку!"
91
 
92
  #. mailerlite
93
  #. default
94
- #: include/mailerlite-admin.php:198 include/mailerlite-admin.php:476
95
  msgid "Subscribe"
96
  msgstr "Подписаться"
97
 
98
  #. mailerlite
99
- #: include/mailerlite-admin.php:212 include/mailerlite-admin.php:478
100
  msgid "Email"
101
  msgstr "Email"
102
 
103
  #. mailerlite
104
- #: include/mailerlite-admin.php:280
105
  msgid "Embedded webform"
106
  msgstr "Встроенная веб-форма"
107
 
108
  #. mailerlite
109
- #: include/mailerlite-admin.php:363 include/mailerlite-admin.php:401
110
- #: include/mailerlite-admin.php:412
111
  msgid "You not allowed to do that"
112
  msgstr "Запрещенное действие"
113
 
114
  #. mailerlite
115
- #: include/mailerlite-admin.php:382
116
  msgid "Wrong MailerLite API key"
117
  msgstr "Некорректный MailerLite API ключ"
118
 
119
  #. mailerlite
120
- #: include/mailerlite-admin.php:467
121
  msgid "New custom signup form"
122
  msgstr "Новая пользовательская форма подписки"
123
 
124
  #. mailerlite
125
- #: include/mailerlite-admin.php:493
126
  msgid "New embedded signup form"
127
  msgstr "Новая встроенная веб-форма"
128
 
@@ -503,6 +517,10 @@ msgstr ""
503
  "Приветствуем! Вы сможете создавать красивые формы подписки, но сначала "
504
  "просим предоставить ваш ​​MailerLite API ключ!"
505
 
 
 
 
 
506
  #. mailerlite
507
  #: include/templates/admin/edit_embedded.php:5
508
  msgid "Edit webform"
6
  "X-Generator: Loco https://localise.biz/\n"
7
  "Project-Id-Version: MailerLite wordpress plugin\n"
8
  "Language: ru_RU\n"
9
+ "POT-Creation-Date: 2019-01-28 10:27+0000\n"
10
+ "PO-Revision-Date: 2019-01-28 11:49+0000\n"
11
  "Last-Translator: \n"
12
  "Language-Team: Russian\n"
13
  "Report-Msgid-Bugs-To: \n"
15
  "n%10<=4 &&(n%100<10||n%100 >= 20)? 1 : 2);\n"
16
  "X-Loco-Version: 2.2.0; wp-5.0.3"
17
 
18
+ #: mailerlite.php:158
19
+ msgid "Environment"
20
+ msgstr "Среда разработки"
21
+
22
+ #: mailerlite.php:159
23
+ msgid "Plugin"
24
+ msgstr "Плагин"
25
+
26
+ #: include/mailerlite-admin-status.php:45
27
+ #: include/mailerlite-admin-status.php:46 include/mailerlite-admin.php:121
28
+ #: include/mailerlite-admin.php:122 include/templates/admin/status.php:5
29
+ msgid "Status"
30
+ msgstr "Статус"
31
+
32
  #. mailerlite
33
  #: include/mailerlite-form.php:94
34
  msgid "Subscriber successfully saved"
54
  msgstr "Виджет формы подписки Mailerlite"
55
 
56
  #. mailerlite
57
+ #: include/mailerlite-widget.php:83
58
  msgid "Select form:"
59
  msgstr "Выберите форму:"
60
 
61
  #. mailerlite
62
+ #: include/mailerlite-admin.php:105
63
  msgid "Forms"
64
  msgstr "Формы"
65
 
66
  #. mailerlite
67
+ #: include/mailerlite-admin.php:106 include/templates/admin/main.php:26
68
  msgid "Signup forms"
69
  msgstr "Формы подписки"
70
 
71
  #. mailerlite
72
+ #: include/mailerlite-admin.php:113 include/mailerlite-admin.php:114
73
  msgid "Settings"
74
  msgstr "Настройки"
75
 
76
  # @ mailerlite
77
+ #: include/mailerlite-admin.php:174 include/mailerlite-admin.php:294
78
  msgid "Error happened"
79
  msgstr "Произошла ошибка"
80
 
81
  # @ mailerlite
82
+ #: include/mailerlite-admin.php:178 include/mailerlite-admin.php:210
83
+ #: include/mailerlite-admin.php:299 include/mailerlite-admin.php:415
84
  msgid "Send this error to info@mailerlite.com or our chat"
85
  msgstr "Отправьте эту ошибку на info@mailerlite.com или чат на нашем сайте."
86
 
87
  #. mailerlite
88
+ #: include/mailerlite-admin.php:220
89
  msgid "Subscribe for newsletter!"
90
  msgstr "Подпишитесь на новости!"
91
 
92
  #. mailerlite
93
+ #: include/mailerlite-admin.php:222 include/mailerlite-admin.php:500
94
  msgid "Newsletter signup"
95
  msgstr "Подписка на новости"
96
 
97
  #. mailerlite
98
+ #: include/mailerlite-admin.php:224 include/mailerlite-admin.php:501
99
  msgid "Just simple MailerLite form!"
100
  msgstr "Простая форма подписки MailerLite!"
101
 
102
+ #: include/mailerlite-admin.php:226 include/mailerlite-admin.php:504
103
  msgid "Thank you for sign up!"
104
  msgstr "Благодарим за подписку!"
105
 
106
  #. mailerlite
107
  #. default
108
+ #: include/mailerlite-admin.php:228 include/mailerlite-admin.php:507
109
  msgid "Subscribe"
110
  msgstr "Подписаться"
111
 
112
  #. mailerlite
113
+ #: include/mailerlite-admin.php:242 include/mailerlite-admin.php:509
114
  msgid "Email"
115
  msgstr "Email"
116
 
117
  #. mailerlite
118
+ #: include/mailerlite-admin.php:310
119
  msgid "Embedded webform"
120
  msgstr "Встроенная веб-форма"
121
 
122
  #. mailerlite
123
+ #: include/mailerlite-admin.php:394 include/mailerlite-admin.php:432
124
+ #: include/mailerlite-admin.php:443
125
  msgid "You not allowed to do that"
126
  msgstr "Запрещенное действие"
127
 
128
  #. mailerlite
129
+ #: include/mailerlite-admin.php:413
130
  msgid "Wrong MailerLite API key"
131
  msgstr "Некорректный MailerLite API ключ"
132
 
133
  #. mailerlite
134
+ #: include/mailerlite-admin.php:498
135
  msgid "New custom signup form"
136
  msgstr "Новая пользовательская форма подписки"
137
 
138
  #. mailerlite
139
+ #: include/mailerlite-admin.php:524
140
  msgid "New embedded signup form"
141
  msgstr "Новая встроенная веб-форма"
142
 
517
  "Приветствуем! Вы сможете создавать красивые формы подписки, но сначала "
518
  "просим предоставить ваш ​​MailerLite API ключ!"
519
 
520
+ #: include/templates/admin/status.php:29
521
+ msgid "Copy this for support"
522
+ msgstr "Скопируйте эту информацию для поддержки"
523
+
524
  #. mailerlite
525
  #: include/templates/admin/edit_embedded.php:5
526
  msgid "Edit webform"
languages/mailerlite-uk_UA.mo CHANGED
Binary file
languages/mailerlite-uk_UA.po CHANGED
@@ -6,8 +6,8 @@ msgstr ""
6
  "X-Generator: Loco https://localise.biz/\n"
7
  "Project-Id-Version: MailerLite wordpress plugin\n"
8
  "Language: uk_UA\n"
9
- "POT-Creation-Date: 2019-01-14 08:12+0000\n"
10
- "PO-Revision-Date: 2019-01-14 13:32+0000\n"
11
  "Last-Translator: \n"
12
  "Language-Team: Ukrainian (Ukraine)\n"
13
  "Report-Msgid-Bugs-To: \n"
@@ -15,6 +15,20 @@ msgstr ""
15
  "n%10<=4 &&(n%100<10||n%100 >= 20)? 1 : 2);\n"
16
  "X-Loco-Version: 2.2.0; wp-5.0.3"
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  #. mailerlite
19
  #: include/mailerlite-form.php:94
20
  msgid "Subscriber successfully saved"
@@ -40,91 +54,91 @@ msgid "MailerLite sign up form Widget"
40
  msgstr "Віджет форми підписки Mailerlite"
41
 
42
  #. mailerlite
43
- #: include/mailerlite-widget.php:85
44
  msgid "Select form:"
45
  msgstr "Виберіть форму:"
46
 
47
  #. mailerlite
48
- #: include/mailerlite-admin.php:89
49
  msgid "Forms"
50
  msgstr "Форми"
51
 
52
  #. mailerlite
53
- #: include/mailerlite-admin.php:90 include/templates/admin/main.php:26
54
  msgid "Signup forms"
55
  msgstr "Форми підписки"
56
 
57
  #. mailerlite
58
- #: include/mailerlite-admin.php:94 include/mailerlite-admin.php:95
59
  msgid "Settings"
60
  msgstr "Налаштування"
61
 
62
  # @ mailerlite
63
- #: include/mailerlite-admin.php:144 include/mailerlite-admin.php:264
64
  msgid "Error happened"
65
  msgstr "Сталася помилка"
66
 
67
  # @ mailerlite
68
- #: include/mailerlite-admin.php:148 include/mailerlite-admin.php:180
69
- #: include/mailerlite-admin.php:269 include/mailerlite-admin.php:384
70
  msgid "Send this error to info@mailerlite.com or our chat"
71
  msgstr ""
72
  "Відправте цю помилку на info@mailerlite.com або зв'яжіться з нами через "
73
  "онлайн"
74
 
75
  #. mailerlite
76
- #: include/mailerlite-admin.php:190
77
  msgid "Subscribe for newsletter!"
78
  msgstr "Підпишіться на новини!"
79
 
80
  #. mailerlite
81
- #: include/mailerlite-admin.php:192 include/mailerlite-admin.php:469
82
  msgid "Newsletter signup"
83
  msgstr "Підписка на новини"
84
 
85
  #. mailerlite
86
- #: include/mailerlite-admin.php:194 include/mailerlite-admin.php:470
87
  msgid "Just simple MailerLite form!"
88
  msgstr "Проста форма підписки MailerLite!"
89
 
90
- #: include/mailerlite-admin.php:196 include/mailerlite-admin.php:473
91
  msgid "Thank you for sign up!"
92
  msgstr "Дякуємо за підписку!"
93
 
94
  #. mailerlite
95
  #. default
96
- #: include/mailerlite-admin.php:198 include/mailerlite-admin.php:476
97
  msgid "Subscribe"
98
  msgstr "Підписатися"
99
 
100
  #. mailerlite
101
- #: include/mailerlite-admin.php:212 include/mailerlite-admin.php:478
102
  msgid "Email"
103
  msgstr "Email"
104
 
105
  #. mailerlite
106
- #: include/mailerlite-admin.php:280
107
  msgid "Embedded webform"
108
  msgstr "Вбудована веб-форма"
109
 
110
  #. mailerlite
111
- #: include/mailerlite-admin.php:363 include/mailerlite-admin.php:401
112
- #: include/mailerlite-admin.php:412
113
  msgid "You not allowed to do that"
114
  msgstr "Заборонена дія"
115
 
116
  #. mailerlite
117
- #: include/mailerlite-admin.php:382
118
  msgid "Wrong MailerLite API key"
119
  msgstr "Некоректний MailerLite API ключ"
120
 
121
  #. mailerlite
122
- #: include/mailerlite-admin.php:467
123
  msgid "New custom signup form"
124
  msgstr "Нова форма підписки користувача"
125
 
126
  #. mailerlite
127
- #: include/mailerlite-admin.php:493
128
  msgid "New embedded signup form"
129
  msgstr "Нова вбудована веб-форма"
130
 
@@ -506,6 +520,10 @@ msgstr ""
506
  "Вітаємо! Ви зможете створювати красиві форми підписки, але спочатку просимо "
507
  "надати ваш MailerLite API ключ!"
508
 
 
 
 
 
509
  #. mailerlite
510
  #: include/templates/admin/edit_embedded.php:5
511
  msgid "Edit webform"
6
  "X-Generator: Loco https://localise.biz/\n"
7
  "Project-Id-Version: MailerLite wordpress plugin\n"
8
  "Language: uk_UA\n"
9
+ "POT-Creation-Date: 2019-01-28 10:27+0000\n"
10
+ "PO-Revision-Date: 2019-01-28 10:29+0000\n"
11
  "Last-Translator: \n"
12
  "Language-Team: Ukrainian (Ukraine)\n"
13
  "Report-Msgid-Bugs-To: \n"
15
  "n%10<=4 &&(n%100<10||n%100 >= 20)? 1 : 2);\n"
16
  "X-Loco-Version: 2.2.0; wp-5.0.3"
17
 
18
+ #: mailerlite.php:158
19
+ msgid "Environment"
20
+ msgstr "Середовище"
21
+
22
+ #: mailerlite.php:159
23
+ msgid "Plugin"
24
+ msgstr "Плагін"
25
+
26
+ #: include/mailerlite-admin-status.php:45
27
+ #: include/mailerlite-admin-status.php:46 include/mailerlite-admin.php:121
28
+ #: include/mailerlite-admin.php:122 include/templates/admin/status.php:5
29
+ msgid "Status"
30
+ msgstr "Статус"
31
+
32
  #. mailerlite
33
  #: include/mailerlite-form.php:94
34
  msgid "Subscriber successfully saved"
54
  msgstr "Віджет форми підписки Mailerlite"
55
 
56
  #. mailerlite
57
+ #: include/mailerlite-widget.php:83
58
  msgid "Select form:"
59
  msgstr "Виберіть форму:"
60
 
61
  #. mailerlite
62
+ #: include/mailerlite-admin.php:105
63
  msgid "Forms"
64
  msgstr "Форми"
65
 
66
  #. mailerlite
67
+ #: include/mailerlite-admin.php:106 include/templates/admin/main.php:26
68
  msgid "Signup forms"
69
  msgstr "Форми підписки"
70
 
71
  #. mailerlite
72
+ #: include/mailerlite-admin.php:113 include/mailerlite-admin.php:114
73
  msgid "Settings"
74
  msgstr "Налаштування"
75
 
76
  # @ mailerlite
77
+ #: include/mailerlite-admin.php:174 include/mailerlite-admin.php:294
78
  msgid "Error happened"
79
  msgstr "Сталася помилка"
80
 
81
  # @ mailerlite
82
+ #: include/mailerlite-admin.php:178 include/mailerlite-admin.php:210
83
+ #: include/mailerlite-admin.php:299 include/mailerlite-admin.php:415
84
  msgid "Send this error to info@mailerlite.com or our chat"
85
  msgstr ""
86
  "Відправте цю помилку на info@mailerlite.com або зв'яжіться з нами через "
87
  "онлайн"
88
 
89
  #. mailerlite
90
+ #: include/mailerlite-admin.php:220
91
  msgid "Subscribe for newsletter!"
92
  msgstr "Підпишіться на новини!"
93
 
94
  #. mailerlite
95
+ #: include/mailerlite-admin.php:222 include/mailerlite-admin.php:500
96
  msgid "Newsletter signup"
97
  msgstr "Підписка на новини"
98
 
99
  #. mailerlite
100
+ #: include/mailerlite-admin.php:224 include/mailerlite-admin.php:501
101
  msgid "Just simple MailerLite form!"
102
  msgstr "Проста форма підписки MailerLite!"
103
 
104
+ #: include/mailerlite-admin.php:226 include/mailerlite-admin.php:504
105
  msgid "Thank you for sign up!"
106
  msgstr "Дякуємо за підписку!"
107
 
108
  #. mailerlite
109
  #. default
110
+ #: include/mailerlite-admin.php:228 include/mailerlite-admin.php:507
111
  msgid "Subscribe"
112
  msgstr "Підписатися"
113
 
114
  #. mailerlite
115
+ #: include/mailerlite-admin.php:242 include/mailerlite-admin.php:509
116
  msgid "Email"
117
  msgstr "Email"
118
 
119
  #. mailerlite
120
+ #: include/mailerlite-admin.php:310
121
  msgid "Embedded webform"
122
  msgstr "Вбудована веб-форма"
123
 
124
  #. mailerlite
125
+ #: include/mailerlite-admin.php:394 include/mailerlite-admin.php:432
126
+ #: include/mailerlite-admin.php:443
127
  msgid "You not allowed to do that"
128
  msgstr "Заборонена дія"
129
 
130
  #. mailerlite
131
+ #: include/mailerlite-admin.php:413
132
  msgid "Wrong MailerLite API key"
133
  msgstr "Некоректний MailerLite API ключ"
134
 
135
  #. mailerlite
136
+ #: include/mailerlite-admin.php:498
137
  msgid "New custom signup form"
138
  msgstr "Нова форма підписки користувача"
139
 
140
  #. mailerlite
141
+ #: include/mailerlite-admin.php:524
142
  msgid "New embedded signup form"
143
  msgstr "Нова вбудована веб-форма"
144
 
520
  "Вітаємо! Ви зможете створювати красиві форми підписки, але спочатку просимо "
521
  "надати ваш MailerLite API ключ!"
522
 
523
+ #: include/templates/admin/status.php:29
524
+ msgid "Copy this for support"
525
+ msgstr "Скопіюйте цю інформацію для підтримки"
526
+
527
  #. mailerlite
528
  #: include/templates/admin/edit_embedded.php:5
529
  msgid "Edit webform"
languages/mailerlite.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Official MailerLite Sign Up Forms\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2019-01-14 08:12+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
@@ -15,6 +15,20 @@ msgstr ""
15
  "X-Generator: Loco https://localise.biz/\n"
16
  "X-Loco-Version: 2.2.0; wp-4.9.9"
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  #: include/mailerlite-form.php:94
19
  msgid "Subscriber successfully saved"
20
  msgstr ""
@@ -35,73 +49,73 @@ msgstr ""
35
  msgid "MailerLite sign up form Widget"
36
  msgstr ""
37
 
38
- #: include/mailerlite-widget.php:85
39
  msgid "Select form:"
40
  msgstr ""
41
 
42
- #: include/mailerlite-admin.php:89
43
  msgid "Forms"
44
  msgstr ""
45
 
46
- #: include/mailerlite-admin.php:90 include/templates/admin/main.php:26
47
  msgid "Signup forms"
48
  msgstr ""
49
 
50
- #: include/mailerlite-admin.php:94 include/mailerlite-admin.php:95
51
  msgid "Settings"
52
  msgstr ""
53
 
54
- #: include/mailerlite-admin.php:144 include/mailerlite-admin.php:264
55
  msgid "Error happened"
56
  msgstr ""
57
 
58
- #: include/mailerlite-admin.php:148 include/mailerlite-admin.php:180
59
- #: include/mailerlite-admin.php:269 include/mailerlite-admin.php:384
60
  msgid "Send this error to info@mailerlite.com or our chat"
61
  msgstr ""
62
 
63
- #: include/mailerlite-admin.php:190
64
  msgid "Subscribe for newsletter!"
65
  msgstr ""
66
 
67
- #: include/mailerlite-admin.php:192 include/mailerlite-admin.php:469
68
  msgid "Newsletter signup"
69
  msgstr ""
70
 
71
- #: include/mailerlite-admin.php:194 include/mailerlite-admin.php:470
72
  msgid "Just simple MailerLite form!"
73
  msgstr ""
74
 
75
- #: include/mailerlite-admin.php:196 include/mailerlite-admin.php:473
76
  msgid "Thank you for sign up!"
77
  msgstr ""
78
 
79
- #: include/mailerlite-admin.php:198 include/mailerlite-admin.php:476
80
  msgid "Subscribe"
81
  msgstr ""
82
 
83
- #: include/mailerlite-admin.php:212 include/mailerlite-admin.php:478
84
  msgid "Email"
85
  msgstr ""
86
 
87
- #: include/mailerlite-admin.php:280
88
  msgid "Embedded webform"
89
  msgstr ""
90
 
91
- #: include/mailerlite-admin.php:363 include/mailerlite-admin.php:401
92
- #: include/mailerlite-admin.php:412
93
  msgid "You not allowed to do that"
94
  msgstr ""
95
 
96
- #: include/mailerlite-admin.php:382
97
  msgid "Wrong MailerLite API key"
98
  msgstr ""
99
 
100
- #: include/mailerlite-admin.php:467
101
  msgid "New custom signup form"
102
  msgstr ""
103
 
104
- #: include/mailerlite-admin.php:493
105
  msgid "New embedded signup form"
106
  msgstr ""
107
 
@@ -412,6 +426,10 @@ msgid ""
412
  "your MailerLite API key!"
413
  msgstr ""
414
 
 
 
 
 
415
  #: include/templates/admin/edit_embedded.php:5
416
  msgid "Edit webform"
417
  msgstr ""
3
  msgstr ""
4
  "Project-Id-Version: Official MailerLite Sign Up Forms\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2019-01-28 10:27+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
15
  "X-Generator: Loco https://localise.biz/\n"
16
  "X-Loco-Version: 2.2.0; wp-4.9.9"
17
 
18
+ #: mailerlite.php:158
19
+ msgid "Environment"
20
+ msgstr ""
21
+
22
+ #: mailerlite.php:159
23
+ msgid "Plugin"
24
+ msgstr ""
25
+
26
+ #: include/mailerlite-admin-status.php:45
27
+ #: include/mailerlite-admin-status.php:46 include/mailerlite-admin.php:121
28
+ #: include/mailerlite-admin.php:122 include/templates/admin/status.php:5
29
+ msgid "Status"
30
+ msgstr ""
31
+
32
  #: include/mailerlite-form.php:94
33
  msgid "Subscriber successfully saved"
34
  msgstr ""
49
  msgid "MailerLite sign up form Widget"
50
  msgstr ""
51
 
52
+ #: include/mailerlite-widget.php:83
53
  msgid "Select form:"
54
  msgstr ""
55
 
56
+ #: include/mailerlite-admin.php:105
57
  msgid "Forms"
58
  msgstr ""
59
 
60
+ #: include/mailerlite-admin.php:106 include/templates/admin/main.php:26
61
  msgid "Signup forms"
62
  msgstr ""
63
 
64
+ #: include/mailerlite-admin.php:113 include/mailerlite-admin.php:114
65
  msgid "Settings"
66
  msgstr ""
67
 
68
+ #: include/mailerlite-admin.php:174 include/mailerlite-admin.php:294
69
  msgid "Error happened"
70
  msgstr ""
71
 
72
+ #: include/mailerlite-admin.php:178 include/mailerlite-admin.php:210
73
+ #: include/mailerlite-admin.php:299 include/mailerlite-admin.php:415
74
  msgid "Send this error to info@mailerlite.com or our chat"
75
  msgstr ""
76
 
77
+ #: include/mailerlite-admin.php:220
78
  msgid "Subscribe for newsletter!"
79
  msgstr ""
80
 
81
+ #: include/mailerlite-admin.php:222 include/mailerlite-admin.php:500
82
  msgid "Newsletter signup"
83
  msgstr ""
84
 
85
+ #: include/mailerlite-admin.php:224 include/mailerlite-admin.php:501
86
  msgid "Just simple MailerLite form!"
87
  msgstr ""
88
 
89
+ #: include/mailerlite-admin.php:226 include/mailerlite-admin.php:504
90
  msgid "Thank you for sign up!"
91
  msgstr ""
92
 
93
+ #: include/mailerlite-admin.php:228 include/mailerlite-admin.php:507
94
  msgid "Subscribe"
95
  msgstr ""
96
 
97
+ #: include/mailerlite-admin.php:242 include/mailerlite-admin.php:509
98
  msgid "Email"
99
  msgstr ""
100
 
101
+ #: include/mailerlite-admin.php:310
102
  msgid "Embedded webform"
103
  msgstr ""
104
 
105
+ #: include/mailerlite-admin.php:394 include/mailerlite-admin.php:432
106
+ #: include/mailerlite-admin.php:443
107
  msgid "You not allowed to do that"
108
  msgstr ""
109
 
110
+ #: include/mailerlite-admin.php:413
111
  msgid "Wrong MailerLite API key"
112
  msgstr ""
113
 
114
+ #: include/mailerlite-admin.php:498
115
  msgid "New custom signup form"
116
  msgstr ""
117
 
118
+ #: include/mailerlite-admin.php:524
119
  msgid "New embedded signup form"
120
  msgstr ""
121
 
426
  "your MailerLite API key!"
427
  msgstr ""
428
 
429
+ #: include/templates/admin/status.php:29
430
+ msgid "Copy this for support"
431
+ msgstr ""
432
+
433
  #: include/templates/admin/edit_embedded.php:5
434
  msgid "Edit webform"
435
  msgstr ""
mailerlite.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
6
- * Version: 1.3.5
7
  * Author: MailerGroup
8
  * Author URI: https://www.mailerlite.com
9
  * License: GPLv2 or later
@@ -29,7 +29,7 @@
29
  define( 'MAILERLITE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
30
  define( 'MAILERLITE_PLUGIN_URL', plugins_url( '', __FILE__ ) );
31
 
32
- define( 'MAILERLITE_VERSION', '1.3.5' );
33
 
34
  define( 'MAILERLITE_PHP_VERSION', '5.6.0' );
35
  define( 'MAILERLITE_WP_VERSION', '3.0.1' );
@@ -49,7 +49,7 @@ function mailerlite_install() {
49
  $message = '';
50
 
51
  if ( version_compare( PHP_VERSION, MAILERLITE_PHP_VERSION, '<' ) ) {
52
- $message = '<p> The <strong>MailerLite</strong> plugin requires PHP version ' . MAILERLITE_PHP_VERSION . ' or greater.</p>';
53
  }
54
 
55
  if ( version_compare( $wp_version, MAILERLITE_WP_VERSION, '<' ) ) {
@@ -106,16 +106,116 @@ function register_mailerlite_styles() {
106
 
107
  add_action( 'wp_enqueue_scripts', 'register_mailerlite_styles' );
108
 
109
- if ( is_admin() ) {
110
- require_once( MAILERLITE_PLUGIN_DIR . 'include/mailerlite-admin.php' );
111
- add_action( 'init', array( 'MailerLite_Admin', 'init' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
 
115
- require_once( MAILERLITE_PLUGIN_DIR . 'include/mailerlite-widget.php' );
116
- require_once( MAILERLITE_PLUGIN_DIR . 'include/mailerlite-shortcode.php' );
117
- require_once( MAILERLITE_PLUGIN_DIR . 'include/mailerlite-gutenberg.php' );
118
 
119
- add_action( 'init', array( 'MailerLite_Shortcode', 'init' ) );
120
- add_action( 'init', array( 'MailerLite_Form', 'init' ) );
121
- add_action( 'init', array( 'MailerLite_Gutenberg', 'init' ) );
 
3
  /**
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
6
+ * Version: 1.3.6
7
  * Author: MailerGroup
8
  * Author URI: https://www.mailerlite.com
9
  * License: GPLv2 or later
29
  define( 'MAILERLITE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
30
  define( 'MAILERLITE_PLUGIN_URL', plugins_url( '', __FILE__ ) );
31
 
32
+ define( 'MAILERLITE_VERSION', '1.3.6' );
33
 
34
  define( 'MAILERLITE_PHP_VERSION', '5.6.0' );
35
  define( 'MAILERLITE_WP_VERSION', '3.0.1' );
49
  $message = '';
50
 
51
  if ( version_compare( PHP_VERSION, MAILERLITE_PHP_VERSION, '<' ) ) {
52
+ $message = '<p> The <strong>MailerLite</strong> plugin requires PHP version ' . MAILERLITE_PHP_VERSION . ' or greater. You are currently using PHP version '.PHP_VERSION.'</p>';
53
  }
54
 
55
  if ( version_compare( $wp_version, MAILERLITE_WP_VERSION, '<' ) ) {
106
 
107
  add_action( 'wp_enqueue_scripts', 'register_mailerlite_styles' );
108
 
109
+ function mailerlite_status_information_for_mailto_link(){
110
+ $data = mailerlite_status_information();
111
+
112
+ $body = "\n\n\n";
113
+
114
+ $body .= "Official MailerLite Sign Up Forms information: \n\n";
115
+
116
+ foreach ($data as $group => $fields) {
117
+ $body.=sprintf("# %s \n\n", $group);
118
+
119
+ foreach ($fields as $name=>$value) {
120
+ $body .= sprintf("%s: %s\n", $name,$value);
121
+ }
122
+
123
+ $body.="\n";
124
+ }
125
+
126
+ $body = str_replace("\n", '%0A', $body);
127
+
128
+ return $body;
129
  }
130
 
131
+ mailerlite_status_information_for_mailto_link();
132
+
133
+ function mailerlite_status_information(){
134
+ global $wpdb;
135
+
136
+ $theme=wp_get_theme();
137
+ $curl_version = '';
138
+ if (function_exists('curl_version')) {
139
+ $curl_info = curl_version();
140
+ $curl_version = $curl_info['version'].', '.$curl_info['ssl_version'];
141
+ }
142
+
143
+ // Only if loading the plugin succeeded
144
+ if (class_exists('MailerLite_Form')) {
145
+ $forms = $wpdb->get_results(sprintf("SELECT * FROM %smailerlite_forms", $wpdb->base_prefix));
146
+ $number_of_custom_forms = 0;
147
+ $number_of_embedded_forms = 0;
148
+
149
+ foreach ($forms as $form) {
150
+ if ($form->type == MailerLite_Form::TYPE_CUSTOM) {
151
+ $number_of_custom_forms++;
152
+ } elseif ($form->type == MailerLite_Form::TYPE_EMBEDDED) {
153
+ $number_of_embedded_forms++;
154
+ }
155
+ }
156
+ }
157
+
158
+ $environment_group = __('Environment', 'mailerlite');
159
+ $plugin_group = __('Plugin', 'mailerlite');
160
+
161
+ $fields = array();
162
+ $fields['WordPress']['Version'] = get_bloginfo('version');
163
+ $fields['WordPress']['Home URL'] = get_option('home');
164
+ $fields['WordPress']['Site URL'] = get_option('home');
165
+ $fields['WordPress']['Multisite'] = is_multisite() ? 'Yes' : 'No';
166
+ $fields['WordPress']['Debug mode'] = (defined('WP_DEBUG') && WP_DEBUG) ? 'Yes' : 'No';
167
+ $fields['WordPress']['Theme name'] = $theme->get('Name');
168
+ $fields['WordPress']['Theme URI'] = $theme->get('ThemeURI');
169
+ $fields['WordPress']['Active plugins'] = implode(', ', get_option('active_plugins'));
170
+ $fields[$environment_group]['Required PHP version'] = MAILERLITE_PHP_VERSION;
171
+ $fields[$environment_group]['PHP version'] = phpversion();
172
+ $fields[$environment_group]['Server information'] = isset($_SERVER['SERVER_SOFTWARE']) ? wp_unslash($_SERVER['SERVER_SOFTWARE']) : '';
173
+ $fields[$environment_group]['cURL version'] = $curl_version;
174
+ $fields[$plugin_group]['Version'] = MAILERLITE_VERSION;
175
+ $fields[$plugin_group]['API key provided'] = (bool)get_option('mailerlite_api_key') ? 'Yes' : 'No';
176
+ $fields[$plugin_group]['Popups enabled'] =! get_option( 'mailerlite_popups_disabled' )?'Yes': 'No';
177
+ $fields[$plugin_group]['Double opt-in enabled'] =! get_option( 'mailerlite_double_optin_disabled' )?'Yes': 'No';
178
+
179
+ if (class_exists('MailerLite_Form')) {
180
+ $fields[$plugin_group]['Custom forms'] = $number_of_custom_forms;
181
+ $fields[$plugin_group]['Embedded forms'] = $number_of_embedded_forms;
182
+ }
183
+
184
+ return $fields;
185
+ }
186
+
187
+ mailerlite_status_information();
188
+
189
+ if (in_array('official-mailerlite-sign-up-forms/mailerlite.php', get_option('active_plugins'))) {
190
+
191
+ // Double check
192
+ if (!version_compare(PHP_VERSION, MAILERLITE_PHP_VERSION, '<')) {
193
+
194
+ if (is_admin()) {
195
+ require_once(MAILERLITE_PLUGIN_DIR.'include/mailerlite-admin.php');
196
+ require_once(MAILERLITE_PLUGIN_DIR.'include/mailerlite-admin-status.php');
197
+
198
+ add_action('init', array('MailerLite_Admin', 'init'));
199
+ add_action('init', array('MailerLite_Admin_Status', 'init'));
200
+ }
201
+
202
+ require_once(MAILERLITE_PLUGIN_DIR.'include/mailerlite-widget.php');
203
+ require_once(MAILERLITE_PLUGIN_DIR.'include/mailerlite-shortcode.php');
204
+ require_once(MAILERLITE_PLUGIN_DIR.'include/mailerlite-gutenberg.php');
205
+
206
+ add_action('init', array('MailerLite_Shortcode', 'init'));
207
+ add_action('init', array('MailerLite_Form', 'init'));
208
+ add_action('init', array('MailerLite_Gutenberg', 'init'));
209
+ } else {
210
+ function mailerlite_old_php_notice() {
211
+ $class = 'notice notice-error';
212
+ $message = '<p> The <strong>MailerLite</strong> plugin requires PHP version ' . MAILERLITE_PHP_VERSION . ' or greater. You are currently using PHP version <strong>'.PHP_VERSION.'</strong></p>';
213
 
214
+ printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
215
+ }
216
+ add_action( 'admin_notices', 'mailerlite_old_php_notice' );
217
 
218
+ require_once(MAILERLITE_PLUGIN_DIR.'include/mailerlite-admin-status.php');
219
+ add_action('init', array('MailerLite_Admin_Status', 'init'));
220
+ }
221
+ }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 5.0.2
7
  Requires PHP: 5.6.0
8
- Stable tag: 1.3.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -130,6 +130,11 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
130
 
131
  == Changelog ==
132
 
 
 
 
 
 
133
  = 1.3.5 =
134
  * Tweak - Better support for older PHP versions in main plugin file
135
 
5
  Requires at least: 3.0.1
6
  Tested up to: 5.0.2
7
  Requires PHP: 5.6.0
8
+ Stable tag: 1.3.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
130
 
131
  == Changelog ==
132
 
133
+ = 1.3.6 =
134
+ * Feature - Status page to provide information about your environment
135
+ * Tweak - Even better support for older PHP versions in main plugin file
136
+ * Fix - Plugin's stylesheet is only included in pages where it is required
137
+
138
  = 1.3.5 =
139
  * Tweak - Better support for older PHP versions in main plugin file
140