Official MailerLite Sign Up Forms - Version 1.2

Version Description

some small php notice errors fixed. More clear tooltips about embed forms. Popup script settings moved to settings page. Added en_US locale translations (the same as en_EN)

Download this release

Release Info

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

Code changes from version 1.1.25 to 1.2

assets/css/mailerlite.css CHANGED
@@ -7,6 +7,7 @@
7
 
8
  .mailerlite-activate .description-block {
9
  float: left;
 
10
  }
11
 
12
  .mailerlite-activate .description-block .title {
@@ -15,10 +16,16 @@
15
  }
16
 
17
  .mailerlite-activate .input-block {
18
- float: right;
19
  padding-top: 25px;
20
  }
21
 
 
 
 
 
 
 
22
  .mailerlite-empty-list {
23
  padding: 30px;
24
  }
@@ -35,4 +42,29 @@
35
  height: 100px;
36
  background: url('../image/header.png');
37
  margin: 0px 0px 20px -20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
7
 
8
  .mailerlite-activate .description-block {
9
  float: left;
10
+ min-width: 235px;
11
  }
12
 
13
  .mailerlite-activate .description-block .title {
16
  }
17
 
18
  .mailerlite-activate .input-block {
19
+ float: left;
20
  padding-top: 25px;
21
  }
22
 
23
+ .mailerlite-activate .input-block .popups {
24
+ padding: 15px;
25
+ display: inline;
26
+ margin: 15px 15px 15px 30px;
27
+ }
28
+
29
  .mailerlite-empty-list {
30
  padding: 30px;
31
  }
42
  height: 100px;
43
  background: url('../image/header.png');
44
  margin: 0px 0px 20px -20px;
45
+ }
46
+
47
+ .popup-description {
48
+ background: #ffffff;
49
+ margin: 10px 0px 10px 0px;
50
+ padding: 15px;
51
+ border: 1px solid #e1e1e1;
52
+ }
53
+
54
+ .popup-description p {
55
+ margin: 0px 0px 10px 0px;
56
+ }
57
+
58
+ .mailerlite-table th {
59
+ padding-left: 15px;
60
+ }
61
+
62
+ p.info {
63
+ background: #fcf8e3;
64
+ padding: 15px;
65
+ }
66
+
67
+ p.success {
68
+ background: #dff0d8;
69
+ padding: 15px;
70
  }
include/mailerlite-admin.php CHANGED
@@ -37,6 +37,12 @@ class MailerLite_Admin
37
  ) {
38
  self::set_api_key();
39
  }
 
 
 
 
 
 
40
  }
41
 
42
  /**
@@ -115,9 +121,7 @@ class MailerLite_Admin
115
  */
116
  public static function mailerlite_main()
117
  {
118
- if (isset($_GET['mailerlite_popups_disabled'])) {
119
- update_option('mailerlite_popups_disabled', !!$_GET['mailerlite_popups_disabled']);
120
- }
121
 
122
  global $fields, $lists, $form, $forms_data, $webforms, $mailerlite_error, $result, $wpdb;
123
 
@@ -144,13 +148,17 @@ class MailerLite_Admin
144
  $ML_Webforms = new ML_Webforms($api_key);
145
  $webforms = $ML_Webforms->getAll();
146
 
 
 
 
 
 
 
147
  if ($ML_Webforms->hasCurlError()) {
148
  $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Webforms->getResponseBody();
149
 
150
  }
151
 
152
- $webforms = json_decode($webforms);
153
-
154
  include(MAILERLITE_PLUGIN_DIR
155
  . 'include/templates/admin/create.php');
156
 
@@ -189,8 +197,9 @@ class MailerLite_Admin
189
  $lists = json_decode($lists);
190
  if (empty($lists->Results)) $lists->Results = array();
191
 
192
- $fields = $ML_Lists->setId($lists->Results[0]->id)
193
  ->getFields();
 
194
 
195
  if ($ML_Lists->hasCurlError()) {
196
  $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Lists->getResponseBody();
@@ -308,13 +317,17 @@ class MailerLite_Admin
308
  } else if ($form->type == 2) {
309
  $ML_Webforms = new ML_Webforms($api_key);
310
  $webforms = $ML_Webforms->getAll();
 
 
 
 
 
311
 
312
  if ($ML_Webforms->hasCurlError()) {
313
  $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Webforms->getResponseBody();
314
 
315
  }
316
 
317
- $webforms = json_decode($webforms);
318
  if (empty($webforms->Results)) $webforms->Results = array();
319
 
320
  $parsed_webforms = array();
@@ -437,6 +450,24 @@ class MailerLite_Admin
437
  }
438
  }
439
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
440
  public static function update_account_info() {
441
  // request to mailerlite api
442
  $ch = curl_init();
@@ -483,7 +514,7 @@ class MailerLite_Admin
483
  ),
484
  'success_message' => '<span style="color: rgb(51, 153, 102);">' . __(
485
  'Thank you for sign up!', 'mailerlite'
486
- ) . '</span>',
487
  'button' => __('Subscribe', 'mailerlite'),
488
  'lists' => array(),
489
  'fields' => array('email' => __('Email', 'mailerlite'))
37
  ) {
38
  self::set_api_key();
39
  }
40
+
41
+ if (isset($_POST['action'])
42
+ && $_POST['action'] == 'enter-popup-forms'
43
+ ) {
44
+ self::set_popups();
45
+ }
46
  }
47
 
48
  /**
121
  */
122
  public static function mailerlite_main()
123
  {
124
+
 
 
125
 
126
  global $fields, $lists, $form, $forms_data, $webforms, $mailerlite_error, $result, $wpdb;
127
 
148
  $ML_Webforms = new ML_Webforms($api_key);
149
  $webforms = $ML_Webforms->getAll();
150
 
151
+ $webforms = json_decode($webforms);
152
+
153
+ if (!empty($webforms->error) && !empty($webforms->error->message)) {
154
+ $mailerlite_error = '<u>'.__('Error happened', 'mailerlite').'</u>: '.$webforms->error->message;
155
+ }
156
+
157
  if ($ML_Webforms->hasCurlError()) {
158
  $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Webforms->getResponseBody();
159
 
160
  }
161
 
 
 
162
  include(MAILERLITE_PLUGIN_DIR
163
  . 'include/templates/admin/create.php');
164
 
197
  $lists = json_decode($lists);
198
  if (empty($lists->Results)) $lists->Results = array();
199
 
200
+ if (isset($lists->Results[0])) $fields = $ML_Lists->setId($lists->Results[0]->id)
201
  ->getFields();
202
+ else $fields = $ML_Lists->getFields();
203
 
204
  if ($ML_Lists->hasCurlError()) {
205
  $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Lists->getResponseBody();
317
  } else if ($form->type == 2) {
318
  $ML_Webforms = new ML_Webforms($api_key);
319
  $webforms = $ML_Webforms->getAll();
320
+ $webforms = json_decode($webforms);
321
+
322
+ if (!empty($webforms->error) && !empty($webforms->error->message)) {
323
+ $mailerlite_error = '<u>'.__('Error happened', 'mailerlite').'</u>: '.$webforms->error->message;
324
+ }
325
 
326
  if ($ML_Webforms->hasCurlError()) {
327
  $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Webforms->getResponseBody();
328
 
329
  }
330
 
 
331
  if (empty($webforms->Results)) $webforms->Results = array();
332
 
333
  $parsed_webforms = array();
450
  }
451
  }
452
 
453
+ /**
454
+ * Checks and sets popup tracker setting
455
+ */
456
+ private static function set_popups()
457
+ {
458
+ global $mailerlite_error;
459
+
460
+ if (function_exists('current_user_can')
461
+ && !current_user_can(
462
+ 'manage_options'
463
+ )
464
+ ) {
465
+ die(__('You not allowed to do that', 'mailerlite'));
466
+ }
467
+
468
+ update_option('mailerlite_popups_disabled', !get_option('mailerlite_popups_disabled'));
469
+ }
470
+
471
  public static function update_account_info() {
472
  // request to mailerlite api
473
  $ch = curl_init();
514
  ),
515
  'success_message' => '<span style="color: rgb(51, 153, 102);">' . __(
516
  'Thank you for sign up!', 'mailerlite'
517
+ ) . '</span>',
518
  'button' => __('Subscribe', 'mailerlite'),
519
  'lists' => array(),
520
  'fields' => array('email' => __('Email', 'mailerlite'))
include/templates/admin/create.php CHANGED
@@ -16,7 +16,7 @@
16
  <div class="inside">
17
  <p>
18
  <label for="form_type_custom" class="selectit">
19
- <input id="form_type_custom" type="radio" name="form_type" value="1"
20
  checked="checked">
21
  <?php echo __('Custom signup form', 'mailerlite'); ?>
22
  </label>
@@ -26,6 +26,7 @@
26
  <?php
27
  $embed_button_webforms = array();
28
 
 
29
  foreach ($webforms->Results as $webform) {
30
  if (!in_array($webform->type, array('embed', 'button'))) { continue; }
31
 
@@ -34,12 +35,16 @@
34
  ?>
35
 
36
  <label for="form_type_webform" class="selectit">
37
- <input id="form_type_webform" type="radio" name="form_type"
38
  value="2"<?php echo count($embed_button_webforms) == 0 ? ' disabled="disabled"' : ''; ?>>
39
  <?php echo __('Webforms created using MailerLite', 'mailerlite'); ?>
40
  </label>
41
  </p>
42
 
 
 
 
 
43
  <div class="submit">
44
  <input class="button-primary mailerlite-pull-right"
45
  value="<?php echo __('Create form', 'mailerlite'); ?>" name="create_signup_form"
16
  <div class="inside">
17
  <p>
18
  <label for="form_type_custom" class="selectit">
19
+ <input id="form_type_custom" type="radio" name="form_type" value="1" onclick="jQuery('#expl').addClass('hidden')"
20
  checked="checked">
21
  <?php echo __('Custom signup form', 'mailerlite'); ?>
22
  </label>
26
  <?php
27
  $embed_button_webforms = array();
28
 
29
+ if (isset($webforms->Results) && is_array($webforms->Results))
30
  foreach ($webforms->Results as $webform) {
31
  if (!in_array($webform->type, array('embed', 'button'))) { continue; }
32
 
35
  ?>
36
 
37
  <label for="form_type_webform" class="selectit">
38
+ <input id="form_type_webform" type="radio" name="form_type" onclick="jQuery('#expl').removeClass('hidden')"
39
  value="2"<?php echo count($embed_button_webforms) == 0 ? ' disabled="disabled"' : ''; ?>>
40
  <?php echo __('Webforms created using MailerLite', 'mailerlite'); ?>
41
  </label>
42
  </p>
43
 
44
+ <p id="expl" class="hidden info">
45
+ <?php echo __('Explanation about forms', 'mailerlite'); ?>
46
+ </p>
47
+
48
  <div class="submit">
49
  <input class="button-primary mailerlite-pull-right"
50
  value="<?php echo __('Create form', 'mailerlite'); ?>" name="create_signup_form"
include/templates/admin/edit_custom.php CHANGED
@@ -97,7 +97,7 @@
97
  <th><label for="button_name"><?php _e('Please wait message', 'mailerlite'); ?></label>
98
  </th>
99
  <td><input type="text" name="please_wait" size="30" maxlength="255"
100
- value="<?php echo $form->data['please_wait']; ?>" id="please_wait_name"> <span
101
  class="description"><strong><?php _e('Example:'); ?></strong> <?php _e('Please wait...'); ?></span>
102
  </td>
103
  </tr>
97
  <th><label for="button_name"><?php _e('Please wait message', 'mailerlite'); ?></label>
98
  </th>
99
  <td><input type="text" name="please_wait" size="30" maxlength="255"
100
+ value="<?php if (isset($form->data['please_wait'])) echo $form->data['please_wait']; ?>" id="please_wait_name"> <span
101
  class="description"><strong><?php _e('Example:'); ?></strong> <?php _e('Please wait...'); ?></span>
102
  </td>
103
  </tr>
include/templates/admin/edit_embedded.php CHANGED
@@ -19,7 +19,7 @@
19
  <h3><span><?php echo __('Webform details', 'mailerlite'); ?></span></h3>
20
 
21
  <div class="inside">
22
- <table class="form-table">
23
  <tbody>
24
  <tr>
25
  <th><label for="form_name"><?php echo __('Form title', 'mailerlite'); ?></label>
@@ -36,11 +36,20 @@
36
  <?php foreach ($webforms->Results as $webform): ?>
37
  <?php if (!in_array($webform->type, array('embed', 'button'))) { continue; } ?>
38
  <option data-code="<?php echo $webform->code; ?>"
39
- value="<?php echo $webform->id; ?>"<?php echo $webform->id == $form->data['id'] ? ' selected="selected"' : ''; ?>><?php echo $webform->name; ?></option>
40
  <?php endforeach; ?>
41
  </select>
42
  </td>
43
  </tr>
 
 
 
 
 
 
 
 
 
44
  <tr>
45
  <td colspan="2">
46
  <div id="webform_example">​</div>
19
  <h3><span><?php echo __('Webform details', 'mailerlite'); ?></span></h3>
20
 
21
  <div class="inside">
22
+ <table class="form-table mailerlite-table">
23
  <tbody>
24
  <tr>
25
  <th><label for="form_name"><?php echo __('Form title', 'mailerlite'); ?></label>
36
  <?php foreach ($webforms->Results as $webform): ?>
37
  <?php if (!in_array($webform->type, array('embed', 'button'))) { continue; } ?>
38
  <option data-code="<?php echo $webform->code; ?>"
39
+ value="<?php echo $webform->id; ?>"<?php echo $webform->id == $form->data['id'] ? ' selected="selected"' : ''; ?>><?php echo $webform->name; ?> (<?php echo $webform->type;?>)</option>
40
  <?php endforeach; ?>
41
  </select>
42
  </td>
43
  </tr>
44
+
45
+ <tr>
46
+ <td colspan="2">
47
+ <p class="info">
48
+ <?php echo __('Explanation about forms', 'mailerlite'); ?>
49
+ </p>
50
+ </td>
51
+ </tr>
52
+
53
  <tr>
54
  <td colspan="2">
55
  <div id="webform_example">​</div>
include/templates/admin/main.php CHANGED
@@ -3,27 +3,17 @@
3
 
4
  <div class="wrap columns-2 dd-wrap">
5
  <h2>Popup forms</h2>
6
- <div class="popup-descriptipn"
7
- style="background: #ffffff; margin: 10px 0px 10px 0px; padding: 15px; border: 1px solid #e1e1e1;">
8
- <?php if (!get_option('mailerlite_popups_disabled')) { ?>
9
- <p style="margin: 0px 0px 10px 0px;">
10
- <strong>MailerLite tracking script is enabled.</strong> Want to <a
11
- style="color: #666666" href="<?php echo admin_url('admin.php?page=mailerlite_main&mailerlite_popups_disabled=1'); ?>">turn it off?</a>
12
- </p>
13
- <p></p>
14
- <p style="margin: 0px 0px 0px 0px;">
15
- Create popup forms in your MailerLite account and it will be displayed
16
- in your blog.
17
- </p>
18
- <?php } else { ?>
19
- <p style="margin: 0px 0px 10px 0px;">
20
- <strong>MailerLite tracking script is disabled.</strong> Want to <a href="<?php echo admin_url('admin.php?page=mailerlite_main&mailerlite_popups_disabled=0'); ?>" style="color: #666666">turn it on?</a>
21
- </p>
22
- <p></p>
23
- <p style="margin: 0px 0px 0px 0px;">Your popup forms won't be displayed while the tracking script is
24
- disabled.
25
- </p>
26
- <?php } ?>
27
  </div>
28
  </div>
29
 
3
 
4
  <div class="wrap columns-2 dd-wrap">
5
  <h2>Popup forms</h2>
6
+ <div class="popup-description">
7
+ <p class="<?php if (!get_option('mailerlite_popups_disabled')) : ?>success<?php else: ?>info<?php endif; ?>">
8
+ <strong><?php echo __('MailerLite popup script is', 'mailerlite')?> <?php if (!get_option('mailerlite_popups_disabled', 'mailerlite')) : ?><?php echo __('enabled', 'mailerlite')?><?php else: ?><?php echo __('disabled', 'mailerlite')?><?php endif; ?>.</strong>
9
+ <?php echo __('Go to settings if you want to change it', 'mailerlite'); ?>.
10
+ <br/>
11
+ <?php if (!get_option('mailerlite_popups_disabled')): ?>
12
+ <strong><?php echo _e('Your popup forms will be displayed automatically while the popup script is enabled', 'mailerlite');?></strong>
13
+ <?php else: ?>
14
+ <strong><?php echo __('Your popup forms wont be displayed while the popup script is disabled', 'mailerlite');?></strong>
15
+ <?php endif; ?>
16
+ </p>
 
 
 
 
 
 
 
 
 
 
17
  </div>
18
  </div>
19
 
include/templates/admin/settings.php CHANGED
@@ -2,36 +2,67 @@
2
  <?php include_once('header.php'); ?>
3
 
4
  <div class="wrap columns-2 dd-wrap">
5
- <h2><?php _e('Plugin settings', 'mailerlite'); ?></h2>
6
 
7
  <div id="poststuff" class="metabox-holder has-right-sidebar">
8
  <?php include("sidebar.php"); ?>
9
  <div id="post-body">
10
  <div id="post-body-content">
11
- <p><?php _e('Here you are able to change your API key!', 'mailerlite'); ?></p>
12
 
13
  <div class="mailerlite-activate">
14
  <div class="description-block">
15
- <p class="title"><?php _e('Enter an API key', 'mailerlite'); ?></p>
16
 
17
- <p><?php _e("Don't know where to find it?", 'mailerlite'); ?> <a
18
  href="https://kb.mailerlite.com/does-mailerlite-offer-an-api/"
19
- target="_blank"><?php _e("Check it here!", 'mailerlite'); ?></a></p>
20
  </div>
21
  <div class="input-block">
22
  <form action="" method="post" id="enter-mailerlite-key">
23
  <input type="text" name="mailerlite_key" class="regular-text" placeholder="API-key"
24
  value="<?php echo $api_key; ?>"/>
25
  <input type="submit" name="submit" id="submit" class="button button-primary"
26
- value="<?php _e('Save this key', 'mailerlite'); ?>">
27
  <input type="hidden" name="action" value="enter-mailerlite-key">
28
  </form>
29
  </div>
30
  <div class="clear"></div>
31
  </div>
32
- <p><strong><?php _e("Don't have an account?", 'mailerlite'); ?></strong></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  <a href="https://www.mailerlite.com/signup" target="_blank"
34
- class="button button-secondary"><?php _e('Register!', 'mailerlite'); ?></a>
35
  </div>
36
  </div>
37
  </div>
2
  <?php include_once('header.php'); ?>
3
 
4
  <div class="wrap columns-2 dd-wrap">
5
+ <h2><?php echo __('Plugin settings', 'mailerlite'); ?></h2>
6
 
7
  <div id="poststuff" class="metabox-holder has-right-sidebar">
8
  <?php include("sidebar.php"); ?>
9
  <div id="post-body">
10
  <div id="post-body-content">
 
11
 
12
  <div class="mailerlite-activate">
13
  <div class="description-block">
14
+ <p class="title"><?php echo __('Enter an API key', 'mailerlite'); ?></p>
15
 
16
+ <p><?php echo __("Don't know where to find it?", 'mailerlite'); ?> <a
17
  href="https://kb.mailerlite.com/does-mailerlite-offer-an-api/"
18
+ target="_blank"><?php echo __("Check it here!", 'mailerlite'); ?></a></p>
19
  </div>
20
  <div class="input-block">
21
  <form action="" method="post" id="enter-mailerlite-key">
22
  <input type="text" name="mailerlite_key" class="regular-text" placeholder="API-key"
23
  value="<?php echo $api_key; ?>"/>
24
  <input type="submit" name="submit" id="submit" class="button button-primary"
25
+ value="<?php echo __('Save this key', 'mailerlite'); ?>">
26
  <input type="hidden" name="action" value="enter-mailerlite-key">
27
  </form>
28
  </div>
29
  <div class="clear"></div>
30
  </div>
31
+
32
+ <div class="mailerlite-activate">
33
+ <div class="description-block">
34
+ <p class="title"><?php echo __('Popup forms script', 'mailerlite'); ?></p>
35
+ </div>
36
+
37
+ <div class="input-block">
38
+ <form action="" method="post" id="mailerlite-popups">
39
+
40
+ <p class="<?php if (get_option('mailerlite_popups_disabled')) : ?>info<?php else: ?>success<?php endif; ?> popups">
41
+ <?php if (!get_option('mailerlite_popups_disabled')) : ?> <?php echo __('enabled', 'mailerlite'); ?><?php else: ?><?php echo __('disabled', 'mailerlite');?><?php endif; ?>
42
+ </p>
43
+
44
+ <input type="submit" name="submit" id="submit" class="button button-primary"
45
+ value="<?php if (!get_option('mailerlite_popups_disabled')) : ?><?php echo __('Disable', 'mailerlite'); ?><?php else: ?><?php echo __('Enable', 'mailerlite');?><?php endif; ?>">
46
+ <input type="hidden" name="action" value="enter-popup-forms">
47
+ </form>
48
+ </div>
49
+ <div class="clear"></div>
50
+
51
+ <div class="input-block">
52
+ <?php if (!get_option('mailerlite_popups_disabled')): ?>
53
+ <?php echo __('Your popup forms will be displayed automatically while the popup script is enabled', 'mailerlite');?>
54
+ <?php else: ?>
55
+ <?php echo __('Your popup forms wont be displayed while the popup script is disabled', 'mailerlite');?>
56
+ <?php endif; ?>
57
+ </div>
58
+ <div class="clear"></div>
59
+
60
+ </div>
61
+
62
+
63
+ <p><strong><?php echo __("Don't have an account?", 'mailerlite'); ?></strong></p>
64
  <a href="https://www.mailerlite.com/signup" target="_blank"
65
+ class="button button-secondary"><?php echo __('Register!', 'mailerlite'); ?></a>
66
  </div>
67
  </div>
68
  </div>
languages/mailerlite-fi_FI.mo CHANGED
Binary file
languages/mailerlite-fi_FI.po CHANGED
@@ -408,4 +408,59 @@ msgstr "Lähetä tämä virhe info@mailerlite.com tai meidän chat"
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
- msgstr "\"Ole hyvä ja odota\" viesti"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
+ msgstr "\"Ole hyvä ja odota\" viesti"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Virhe tapahtui"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Huomaa, että voit lisätä <b>Embed</b> tai <b>Button</b> tyyppi muodostaa vain. <b>Popup</b> muodot näkyvät automaattisesti Wordpress sivuston. Voit sammuttaa <b>Popup</b> lomakkeet <a href=\"admin.php?page=mailerlite_settings\">Asetuksissa</a>. Et voi sisällyttää sivua <b>Landing</b> sivu sinun Wordpress sivullesi."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite seurantakoodi on"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "käytössä"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "vammaiset"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "Mahdollistaa"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "Vammauttaa"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Siirry <a href=\"admin.php?page=mailerlite_settings\">asetuksiin</a>, jos haluat muuttaa sen"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "Popup lomakkeet näkyvät automaattisesti, kun seurantakoodi on käytössä"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "Popup lomakkeet eivät tule näkyviin, kun seurantakoodi on poistettu käytöstä"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Popup-lomakkeiden seurantakoodi"
languages/mailerlite-it_IT.mo CHANGED
Binary file
languages/mailerlite-it_IT.po CHANGED
@@ -408,4 +408,59 @@ msgstr "Invia questo errore di info@mailerlite.com o la nostra chat"
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
- msgstr "\"Aspetta\" nota"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
+ msgstr "\"Aspetta\" nota"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Errore è accaduto"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Si prega di notare che è possibile aggiungere <b>Embed</b> o <b>Button</b> solo i tipi di forme. <b>Popup</b> forme vengono visualizzate automaticamente sul tuo sito Wordpress. Si può spegnere <b>Popup</b> forme nelle <a href=\"admin.php?page=mailerlite_settings\">impostazioni</a>. Non puoi includere la pagina <b>Landing</b> nella tua pagina di Wordpress."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite lo script di monitoraggio è"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "abilitato"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "disabilitato"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "Abilitare"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "Disattivare"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Passare alle <a href=\"admin.php?page=mailerlite_settings\">impostazioni</a> se si desidera modificarlo"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "I tuoi moduli popup verranno visualizzati automaticamente mentre lo script di monitoraggio è abilitato"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "I moduli popup non verranno visualizzati mentre lo script di monitoraggio è disabilitato"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Formato di popup script"
languages/mailerlite-lt_LT.mo CHANGED
Binary file
languages/mailerlite-lt_LT.po CHANGED
@@ -130,7 +130,7 @@ msgstr "Formos tipas"
130
  # @ mailerlite
131
  #: include/templates/admin/create.php:23
132
  msgid "Webforms created using MailerLite"
133
- msgstr "Formos sukurtos naudojantis MailerLite"
134
 
135
  # @ mailerlite
136
  #: include/templates/admin/create.php:28
@@ -415,4 +415,64 @@ msgstr "Atsiųskite šį klaidos pranešimą info@mailerlite.com arba per chat"
415
  # @ mailerlite
416
  #: include/templates/admin/edit_custom.php:20
417
  msgid "Please wait message"
418
- msgstr "\"Palaukite\" žinutė"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  # @ mailerlite
131
  #: include/templates/admin/create.php:23
132
  msgid "Webforms created using MailerLite"
133
+ msgstr "Formos sukurtos naudojantis MailerLite (embed ir button)"
134
 
135
  # @ mailerlite
136
  #: include/templates/admin/create.php:28
415
  # @ mailerlite
416
  #: include/templates/admin/edit_custom.php:20
417
  msgid "Please wait message"
418
+ msgstr "\"Palaukite\" žinutė"
419
+
420
+ # @ mailerlite
421
+ #: include/mailerlite/admin.php:150
422
+ msgid "Error happened"
423
+ msgstr "Įvyko klaida"
424
+
425
+ # @ mailerlite
426
+ #: include/mailerlite/admin.php:150
427
+ msgid "Error happened"
428
+ msgstr "Įvyko klaida"
429
+
430
+ # @ mailerlite
431
+ #: include/mailerlite/admin.php:46
432
+ msgid "Explanation about forms"
433
+ msgstr "Atkreipiame dėmesį, kad galima pasirinkti tik <b>Embed</b> arba <b>Button</b> formas. <b>Popup</b> formos yra rodomos automatiškai jūsų Wordpress puslapyje. Galite išjungti <b>Popup</b> formas <a href=\"admin.php?page=mailerlite_settings\">Nustatymuose</a>. Negalite įterpti <b>Landing</b> tipo formos savo Wordpress puslapyje."
434
+
435
+ # @ mailerlite
436
+ #: include/templates/admin/main.php:8
437
+ msgid "MailerLite tracking script is"
438
+ msgstr "MailerLite popup skriptas yra"
439
+
440
+ # @ mailerlite
441
+ #: include/templates/admin/main.php:8
442
+ msgid "enabled"
443
+ msgstr "įjungtas"
444
+
445
+ # @ mailerlite
446
+ #: include/templates/admin/main.php:8
447
+ msgid "disabled"
448
+ msgstr "išjungtas"
449
+
450
+ # @ mailerlite
451
+ #: include/templates/admin/settings.php:46
452
+ msgid "Enable"
453
+ msgstr "Įjungti"
454
+
455
+ # @ mailerlite
456
+ #: include/templates/admin/settings.php:46
457
+ msgid "Disable"
458
+ msgstr "Išjungti"
459
+
460
+ # @ mailerlite
461
+ #: include/templates/admin/main.php:9
462
+ msgid "Go to settings if you want to change it"
463
+ msgstr "Eikite į <a href=\"admin.php?page=mailerlite_settings\">Nustatymus</a> jei norite pakeisti"
464
+
465
+ # @ mailerlite
466
+ #: include/templates/admin/main.php:12
467
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
468
+ msgstr "Jūsų popup formos bus rodomos automatiškai, kai skriptas yra įjungtas"
469
+
470
+ # @ mailerlite
471
+ #: include/templates/admin/main.php:14
472
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
473
+ msgstr "Jūsų popup formos bus nerodomos, kai skriptas yra išjungtas"
474
+
475
+ # @ mailerlite
476
+ #: include/templates/admin/settings.php:35
477
+ msgid "Popup forms script"
478
+ msgstr "Popup formų skriptas"
languages/mailerlite-ru_RU.mo CHANGED
Binary file
languages/mailerlite-ru_RU.po CHANGED
@@ -408,4 +408,59 @@ msgstr "Отправьте эту ошибку на info@mailerlite.com или
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
- msgstr "\"Пожалуйста, подождите\" записка"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
+ msgstr "\"Пожалуйста, подождите\" записка"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Произошла ошибка"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Заметьте, пожалуйста, что возможно добавить только <b>Встраиваемые</b> формы и <b>Кнопки</b>. Всплывающие <b>Popup</b> формы на вашем сайте WordPress показываются автоматически. Отключить <b>Popup</b> формы можно в <a href=\"admin.php?page=mailerlite_settings\">настройках</a>. Добавлять <b>Посадочные страницы</b> на WordPress нельзя."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite cценарий отслеживания"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "включен"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "отключен"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "включить"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "отключать"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Перейдите в <a href=\"admin.php?page=mailerlite_settings\">настройки</a>, если вы хотите изменить его"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "Ваши popup формы будут отображаться автоматически, когда скрипт включен"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "Ваши всплывающие Popup формы не будут отображаться, пока скрипт отключен"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Скрипт Popup форм"
languages/mailerlite-sv_SE.mo CHANGED
Binary file
languages/mailerlite-sv_SE.po CHANGED
@@ -408,4 +408,59 @@ msgstr "Skicka detta fel att info@mailerlite.com eller vår chatt"
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
- msgstr "\"Vänligen vänta\" meddelande"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
+ msgstr "\"Vänligen vänta\" meddelande"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Fel har hänt"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Observera att du kan lägga till <b>Embed</b> eller <b>Button</b> bara skriva formulär. <b>Popup</b> formulär visas automatiskt på din Wordpress-webbplats. Du kan stänga av <b>Popup</b> formulär i <a href=\"admin.php?page=mailerlite_settings\">Inställningar</a>. Du kan inte inkludera sidan <b>Landing</b> på din Wordpress-sida."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite spårningsskriptet är"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "aktiverad"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "inaktiverad"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "Gör det möjligt"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "inaktivera"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Gå till <a href=\"admin.php?page=mailerlite_settings\">inställningar</a> om du vill ändra det"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "Dina popup-formulär visas automatiskt medan spårningsskriptet är aktiverat"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "Dina popup-formulär visas inte när spårningsskriptet är inaktiverat"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Popup former bildar spårningsskript"
languages/mailerlite-uk_UA.mo CHANGED
Binary file
languages/mailerlite-uk_UA.po CHANGED
@@ -408,4 +408,59 @@ msgstr "Відправте цю помилку на info@mailerlite.com або
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
- msgstr "\"Будь ласка\" повідомлення"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  # @ mailerlite
409
  #: include/templates/admin/edit_custom.php:20
410
  msgid "Please wait message"
411
+ msgstr "\"Будь ласка\" повідомлення"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Сталася помилка"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Заметьте, пожалуйста, что возможно добавить только <b>Встраиваемые</b> формы и <b>Кнопки</b>. Всплывающие <b>Popup</b> формы на вашем сайте WordPress показываются автоматически. Отключить <b>Popup</b> формы можно в <a href=\"admin.php?page=mailerlite_settings\">настройках</a>. Добавлять <b>Посадочные страницы</b> на WordPress нельзя."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite cценарий отслеживания"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "включений"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "Вимкнено"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "Увімкнути"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "Відключити"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Перейдіть до <a href=\"admin.php?page=mailerlite_settings\">налаштувань</a>, якщо хочете його змінити"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "Ваші Popup спливаючі форми відображатимуться автоматично під час активації сценарію"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "Ваші Popup спливаючі форми не відображатимуться під час відключення сценарію"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Спливаючі Popup форми скрипт"
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.1.25
7
  * Author: MailerGroup
8
  * Author URI: https://www.mailerlite.com
9
  * License: GPLv2 or later
@@ -27,7 +27,7 @@
27
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
28
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
29
 
30
- define('MAILERLITE_VERSION', '1.1.25');
31
 
32
  define('MAILERLITE_PHP_VERSION', '5.0.1');
33
  define('MAILERLITE_WP_VERSION', '3.0.1');
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.2
7
  * Author: MailerGroup
8
  * Author URI: https://www.mailerlite.com
9
  * License: GPLv2 or later
27
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
28
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
29
 
30
+ define('MAILERLITE_VERSION', '1.2');
31
 
32
  define('MAILERLITE_PHP_VERSION', '5.0.1');
33
  define('MAILERLITE_WP_VERSION', '3.0.1');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.mailerlite.com/
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.8
7
- Stable tag: 1.1.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -127,6 +127,8 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
127
 
128
  == Changelog ==
129
 
 
 
130
  = 1.1.25 =
131
  short php open tag fix
132
  = 1.1.24 =
@@ -220,6 +222,8 @@ translation errors for LT language, allowing only embed and button forms
220
 
221
  == Upgrade Notice ==
222
 
 
 
223
  = 1.1.25 =
224
  short php open tag fix
225
  = 1.1.24 =
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.8
7
+ Stable tag: 1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
127
 
128
  == Changelog ==
129
 
130
+ = 1.2 =
131
+ some small php notice errors fixed. More clear tooltips about embed forms. Popup script settings moved to settings page. Added en_US locale translations (the same as en_EN)
132
  = 1.1.25 =
133
  short php open tag fix
134
  = 1.1.24 =
222
 
223
  == Upgrade Notice ==
224
 
225
+ = 1.2 =
226
+ some small php notice errors fixed. More clear tooltips about embed forms. Popup script settings moved to settings page. Added en_US locale translations (the same as en_EN)
227
  = 1.1.25 =
228
  short php open tag fix
229
  = 1.1.24 =