Version Description
fixed translations, added english .po/.mo files, added "please wait" message translate option to custom forms
Download this release
Release Info
Developer | mailerlite |
Plugin | Official MailerLite Sign Up Forms |
Version | 1.1.23 |
Comparing to | |
See all releases |
Code changes from version 1.1.22 to 1.1.23
- include/mailerlite-admin.php +5 -0
- include/templates/admin/edit_custom.php +9 -0
- include/templates/admin/settings.php +1 -1
- include/templates/forms/custom_form.php +1 -1
- languages/mailerlite-fi_FI.mo +0 -0
- languages/mailerlite-fi_FI.po +7 -2
- languages/mailerlite-it_IT.mo +0 -0
- languages/mailerlite-it_IT.po +7 -2
- languages/mailerlite-lt_LT.mo +0 -0
- languages/mailerlite-lt_LT.po +7 -2
- languages/mailerlite-ru_RU.mo +0 -0
- languages/mailerlite-ru_RU.po +7 -2
- languages/mailerlite-sv_SE.mo +0 -0
- languages/mailerlite-sv_SE.po +7 -2
- languages/mailerlite-uk_UA.mo +0 -0
- languages/mailerlite-uk_UA.po +7 -2
- libs/mailerlite_rest/base/ML_Rest_Base.php +0 -4
- mailerlite.php +2 -2
- readme.txt +6 -2
include/mailerlite-admin.php
CHANGED
@@ -230,6 +230,10 @@ class MailerLite_Admin
|
|
230 |
: __(
|
231 |
'Subscribe', 'mailerlite'
|
232 |
);
|
|
|
|
|
|
|
|
|
233 |
|
234 |
$language = isset($_POST['language'])
|
235 |
&& $_POST['language'] != ''
|
@@ -273,6 +277,7 @@ class MailerLite_Admin
|
|
273 |
'description' => wpautop($form_description, true),
|
274 |
'success_message' => wpautop($success_message, true),
|
275 |
'button' => $button_name,
|
|
|
276 |
'language' => $language,
|
277 |
'lists' => $form_lists,
|
278 |
'fields' => $prepared_fields
|
230 |
: __(
|
231 |
'Subscribe', 'mailerlite'
|
232 |
);
|
233 |
+
$please_wait = isset($_POST['please_wait'])
|
234 |
+
&& $_POST['please_wait'] != ''
|
235 |
+
? sanitize_text_field($_POST['please_wait'])
|
236 |
+
: '';
|
237 |
|
238 |
$language = isset($_POST['language'])
|
239 |
&& $_POST['language'] != ''
|
277 |
'description' => wpautop($form_description, true),
|
278 |
'success_message' => wpautop($success_message, true),
|
279 |
'button' => $button_name,
|
280 |
+
'please_wait' => $please_wait,
|
281 |
'language' => $language,
|
282 |
'lists' => $form_lists,
|
283 |
'fields' => $prepared_fields
|
include/templates/admin/edit_custom.php
CHANGED
@@ -93,6 +93,15 @@
|
|
93 |
</td>
|
94 |
</tr>
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
<tr>
|
97 |
<th><label for="language"><?php _e('Validation messages', 'mailerlite'); ?></label>
|
98 |
</th>
|
93 |
</td>
|
94 |
</tr>
|
95 |
|
96 |
+
<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 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>
|
104 |
+
|
105 |
<tr>
|
106 |
<th><label for="language"><?php _e('Validation messages', 'mailerlite'); ?></label>
|
107 |
</th>
|
include/templates/admin/settings.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
<?php include("sidebar.php"); ?>
|
9 |
<div id="post-body">
|
10 |
<div id="post-body-content">
|
11 |
-
<p><?php _e('Here you able to change your API key!', 'mailerlite'); ?></p>
|
12 |
|
13 |
<div class="mailerlite-activate">
|
14 |
<div class="description-block">
|
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">
|
include/templates/forms/custom_form.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<input id="mailerlite-<?php echo $form_id; ?>-field-<?php echo $field; ?>" type="<?php echo $input_type; ?>" required="required" name="form_fields[<?php echo $field; ?>]"/>
|
18 |
</div>
|
19 |
<?php endforeach; ?>
|
20 |
-
<div class="mailerlite-form-loader"><?php _e('Please wait...', 'mailerlite'); ?></div>
|
21 |
<div class="mailerlite-subscribe-button-container">
|
22 |
<input class="mailerlite-subscribe-submit" type="submit"
|
23 |
value="<?php echo $form_data['button']; ?>"/>
|
17 |
<input id="mailerlite-<?php echo $form_id; ?>-field-<?php echo $field; ?>" type="<?php echo $input_type; ?>" required="required" name="form_fields[<?php echo $field; ?>]"/>
|
18 |
</div>
|
19 |
<?php endforeach; ?>
|
20 |
+
<div class="mailerlite-form-loader"><?php if (!empty($form_data['please_wait'])) echo $form_data['please_wait']; else _e('Please wait...', 'mailerlite'); ?></div>
|
21 |
<div class="mailerlite-subscribe-button-container">
|
22 |
<input class="mailerlite-subscribe-submit" type="submit"
|
23 |
value="<?php echo $form_data['button']; ?>"/>
|
languages/mailerlite-fi_FI.mo
CHANGED
Binary file
|
languages/mailerlite-fi_FI.po
CHANGED
@@ -360,7 +360,7 @@ msgstr "Liitännäisen asetukset"
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
-
msgid "Here you able to change your API key!"
|
364 |
msgstr "Tässä voit muuttaa API-avaintasi!"
|
365 |
|
366 |
#. mailerlite
|
@@ -403,4 +403,9 @@ msgstr "Kiitos tilauksestasi!"
|
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
-
msgstr "Lähetä tämä virhe info@mailerlite.com tai meidän chat"
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
+
msgid "Here you are able to change your API key!"
|
364 |
msgstr "Tässä voit muuttaa API-avaintasi!"
|
365 |
|
366 |
#. mailerlite
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
+
msgstr "Lähetä tämä virhe info@mailerlite.com tai meidän chat"
|
407 |
+
|
408 |
+
# @ mailerlite
|
409 |
+
#: include/templates/admin/edit_custom.php:20
|
410 |
+
msgid "Please wait message"
|
411 |
+
msgstr "\"Ole hyvä ja odota\" viesti"
|
languages/mailerlite-it_IT.mo
CHANGED
Binary file
|
languages/mailerlite-it_IT.po
CHANGED
@@ -360,7 +360,7 @@ msgstr "Impostazioni plugin"
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
-
msgid "Here you able to change your API key!"
|
364 |
msgstr "Qui puoi cambiare la tua API key!"
|
365 |
|
366 |
#. mailerlite
|
@@ -403,4 +403,9 @@ msgstr "Grazie per la tua iscrizione!"
|
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
-
msgstr "Invia questo errore di info@mailerlite.com o la nostra chat"
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
+
msgid "Here you are able to change your API key!"
|
364 |
msgstr "Qui puoi cambiare la tua API key!"
|
365 |
|
366 |
#. mailerlite
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
+
msgstr "Invia questo errore di info@mailerlite.com o la nostra chat"
|
407 |
+
|
408 |
+
# @ mailerlite
|
409 |
+
#: include/templates/admin/edit_custom.php:20
|
410 |
+
msgid "Please wait message"
|
411 |
+
msgstr "\"Aspetta\" nota"
|
languages/mailerlite-lt_LT.mo
CHANGED
Binary file
|
languages/mailerlite-lt_LT.po
CHANGED
@@ -186,7 +186,7 @@ msgstr "Ar tikrai norite ištrinti šią formą?"
|
|
186 |
|
187 |
# @ mailerlite
|
188 |
#: include/templates/admin/settings.php:10
|
189 |
-
msgid "Here you able to change your API key!"
|
190 |
msgstr "Čia jūs galite pasikeisti API raktą!"
|
191 |
|
192 |
# @ mailerlite
|
@@ -410,4 +410,9 @@ msgstr "Pridėti trumpinį"
|
|
410 |
# @ mailerlite
|
411 |
#: include/mailerlite_admin.php:395
|
412 |
msgid "Send this error to info@mailerlite.com or our chat"
|
413 |
-
msgstr "Atsiųskite šį klaidos pranešimą info@mailerlite.com arba per chat"
|
|
|
|
|
|
|
|
|
|
186 |
|
187 |
# @ mailerlite
|
188 |
#: include/templates/admin/settings.php:10
|
189 |
+
msgid "Here you are able to change your API key!"
|
190 |
msgstr "Čia jūs galite pasikeisti API raktą!"
|
191 |
|
192 |
# @ mailerlite
|
410 |
# @ mailerlite
|
411 |
#: include/mailerlite_admin.php:395
|
412 |
msgid "Send this error to info@mailerlite.com or our chat"
|
413 |
+
msgstr "Atsiųskite šį klaidos pranešimą info@mailerlite.com arba per chat"
|
414 |
+
|
415 |
+
# @ mailerlite
|
416 |
+
#: include/templates/admin/edit_custom.php:20
|
417 |
+
msgid "Please wait message"
|
418 |
+
msgstr "\"Palaukite\" žinutė"
|
languages/mailerlite-ru_RU.mo
CHANGED
Binary file
|
languages/mailerlite-ru_RU.po
CHANGED
@@ -360,7 +360,7 @@ msgstr "Настройки плагина"
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
-
msgid "Here you able to change your API key!"
|
364 |
msgstr "Здесь вы можете изменить свой ключ API!"
|
365 |
|
366 |
#. mailerlite
|
@@ -403,4 +403,9 @@ msgstr "Спасибо за подписку!"
|
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
-
msgstr "Отправьте эту ошибку на info@mailerlite.com или чат на нашем сайте."
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
+
msgid "Here you are able to change your API key!"
|
364 |
msgstr "Здесь вы можете изменить свой ключ API!"
|
365 |
|
366 |
#. mailerlite
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
+
msgstr "Отправьте эту ошибку на info@mailerlite.com или чат на нашем сайте."
|
407 |
+
|
408 |
+
# @ mailerlite
|
409 |
+
#: include/templates/admin/edit_custom.php:20
|
410 |
+
msgid "Please wait message"
|
411 |
+
msgstr "\"Пожалуйста, подождите\" записка"
|
languages/mailerlite-sv_SE.mo
CHANGED
Binary file
|
languages/mailerlite-sv_SE.po
CHANGED
@@ -360,7 +360,7 @@ msgstr "Inställningar för Plugin"
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
-
msgid "Here you able to change your API key!"
|
364 |
msgstr "Här kan du ändra din API nyckel"
|
365 |
|
366 |
#. mailerlite
|
@@ -403,4 +403,9 @@ msgstr "Tack för din prenumeration!"
|
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
-
msgstr "Skicka detta fel att info@mailerlite.com eller vår chatt"
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
+
msgid "Here you are able to change your API key!"
|
364 |
msgstr "Här kan du ändra din API nyckel"
|
365 |
|
366 |
#. mailerlite
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
+
msgstr "Skicka detta fel att info@mailerlite.com eller vår chatt"
|
407 |
+
|
408 |
+
# @ mailerlite
|
409 |
+
#: include/templates/admin/edit_custom.php:20
|
410 |
+
msgid "Please wait message"
|
411 |
+
msgstr "\"Vänligen vänta\" meddelande"
|
languages/mailerlite-uk_UA.mo
CHANGED
Binary file
|
languages/mailerlite-uk_UA.po
CHANGED
@@ -360,7 +360,7 @@ msgstr "Налаштування плагіна"
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
-
msgid "Here you able to change your API key!"
|
364 |
msgstr "Тут ви можете змінити свій ключ API!"
|
365 |
|
366 |
#. mailerlite
|
@@ -403,4 +403,9 @@ msgstr "Дякуємо за підписку!"
|
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
-
msgstr "Відправте цю помилку на info@mailerlite.com або зв'яжіться з нами через онлайн"
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
#. mailerlite
|
362 |
#: include/templates/admin/settings.php:10
|
363 |
+
msgid "Here you are able to change your API key!"
|
364 |
msgstr "Тут ви можете змінити свій ключ API!"
|
365 |
|
366 |
#. mailerlite
|
403 |
# @ mailerlite
|
404 |
#: include/mailerlite_admin.php:395
|
405 |
msgid "Send this error to info@mailerlite.com or our chat"
|
406 |
+
msgstr "Відправте цю помилку на info@mailerlite.com або зв'яжіться з нами через онлайн"
|
407 |
+
|
408 |
+
# @ mailerlite
|
409 |
+
#: include/templates/admin/edit_custom.php:20
|
410 |
+
msgid "Please wait message"
|
411 |
+
msgstr "\"Будь ласка\" повідомлення"
|
libs/mailerlite_rest/base/ML_Rest_Base.php
CHANGED
@@ -157,10 +157,6 @@ class ML_Rest_Base
|
|
157 |
|
158 |
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, false);
|
159 |
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);
|
160 |
-
|
161 |
-
if (!ini_get('open_basedir') && !ini_get('safe_mode')) {
|
162 |
-
curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, true);
|
163 |
-
}
|
164 |
}
|
165 |
|
166 |
public function hasCurlError()
|
157 |
|
158 |
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, false);
|
159 |
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);
|
|
|
|
|
|
|
|
|
160 |
}
|
161 |
|
162 |
public function hasCurlError()
|
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.
|
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.
|
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.1.23
|
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.1.23');
|
31 |
|
32 |
define('MAILERLITE_PHP_VERSION', '5.0.1');
|
33 |
define('MAILERLITE_WP_VERSION', '3.0.1');
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: mailerlite
|
|
3 |
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.7
|
7 |
-
Stable tag: 1.1.
|
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.22 =
|
131 |
updated jquery validation script URL to use static.mailerlite.com
|
132 |
= 1.1.21 =
|
@@ -214,6 +216,8 @@ translation errors for LT language, allowing only embed and button forms
|
|
214 |
|
215 |
== Upgrade Notice ==
|
216 |
|
|
|
|
|
217 |
= 1.1.22 =
|
218 |
updated jquery validation script URL to use static.mailerlite.com
|
219 |
= 1.1.21 =
|
3 |
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.7.3
|
7 |
+
Stable tag: 1.1.23
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
127 |
|
128 |
== Changelog ==
|
129 |
|
130 |
+
= 1.1.23 =
|
131 |
+
fixed translations, added english .po/.mo files, added "please wait" message translate option to custom forms
|
132 |
= 1.1.22 =
|
133 |
updated jquery validation script URL to use static.mailerlite.com
|
134 |
= 1.1.21 =
|
216 |
|
217 |
== Upgrade Notice ==
|
218 |
|
219 |
+
= 1.1.23 =
|
220 |
+
fixed translations, added english .po/.mo files, added "please wait" message translate option to custom forms
|
221 |
= 1.1.22 =
|
222 |
updated jquery validation script URL to use static.mailerlite.com
|
223 |
= 1.1.21 =
|