Version Description
- Small changes
Download this release
Release Info
Developer | mailerlite |
Plugin | Official MailerLite Sign Up Forms |
Version | 1.0.2 |
Comparing to | |
See all releases |
Version 1.0.2
- assets/css/mailerlite.css +38 -0
- assets/css/mailerlite_forms.css +44 -0
- assets/image/header.png +0 -0
- assets/image/icon.png +0 -0
- assets/image/shortcode.png +0 -0
- assets/js/mailerlite_shortcode.js +28 -0
- include/mailerlite-admin.php +327 -0
- include/mailerlite-form.php +150 -0
- include/mailerlite-shortcode.php +76 -0
- include/mailerlite-widget.php +97 -0
- include/templates/admin/api_key.php +34 -0
- include/templates/admin/create.php +37 -0
- include/templates/admin/edit_custom.php +127 -0
- include/templates/admin/edit_embedded.php +64 -0
- include/templates/admin/header.php +2 -0
- include/templates/admin/main.php +49 -0
- include/templates/admin/settings.php +36 -0
- include/templates/admin/sidebar.php +11 -0
- include/templates/common/tiny_mce.php +39 -0
- include/templates/forms/custom_form.php +59 -0
- include/templates/forms/embedded_form.php +1 -0
- languages/mailerlite-fi_FI.mo +0 -0
- languages/mailerlite-fi_FI.po +401 -0
- languages/mailerlite-it_IT.mo +0 -0
- languages/mailerlite-it_IT.po +401 -0
- languages/mailerlite-lt_LT.mo +0 -0
- languages/mailerlite-lt_LT.po +408 -0
- languages/mailerlite-ru_RU.mo +0 -0
- languages/mailerlite-ru_RU.po +401 -0
- languages/mailerlite-se_SE.mo +0 -0
- languages/mailerlite-se_SE.po +401 -0
- languages/mailerlite-ua_UA.mo +0 -0
- languages/mailerlite-ua_UA.po +401 -0
- libs/mailerlite_rest/ML_Campaigns.php +57 -0
- libs/mailerlite_rest/ML_Lists.php +42 -0
- libs/mailerlite_rest/ML_Subscribers.php +59 -0
- libs/mailerlite_rest/ML_Webforms.php +15 -0
- libs/mailerlite_rest/base/ML_Rest.php +61 -0
- libs/mailerlite_rest/base/ML_Rest_Base.php +231 -0
- mailerlite.php +77 -0
- readme.txt +147 -0
- screenshot-1.jpg +0 -0
- screenshot-2.jpg +0 -0
- screenshot-3.jpg +0 -0
- screenshot-4.jpg +0 -0
- screenshot-5.jpg +0 -0
- screenshot-6.jpg +0 -0
assets/css/mailerlite.css
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.mailerlite-activate {
|
2 |
+
background: #FFF;
|
3 |
+
max-width: 750px;
|
4 |
+
padding: 30px;
|
5 |
+
border-radius: 5px;
|
6 |
+
}
|
7 |
+
|
8 |
+
.mailerlite-activate .description-block {
|
9 |
+
float: left;
|
10 |
+
}
|
11 |
+
|
12 |
+
.mailerlite-activate .description-block .title {
|
13 |
+
font-size: 16px;
|
14 |
+
font-weight: bold;
|
15 |
+
}
|
16 |
+
|
17 |
+
.mailerlite-activate .input-block {
|
18 |
+
float: right;
|
19 |
+
padding-top: 25px;
|
20 |
+
}
|
21 |
+
|
22 |
+
.mailerlite-empty-list {
|
23 |
+
padding: 30px;
|
24 |
+
}
|
25 |
+
|
26 |
+
.mailerlite-text-center {
|
27 |
+
text-align: center;
|
28 |
+
}
|
29 |
+
|
30 |
+
.mailerlite-pull-right {
|
31 |
+
float: right;
|
32 |
+
}
|
33 |
+
|
34 |
+
.mailerlite-header {
|
35 |
+
height: 100px;
|
36 |
+
background: url('../image/header.png');
|
37 |
+
margin: 0px 0px 20px -20px;
|
38 |
+
}
|
assets/css/mailerlite_forms.css
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Global forms style */
|
2 |
+
|
3 |
+
.mailerlite-form {
|
4 |
+
|
5 |
+
}
|
6 |
+
|
7 |
+
.mailerlite-form .mailerlite-form-description {
|
8 |
+
margin-bottom: 10px;
|
9 |
+
}
|
10 |
+
|
11 |
+
.mailerlite-form .mailerlite-form-field {
|
12 |
+
margin-bottom: 10px;
|
13 |
+
}
|
14 |
+
|
15 |
+
.mailerlite-form .mailerlite-form-field label {
|
16 |
+
display: block;
|
17 |
+
}
|
18 |
+
|
19 |
+
.mailerlite-form .mailerlite-subscribe-button-container {
|
20 |
+
text-align: center;
|
21 |
+
}
|
22 |
+
|
23 |
+
.mailerlite-form input.error {
|
24 |
+
color: #ff0000;
|
25 |
+
border-color: #ff0000;
|
26 |
+
}
|
27 |
+
|
28 |
+
.mailerlite-form label.error {
|
29 |
+
color: #ff0000;
|
30 |
+
}
|
31 |
+
|
32 |
+
.mailerlite-form-response {
|
33 |
+
margin-top: 20px;
|
34 |
+
display: none;
|
35 |
+
text-align: center;
|
36 |
+
color: #00a154;
|
37 |
+
}
|
38 |
+
|
39 |
+
.mailerlite-form-loader {
|
40 |
+
display:none;
|
41 |
+
text-align: center;
|
42 |
+
font-weight: bold;
|
43 |
+
margin: 0 20px;
|
44 |
+
}
|
assets/image/header.png
ADDED
Binary file
|
assets/image/icon.png
ADDED
Binary file
|
assets/image/shortcode.png
ADDED
Binary file
|
assets/js/mailerlite_shortcode.js
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function() {
|
2 |
+
tinymce.create('tinymce.plugins.mailerlite_shortcode', {
|
3 |
+
init : function(ed, url) {
|
4 |
+
ed.addCommand('mailerlite_shortcode_popup', function() {
|
5 |
+
ed.windowManager.open({
|
6 |
+
file: ajaxurl + '?action=mailerlite_tinymce_window',
|
7 |
+
width : 400 + ed.getLang('example.delta_width', 0),
|
8 |
+
height : 400 + ed.getLang('example.delta_height', 0),
|
9 |
+
inline : 1
|
10 |
+
}, {
|
11 |
+
plugin_url : url
|
12 |
+
}
|
13 |
+
);
|
14 |
+
}
|
15 |
+
);
|
16 |
+
ed.addButton('mailerlite_shortcode', {
|
17 |
+
title : 'Add a MailerLite sign-up form',
|
18 |
+
image : url+'/../image/shortcode.png',
|
19 |
+
cmd : 'mailerlite_shortcode_popup'
|
20 |
+
}
|
21 |
+
);
|
22 |
+
},
|
23 |
+
createControl : function(n, ml) {
|
24 |
+
return null;
|
25 |
+
}
|
26 |
+
});
|
27 |
+
tinymce.PluginManager.add('mailerlite_shortcode', tinymce.plugins.mailerlite_shortcode);
|
28 |
+
})();
|
include/mailerlite-admin.php
ADDED
@@ -0,0 +1,327 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php defined('ABSPATH') or die("No direct access allowed!");
|
2 |
+
|
3 |
+
require_once MAILERLITE_PLUGIN_DIR . "libs/mailerlite_rest/ML_Lists.php";
|
4 |
+
require_once MAILERLITE_PLUGIN_DIR . "libs/mailerlite_rest/ML_Webforms.php";
|
5 |
+
|
6 |
+
class MailerLite_Admin {
|
7 |
+
|
8 |
+
private static $initiated = false;
|
9 |
+
private static $api_key = false;
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Initialization method
|
13 |
+
*/
|
14 |
+
public static function init() {
|
15 |
+
|
16 |
+
global $mailerlite_error;
|
17 |
+
|
18 |
+
$mailerlite_error = false;
|
19 |
+
|
20 |
+
self::$api_key = get_option('mailerlite_api_key');
|
21 |
+
|
22 |
+
if ( ! self::$initiated ) {
|
23 |
+
self::init_hooks();
|
24 |
+
}
|
25 |
+
|
26 |
+
if ( isset( $_POST['action'] ) && $_POST['action'] == 'enter-mailerlite-key' ) {
|
27 |
+
self::set_api_key();
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Adds admin stuff
|
33 |
+
*/
|
34 |
+
private static function init_hooks() {
|
35 |
+
|
36 |
+
self::$initiated = true;
|
37 |
+
|
38 |
+
add_action('admin_init', array('MailerLite_Admin', 'mailerlite_admin_init_setting'));
|
39 |
+
add_action('admin_menu', array('MailerLite_Admin', 'mailerlite_admin_generate_menu_link'));
|
40 |
+
|
41 |
+
wp_register_style( 'mailerlite.css', MAILERLITE_PLUGIN_URL . '/assets/css/mailerlite.css', array(), MAILERLITE_VERSION );
|
42 |
+
wp_enqueue_style( 'mailerlite.css');
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Generates admin menu links
|
47 |
+
*/
|
48 |
+
public static function mailerlite_admin_generate_menu_link() {
|
49 |
+
|
50 |
+
add_menu_page('MailerLite', 'MailerLite', 'manage_options', 'mailerlite_main', null, MAILERLITE_PLUGIN_URL . '/assets/image/icon.png');
|
51 |
+
|
52 |
+
add_submenu_page('mailerlite_main', __('Forms', 'mailerlite'), __('Signup forms', 'mailerlite'), 'manage_options', 'mailerlite_main', array('MailerLite_Admin', 'mailerlite_main'));
|
53 |
+
add_submenu_page('mailerlite_main', __('Settings', 'mailerlite'), __('Settings', 'mailerlite'), 'manage_options', 'mailerlite_settings', array('MailerLite_Admin', 'mailerlite_settings'));
|
54 |
+
}
|
55 |
+
|
56 |
+
public static function mailerlite_admin_init_setting() {
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Checks if there is API key set
|
62 |
+
*/
|
63 |
+
private static function mailerlite_api_key_require() {
|
64 |
+
global $mailerlite_error;
|
65 |
+
|
66 |
+
if ( self::$api_key == false )
|
67 |
+
{
|
68 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/api_key.php' );
|
69 |
+
exit;
|
70 |
+
}
|
71 |
+
|
72 |
+
}
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Create, edit, list pages method
|
76 |
+
*/
|
77 |
+
public static function mailerlite_main() {
|
78 |
+
global $fields, $lists, $form, $forms_data, $webforms, $mailerlite_error, $result, $wpdb;
|
79 |
+
|
80 |
+
//Check for api key
|
81 |
+
self::mailerlite_api_key_require();
|
82 |
+
|
83 |
+
$api_key = self::$api_key;
|
84 |
+
$result = '';
|
85 |
+
|
86 |
+
//Create new signup form view
|
87 |
+
if( isset($_GET['view']) && $_GET['view'] == 'create' )
|
88 |
+
{
|
89 |
+
if( isset( $_POST['create_signup_form'] ) )
|
90 |
+
{
|
91 |
+
self::create_new_form($_POST);
|
92 |
+
wp_redirect( 'admin.php?page=mailerlite_main&view=edit&id=' . $wpdb->insert_id );
|
93 |
+
}
|
94 |
+
else
|
95 |
+
{
|
96 |
+
if ( isset( $_GET['noheader'] ) ) {
|
97 |
+
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
$ML_Webforms = new ML_Webforms($api_key);
|
102 |
+
$webforms = $ML_Webforms->getAll();
|
103 |
+
$webforms = json_decode($webforms);
|
104 |
+
|
105 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/create.php' );
|
106 |
+
|
107 |
+
|
108 |
+
}
|
109 |
+
//Edit signup form view
|
110 |
+
else if ( isset( $_GET['view'] ) && isset( $_GET['id'] ) && $_GET['view'] == 'edit' && absint( $_GET['id'] ) )
|
111 |
+
{
|
112 |
+
$form_id = absint($_GET['id']);
|
113 |
+
|
114 |
+
$form = $wpdb->get_row("SELECT * FROM " . $wpdb->prefix . "mailerlite_forms WHERE id = " . $form_id);
|
115 |
+
|
116 |
+
if ( isset( $form->data ) )
|
117 |
+
{
|
118 |
+
$form->data = unserialize($form->data);
|
119 |
+
|
120 |
+
if ( $form->type == 1 )
|
121 |
+
{
|
122 |
+
add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );
|
123 |
+
|
124 |
+
$ML_Lists = new ML_Lists($api_key);
|
125 |
+
$lists = $ML_Lists->getAll();
|
126 |
+
$lists = json_decode($lists);
|
127 |
+
|
128 |
+
$fields = $ML_Lists->setId($lists->Results[0]->id)->getFields();
|
129 |
+
$fields = json_decode($fields);
|
130 |
+
|
131 |
+
if ( isset( $_POST['save_custom_signup_form'] ) )
|
132 |
+
{
|
133 |
+
$form_name = isset($_POST['form_name']) && $_POST['form_name'] != '' ? sanitize_text_field($_POST['form_name']) : __('Subscribe for newsletter!', 'mailerlite');
|
134 |
+
$form_title = isset($_POST['form_title']) && $_POST['form_title'] != '' ? sanitize_text_field($_POST['form_title']) : __('Newsletter signup', 'mailerlite');
|
135 |
+
$form_description = isset($_POST['form_description']) && $_POST['form_description'] != '' ? $_POST['form_description'] : __('Just simple MailerLite form!', 'mailerlite');
|
136 |
+
$button_name = isset($_POST['button_name']) && $_POST['button_name'] != '' ? sanitize_text_field($_POST['button_name']) : __('Subscribe', 'mailerlite');
|
137 |
+
|
138 |
+
$selected_fields = isset($_POST['form_selected_field']) && is_array($_POST['form_selected_field']) ? $_POST['form_selected_field'] : array();
|
139 |
+
$field_titles = isset($_POST['form_field']) && is_array($_POST['form_field']) ? $_POST['form_field'] : array();
|
140 |
+
|
141 |
+
if ( !isset( $field_titles['email'] ) || $field_titles['email'] == '' )
|
142 |
+
$field_titles['email'] = __('Email', 'mailerlite');
|
143 |
+
|
144 |
+
$form_lists = isset($_POST['form_lists']) && is_array($_POST['form_lists']) ? $_POST['form_lists'] : array();
|
145 |
+
|
146 |
+
$prepared_fields = array();
|
147 |
+
|
148 |
+
//Force to use email
|
149 |
+
$prepared_fields['email'] = $field_titles['email'];
|
150 |
+
|
151 |
+
foreach($selected_fields as $field)
|
152 |
+
{
|
153 |
+
if (isset($field_titles[ $field ]))
|
154 |
+
$prepared_fields[ $field ] = $field_titles[ $field ];
|
155 |
+
}
|
156 |
+
|
157 |
+
$form_data = array(
|
158 |
+
'title' => $form_title,
|
159 |
+
'description' => wpautop($form_description, true),
|
160 |
+
'button' => $button_name,
|
161 |
+
'lists' => $form_lists,
|
162 |
+
'fields' => $prepared_fields
|
163 |
+
);
|
164 |
+
|
165 |
+
$wpdb->update(
|
166 |
+
$wpdb->prefix . 'mailerlite_forms',
|
167 |
+
array(
|
168 |
+
'name' => $form_name,
|
169 |
+
'data' => serialize( $form_data )
|
170 |
+
),
|
171 |
+
array( 'id' => $form_id ),
|
172 |
+
array(),
|
173 |
+
array( '%d' )
|
174 |
+
);
|
175 |
+
|
176 |
+
$form->data = $form_data;
|
177 |
+
|
178 |
+
$result = 'success';
|
179 |
+
}
|
180 |
+
|
181 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/edit_custom.php' );
|
182 |
+
}
|
183 |
+
else if ( $form->type == 2 )
|
184 |
+
{
|
185 |
+
$ML_Webforms = new ML_Webforms($api_key);
|
186 |
+
$webforms = $ML_Webforms->getAll();
|
187 |
+
$webforms = json_decode($webforms);
|
188 |
+
|
189 |
+
$parsed_webforms = array();
|
190 |
+
|
191 |
+
foreach($webforms->Results as $webform)
|
192 |
+
{
|
193 |
+
$parsed_webforms[$webform->id] = $webform->code;
|
194 |
+
}
|
195 |
+
|
196 |
+
if ( isset($_POST['save_embedded_signup_form']) )
|
197 |
+
{
|
198 |
+
$form_name = isset($_POST['form_name']) && $_POST['form_name'] != '' ? sanitize_text_field($_POST['form_name']) : __('Embedded webform', 'mailerlite');
|
199 |
+
$form_webform_id = isset($_POST['form_webform_id']) && isset($parsed_webforms[ $_POST['form_webform_id'] ]) ? $_POST['form_webform_id'] : 0;
|
200 |
+
|
201 |
+
$form_data = array(
|
202 |
+
'id' => $form_webform_id,
|
203 |
+
'code' => $parsed_webforms[ $form_webform_id ]
|
204 |
+
);
|
205 |
+
|
206 |
+
$wpdb->update(
|
207 |
+
$wpdb->prefix . 'mailerlite_forms',
|
208 |
+
array(
|
209 |
+
'name' => $form_name,
|
210 |
+
'data' => serialize( $form_data )
|
211 |
+
),
|
212 |
+
array( 'id' => $form_id ),
|
213 |
+
array(),
|
214 |
+
array( '%d' )
|
215 |
+
);
|
216 |
+
|
217 |
+
$form->data = $form_data;
|
218 |
+
|
219 |
+
$result = 'success';
|
220 |
+
}
|
221 |
+
|
222 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/edit_embedded.php' );
|
223 |
+
}
|
224 |
+
}
|
225 |
+
else
|
226 |
+
{
|
227 |
+
$forms_data = $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "mailerlite_forms ORDER BY time DESC" );
|
228 |
+
|
229 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/main.php' );
|
230 |
+
}
|
231 |
+
}
|
232 |
+
//Delete signup form view
|
233 |
+
else if ( isset($_GET['view']) && isset($_GET['id']) && $_GET['view'] == 'delete' && absint($_GET['id']) )
|
234 |
+
{
|
235 |
+
$wpdb->delete( $wpdb->prefix . 'mailerlite_forms', array( 'id' => $_GET['id'] ) );
|
236 |
+
wp_redirect( 'admin.php?page=mailerlite_main' );
|
237 |
+
}
|
238 |
+
//Signup forms list
|
239 |
+
else
|
240 |
+
{
|
241 |
+
$forms_data = $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "mailerlite_forms ORDER BY time DESC" );
|
242 |
+
|
243 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/main.php' );
|
244 |
+
}
|
245 |
+
}
|
246 |
+
|
247 |
+
/**
|
248 |
+
* Settings page method
|
249 |
+
*/
|
250 |
+
public static function mailerlite_settings() {
|
251 |
+
global $api_key, $mailerlite_error;
|
252 |
+
|
253 |
+
self::mailerlite_api_key_require();
|
254 |
+
|
255 |
+
$api_key = self::$api_key;
|
256 |
+
|
257 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/admin/settings.php' );
|
258 |
+
}
|
259 |
+
|
260 |
+
/**
|
261 |
+
* Checks and sets API key
|
262 |
+
*/
|
263 |
+
private static function set_api_key() {
|
264 |
+
global $mailerlite_error;
|
265 |
+
|
266 |
+
if ( function_exists('current_user_can') && !current_user_can('manage_options') )
|
267 |
+
die(__('You not allowed to do that', 'mailerlite'));
|
268 |
+
|
269 |
+
$key = preg_replace( '/[^a-z0-9]/i', '', $_POST['mailerlite_key'] );
|
270 |
+
|
271 |
+
$ML_Lists = new ML_Lists($key);
|
272 |
+
$ML_Lists->getAll();
|
273 |
+
$response = $ML_Lists->getResponseInfo();
|
274 |
+
|
275 |
+
if($response['http_code'] == 401)
|
276 |
+
{
|
277 |
+
$mailerlite_error = __('Wrong MailerLite API key', 'mailerlite');
|
278 |
+
}
|
279 |
+
else
|
280 |
+
{
|
281 |
+
update_option('mailerlite_api_key', $key);
|
282 |
+
update_option('mailerlite_enabled', true);
|
283 |
+
self::$api_key = $key;
|
284 |
+
}
|
285 |
+
}
|
286 |
+
|
287 |
+
/**
|
288 |
+
* Create new signup form
|
289 |
+
*
|
290 |
+
* @param $data
|
291 |
+
*/
|
292 |
+
private static function create_new_form($data) {
|
293 |
+
global $wpdb;
|
294 |
+
|
295 |
+
$form_type = in_array( $data['form_type'], array(1, 2) ) ? $data['form_type'] : 1;
|
296 |
+
|
297 |
+
if ( $form_type == 1 )
|
298 |
+
{
|
299 |
+
$form_name = __('New custom signup form', 'mailerlite');
|
300 |
+
$form_data = array(
|
301 |
+
'title' => __('Newsletter signup', 'mailerlite'),
|
302 |
+
'description' => __('Just simple MailerLite form!', 'mailerlite'),
|
303 |
+
'button' => __('Subscribe', 'mailerlite'),
|
304 |
+
'lists' => array(),
|
305 |
+
'fields' => array('email' => __('Email', 'mailerlite'))
|
306 |
+
);
|
307 |
+
}
|
308 |
+
else
|
309 |
+
{
|
310 |
+
$form_name = __('New embedded signup form', 'mailerlite');
|
311 |
+
$form_data = array(
|
312 |
+
'id' => 0,
|
313 |
+
'code' => 0
|
314 |
+
);
|
315 |
+
}
|
316 |
+
|
317 |
+
$wpdb->insert(
|
318 |
+
$wpdb->prefix . 'mailerlite_forms',
|
319 |
+
array(
|
320 |
+
'name' => $form_name,
|
321 |
+
'time' => date('Y-m-d h:i:s'),
|
322 |
+
'type' => $form_type,
|
323 |
+
'data' => serialize( $form_data )
|
324 |
+
)
|
325 |
+
);
|
326 |
+
}
|
327 |
+
}
|
include/mailerlite-form.php
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once MAILERLITE_PLUGIN_DIR . "libs/mailerlite_rest/ML_Subscribers.php";
|
4 |
+
|
5 |
+
class MailerLite_Form {
|
6 |
+
public $form_id;
|
7 |
+
public $form_type;
|
8 |
+
public $form_name;
|
9 |
+
public $form_data;
|
10 |
+
|
11 |
+
/**
|
12 |
+
*
|
13 |
+
* Sets form data for class
|
14 |
+
*/
|
15 |
+
public static function init() {
|
16 |
+
add_action( 'wp_enqueue_scripts', array('MailerLite_Form', 'add_jquery_validation_libraries') );
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Generates form by type
|
21 |
+
*/
|
22 |
+
public function generate_form($form_id, $form_type, $form_name, $form_data) {
|
23 |
+
|
24 |
+
$this->form_id = $form_id;
|
25 |
+
$this->form_type = $form_type;
|
26 |
+
$this->form_name = $form_name;
|
27 |
+
$this->form_data = $form_data;
|
28 |
+
|
29 |
+
if ( $this->form_type == 1 )
|
30 |
+
$this->generate_custom_form();
|
31 |
+
else
|
32 |
+
$this->generate_embedded_form();
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Saves form data
|
37 |
+
*/
|
38 |
+
public static function save_form_data() {
|
39 |
+
global $wpdb;
|
40 |
+
|
41 |
+
$form_id = isset($_POST['form_id']) ? absint($_POST['form_id']) : 0;
|
42 |
+
$form_fields = isset($_POST['form_fields']) ? $_POST['form_fields'] : array();
|
43 |
+
|
44 |
+
$api_key = get_option('mailerlite_api_key');
|
45 |
+
|
46 |
+
if ( $form_id > 0 && isset($form_fields['email']) ) {
|
47 |
+
$form = $wpdb->get_row("SELECT * FROM " . $wpdb->prefix . "mailerlite_forms WHERE id = " . $form_id);
|
48 |
+
|
49 |
+
if ( isset( $form->data ) )
|
50 |
+
{
|
51 |
+
|
52 |
+
$form->data = unserialize($form->data);
|
53 |
+
|
54 |
+
$ML_Subscribers = new ML_Subscribers( $api_key );
|
55 |
+
|
56 |
+
$form_email = $form_fields['email'];
|
57 |
+
unset($form_fields['email']);
|
58 |
+
|
59 |
+
$fields = array();
|
60 |
+
|
61 |
+
foreach ($form_fields as $field => $value) {
|
62 |
+
$fields[] = array( 'name' => $field, 'value' => $value );
|
63 |
+
}
|
64 |
+
|
65 |
+
$subscriber = array(
|
66 |
+
'email' => $form_email,
|
67 |
+
'fields' => $fields
|
68 |
+
);
|
69 |
+
|
70 |
+
foreach ($form->data['lists'] as $list)
|
71 |
+
{
|
72 |
+
$ML_Subscribers->setId( $list )->add( $subscriber, 1 );
|
73 |
+
}
|
74 |
+
|
75 |
+
echo json_encode(array('status' => 'success', 'message' => __('Subscriber successfully saved', 'mailerlite')));
|
76 |
+
}
|
77 |
+
else
|
78 |
+
{
|
79 |
+
echo json_encode(array('status' => 'error', 'message' => __('Form not found', 'mailerlite')));
|
80 |
+
}
|
81 |
+
}
|
82 |
+
else
|
83 |
+
{
|
84 |
+
echo json_encode(array('status' => 'error', 'message' => __('Wrong data provided', 'mailerlite')));
|
85 |
+
}
|
86 |
+
|
87 |
+
exit;
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Method to generate custom form
|
92 |
+
*/
|
93 |
+
private function generate_custom_form() {
|
94 |
+
global $form_id, $form_name, $form_data;
|
95 |
+
|
96 |
+
$form_id = $this->form_id;
|
97 |
+
$form_name = $this->form_name;
|
98 |
+
$form_data = $this->form_data;
|
99 |
+
|
100 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/forms/custom_form.php' );
|
101 |
+
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Method to generate embedded form
|
106 |
+
*/
|
107 |
+
private function generate_embedded_form() {
|
108 |
+
global $form_data;
|
109 |
+
|
110 |
+
$form_data = $this->form_data;
|
111 |
+
|
112 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/forms/embedded_form.php' );
|
113 |
+
}
|
114 |
+
|
115 |
+
/**
|
116 |
+
* Register jQuery validation library
|
117 |
+
*/
|
118 |
+
public static function add_jquery_validation_libraries() {
|
119 |
+
|
120 |
+
wp_register_script('google-hosted-jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', false);
|
121 |
+
|
122 |
+
wp_register_script('jquery-validation-plugin', 'http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.min.js', array('google-hosted-jquery'));
|
123 |
+
|
124 |
+
wp_enqueue_script('google-hosted-jquery');
|
125 |
+
wp_enqueue_script('jquery-validation-plugin');
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
add_action( 'wp_ajax_nopriv_mailerlite_subscribe_form', array('MailerLite_Form', 'save_form_data') );
|
130 |
+
add_action( 'wp_ajax_mailerlite_subscribe_form', array('MailerLite_Form', 'save_form_data') );
|
131 |
+
|
132 |
+
|
133 |
+
/**
|
134 |
+
* Loads MailerLite form
|
135 |
+
*
|
136 |
+
* @param $form_id
|
137 |
+
*/
|
138 |
+
function load_mailerlite_form($form_id) {
|
139 |
+
global $wpdb;
|
140 |
+
|
141 |
+
$form = $wpdb->get_row("SELECT * FROM " . $wpdb->prefix . "mailerlite_forms WHERE id = " . $form_id);
|
142 |
+
|
143 |
+
if ( isset( $form->data ) )
|
144 |
+
{
|
145 |
+
$form_data = unserialize($form->data);
|
146 |
+
|
147 |
+
$MailerLite_form = new Mailerlite_Form();
|
148 |
+
$MailerLite_form->generate_form($form_id, $form->type, $form->name, $form_data);
|
149 |
+
}
|
150 |
+
}
|
include/mailerlite-shortcode.php
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class MailerLite_Shortcode {
|
4 |
+
|
5 |
+
/**
|
6 |
+
* WordPress' init() hook
|
7 |
+
*/
|
8 |
+
public static function init() {
|
9 |
+
|
10 |
+
if ( ! current_user_can( 'edit_posts' ) ) return;
|
11 |
+
|
12 |
+
add_shortcode( 'mailerlite_form', array('MailerLite_Shortcode', 'mailerlite_generate_shortcode') );
|
13 |
+
|
14 |
+
add_action( 'wp_ajax_nopriv_mailerlite_tinymce_window', array('MailerLite_Shortcode', 'mailerlite_tinymce_window') );
|
15 |
+
add_action( 'wp_ajax_mailerlite_tinymce_window', array('MailerLite_Shortcode', 'mailerlite_tinymce_window') );
|
16 |
+
|
17 |
+
if ( get_user_option('rich_editing') ) {
|
18 |
+
add_filter ( 'mce_buttons', array('MailerLite_Shortcode', 'mailerlite_register_button') );
|
19 |
+
add_filter ( 'mce_external_plugins', array('MailerLite_Shortcode', 'mailerlite_add_tinymce_plugin') );
|
20 |
+
}
|
21 |
+
|
22 |
+
}
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Add tinymce button to toolbar
|
26 |
+
*/
|
27 |
+
public static function mailerlite_register_button($buttons) {
|
28 |
+
|
29 |
+
array_push($buttons, "mailerlite_shortcode");
|
30 |
+
return $buttons;
|
31 |
+
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Register tinymce plugin
|
36 |
+
*/
|
37 |
+
public static function mailerlite_add_tinymce_plugin($plugin_array) {
|
38 |
+
$plugin_array['mailerlite_shortcode'] = MAILERLITE_PLUGIN_URL.'/assets/js/mailerlite_shortcode.js';
|
39 |
+
return $plugin_array;
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Returns selection of forms
|
44 |
+
*/
|
45 |
+
public static function mailerlite_tinymce_window() {
|
46 |
+
global $wpdb, $forms;
|
47 |
+
|
48 |
+
if ( ! current_user_can( 'edit_posts' ) ) return;
|
49 |
+
|
50 |
+
$forms = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "mailerlite_forms");
|
51 |
+
|
52 |
+
include ( MAILERLITE_PLUGIN_DIR . 'include/templates/common/tiny_mce.php' );
|
53 |
+
|
54 |
+
exit;
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
*
|
59 |
+
* Converts shortcode into html
|
60 |
+
*
|
61 |
+
* @param $attributes
|
62 |
+
* @return string
|
63 |
+
*/
|
64 |
+
public static function mailerlite_generate_shortcode( $attributes ) {
|
65 |
+
$form_attributes = shortcode_atts( array(
|
66 |
+
'form_id' => '1'
|
67 |
+
), $attributes );
|
68 |
+
|
69 |
+
ob_start();
|
70 |
+
load_mailerlite_form($form_attributes['form_id']);
|
71 |
+
$output_string = ob_get_contents();
|
72 |
+
ob_end_clean();
|
73 |
+
|
74 |
+
return $output_string;
|
75 |
+
}
|
76 |
+
}
|
include/mailerlite-widget.php
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once MAILERLITE_PLUGIN_DIR . "include/mailerlite-form.php";
|
4 |
+
|
5 |
+
class MailerLite_Widget extends WP_Widget {
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Sets up the widgets name etc
|
9 |
+
*/
|
10 |
+
public function __construct() {
|
11 |
+
parent::__construct(
|
12 |
+
'mailerlite_widget', // Base ID
|
13 |
+
__('Mailerlite sign up form', 'mailerlite'), // Name
|
14 |
+
array( 'description' => __( 'MailerLite sign up form Widget', 'mailerlite' ), ) // Args
|
15 |
+
);
|
16 |
+
}
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Front-end display of widget.
|
20 |
+
*
|
21 |
+
* @see WP_Widget::widget()
|
22 |
+
*
|
23 |
+
* @param array $args Widget arguments.
|
24 |
+
* @param array $instance Saved values from database.
|
25 |
+
*/
|
26 |
+
public function widget( $args, $instance ) {
|
27 |
+
global $wpdb;
|
28 |
+
|
29 |
+
$form_id = isset($instance['mailerlite_form_id']) && intval($instance['mailerlite_form_id']) ? $instance['mailerlite_form_id'] : 0;
|
30 |
+
$form = $wpdb->get_row("SELECT * FROM " . $wpdb->prefix . "mailerlite_forms WHERE id = " . $form_id);
|
31 |
+
|
32 |
+
if ( isset( $form->data ) )
|
33 |
+
{
|
34 |
+
$form_data = unserialize($form->data);
|
35 |
+
|
36 |
+
echo $args['before_widget'];
|
37 |
+
|
38 |
+
$MailerLite_form = new Mailerlite_Form();
|
39 |
+
$MailerLite_form->generate_form($form_id, $form->type, $form->name, $form_data);
|
40 |
+
|
41 |
+
echo $args['after_widget'];
|
42 |
+
}
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Back-end widget form.
|
47 |
+
*
|
48 |
+
* @see WP_Widget::form()
|
49 |
+
*
|
50 |
+
* @param array $instance Previously saved values from database.
|
51 |
+
* @return void
|
52 |
+
*/
|
53 |
+
public function form( $instance ) {
|
54 |
+
global $wpdb;
|
55 |
+
|
56 |
+
$forms_data = $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "mailerlite_forms ORDER BY time DESC" );
|
57 |
+
|
58 |
+
if ( isset( $instance[ 'mailerlite_form_id' ] ) ) {
|
59 |
+
$id = $instance[ 'mailerlite_form_id' ];
|
60 |
+
}
|
61 |
+
else {
|
62 |
+
$id = 0;
|
63 |
+
}
|
64 |
+
?>
|
65 |
+
<p>
|
66 |
+
<label for="<?php echo $this->get_field_id( 'mailerlite_form_id' ); ?>"><?php echo __( 'Select form:', 'mailerlite' ); ?></label>
|
67 |
+
<select class="widefat" id="<?php echo $this->get_field_id( 'mailerlite_form_id' ); ?>" name="<?php echo $this->get_field_name( 'mailerlite_form_id' ); ?>">
|
68 |
+
<?php foreach ($forms_data as $form): ?>
|
69 |
+
<option value="<?php echo $form->id; ?>"<?php echo $form->id == $id ? ' selected="selected"' : ''; ?>><?php echo $form->name; ?></option>
|
70 |
+
<?php endforeach; ?>
|
71 |
+
</select>
|
72 |
+
</p>
|
73 |
+
<?php
|
74 |
+
}
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Sanitize widget form values as they are saved.
|
78 |
+
*
|
79 |
+
* @see WP_Widget::update()
|
80 |
+
*
|
81 |
+
* @param array $new_instance Values just sent to be saved.
|
82 |
+
* @param array $old_instance Previously saved values from database.
|
83 |
+
*
|
84 |
+
* @return array Updated safe values to be saved.
|
85 |
+
*/
|
86 |
+
public function update( $new_instance, $old_instance ) {
|
87 |
+
$instance = array();
|
88 |
+
$instance['mailerlite_form_id'] = ( ! empty( $new_instance['mailerlite_form_id'] ) ) ? strip_tags( $new_instance['mailerlite_form_id'] ) : '';
|
89 |
+
|
90 |
+
return $instance;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
function register_mailerlite_widget() {
|
95 |
+
register_widget( 'Mailerlite_Widget' );
|
96 |
+
}
|
97 |
+
add_action( 'widgets_init', 'register_mailerlite_widget' );
|
include/templates/admin/api_key.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php defined('ABSPATH') or die("No direct access allowed!"); ?>
|
2 |
+
<?php include("header.php"); ?>
|
3 |
+
<div class="wrap columns-2 dd-wrap">
|
4 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
5 |
+
<?php include("sidebar.php"); ?>
|
6 |
+
<div id="post-body">
|
7 |
+
<div id="post-body-content">
|
8 |
+
<p><?php echo __('Hi there! You will be able to create awesome signup forms, but first we need your MailerLite API key!', 'mailerlite'); ?></p>
|
9 |
+
<?php if($mailerlite_error): ?>
|
10 |
+
<div class="error">
|
11 |
+
<p><?php echo $mailerlite_error; ?></p>
|
12 |
+
</div>
|
13 |
+
|
14 |
+
<?php endif; ?>
|
15 |
+
<div class="mailerlite-activate">
|
16 |
+
<div class="description-block">
|
17 |
+
<p class="title"><?php echo __('Enter an API key', 'mailerlite'); ?></p>
|
18 |
+
<p><?php echo __("Don't know where to find it?", 'mailerlite'); ?> <a href="http://mailerlite.helpscoutdocs.com/article/12-does-mailerlite-offer-an-api" 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 |
+
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php echo __('Save this key', 'mailerlite'); ?>">
|
24 |
+
<input type="hidden" name="action" value="enter-mailerlite-key">
|
25 |
+
</form>
|
26 |
+
</div>
|
27 |
+
<div class="clear"></div>
|
28 |
+
</div>
|
29 |
+
<p><strong><?php echo __("Don't have an account?", 'mailerlite'); ?></strong></p>
|
30 |
+
<a href="https://www.mailerlite.com/signup" target="_blank" class="button button-secondary"><?php echo __('Register!', 'mailerlite'); ?></a>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
</div>
|
include/templates/admin/create.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<h2><?php echo __('Create new signup form', 'mailerlite'); ?></h2>
|
6 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
7 |
+
<?php include("sidebar.php"); ?>
|
8 |
+
<div id="post-body">
|
9 |
+
<div id="post-body-content">
|
10 |
+
<div class="stuffbox">
|
11 |
+
<h3><span><?php echo __('Form type', 'mailerlite'); ?></span></h3>
|
12 |
+
<form action="<?php echo admin_url('admin.php?page=mailerlite_main&view=create&noheader=true'); ?>" method="post">
|
13 |
+
<div class="inside">
|
14 |
+
<p>
|
15 |
+
<label for="form_type_custom" class="selectit">
|
16 |
+
<input id="form_type_custom" type="radio" name="form_type" value="1" checked="checked">
|
17 |
+
<?php echo __('Custom signup form', 'mailerlite'); ?>
|
18 |
+
</label>
|
19 |
+
</p>
|
20 |
+
<p>
|
21 |
+
<label for="form_type_webform" class="selectit">
|
22 |
+
<input id="form_type_webform" type="radio" name="form_type" value="2"<?php echo $webforms->RecordsOnPage == 0 ? ' disabled="disabled"': ''; ?>>
|
23 |
+
<?php echo __('Webforms created using MailerLite', 'mailerlite'); ?>
|
24 |
+
</label>
|
25 |
+
</p>
|
26 |
+
|
27 |
+
<div class="submit">
|
28 |
+
<input class="button-primary mailerlite-pull-right" value="<?php echo __('Create form', 'mailerlite'); ?>" name="create_signup_form" type="submit">
|
29 |
+
<a class="button-secondary" href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php echo __('Back', 'mailerlite'); ?></a>
|
30 |
+
</div>
|
31 |
+
</div>
|
32 |
+
</form>
|
33 |
+
</div>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
</div>
|
include/templates/admin/edit_custom.php
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<h2><?php _e('Edit custom signup form', 'mailerlite'); ?></h2>
|
6 |
+
<?php if (isset($result) && $result == 'success'): ?>
|
7 |
+
<div id="message" class="updated below-h2"><p><?php _e('Form saved.', 'mailerlite'); ?> <a href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php _e('Back to forms list', 'mailerlite'); ?></a></p></div>
|
8 |
+
<?php endif; ?>
|
9 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
10 |
+
<?php include("sidebar.php"); ?>
|
11 |
+
<div id="post-body">
|
12 |
+
<div id="post-body-content">
|
13 |
+
<form action="<?php echo admin_url('admin.php?page=mailerlite_main&view=edit&id=' . (isset($_GET['id']) ? $_GET['id'] : 0) ); ?>" method="post">
|
14 |
+
<div class="postbox">
|
15 |
+
<h3><span><?php _e('Main information', 'mailerlite'); ?></span></h3>
|
16 |
+
<div class="inside">
|
17 |
+
<table class="form-table">
|
18 |
+
<tbody>
|
19 |
+
<tr>
|
20 |
+
<th><label for="form_name"><?php _e('Form name', 'mailerlite'); ?></label></th>
|
21 |
+
<td><input type="text" name="form_name" size="30" maxlength="255" value="<?php echo $form->name; ?>" id="form_name"> <span class="description"><strong><?php echo __('Tip:', 'mailerlite'); ?></strong> <?php echo __("This title won't be displayed in public!", 'mailerlite'); ?></span></td>
|
22 |
+
</tr>
|
23 |
+
</tbody>
|
24 |
+
</table>
|
25 |
+
</div>
|
26 |
+
</div>
|
27 |
+
<div class="postbox">
|
28 |
+
<h3><span><?php _e('Form details', 'mailerlite'); ?></span></h3>
|
29 |
+
<div class="inside">
|
30 |
+
<table class="form-table">
|
31 |
+
<tbody>
|
32 |
+
<tr>
|
33 |
+
<th><label for="form_title"><?php _e('Form title', 'mailerlite'); ?></label></th>
|
34 |
+
<td><input type="text" name="form_title" size="30" maxlength="255" value="<?php echo $form->data['title']; ?>" id="form_title"> <span class="description"><strong><?php echo __('Example:', 'mailerlite'); ?></strong> <?php echo __("Newsletter signup!", 'mailerlite'); ?></span></td>
|
35 |
+
</tr>
|
36 |
+
<tr>
|
37 |
+
<th><label for="form_description"><?php _e('Form description', 'mailerlite'); ?></label></th>
|
38 |
+
<td>
|
39 |
+
<?php
|
40 |
+
$settings = array(
|
41 |
+
'media_buttons' => false,
|
42 |
+
'textarea_rows' => 4 ,
|
43 |
+
'tinymce' => array(
|
44 |
+
'toolbar1' => 'bold,italic,underline,bullist,numlist,link,unlink,forecolor,alignleft,aligncenter,alignright,undo,redo',
|
45 |
+
'toolbar2' => ''
|
46 |
+
)
|
47 |
+
);
|
48 |
+
|
49 |
+
wp_editor( stripslashes($form->data['description']), 'form_description', $settings );
|
50 |
+
?>
|
51 |
+
</td>
|
52 |
+
</tr>
|
53 |
+
<tr>
|
54 |
+
<th><label for="button_name"><?php _e('Button title', 'mailerlite'); ?></label></th>
|
55 |
+
<td><input type="text" name="button_name" size="30" maxlength="255" value="<?php echo $form->data['button']; ?>" id="button_name"> <span class="description"><strong><?php _e('Example:'); ?></strong> <?php _e('Subscribe'); ?></span></td>
|
56 |
+
</tr>
|
57 |
+
</tbody>
|
58 |
+
</table>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
<div class="postbox">
|
62 |
+
<h3><span><?php _e('Form fields and lists', 'mailerlite'); ?></span></h3>
|
63 |
+
<div class="inside">
|
64 |
+
<table class="form-table">
|
65 |
+
<tr>
|
66 |
+
<td style="vertical-align: top;">
|
67 |
+
<h2><?php _e('Fields', 'mailerlite'); ?></h2>
|
68 |
+
<table class="form-table">
|
69 |
+
<tbody>
|
70 |
+
<?php foreach($fields->Fields as $field): ?>
|
71 |
+
<tr>
|
72 |
+
<th style="width:1%;"><input type="checkbox" class="input_control" name="form_selected_field[]" value="<?php echo $field->field; ?>"<?php echo $field->field == 'email' || array_key_exists($field->field, $form->data['fields']) ? ' checked="checked"' : ''; echo $field->field == 'email' ? ' disabled="disabled"' : ''; ?>></th>
|
73 |
+
<td><input type="text" id="field_<?php echo $field->field; ?>" name="form_field[<?php echo $field->field; ?>]" size="30" maxlength="255" value="<?php echo array_key_exists($field->field, $form->data['fields']) ? $form->data['fields'][ $field->field ] : $field->title; ?>"<?php echo $field->field == 'email' || array_key_exists($field->field, $form->data['fields']) ? '' : ' disabled="disabled"'; ?>></td>
|
74 |
+
</tr>
|
75 |
+
<?php endforeach; ?>
|
76 |
+
</tbody>
|
77 |
+
</table>
|
78 |
+
</td>
|
79 |
+
<td style="vertical-align: top;">
|
80 |
+
<h2><?php _e('Lists', 'mailerlite'); ?></h2>
|
81 |
+
<table class="form-table">
|
82 |
+
<tbody>
|
83 |
+
<?php foreach($lists->Results as $list): ?>
|
84 |
+
<tr>
|
85 |
+
<th style="width:1%;"><input id="list_<?php echo $list->id; ?>" type="checkbox" class="input_control" name="form_lists[]" value="<?php echo $list->id; ?>"<?php echo in_array($list->id, $form->data['lists']) ? ' checked="checked"' : ''; ?>></th>
|
86 |
+
<td><label for="list_<?php echo $list->id; ?>"><?php echo $list->name; ?></label></td>
|
87 |
+
</tr>
|
88 |
+
<?php endforeach; ?>
|
89 |
+
</tbody>
|
90 |
+
</table>
|
91 |
+
</td>
|
92 |
+
</tr>
|
93 |
+
</table>
|
94 |
+
<div class="submit">
|
95 |
+
<input class="button-primary mailerlite-pull-right" value="<?php _e('Save form', 'mailerlite'); ?>" name="save_custom_signup_form" type="submit">
|
96 |
+
<a class="button-secondary" href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php echo __('Back', 'mailerlite'); ?></a>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
</form>
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
|
106 |
+
<script type="text/javascript">
|
107 |
+
jQuery(document).ready(function($) {
|
108 |
+
$(".wp-editor-tabs").remove();
|
109 |
+
|
110 |
+
var checkbox_class = $('.input_control');
|
111 |
+
|
112 |
+
checkbox_class.click(function(){
|
113 |
+
var input = $('input#field_'+ $(this).attr('value'));
|
114 |
+
|
115 |
+
if($(this).prop('checked') == false)
|
116 |
+
{
|
117 |
+
input.attr('disabled', true);
|
118 |
+
}
|
119 |
+
else
|
120 |
+
{
|
121 |
+
input.attr('disabled', false);
|
122 |
+
}
|
123 |
+
});
|
124 |
+
});
|
125 |
+
</script>
|
126 |
+
|
127 |
+
<?php /**/
|
include/templates/admin/edit_embedded.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<h2><?php echo __('Edit webform', 'mailerlite'); ?></h2>
|
6 |
+
<?php if (isset($result) && $result == 'success'): ?>
|
7 |
+
<div id="message" class="updated below-h2"><p><?php _e('Form saved.', 'mailerlite'); ?> <a href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php _e('Back to forms list', 'mailerlite'); ?></a></p></div>
|
8 |
+
<?php endif; ?>
|
9 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
10 |
+
<?php include("sidebar.php"); ?>
|
11 |
+
<div id="post-body">
|
12 |
+
<div id="post-body-content">
|
13 |
+
<form action="<?php echo admin_url('admin.php?page=mailerlite_main&view=edit&id=' . (isset($_GET['id']) ? $_GET['id'] : 0) ); ?>" method="post">
|
14 |
+
<div class="postbox">
|
15 |
+
<h3><span><?php echo __('Webform details', 'mailerlite'); ?></span></h3>
|
16 |
+
<div class="inside">
|
17 |
+
<table class="form-table">
|
18 |
+
<tbody>
|
19 |
+
<tr>
|
20 |
+
<th><label for="form_name"><?php echo __('Form title', 'mailerlite'); ?></label></th>
|
21 |
+
<td><input type="text" name="form_name" size="30" maxlength="255" value="<?php echo $form->name; ?>" id="form_name"> <span class="description"><strong><?php echo __('Tip:', 'mailerlite'); ?></strong> <?php echo __("This title won't be displayed in public!", 'mailerlite'); ?></span></td>
|
22 |
+
</tr>
|
23 |
+
<tr>
|
24 |
+
<th><label for="form_webform_id"><?php _e('Webform', 'mailerlite'); ?></label></th>
|
25 |
+
<td>
|
26 |
+
<select id="form_webform_id" name="form_webform_id">
|
27 |
+
<?php foreach ($webforms->Results as $webform): ?>
|
28 |
+
<option data-code="<?php echo $webform->code; ?>" value="<?php echo $webform->id; ?>"<?php echo $webform->id == $form->data['id'] ? ' selected="selected"' : ''; ?>><?php echo $webform->name; ?></option>
|
29 |
+
<?php endforeach; ?>
|
30 |
+
</select>
|
31 |
+
</td>
|
32 |
+
</tr>
|
33 |
+
<tr>
|
34 |
+
<td colspan="2">
|
35 |
+
<div id="webform_example"></div>
|
36 |
+
</td>
|
37 |
+
</tr>
|
38 |
+
</tbody>
|
39 |
+
</table>
|
40 |
+
<div class="submit">
|
41 |
+
<input class="button-primary mailerlite-pull-right" value="<?php _e('Save form', 'mailerlite'); ?>" name="save_embedded_signup_form" type="submit">
|
42 |
+
<a class="button-secondary" href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php echo __('Back', 'mailerlite'); ?></a>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</form>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
|
52 |
+
<script type="text/javascript">
|
53 |
+
jQuery(window).load(function() {
|
54 |
+
var select = jQuery("#form_webform_id");
|
55 |
+
loadIframe(select.children("option:selected").attr('data-code'));
|
56 |
+
select.change(function() {
|
57 |
+
loadIframe(jQuery("option:selected", this).attr('data-code'));
|
58 |
+
});
|
59 |
+
});
|
60 |
+
|
61 |
+
function loadIframe(code) {
|
62 |
+
jQuery('#webform_example').html(jQuery('<iframe></iframe>', { id: 'webform_example_iframe', src: "https://app.mailerlite.com/webforms/submit/"+code+"/", style: 'width:100%;height:350px;' }));
|
63 |
+
}
|
64 |
+
</script>
|
include/templates/admin/header.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php defined('ABSPATH') or die("No direct access allowed!"); ?>
|
2 |
+
<div class="mailerlite-header"></div>
|
include/templates/admin/main.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<h2><?php echo __('Signup forms', 'mailerlite'); ?> <a href="<?php echo admin_url( 'admin.php?page=mailerlite_main&view=create' ); ?>" class="add-new-h2"><?php _e('Add New', 'mailerlite'); ?></a></h2>
|
6 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
7 |
+
<?php include("sidebar.php"); ?>
|
8 |
+
<div id="post-body">
|
9 |
+
<div id="post-body-content">
|
10 |
+
<?php if ( !empty($forms_data) ): ?>
|
11 |
+
<table class="wp-list-table widefat fixed forms">
|
12 |
+
<thead>
|
13 |
+
<tr>
|
14 |
+
<th class="column-posts num"><?php _e('ID', 'mailerlite'); ?></th>
|
15 |
+
<th><?php _e('Name', 'mailerlite'); ?></th>
|
16 |
+
<th class="column-author"><?php _e('Type', 'mailerlite'); ?></th>
|
17 |
+
<th class="column-date"><?php _e('Date', 'mailerlite'); ?></th>
|
18 |
+
</tr>
|
19 |
+
</thead>
|
20 |
+
<tbody id="the-list">
|
21 |
+
<?php $i = 1; ?>
|
22 |
+
<?php foreach($forms_data as $form): ?>
|
23 |
+
<?php $i++; ?>
|
24 |
+
<tr<?php echo $i % 2 == 0 ? ' class="alternate"' : ''; ?>>
|
25 |
+
<td class="column-posts num"><?php echo $form->id; ?></td>
|
26 |
+
<td>
|
27 |
+
<strong><a class="row-title" href="<?php echo admin_url( 'admin.php?page=mailerlite_main&view=edit&id=' . $form->id ); ?>"><?php echo $form->name; ?></a></strong>
|
28 |
+
<div class="row-actions">
|
29 |
+
<span class="edit"><a href="<?php echo admin_url( 'admin.php?page=mailerlite_main&view=edit&id=' . $form->id ); ?>"><?php _e('Edit', 'mailerlite'); ?></a> | </span>
|
30 |
+
<span class="trash"><a onclick="return confirm('<?php _e("Are you sure you want to delete this form?", 'mailerlite'); ?>')" href="<?php echo admin_url( 'admin.php?page=mailerlite_main&view=delete&noheader=true&id=' . $form->id ); ?>"><?php _e('Delete', 'mailerlite'); ?></a></span>
|
31 |
+
</div>
|
32 |
+
</td>
|
33 |
+
<td><?php echo $form->type == 1 ? __('Custom form', 'mailerlite') : __('Embedded form', 'mailerlite'); ?></td>
|
34 |
+
<td><?php echo $form->time; ?></td>
|
35 |
+
</tr>
|
36 |
+
<?php endforeach; ?>
|
37 |
+
</tbody>
|
38 |
+
</table>
|
39 |
+
<?php else: ?>
|
40 |
+
<div class="postbox mailerlite-empty-list">
|
41 |
+
<div class="inside mailerlite-text-center">
|
42 |
+
<a href="<?php echo admin_url( 'admin.php?page=mailerlite_main&view=create' ); ?>" class="button-large button-primary"><?php _e('Add signup form', 'mailerlite'); ?></a>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
<?php endif; ?>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
</div>
|
include/templates/admin/settings.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<h2><?php _e('Plugin settings', 'mailerlite'); ?></h2>
|
6 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
7 |
+
<?php include("sidebar.php"); ?>
|
8 |
+
<div id="post-body">
|
9 |
+
<div id="post-body-content">
|
10 |
+
<p><?php _e('Here you able to change your API key!', 'mailerlite'); ?></p>
|
11 |
+
<?php if($mailerlite_error): ?>
|
12 |
+
<div class="error">
|
13 |
+
<p><?php echo $mailerlite_error; ?></p>
|
14 |
+
</div>
|
15 |
+
|
16 |
+
<?php endif; ?>
|
17 |
+
<div class="mailerlite-activate">
|
18 |
+
<div class="description-block">
|
19 |
+
<p class="title"><?php _e('Enter an API key', 'mailerlite'); ?></p>
|
20 |
+
<p><?php _e("Don't know where to find it?", 'mailerlite'); ?> <a href="http://mailerlite.helpscoutdocs.com/article/12-does-mailerlite-offer-an-api" target="_blank"><?php _e("Check it here!", 'mailerlite'); ?></a></p>
|
21 |
+
</div>
|
22 |
+
<div class="input-block">
|
23 |
+
<form action="" method="post" id="enter-mailerlite-key">
|
24 |
+
<input type="text" name="mailerlite_key" class="regular-text" placeholder="API-key" value="<?php echo $api_key; ?>" />
|
25 |
+
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('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 |
+
<p><strong><?php _e("Don't have an account?", 'mailerlite'); ?></strong></p>
|
32 |
+
<a href="https://www.mailerlite.com/signup" target="_blank" class="button button-secondary"><?php _e('Register!', 'mailerlite'); ?></a>
|
33 |
+
</div>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
</div>
|
include/templates/admin/sidebar.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="side-info-column" class="inner-sidebar">
|
2 |
+
|
3 |
+
<div class="postbox">
|
4 |
+
<h3><?php echo _e('Need help?', 'mailerlite'); ?></h3>
|
5 |
+
<div class="inside">
|
6 |
+
<p><?php echo _e('Have any questions? Stuck on something or found bug? Feel free to contact us!', 'mailerlite'); ?></p>
|
7 |
+
<p><a href="mailto:info@mailerlite.com">info@mailerlite.com</a></p>
|
8 |
+
</div>
|
9 |
+
</div>
|
10 |
+
|
11 |
+
</div>
|
include/templates/common/tiny_mce.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<?php wp_enqueue_script('jquery'); ?>
|
4 |
+
<?php wp_head(); ?>
|
5 |
+
<script type="text/javascript" src="<?php echo site_url().'/wp-includes/js/tinymce/tiny_mce_popup.js'; ?>"></script>
|
6 |
+
</head>
|
7 |
+
|
8 |
+
<body>
|
9 |
+
|
10 |
+
<h2>Add form</h2>
|
11 |
+
<form id="mailerlite_tinymce_form" action="" method="post">
|
12 |
+
|
13 |
+
<p><?php _e('Select form from list below, and hit "Add Shortcode" to add the shortcode to your post!', 'mailerlite'); ?></p>
|
14 |
+
|
15 |
+
<p>
|
16 |
+
<label for="mailerlite_form_id">Form</label><br/>
|
17 |
+
<select class="widefat" id="mailerlite_form_id" name="mailerlite_form_id">
|
18 |
+
<?php foreach ($forms as $form): ?>
|
19 |
+
<option value="<?php echo $form->id; ?>"><?php echo $form->name; ?></option>
|
20 |
+
<?php endforeach; ?>
|
21 |
+
</select>
|
22 |
+
</p>
|
23 |
+
|
24 |
+
<input type="button" name="<?php _e('Add Shortcode', 'mailerlite'); ?>" value="Add Shortcode">
|
25 |
+
|
26 |
+
</form>
|
27 |
+
<script type="text/javascript">
|
28 |
+
jQuery(document).ready(function() {
|
29 |
+
jQuery('form#mailerlite_tinymce_form input:button').click(function() {
|
30 |
+
var form_id = jQuery('form#mailerlite_tinymce_form #mailerlite_form_id').val();
|
31 |
+
var shortcode = '[mailerlite_form form_id='+form_id+']';
|
32 |
+
tinyMCEPopup.execCommand("mceInsertContent", false, shortcode);
|
33 |
+
tinyMCEPopup.close();
|
34 |
+
return false;
|
35 |
+
});
|
36 |
+
});
|
37 |
+
</script>
|
38 |
+
</body>
|
39 |
+
</html>
|
include/templates/forms/custom_form.php
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $unique_id = uniqid(); ?>
|
2 |
+
|
3 |
+
<div id="mailerlite-form_<?php echo $form_id; ?>" data-temp-id="<?php echo $unique_id; ?>">
|
4 |
+
<div class="mailerlite-form">
|
5 |
+
<form action="" method="post">
|
6 |
+
<div class="mailerlite-form-title"><h3><?php echo $form_data['title']; ?></h3></div>
|
7 |
+
<div class="mailerlite-form-description"><?php echo stripslashes($form_data['description']); ?></div>
|
8 |
+
<div class="mailerlite-form-inputs">
|
9 |
+
<?php foreach ($form_data['fields'] as $field => $title): ?>
|
10 |
+
<?php if ($field == 'email') {
|
11 |
+
$input_type = 'email';
|
12 |
+
} else {
|
13 |
+
$input_type = 'text';
|
14 |
+
} ?>
|
15 |
+
<div class="mailerlite-form-field">
|
16 |
+
<label for="mailerlite-<?php echo $form_id; ?>-field-<?php echo $field; ?>"><?php echo $title; ?></label>
|
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" value="Subscribe" />
|
23 |
+
</div>
|
24 |
+
<input type="hidden" name="form_id" value="<?php echo $form_id; ?>" />
|
25 |
+
<input type="hidden" name="action" value="mailerlite_subscribe_form" />
|
26 |
+
</div>
|
27 |
+
<div class="mailerlite-form-response">
|
28 |
+
<h4><?php _e('Thank you for signup!', 'mailerlite'); ?></h4>
|
29 |
+
</div>
|
30 |
+
</form>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
|
34 |
+
<script type="text/javascript">
|
35 |
+
|
36 |
+
jQuery(document).ready(function(){
|
37 |
+
var form_container = jQuery("#mailerlite-form_<?php echo $form_id; ?>[data-temp-id=<?php echo $unique_id; ?>] form");
|
38 |
+
form_container.submit(function(e) {
|
39 |
+
e.preventDefault();
|
40 |
+
}).validate({
|
41 |
+
submitHandler: function(form) {
|
42 |
+
|
43 |
+
jQuery(this.submitButton).prop('disabled', true);
|
44 |
+
|
45 |
+
form_container.find('.mailerlite-subscribe-button-container').fadeOut(function() {
|
46 |
+
form_container.find('.mailerlite-form-loader').fadeIn()
|
47 |
+
});
|
48 |
+
|
49 |
+
var data = jQuery(form).serialize();
|
50 |
+
|
51 |
+
jQuery.post('<?php echo admin_url( 'admin-ajax.php' ); ?>', data, function(response) {
|
52 |
+
form_container.find('.mailerlite-form-inputs').fadeOut(function() {
|
53 |
+
form_container.find('.mailerlite-form-response').fadeIn()
|
54 |
+
});
|
55 |
+
});
|
56 |
+
}
|
57 |
+
});
|
58 |
+
});
|
59 |
+
</script>
|
include/templates/forms/embedded_form.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<script type="text/javascript" src="//app.mailerlite.com/data/webforms/<?php echo $form_data['id']; ?>/<?php echo $form_data['code']; ?>.js"></script>
|
languages/mailerlite-fi_FI.mo
ADDED
Binary file
|
languages/mailerlite-fi_FI.po
ADDED
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"MIME-Version: 1.0\n"
|
4 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
5 |
+
"Content-Transfer-Encoding: 8bit\n"
|
6 |
+
"X-Generator: Poedit 1.6.7\n"
|
7 |
+
"Project-Id-Version: MailerLite wordpress plugin\n"
|
8 |
+
"Language: fi\n"
|
9 |
+
"POT-Creation-Date: \n"
|
10 |
+
"PO-Revision-Date: \n"
|
11 |
+
"Last-Translator: \n"
|
12 |
+
"Language-Team: \n"
|
13 |
+
|
14 |
+
#. mailerlite
|
15 |
+
#: include/mailerlite-admin.php:52
|
16 |
+
msgid "Forms"
|
17 |
+
msgstr "Lomakkeet"
|
18 |
+
|
19 |
+
#. mailerlite
|
20 |
+
#: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
|
21 |
+
msgid "Signup forms"
|
22 |
+
msgstr "Tilauslomake"
|
23 |
+
|
24 |
+
#. mailerlite
|
25 |
+
#: include/mailerlite-admin.php:53
|
26 |
+
msgid "Settings"
|
27 |
+
msgstr "Asetukset"
|
28 |
+
|
29 |
+
#. mailerlite
|
30 |
+
#: include/mailerlite-admin.php:133
|
31 |
+
msgid "Subscribe for newsletter!"
|
32 |
+
msgstr "Tilaa uutiskirje"
|
33 |
+
|
34 |
+
#. mailerlite
|
35 |
+
#: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
|
36 |
+
msgid "Newsletter signup"
|
37 |
+
msgstr "Uutiskirjeen tilaus"
|
38 |
+
|
39 |
+
#. mailerlite
|
40 |
+
#: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
|
41 |
+
msgid "Just simple MailerLite form!"
|
42 |
+
msgstr "Helppo MailerLite lomake!"
|
43 |
+
|
44 |
+
#. mailerlite
|
45 |
+
#. default
|
46 |
+
#: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
|
47 |
+
#: include/templates/admin/edit_custom.php:55
|
48 |
+
msgid "Subscribe"
|
49 |
+
msgstr "Tilaa"
|
50 |
+
|
51 |
+
#. mailerlite
|
52 |
+
#: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
|
53 |
+
msgid "Email"
|
54 |
+
msgstr "Sähköposti"
|
55 |
+
|
56 |
+
#. mailerlite
|
57 |
+
#: include/mailerlite-admin.php:198
|
58 |
+
msgid "Embedded webform"
|
59 |
+
msgstr "Upotettu nettilomake"
|
60 |
+
|
61 |
+
#. mailerlite
|
62 |
+
#: include/mailerlite-admin.php:267
|
63 |
+
msgid "You not allowed to do that"
|
64 |
+
msgstr "Sinulla ei ole lupaa tehdä noin"
|
65 |
+
|
66 |
+
#. mailerlite
|
67 |
+
#: include/mailerlite-admin.php:277
|
68 |
+
msgid "Wrong MailerLite API key"
|
69 |
+
msgstr "Väärä MailerLIte API-avain"
|
70 |
+
|
71 |
+
#. mailerlite
|
72 |
+
#: include/mailerlite-admin.php:299
|
73 |
+
msgid "New custom signup form"
|
74 |
+
msgstr "Uusi rekisteröintilomake"
|
75 |
+
|
76 |
+
#. mailerlite
|
77 |
+
#: include/mailerlite-admin.php:310
|
78 |
+
msgid "New embedded signup form"
|
79 |
+
msgstr "Uusi upotettu rekisteröintilomake"
|
80 |
+
|
81 |
+
#. mailerlite
|
82 |
+
#: include/mailerlite-form.php:75
|
83 |
+
msgid "Subscriber successfully saved"
|
84 |
+
msgstr "Tilaaja tallennettu onnistuneesti"
|
85 |
+
|
86 |
+
#. mailerlite
|
87 |
+
#: include/mailerlite-form.php:79
|
88 |
+
msgid "Form not found"
|
89 |
+
msgstr "Lomaketta ei löydy"
|
90 |
+
|
91 |
+
#. mailerlite
|
92 |
+
#: include/mailerlite-form.php:84
|
93 |
+
msgid "Wrong data provided"
|
94 |
+
msgstr "Väärä tieto syötetty"
|
95 |
+
|
96 |
+
#. mailerlite
|
97 |
+
#: include/mailerlite-widget.php:13
|
98 |
+
msgid "Mailerlite sign up form"
|
99 |
+
msgstr "MailerLiten rekisteröintilomake"
|
100 |
+
|
101 |
+
#. mailerlite
|
102 |
+
#: include/mailerlite-widget.php:14
|
103 |
+
msgid "MailerLite sign up form Widget"
|
104 |
+
msgstr "MailerLiten rekisteröintilomake Widgetiltä"
|
105 |
+
|
106 |
+
#. mailerlite
|
107 |
+
#: include/mailerlite-widget.php:66
|
108 |
+
msgid "Select form:"
|
109 |
+
msgstr "Valitse lomake"
|
110 |
+
|
111 |
+
#. mailerlite
|
112 |
+
#: include/templates/admin/api_key.php:8
|
113 |
+
msgid ""
|
114 |
+
"Hi there! You will be able to create awesome signup forms, but first we need "
|
115 |
+
"your MailerLite API key!"
|
116 |
+
msgstr ""
|
117 |
+
"Hei siellä! Voit nyt luoda hienoja tilauslomakkeita, mutta ensin tarvitsemme "
|
118 |
+
"sinun MailerLite API-avaimesi!"
|
119 |
+
|
120 |
+
#. mailerlite
|
121 |
+
#: include/templates/admin/api_key.php:17
|
122 |
+
#: include/templates/admin/settings.php:19
|
123 |
+
msgid "Enter an API key"
|
124 |
+
msgstr "Syötä API-avain"
|
125 |
+
|
126 |
+
#. mailerlite
|
127 |
+
#: include/templates/admin/api_key.php:18
|
128 |
+
#: include/templates/admin/settings.php:20
|
129 |
+
msgid "Don't know where to find it?"
|
130 |
+
msgstr "Etkö tiedä mistä löytäisit sen?"
|
131 |
+
|
132 |
+
#. mailerlite
|
133 |
+
#: include/templates/admin/api_key.php:18
|
134 |
+
#: include/templates/admin/settings.php:20
|
135 |
+
msgid "Check it here!"
|
136 |
+
msgstr "Katso tästä!"
|
137 |
+
|
138 |
+
#. mailerlite
|
139 |
+
#: include/templates/admin/api_key.php:23
|
140 |
+
#: include/templates/admin/settings.php:25
|
141 |
+
msgid "Save this key"
|
142 |
+
msgstr "Tallenna tämä avain"
|
143 |
+
|
144 |
+
#. mailerlite
|
145 |
+
#: include/templates/admin/api_key.php:29
|
146 |
+
#: include/templates/admin/settings.php:31
|
147 |
+
msgid "Don't have an account?"
|
148 |
+
msgstr "Eikö sinulla ole tiliä?"
|
149 |
+
|
150 |
+
#. mailerlite
|
151 |
+
#: include/templates/admin/api_key.php:30
|
152 |
+
#: include/templates/admin/settings.php:32
|
153 |
+
msgid "Register!"
|
154 |
+
msgstr "Rekisteröidy!"
|
155 |
+
|
156 |
+
#. mailerlite
|
157 |
+
#: include/templates/admin/create.php:5
|
158 |
+
msgid "Create new signup form"
|
159 |
+
msgstr "Luo uusi rekisteröintilomake"
|
160 |
+
|
161 |
+
#. mailerlite
|
162 |
+
#: include/templates/admin/create.php:11
|
163 |
+
msgid "Form type"
|
164 |
+
msgstr "Lomaketyyppi"
|
165 |
+
|
166 |
+
#. mailerlite
|
167 |
+
#: include/templates/admin/create.php:17
|
168 |
+
msgid "Custom signup form"
|
169 |
+
msgstr "Mukautettu tilauslomake"
|
170 |
+
|
171 |
+
#. mailerlite
|
172 |
+
#: include/templates/admin/create.php:23
|
173 |
+
msgid "Webforms created using MailerLite"
|
174 |
+
msgstr "MailerLitellä tehtyjä tilauslomakkeita"
|
175 |
+
|
176 |
+
#. mailerlite
|
177 |
+
#: include/templates/admin/create.php:28
|
178 |
+
msgid "Create form"
|
179 |
+
msgstr "Luo lomake"
|
180 |
+
|
181 |
+
#. mailerlite
|
182 |
+
#: include/templates/admin/create.php:29
|
183 |
+
#: include/templates/admin/edit_custom.php:96
|
184 |
+
#: include/templates/admin/edit_embedded.php:42
|
185 |
+
msgid "Back"
|
186 |
+
msgstr "Takaisin"
|
187 |
+
|
188 |
+
#. mailerlite
|
189 |
+
#: include/templates/admin/edit_custom.php:5
|
190 |
+
msgid "Edit custom signup form"
|
191 |
+
msgstr "Editoi mukautettua lomaketta"
|
192 |
+
|
193 |
+
#. mailerlite
|
194 |
+
#: include/templates/admin/edit_custom.php:7
|
195 |
+
#: include/templates/admin/edit_embedded.php:7
|
196 |
+
msgid "Form saved."
|
197 |
+
msgstr "Lomake tallennettu"
|
198 |
+
|
199 |
+
#. mailerlite
|
200 |
+
#: include/templates/admin/edit_custom.php:7
|
201 |
+
#: include/templates/admin/edit_embedded.php:7
|
202 |
+
msgid "Back to forms list"
|
203 |
+
msgstr "Takaisin lomakelistaan"
|
204 |
+
|
205 |
+
#. mailerlite
|
206 |
+
#: include/templates/admin/edit_custom.php:15
|
207 |
+
msgid "Main information"
|
208 |
+
msgstr "Tärkeää tietoa"
|
209 |
+
|
210 |
+
#. default
|
211 |
+
#: include/templates/admin/edit_custom.php:20
|
212 |
+
msgid "Form name"
|
213 |
+
msgstr "Lomakkeen nimi"
|
214 |
+
|
215 |
+
#. mailerlite
|
216 |
+
#: include/templates/admin/edit_custom.php:21
|
217 |
+
#: include/templates/admin/edit_embedded.php:21
|
218 |
+
msgid "Tip:"
|
219 |
+
msgstr "Vinkki:"
|
220 |
+
|
221 |
+
#. mailerlite
|
222 |
+
#: include/templates/admin/edit_custom.php:21
|
223 |
+
#: include/templates/admin/edit_embedded.php:21
|
224 |
+
msgid "This title won't be displayed in public!"
|
225 |
+
msgstr "Tätä nimeä ei näytetä julkisesti!"
|
226 |
+
|
227 |
+
#. mailerlite
|
228 |
+
#: include/templates/admin/edit_custom.php:28
|
229 |
+
msgid "Form details"
|
230 |
+
msgstr "Lomakkeen tiedot"
|
231 |
+
|
232 |
+
#. mailerlite
|
233 |
+
#: include/templates/admin/edit_custom.php:33
|
234 |
+
#: include/templates/admin/edit_embedded.php:20
|
235 |
+
msgid "Form title"
|
236 |
+
msgstr "Lomakkeen otsikko"
|
237 |
+
|
238 |
+
#. mailerlite
|
239 |
+
#. default
|
240 |
+
#: include/templates/admin/edit_custom.php:34
|
241 |
+
#: include/templates/admin/edit_custom.php:55
|
242 |
+
msgid "Example:"
|
243 |
+
msgstr "Esimerkki:"
|
244 |
+
|
245 |
+
#. mailerlite
|
246 |
+
#: include/templates/admin/edit_custom.php:34
|
247 |
+
msgid "Newsletter signup!"
|
248 |
+
msgstr "Uutiskirjeen tilaus!"
|
249 |
+
|
250 |
+
#. mailerlite
|
251 |
+
#: include/templates/admin/edit_custom.php:37
|
252 |
+
msgid "Form description"
|
253 |
+
msgstr "Lomakkeen kuvaus"
|
254 |
+
|
255 |
+
#. mailerlite
|
256 |
+
#: include/templates/admin/edit_custom.php:54
|
257 |
+
msgid "Button title"
|
258 |
+
msgstr "Painikkeen otsikko"
|
259 |
+
|
260 |
+
#. mailerlite
|
261 |
+
#: include/templates/admin/edit_custom.php:62
|
262 |
+
msgid "Form fields and lists"
|
263 |
+
msgstr "Lomakkeen kentät ja listat"
|
264 |
+
|
265 |
+
#. mailerlite
|
266 |
+
#: include/templates/admin/edit_custom.php:67
|
267 |
+
msgid "Fields"
|
268 |
+
msgstr "Kentät"
|
269 |
+
|
270 |
+
#. mailerlite
|
271 |
+
#: include/templates/admin/edit_custom.php:80
|
272 |
+
msgid "Lists"
|
273 |
+
msgstr "Listat"
|
274 |
+
|
275 |
+
#. mailerlite
|
276 |
+
#: include/templates/admin/edit_custom.php:95
|
277 |
+
#: include/templates/admin/edit_embedded.php:41
|
278 |
+
msgid "Save form"
|
279 |
+
msgstr "Tallenna lomake"
|
280 |
+
|
281 |
+
#. mailerlite
|
282 |
+
#: include/templates/admin/edit_embedded.php:5
|
283 |
+
msgid "Edit webform"
|
284 |
+
msgstr "Editoi nettilomaketta"
|
285 |
+
|
286 |
+
#. mailerlite
|
287 |
+
#: include/templates/admin/edit_embedded.php:15
|
288 |
+
msgid "Webform details"
|
289 |
+
msgstr "Nettilomakkeen yksityiskohdat"
|
290 |
+
|
291 |
+
#. mailerlite
|
292 |
+
#: include/templates/admin/edit_embedded.php:24
|
293 |
+
msgid "Webform"
|
294 |
+
msgstr "Nettilomake"
|
295 |
+
|
296 |
+
#. mailerlite
|
297 |
+
#: include/templates/admin/main.php:5
|
298 |
+
msgid "Add New"
|
299 |
+
msgstr "Lisää uusi"
|
300 |
+
|
301 |
+
#. mailerlite
|
302 |
+
#: include/templates/admin/main.php:14
|
303 |
+
msgid "ID"
|
304 |
+
msgstr "ID"
|
305 |
+
|
306 |
+
#. mailerlite
|
307 |
+
#: include/templates/admin/main.php:15
|
308 |
+
msgid "Name"
|
309 |
+
msgstr "Nimi"
|
310 |
+
|
311 |
+
#. mailerlite
|
312 |
+
#: include/templates/admin/main.php:16
|
313 |
+
msgid "Type"
|
314 |
+
msgstr "Tyyppi"
|
315 |
+
|
316 |
+
#. mailerlite
|
317 |
+
#: include/templates/admin/main.php:17
|
318 |
+
msgid "Date"
|
319 |
+
msgstr "Päivä"
|
320 |
+
|
321 |
+
#. mailerlite
|
322 |
+
#: include/templates/admin/main.php:29
|
323 |
+
msgid "Edit"
|
324 |
+
msgstr "Editoi"
|
325 |
+
|
326 |
+
#. mailerlite
|
327 |
+
#: include/templates/admin/main.php:30
|
328 |
+
msgid "Are you sure you want to delete this form?"
|
329 |
+
msgstr "Haluatko varmasti poistaa tämän lomakkeen?"
|
330 |
+
|
331 |
+
#. mailerlite
|
332 |
+
#: include/templates/admin/main.php:30
|
333 |
+
msgid "Delete"
|
334 |
+
msgstr "Poista"
|
335 |
+
|
336 |
+
#. mailerlite
|
337 |
+
#: include/templates/admin/main.php:33
|
338 |
+
msgid "Custom form"
|
339 |
+
msgstr "Mukautettu lomake"
|
340 |
+
|
341 |
+
#. mailerlite
|
342 |
+
#: include/templates/admin/main.php:33
|
343 |
+
msgid "Embedded form"
|
344 |
+
msgstr "Upotettu lomake"
|
345 |
+
|
346 |
+
#. mailerlite
|
347 |
+
#: include/templates/admin/main.php:42
|
348 |
+
msgid "There is no signup forms created yet!"
|
349 |
+
msgstr "Tilauslomake puuttuu vielä!"
|
350 |
+
|
351 |
+
#. mailerlite
|
352 |
+
#: include/templates/admin/main.php:43
|
353 |
+
msgid "Add signup form"
|
354 |
+
msgstr "Luo tilauslomake"
|
355 |
+
|
356 |
+
#. mailerlite
|
357 |
+
#: include/templates/admin/settings.php:5
|
358 |
+
msgid "Plugin settings"
|
359 |
+
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
|
367 |
+
#: include/templates/admin/sidebar.php:4
|
368 |
+
msgid "Need help?"
|
369 |
+
msgstr "Tarvitsetko apua?"
|
370 |
+
|
371 |
+
#. mailerlite
|
372 |
+
#: include/templates/admin/sidebar.php:6
|
373 |
+
msgid ""
|
374 |
+
"Have any questions? Stuck on something or found bug? Feel free to contact us!"
|
375 |
+
msgstr ""
|
376 |
+
"Onko sinulla kysymyksiä? Oletko jumissa tai löysitkö bugin? Ole hyvä ja ole "
|
377 |
+
"meihin yhteydessä!"
|
378 |
+
|
379 |
+
#. mailerlite
|
380 |
+
#: include/templates/common/tiny_mce.php:13
|
381 |
+
msgid ""
|
382 |
+
"Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
|
383 |
+
"to your post!"
|
384 |
+
msgstr ""
|
385 |
+
"Valitse lomake allaolevasta listasta ja klikkaa \"Lisää Shortkoodi\" "
|
386 |
+
"lisätäksesi lyhenteen artikkeliisi."
|
387 |
+
|
388 |
+
#. mailerlite
|
389 |
+
#: include/templates/common/tiny_mce.php:24
|
390 |
+
msgid "Add Shortcode"
|
391 |
+
msgstr "Lisää Shortkoodi"
|
392 |
+
|
393 |
+
#. mailerlite
|
394 |
+
#: include/templates/forms/custom_form.php:19
|
395 |
+
msgid "Please wait..."
|
396 |
+
msgstr "Ole hyvä ja odota..."
|
397 |
+
|
398 |
+
#. mailerlite
|
399 |
+
#: include/templates/forms/custom_form.php:27
|
400 |
+
msgid "Thank you for signup!"
|
401 |
+
msgstr "Kiitos tilauksestasi!"
|
languages/mailerlite-it_IT.mo
ADDED
Binary file
|
languages/mailerlite-it_IT.po
ADDED
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"MIME-Version: 1.0\n"
|
4 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
5 |
+
"Content-Transfer-Encoding: 8bit\n"
|
6 |
+
"X-Generator: Poedit 1.6.7\n"
|
7 |
+
"Project-Id-Version: MailerLite wordpress plugin\n"
|
8 |
+
"Language: it\n"
|
9 |
+
"POT-Creation-Date: \n"
|
10 |
+
"PO-Revision-Date: \n"
|
11 |
+
"Last-Translator: \n"
|
12 |
+
"Language-Team: \n"
|
13 |
+
|
14 |
+
#. mailerlite
|
15 |
+
#: include/mailerlite-admin.php:52
|
16 |
+
msgid "Forms"
|
17 |
+
msgstr "Moduli"
|
18 |
+
|
19 |
+
#. mailerlite
|
20 |
+
#: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
|
21 |
+
msgid "Signup forms"
|
22 |
+
msgstr "Form d'iscrizione"
|
23 |
+
|
24 |
+
#. mailerlite
|
25 |
+
#: include/mailerlite-admin.php:53
|
26 |
+
msgid "Settings"
|
27 |
+
msgstr "Impostazioni"
|
28 |
+
|
29 |
+
#. mailerlite
|
30 |
+
#: include/mailerlite-admin.php:133
|
31 |
+
msgid "Subscribe for newsletter!"
|
32 |
+
msgstr "Iscriviti alla newsletter!"
|
33 |
+
|
34 |
+
#. mailerlite
|
35 |
+
#: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
|
36 |
+
msgid "Newsletter signup"
|
37 |
+
msgstr "Iscrizione alla newsletter"
|
38 |
+
|
39 |
+
#. mailerlite
|
40 |
+
#: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
|
41 |
+
msgid "Just simple MailerLite form!"
|
42 |
+
msgstr "Un semplice form MailerLite!"
|
43 |
+
|
44 |
+
#. mailerlite
|
45 |
+
#. default
|
46 |
+
#: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
|
47 |
+
#: include/templates/admin/edit_custom.php:55
|
48 |
+
msgid "Subscribe"
|
49 |
+
msgstr "Iscriviti"
|
50 |
+
|
51 |
+
#. mailerlite
|
52 |
+
#: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
|
53 |
+
msgid "Email"
|
54 |
+
msgstr "Email"
|
55 |
+
|
56 |
+
#. mailerlite
|
57 |
+
#: include/mailerlite-admin.php:198
|
58 |
+
msgid "Embedded webform"
|
59 |
+
msgstr "Form incorporato"
|
60 |
+
|
61 |
+
#. mailerlite
|
62 |
+
#: include/mailerlite-admin.php:267
|
63 |
+
msgid "You not allowed to do that"
|
64 |
+
msgstr "Non puoi fare questo"
|
65 |
+
|
66 |
+
#. mailerlite
|
67 |
+
#: include/mailerlite-admin.php:277
|
68 |
+
msgid "Wrong MailerLite API key"
|
69 |
+
msgstr "API key di MailerLite errata"
|
70 |
+
|
71 |
+
#. mailerlite
|
72 |
+
#: include/mailerlite-admin.php:299
|
73 |
+
msgid "New custom signup form"
|
74 |
+
msgstr "Nuovo form d'iscrizione personalizzato"
|
75 |
+
|
76 |
+
#. mailerlite
|
77 |
+
#: include/mailerlite-admin.php:310
|
78 |
+
msgid "New embedded signup form"
|
79 |
+
msgstr "Nuovo form d'iscrizione incorporato"
|
80 |
+
|
81 |
+
#. mailerlite
|
82 |
+
#: include/mailerlite-form.php:75
|
83 |
+
msgid "Subscriber successfully saved"
|
84 |
+
msgstr "Il destinatario è stato salvato"
|
85 |
+
|
86 |
+
#. mailerlite
|
87 |
+
#: include/mailerlite-form.php:79
|
88 |
+
msgid "Form not found"
|
89 |
+
msgstr "Form non trovato"
|
90 |
+
|
91 |
+
#. mailerlite
|
92 |
+
#: include/mailerlite-form.php:84
|
93 |
+
msgid "Wrong data provided"
|
94 |
+
msgstr "Dati forniti sono errati"
|
95 |
+
|
96 |
+
#. mailerlite
|
97 |
+
#: include/mailerlite-widget.php:13
|
98 |
+
msgid "Mailerlite sign up form"
|
99 |
+
msgstr "Form d'iscrizione MailerLite"
|
100 |
+
|
101 |
+
#. mailerlite
|
102 |
+
#: include/mailerlite-widget.php:14
|
103 |
+
msgid "MailerLite sign up form Widget"
|
104 |
+
msgstr "Widget per form d'iscrizione MailerLite"
|
105 |
+
|
106 |
+
#. mailerlite
|
107 |
+
#: include/mailerlite-widget.php:66
|
108 |
+
msgid "Select form:"
|
109 |
+
msgstr "Scegli il form:"
|
110 |
+
|
111 |
+
#. mailerlite
|
112 |
+
#: include/templates/admin/api_key.php:8
|
113 |
+
msgid ""
|
114 |
+
"Hi there! You will be able to create awesome signup forms, but first we need "
|
115 |
+
"your MailerLite API key!"
|
116 |
+
msgstr ""
|
117 |
+
"Ciao! Potrai creare form d'iscrizione fantastici, ma prim devi fornire la "
|
118 |
+
"tua API key MailerLite!"
|
119 |
+
|
120 |
+
#. mailerlite
|
121 |
+
#: include/templates/admin/api_key.php:17
|
122 |
+
#: include/templates/admin/settings.php:19
|
123 |
+
msgid "Enter an API key"
|
124 |
+
msgstr "Inserisci API key"
|
125 |
+
|
126 |
+
#. mailerlite
|
127 |
+
#: include/templates/admin/api_key.php:18
|
128 |
+
#: include/templates/admin/settings.php:20
|
129 |
+
msgid "Don't know where to find it?"
|
130 |
+
msgstr "Non sai dove si trova?"
|
131 |
+
|
132 |
+
#. mailerlite
|
133 |
+
#: include/templates/admin/api_key.php:18
|
134 |
+
#: include/templates/admin/settings.php:20
|
135 |
+
msgid "Check it here!"
|
136 |
+
msgstr "Clicca qui!"
|
137 |
+
|
138 |
+
#. mailerlite
|
139 |
+
#: include/templates/admin/api_key.php:23
|
140 |
+
#: include/templates/admin/settings.php:25
|
141 |
+
msgid "Save this key"
|
142 |
+
msgstr "Salva questa key"
|
143 |
+
|
144 |
+
#. mailerlite
|
145 |
+
#: include/templates/admin/api_key.php:29
|
146 |
+
#: include/templates/admin/settings.php:31
|
147 |
+
msgid "Don't have an account?"
|
148 |
+
msgstr "Non hai un account?"
|
149 |
+
|
150 |
+
#. mailerlite
|
151 |
+
#: include/templates/admin/api_key.php:30
|
152 |
+
#: include/templates/admin/settings.php:32
|
153 |
+
msgid "Register!"
|
154 |
+
msgstr "Registrati!"
|
155 |
+
|
156 |
+
#. mailerlite
|
157 |
+
#: include/templates/admin/create.php:5
|
158 |
+
msgid "Create new signup form"
|
159 |
+
msgstr "Crea un nuovo form d'iscrizione"
|
160 |
+
|
161 |
+
#. mailerlite
|
162 |
+
#: include/templates/admin/create.php:11
|
163 |
+
msgid "Form type"
|
164 |
+
msgstr "Tipo di form"
|
165 |
+
|
166 |
+
#. mailerlite
|
167 |
+
#: include/templates/admin/create.php:17
|
168 |
+
msgid "Custom signup form"
|
169 |
+
msgstr "Forma d'iscrizione"
|
170 |
+
|
171 |
+
#. mailerlite
|
172 |
+
#: include/templates/admin/create.php:23
|
173 |
+
msgid "Webforms created using MailerLite"
|
174 |
+
msgstr "Form d'iscrizione creati usando MailerLite"
|
175 |
+
|
176 |
+
#. mailerlite
|
177 |
+
#: include/templates/admin/create.php:28
|
178 |
+
msgid "Create form"
|
179 |
+
msgstr "Crea un form"
|
180 |
+
|
181 |
+
#. mailerlite
|
182 |
+
#: include/templates/admin/create.php:29
|
183 |
+
#: include/templates/admin/edit_custom.php:96
|
184 |
+
#: include/templates/admin/edit_embedded.php:42
|
185 |
+
msgid "Back"
|
186 |
+
msgstr "Indietro"
|
187 |
+
|
188 |
+
#. mailerlite
|
189 |
+
#: include/templates/admin/edit_custom.php:5
|
190 |
+
msgid "Edit custom signup form"
|
191 |
+
msgstr "Modifica form d'iscrizione personalizzati"
|
192 |
+
|
193 |
+
#. mailerlite
|
194 |
+
#: include/templates/admin/edit_custom.php:7
|
195 |
+
#: include/templates/admin/edit_embedded.php:7
|
196 |
+
msgid "Form saved."
|
197 |
+
msgstr "Form salvato."
|
198 |
+
|
199 |
+
#. mailerlite
|
200 |
+
#: include/templates/admin/edit_custom.php:7
|
201 |
+
#: include/templates/admin/edit_embedded.php:7
|
202 |
+
msgid "Back to forms list"
|
203 |
+
msgstr "Torna alla lista dei moduli"
|
204 |
+
|
205 |
+
#. mailerlite
|
206 |
+
#: include/templates/admin/edit_custom.php:15
|
207 |
+
msgid "Main information"
|
208 |
+
msgstr "Informazioni principali"
|
209 |
+
|
210 |
+
#. default
|
211 |
+
#: include/templates/admin/edit_custom.php:20
|
212 |
+
msgid "Form name"
|
213 |
+
msgstr "Nome del form"
|
214 |
+
|
215 |
+
#. mailerlite
|
216 |
+
#: include/templates/admin/edit_custom.php:21
|
217 |
+
#: include/templates/admin/edit_embedded.php:21
|
218 |
+
msgid "Tip:"
|
219 |
+
msgstr "Consiglio:"
|
220 |
+
|
221 |
+
#. mailerlite
|
222 |
+
#: include/templates/admin/edit_custom.php:21
|
223 |
+
#: include/templates/admin/edit_embedded.php:21
|
224 |
+
msgid "This title won't be displayed in public!"
|
225 |
+
msgstr "Questo titolo non sarà visualizzato al pubblico!"
|
226 |
+
|
227 |
+
#. mailerlite
|
228 |
+
#: include/templates/admin/edit_custom.php:28
|
229 |
+
msgid "Form details"
|
230 |
+
msgstr "Dettagli del form"
|
231 |
+
|
232 |
+
#. mailerlite
|
233 |
+
#: include/templates/admin/edit_custom.php:33
|
234 |
+
#: include/templates/admin/edit_embedded.php:20
|
235 |
+
msgid "Form title"
|
236 |
+
msgstr "Titolo del form"
|
237 |
+
|
238 |
+
#. mailerlite
|
239 |
+
#. default
|
240 |
+
#: include/templates/admin/edit_custom.php:34
|
241 |
+
#: include/templates/admin/edit_custom.php:55
|
242 |
+
msgid "Example:"
|
243 |
+
msgstr "Esempi:"
|
244 |
+
|
245 |
+
#. mailerlite
|
246 |
+
#: include/templates/admin/edit_custom.php:34
|
247 |
+
msgid "Newsletter signup!"
|
248 |
+
msgstr "Iscrizione alla newsletter!"
|
249 |
+
|
250 |
+
#. mailerlite
|
251 |
+
#: include/templates/admin/edit_custom.php:37
|
252 |
+
msgid "Form description"
|
253 |
+
msgstr "Descrizione del form"
|
254 |
+
|
255 |
+
#. mailerlite
|
256 |
+
#: include/templates/admin/edit_custom.php:54
|
257 |
+
msgid "Button title"
|
258 |
+
msgstr "Nome del pulsante"
|
259 |
+
|
260 |
+
#. mailerlite
|
261 |
+
#: include/templates/admin/edit_custom.php:62
|
262 |
+
msgid "Form fields and lists"
|
263 |
+
msgstr "Campi del form e liste"
|
264 |
+
|
265 |
+
#. mailerlite
|
266 |
+
#: include/templates/admin/edit_custom.php:67
|
267 |
+
msgid "Fields"
|
268 |
+
msgstr "Campi"
|
269 |
+
|
270 |
+
#. mailerlite
|
271 |
+
#: include/templates/admin/edit_custom.php:80
|
272 |
+
msgid "Lists"
|
273 |
+
msgstr "Liste"
|
274 |
+
|
275 |
+
#. mailerlite
|
276 |
+
#: include/templates/admin/edit_custom.php:95
|
277 |
+
#: include/templates/admin/edit_embedded.php:41
|
278 |
+
msgid "Save form"
|
279 |
+
msgstr "Salva form"
|
280 |
+
|
281 |
+
#. mailerlite
|
282 |
+
#: include/templates/admin/edit_embedded.php:5
|
283 |
+
msgid "Edit webform"
|
284 |
+
msgstr "Modifica webform"
|
285 |
+
|
286 |
+
#. mailerlite
|
287 |
+
#: include/templates/admin/edit_embedded.php:15
|
288 |
+
msgid "Webform details"
|
289 |
+
msgstr "Dettagli webform"
|
290 |
+
|
291 |
+
#. mailerlite
|
292 |
+
#: include/templates/admin/edit_embedded.php:24
|
293 |
+
msgid "Webform"
|
294 |
+
msgstr "Webform"
|
295 |
+
|
296 |
+
#. mailerlite
|
297 |
+
#: include/templates/admin/main.php:5
|
298 |
+
msgid "Add New"
|
299 |
+
msgstr "Aggiungi nuovo"
|
300 |
+
|
301 |
+
#. mailerlite
|
302 |
+
#: include/templates/admin/main.php:14
|
303 |
+
msgid "ID"
|
304 |
+
msgstr "ID"
|
305 |
+
|
306 |
+
#. mailerlite
|
307 |
+
#: include/templates/admin/main.php:15
|
308 |
+
msgid "Name"
|
309 |
+
msgstr "Nome"
|
310 |
+
|
311 |
+
#. mailerlite
|
312 |
+
#: include/templates/admin/main.php:16
|
313 |
+
msgid "Type"
|
314 |
+
msgstr "Tipo"
|
315 |
+
|
316 |
+
#. mailerlite
|
317 |
+
#: include/templates/admin/main.php:17
|
318 |
+
msgid "Date"
|
319 |
+
msgstr "Data"
|
320 |
+
|
321 |
+
#. mailerlite
|
322 |
+
#: include/templates/admin/main.php:29
|
323 |
+
msgid "Edit"
|
324 |
+
msgstr "Modifica"
|
325 |
+
|
326 |
+
#. mailerlite
|
327 |
+
#: include/templates/admin/main.php:30
|
328 |
+
msgid "Are you sure you want to delete this form?"
|
329 |
+
msgstr "Vuoi davvero eliminare questo form?"
|
330 |
+
|
331 |
+
#. mailerlite
|
332 |
+
#: include/templates/admin/main.php:30
|
333 |
+
msgid "Delete"
|
334 |
+
msgstr "Elimina"
|
335 |
+
|
336 |
+
#. mailerlite
|
337 |
+
#: include/templates/admin/main.php:33
|
338 |
+
msgid "Custom form"
|
339 |
+
msgstr "Form personalizzato"
|
340 |
+
|
341 |
+
#. mailerlite
|
342 |
+
#: include/templates/admin/main.php:33
|
343 |
+
msgid "Embedded form"
|
344 |
+
msgstr "Form incorporato"
|
345 |
+
|
346 |
+
#. mailerlite
|
347 |
+
#: include/templates/admin/main.php:42
|
348 |
+
msgid "There is no signup forms created yet!"
|
349 |
+
msgstr "Non ci sono form d'iscrizione!"
|
350 |
+
|
351 |
+
#. mailerlite
|
352 |
+
#: include/templates/admin/main.php:43
|
353 |
+
msgid "Add signup form"
|
354 |
+
msgstr "Crea form d'iscrizione"
|
355 |
+
|
356 |
+
#. mailerlite
|
357 |
+
#: include/templates/admin/settings.php:5
|
358 |
+
msgid "Plugin settings"
|
359 |
+
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
|
367 |
+
#: include/templates/admin/sidebar.php:4
|
368 |
+
msgid "Need help?"
|
369 |
+
msgstr "Serve aiuto?"
|
370 |
+
|
371 |
+
#. mailerlite
|
372 |
+
#: include/templates/admin/sidebar.php:6
|
373 |
+
msgid ""
|
374 |
+
"Have any questions? Stuck on something or found bug? Feel free to contact us!"
|
375 |
+
msgstr ""
|
376 |
+
"Hai delle domande? Ti sei bloccato s o hai trovato un bug? Non esitare a "
|
377 |
+
"contattarci!"
|
378 |
+
|
379 |
+
#. mailerlite
|
380 |
+
#: include/templates/common/tiny_mce.php:13
|
381 |
+
msgid ""
|
382 |
+
"Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
|
383 |
+
"to your post!"
|
384 |
+
msgstr ""
|
385 |
+
"Scegli il form dalla lista e clicca \"Aggiungi Shortcode\" per aggiungere il "
|
386 |
+
"shortcode ai tuoi post!"
|
387 |
+
|
388 |
+
#. mailerlite
|
389 |
+
#: include/templates/common/tiny_mce.php:24
|
390 |
+
msgid "Add Shortcode"
|
391 |
+
msgstr "Aggiungi Shortcode"
|
392 |
+
|
393 |
+
#. mailerlite
|
394 |
+
#: include/templates/forms/custom_form.php:19
|
395 |
+
msgid "Please wait..."
|
396 |
+
msgstr "Aspetta..."
|
397 |
+
|
398 |
+
#. mailerlite
|
399 |
+
#: include/templates/forms/custom_form.php:27
|
400 |
+
msgid "Thank you for signup!"
|
401 |
+
msgstr "Grazie per la tua iscrizione!"
|
languages/mailerlite-lt_LT.mo
ADDED
Binary file
|
languages/mailerlite-lt_LT.po
ADDED
@@ -0,0 +1,408 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
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: \n"
|
6 |
+
"PO-Revision-Date: 2014-08-11 11:25+0200\n"
|
7 |
+
"Last-Translator: admin <ignas@mailerlite.com>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n"
|
13 |
+
"%100<10 || n%100>=20) ? 1 : 2;\n"
|
14 |
+
"X-Generator: Poedit 1.6.7\n"
|
15 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
17 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
18 |
+
"X-Textdomain-Support: yes\n"
|
19 |
+
"Language: lt_LT\n"
|
20 |
+
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
|
22 |
+
# @ mailerlite
|
23 |
+
#: include/mailerlite-admin.php:133
|
24 |
+
msgid "Subscribe for newsletter!"
|
25 |
+
msgstr "Užsisakyti naujienlaiškį!"
|
26 |
+
|
27 |
+
# @ mailerlite
|
28 |
+
#: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
|
29 |
+
msgid "Newsletter signup"
|
30 |
+
msgstr "Naujienlaiškio prenumerata."
|
31 |
+
|
32 |
+
# @ mailerlite
|
33 |
+
#: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
|
34 |
+
msgid "Just simple MailerLite form!"
|
35 |
+
msgstr "Tai pavizdinė MailerLite prenumeratos forma!"
|
36 |
+
|
37 |
+
# @ mailerlite
|
38 |
+
# @ default
|
39 |
+
#: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
|
40 |
+
#: include/templates/admin/edit_custom.php:55
|
41 |
+
msgid "Subscribe"
|
42 |
+
msgstr "Prenumeruoti"
|
43 |
+
|
44 |
+
# @ mailerlite
|
45 |
+
#: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
|
46 |
+
msgid "Email"
|
47 |
+
msgstr "El. paštas"
|
48 |
+
|
49 |
+
# @ mailerlite
|
50 |
+
#: include/mailerlite-admin.php:198
|
51 |
+
msgid "Embedded webform"
|
52 |
+
msgstr "Sugeneruota forma"
|
53 |
+
|
54 |
+
# @ mailerlite
|
55 |
+
#: include/mailerlite-admin.php:267
|
56 |
+
msgid "You not allowed to do that"
|
57 |
+
msgstr "Šis veiksmas draudžiamas"
|
58 |
+
|
59 |
+
# @ mailerlite
|
60 |
+
#: include/mailerlite-admin.php:277
|
61 |
+
msgid "Wrong MailerLite API key"
|
62 |
+
msgstr "Netesingas MailerLite API raktas"
|
63 |
+
|
64 |
+
# @ mailerlite
|
65 |
+
#: include/mailerlite-admin.php:299
|
66 |
+
msgid "New custom signup form"
|
67 |
+
msgstr "Nauja naujienlaiškio forma"
|
68 |
+
|
69 |
+
# @ mailerlite
|
70 |
+
#: include/mailerlite-admin.php:310
|
71 |
+
msgid "New embedded signup form"
|
72 |
+
msgstr "Nauja integruojama naujienlaiškio forma"
|
73 |
+
|
74 |
+
# @ mailerlite
|
75 |
+
#: include/mailerlite-widget.php:13
|
76 |
+
msgid "Mailerlite sign up form"
|
77 |
+
msgstr "Mailerlite naujienlaiškio forma"
|
78 |
+
|
79 |
+
# @ mailerlite
|
80 |
+
#: include/mailerlite-widget.php:14
|
81 |
+
msgid "MailerLite sign up form Widget"
|
82 |
+
msgstr "MailerLite naujienlaiškio formos skydelis"
|
83 |
+
|
84 |
+
# @ mailerlite
|
85 |
+
#: include/mailerlite-widget.php:66
|
86 |
+
msgid "Select form:"
|
87 |
+
msgstr "Pasirinkite formą:"
|
88 |
+
|
89 |
+
# @ mailerlite
|
90 |
+
#: include/templates/admin/api_key.php:19
|
91 |
+
#: include/templates/admin/settings.php:19
|
92 |
+
msgid "Enter an API key"
|
93 |
+
msgstr "Įvesti API raktą"
|
94 |
+
|
95 |
+
# @ mailerlite
|
96 |
+
#: include/templates/admin/api_key.php:20
|
97 |
+
#: include/templates/admin/settings.php:20
|
98 |
+
msgid "Don't know where to find it?"
|
99 |
+
msgstr "Nežinote kur jį rasti?"
|
100 |
+
|
101 |
+
# @ mailerlite
|
102 |
+
#: include/templates/admin/api_key.php:20
|
103 |
+
#: include/templates/admin/settings.php:20
|
104 |
+
msgid "Check it here!"
|
105 |
+
msgstr "Pažiūrėkite!"
|
106 |
+
|
107 |
+
# @ mailerlite
|
108 |
+
#: include/templates/admin/api_key.php:25
|
109 |
+
#: include/templates/admin/settings.php:25
|
110 |
+
msgid "Save this key"
|
111 |
+
msgstr "Išsaugoti raktą"
|
112 |
+
|
113 |
+
# @ mailerlite
|
114 |
+
#: include/templates/admin/api_key.php:31
|
115 |
+
#: include/templates/admin/settings.php:31
|
116 |
+
msgid "Don't have an account?"
|
117 |
+
msgstr "Neturite paskiros?"
|
118 |
+
|
119 |
+
# @ mailerlite
|
120 |
+
#: include/templates/admin/api_key.php:32
|
121 |
+
#: include/templates/admin/settings.php:32
|
122 |
+
msgid "Register!"
|
123 |
+
msgstr "Užsiregistruokite!"
|
124 |
+
|
125 |
+
# @ mailerlite
|
126 |
+
#: include/templates/admin/create.php:11
|
127 |
+
msgid "Form type"
|
128 |
+
msgstr "Formos tipas"
|
129 |
+
|
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
|
137 |
+
msgid "Create form"
|
138 |
+
msgstr "Sukurti formą"
|
139 |
+
|
140 |
+
# @ mailerlite
|
141 |
+
#: include/templates/admin/create.php:29
|
142 |
+
#: include/templates/admin/edit_custom.php:96
|
143 |
+
#: include/templates/admin/edit_embedded.php:42
|
144 |
+
msgid "Back"
|
145 |
+
msgstr "Atgal"
|
146 |
+
|
147 |
+
# @ mailerlite
|
148 |
+
#: include/templates/admin/edit_custom.php:21
|
149 |
+
#: include/templates/admin/edit_embedded.php:21
|
150 |
+
msgid "Tip:"
|
151 |
+
msgstr "Pastaba:"
|
152 |
+
|
153 |
+
# @ mailerlite
|
154 |
+
#: include/templates/admin/edit_custom.php:21
|
155 |
+
#: include/templates/admin/edit_embedded.php:21
|
156 |
+
msgid "This title won't be displayed in public!"
|
157 |
+
msgstr "Šio pavadinimo niekas nematys"
|
158 |
+
|
159 |
+
# @ mailerlite
|
160 |
+
# @ default
|
161 |
+
#: include/templates/admin/edit_custom.php:34
|
162 |
+
#: include/templates/admin/edit_custom.php:55
|
163 |
+
msgid "Example:"
|
164 |
+
msgstr "Pavizdys:"
|
165 |
+
|
166 |
+
# @ mailerlite
|
167 |
+
#: include/templates/admin/edit_custom.php:34
|
168 |
+
msgid "Newsletter signup!"
|
169 |
+
msgstr "Naujienlaiškio prenumerata!"
|
170 |
+
|
171 |
+
# @ mailerlite
|
172 |
+
#: include/templates/admin/edit_embedded.php:15
|
173 |
+
msgid "Webform details"
|
174 |
+
msgstr "Formos informacija"
|
175 |
+
|
176 |
+
# @ mailerlite
|
177 |
+
#: include/templates/admin/edit_custom.php:33
|
178 |
+
#: include/templates/admin/edit_embedded.php:20
|
179 |
+
msgid "Form title"
|
180 |
+
msgstr "Formos pavadinimas"
|
181 |
+
|
182 |
+
# @ mailerlite
|
183 |
+
#: include/templates/admin/main.php:30
|
184 |
+
msgid "Are you sure you want to delete this form?"
|
185 |
+
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
|
193 |
+
#: include/templates/admin/sidebar.php:4
|
194 |
+
msgid "Need help?"
|
195 |
+
msgstr "Reikia pagalbos?"
|
196 |
+
|
197 |
+
# @ mailerlite
|
198 |
+
#: include/templates/admin/sidebar.php:6
|
199 |
+
msgid ""
|
200 |
+
"Have any questions? Stuck on something or found bug? Feel free to contact us!"
|
201 |
+
msgstr ""
|
202 |
+
"Turite klausimų? Kažko nesuprantate ar radote klaidą? Susisiekite su mumis!"
|
203 |
+
|
204 |
+
# @ mailerlite
|
205 |
+
#: include/templates/admin/api_key.php:10
|
206 |
+
msgid ""
|
207 |
+
"Hi there! You will be able to create awesome signup forms, but first we need "
|
208 |
+
"your MailerLite API key!"
|
209 |
+
msgstr ""
|
210 |
+
"Sveiki! Čia galėsite susikurti nuostabias naujienlaiškių prenumeratos "
|
211 |
+
"formas, bet prieš tai turite įvesti MailerLite API raktą!"
|
212 |
+
|
213 |
+
# @ mailerlite
|
214 |
+
#: include/templates/admin/create.php:17
|
215 |
+
msgid "Custom signup form"
|
216 |
+
msgstr "Pritaikyta prenumeratos forma"
|
217 |
+
|
218 |
+
# @ mailerlite
|
219 |
+
#: include/templates/admin/main.php:14
|
220 |
+
msgid "ID"
|
221 |
+
msgstr "ID"
|
222 |
+
|
223 |
+
# @ mailerlite
|
224 |
+
#: include/templates/admin/main.php:16
|
225 |
+
msgid "Type"
|
226 |
+
msgstr "Tipas"
|
227 |
+
|
228 |
+
# @ mailerlite
|
229 |
+
#: include/templates/admin/main.php:17
|
230 |
+
msgid "Date"
|
231 |
+
msgstr "Data"
|
232 |
+
|
233 |
+
# @ mailerlite
|
234 |
+
#: include/templates/admin/main.php:33
|
235 |
+
msgid "Custom form"
|
236 |
+
msgstr "Pritaikyta forma"
|
237 |
+
|
238 |
+
# @ mailerlite
|
239 |
+
#: include/templates/admin/main.php:33
|
240 |
+
msgid "Embedded form"
|
241 |
+
msgstr "Integruojama forma"
|
242 |
+
|
243 |
+
# @ mailerlite
|
244 |
+
#: include/templates/admin/main.php:42
|
245 |
+
msgid "There is no signup forms created yet!"
|
246 |
+
msgstr "Nėra sukurtų prenumeratos formų!"
|
247 |
+
|
248 |
+
# @ mailerlite
|
249 |
+
#: include/templates/admin/main.php:43
|
250 |
+
msgid "Create signup form"
|
251 |
+
msgstr "Sukurti prenumeratos formą"
|
252 |
+
|
253 |
+
# @ mailerlite
|
254 |
+
#: include/templates/admin/edit_custom.php:7
|
255 |
+
#: include/templates/admin/edit_embedded.php:7
|
256 |
+
msgid "Form saved."
|
257 |
+
msgstr "Forma išsaugota."
|
258 |
+
|
259 |
+
# @ mailerlite
|
260 |
+
#: include/templates/admin/edit_custom.php:7
|
261 |
+
#: include/templates/admin/edit_embedded.php:7
|
262 |
+
msgid "Back to forms list"
|
263 |
+
msgstr "Grįšti į formų sąrašą"
|
264 |
+
|
265 |
+
# @ mailerlite
|
266 |
+
#: include/templates/admin/edit_custom.php:15
|
267 |
+
msgid "Main information"
|
268 |
+
msgstr "Pagrindinė informacija"
|
269 |
+
|
270 |
+
# @ default
|
271 |
+
#: include/templates/admin/edit_custom.php:20
|
272 |
+
msgid "Form name"
|
273 |
+
msgstr "Formos pavadinimas"
|
274 |
+
|
275 |
+
# @ mailerlite
|
276 |
+
#: include/templates/admin/edit_custom.php:28
|
277 |
+
msgid "Form details"
|
278 |
+
msgstr "Formos detalės"
|
279 |
+
|
280 |
+
# @ mailerlite
|
281 |
+
#: include/templates/admin/edit_custom.php:37
|
282 |
+
msgid "Form description"
|
283 |
+
msgstr "Formos aprašymas"
|
284 |
+
|
285 |
+
# @ mailerlite
|
286 |
+
#: include/templates/admin/edit_custom.php:54
|
287 |
+
msgid "Button title"
|
288 |
+
msgstr "Mygtuko antraštė"
|
289 |
+
|
290 |
+
# @ mailerlite
|
291 |
+
#: include/templates/admin/edit_custom.php:62
|
292 |
+
msgid "Form fields and lists"
|
293 |
+
msgstr "Formos laukeliai ir sąrašai"
|
294 |
+
|
295 |
+
# @ mailerlite
|
296 |
+
#: include/templates/admin/edit_custom.php:67
|
297 |
+
msgid "Fields"
|
298 |
+
msgstr "Laukeliai"
|
299 |
+
|
300 |
+
# @ mailerlite
|
301 |
+
#: include/templates/admin/edit_custom.php:80
|
302 |
+
msgid "Lists"
|
303 |
+
msgstr "Sąrašai"
|
304 |
+
|
305 |
+
# @ mailerlite
|
306 |
+
#: include/templates/admin/edit_custom.php:95
|
307 |
+
#: include/templates/admin/edit_embedded.php:41
|
308 |
+
msgid "Save form"
|
309 |
+
msgstr "Išsaugoti formą"
|
310 |
+
|
311 |
+
# @ mailerlite
|
312 |
+
#: include/templates/admin/edit_embedded.php:24
|
313 |
+
msgid "Webform"
|
314 |
+
msgstr "Forma"
|
315 |
+
|
316 |
+
# @ mailerlite
|
317 |
+
#: include/templates/admin/main.php:15
|
318 |
+
msgid "Name"
|
319 |
+
msgstr "Pavadinimas"
|
320 |
+
|
321 |
+
# @ mailerlite
|
322 |
+
#: include/templates/admin/main.php:29
|
323 |
+
msgid "Edit"
|
324 |
+
msgstr "Redaguoti"
|
325 |
+
|
326 |
+
# @ mailerlite
|
327 |
+
#: include/templates/admin/main.php:30
|
328 |
+
msgid "Delete"
|
329 |
+
msgstr "Ištrinti"
|
330 |
+
|
331 |
+
# @ mailerlite
|
332 |
+
#: include/mailerlite-admin.php:52
|
333 |
+
msgid "Forms"
|
334 |
+
msgstr "Formos"
|
335 |
+
|
336 |
+
# @ mailerlite
|
337 |
+
#: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
|
338 |
+
msgid "Signup forms"
|
339 |
+
msgstr "Prenumeratos formos"
|
340 |
+
|
341 |
+
# @ mailerlite
|
342 |
+
#: include/mailerlite-admin.php:53
|
343 |
+
msgid "Settings"
|
344 |
+
msgstr "Nustatymai"
|
345 |
+
|
346 |
+
# @ mailerlite
|
347 |
+
#: include/templates/admin/main.php:5
|
348 |
+
msgid "Add New"
|
349 |
+
msgstr "Pridėti naują"
|
350 |
+
|
351 |
+
# @ mailerlite
|
352 |
+
#: include/mailerlite-form.php:75
|
353 |
+
msgid "Subscriber successfully saved"
|
354 |
+
msgstr "Sėkmingai užprenumruota."
|
355 |
+
|
356 |
+
# @ mailerlite
|
357 |
+
#: include/mailerlite-form.php:79
|
358 |
+
msgid "Form not found"
|
359 |
+
msgstr "Forma nerasta"
|
360 |
+
|
361 |
+
# @ mailerlite
|
362 |
+
#: include/mailerlite-form.php:84
|
363 |
+
msgid "Wrong data provided"
|
364 |
+
msgstr "Neteisinga informacija"
|
365 |
+
|
366 |
+
# @ mailerlite
|
367 |
+
#: include/templates/admin/create.php:5
|
368 |
+
msgid "Add signup form"
|
369 |
+
msgstr "Sukurti naują prenumeratos formą"
|
370 |
+
|
371 |
+
# @ mailerlite
|
372 |
+
#: include/templates/admin/edit_custom.php:5
|
373 |
+
msgid "Edit custom signup form"
|
374 |
+
msgstr "Redaguoti pritaikomą prenumeratos formą"
|
375 |
+
|
376 |
+
# @ mailerlite
|
377 |
+
#: include/templates/admin/edit_embedded.php:5
|
378 |
+
msgid "Edit webform"
|
379 |
+
msgstr "Redaguoti integruojamą formą"
|
380 |
+
|
381 |
+
# @ mailerlite
|
382 |
+
#: include/templates/admin/settings.php:5
|
383 |
+
msgid "Plugin settings"
|
384 |
+
msgstr "Įskiepio nustatymai"
|
385 |
+
|
386 |
+
# @ mailerlite
|
387 |
+
#: include/templates/common/tiny_mce.php:13
|
388 |
+
msgid ""
|
389 |
+
"Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
|
390 |
+
"to your post!"
|
391 |
+
msgstr ""
|
392 |
+
"Pasirinkite formą iš žemiau esančio sąrašo ir paspauskite \"Pridėti trumpinį"
|
393 |
+
"\"."
|
394 |
+
|
395 |
+
# @ mailerlite
|
396 |
+
#: include/templates/forms/custom_form.php:20
|
397 |
+
msgid "Please wait..."
|
398 |
+
msgstr "Palaukite..."
|
399 |
+
|
400 |
+
# @ mailerlite
|
401 |
+
#: include/templates/forms/custom_form.php:28
|
402 |
+
msgid "Thank you for signup!"
|
403 |
+
msgstr "Dekojame už prenumeratą!"
|
404 |
+
|
405 |
+
# @ mailerlite
|
406 |
+
#: include/templates/common/tiny_mce.php:24
|
407 |
+
msgid "Add Shortcode"
|
408 |
+
msgstr "Pridėti trumpinį"
|
languages/mailerlite-ru_RU.mo
ADDED
Binary file
|
languages/mailerlite-ru_RU.po
ADDED
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"MIME-Version: 1.0\n"
|
4 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
5 |
+
"Content-Transfer-Encoding: 8bit\n"
|
6 |
+
"X-Generator: Poedit 1.6.7\n"
|
7 |
+
"Project-Id-Version: MailerLite wordpress plugin\n"
|
8 |
+
"Language: ru\n"
|
9 |
+
"POT-Creation-Date: \n"
|
10 |
+
"PO-Revision-Date: \n"
|
11 |
+
"Last-Translator: \n"
|
12 |
+
"Language-Team: \n"
|
13 |
+
|
14 |
+
#. mailerlite
|
15 |
+
#: include/mailerlite-admin.php:52
|
16 |
+
msgid "Forms"
|
17 |
+
msgstr "Формы"
|
18 |
+
|
19 |
+
#. mailerlite
|
20 |
+
#: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
|
21 |
+
msgid "Signup forms"
|
22 |
+
msgstr "Формы подписки"
|
23 |
+
|
24 |
+
#. mailerlite
|
25 |
+
#: include/mailerlite-admin.php:53
|
26 |
+
msgid "Settings"
|
27 |
+
msgstr "Настройки"
|
28 |
+
|
29 |
+
#. mailerlite
|
30 |
+
#: include/mailerlite-admin.php:133
|
31 |
+
msgid "Subscribe for newsletter!"
|
32 |
+
msgstr "Подпишитесь на новости!"
|
33 |
+
|
34 |
+
#. mailerlite
|
35 |
+
#: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
|
36 |
+
msgid "Newsletter signup"
|
37 |
+
msgstr "Подписка на новости"
|
38 |
+
|
39 |
+
#. mailerlite
|
40 |
+
#: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
|
41 |
+
msgid "Just simple MailerLite form!"
|
42 |
+
msgstr "Простая форма подписки MailerLite!"
|
43 |
+
|
44 |
+
#. mailerlite
|
45 |
+
#. default
|
46 |
+
#: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
|
47 |
+
#: include/templates/admin/edit_custom.php:55
|
48 |
+
msgid "Subscribe"
|
49 |
+
msgstr "Подписаться"
|
50 |
+
|
51 |
+
#. mailerlite
|
52 |
+
#: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
|
53 |
+
msgid "Email"
|
54 |
+
msgstr "Email"
|
55 |
+
|
56 |
+
#. mailerlite
|
57 |
+
#: include/mailerlite-admin.php:198
|
58 |
+
msgid "Embedded webform"
|
59 |
+
msgstr "Встроенная веб-форма"
|
60 |
+
|
61 |
+
#. mailerlite
|
62 |
+
#: include/mailerlite-admin.php:267
|
63 |
+
msgid "You not allowed to do that"
|
64 |
+
msgstr "Запрещенное действие"
|
65 |
+
|
66 |
+
#. mailerlite
|
67 |
+
#: include/mailerlite-admin.php:277
|
68 |
+
msgid "Wrong MailerLite API key"
|
69 |
+
msgstr "Некорректный MailerLite API ключ"
|
70 |
+
|
71 |
+
#. mailerlite
|
72 |
+
#: include/mailerlite-admin.php:299
|
73 |
+
msgid "New custom signup form"
|
74 |
+
msgstr "Новая пользовательская форма подписки"
|
75 |
+
|
76 |
+
#. mailerlite
|
77 |
+
#: include/mailerlite-admin.php:310
|
78 |
+
msgid "New embedded signup form"
|
79 |
+
msgstr "Новая встроенная веб-форма"
|
80 |
+
|
81 |
+
#. mailerlite
|
82 |
+
#: include/mailerlite-form.php:75
|
83 |
+
msgid "Subscriber successfully saved"
|
84 |
+
msgstr "Информация успешно сохранена"
|
85 |
+
|
86 |
+
#. mailerlite
|
87 |
+
#: include/mailerlite-form.php:79
|
88 |
+
msgid "Form not found"
|
89 |
+
msgstr "Форма не найдена"
|
90 |
+
|
91 |
+
#. mailerlite
|
92 |
+
#: include/mailerlite-form.php:84
|
93 |
+
msgid "Wrong data provided"
|
94 |
+
msgstr "Предоставлены некорректные данные"
|
95 |
+
|
96 |
+
#. mailerlite
|
97 |
+
#: include/mailerlite-widget.php:13
|
98 |
+
msgid "Mailerlite sign up form"
|
99 |
+
msgstr "Форма подписки Mailerlite"
|
100 |
+
|
101 |
+
#. mailerlite
|
102 |
+
#: include/mailerlite-widget.php:14
|
103 |
+
msgid "MailerLite sign up form Widget"
|
104 |
+
msgstr "Виджет формы подписки Mailerlite"
|
105 |
+
|
106 |
+
#. mailerlite
|
107 |
+
#: include/mailerlite-widget.php:66
|
108 |
+
msgid "Select form:"
|
109 |
+
msgstr "Выберите форму:"
|
110 |
+
|
111 |
+
#. mailerlite
|
112 |
+
#: include/templates/admin/api_key.php:8
|
113 |
+
msgid ""
|
114 |
+
"Hi there! You will be able to create awesome signup forms, but first we need "
|
115 |
+
"your MailerLite API key!"
|
116 |
+
msgstr ""
|
117 |
+
"Приветствуем! Вы сможете создавать красивые формы подписки, но сначала "
|
118 |
+
"просим предоставить ваш MailerLite API ключ!"
|
119 |
+
|
120 |
+
#. mailerlite
|
121 |
+
#: include/templates/admin/api_key.php:17
|
122 |
+
#: include/templates/admin/settings.php:19
|
123 |
+
msgid "Enter an API key"
|
124 |
+
msgstr "Введите ключ API"
|
125 |
+
|
126 |
+
#. mailerlite
|
127 |
+
#: include/templates/admin/api_key.php:18
|
128 |
+
#: include/templates/admin/settings.php:20
|
129 |
+
msgid "Don't know where to find it?"
|
130 |
+
msgstr "Не знаете, где его найти?"
|
131 |
+
|
132 |
+
#. mailerlite
|
133 |
+
#: include/templates/admin/api_key.php:18
|
134 |
+
#: include/templates/admin/settings.php:20
|
135 |
+
msgid "Check it here!"
|
136 |
+
msgstr "Проверьте здесь!"
|
137 |
+
|
138 |
+
#. mailerlite
|
139 |
+
#: include/templates/admin/api_key.php:23
|
140 |
+
#: include/templates/admin/settings.php:25
|
141 |
+
msgid "Save this key"
|
142 |
+
msgstr "Сохранить ключ"
|
143 |
+
|
144 |
+
#. mailerlite
|
145 |
+
#: include/templates/admin/api_key.php:29
|
146 |
+
#: include/templates/admin/settings.php:31
|
147 |
+
msgid "Don't have an account?"
|
148 |
+
msgstr "У вас нет аккаунта?"
|
149 |
+
|
150 |
+
#. mailerlite
|
151 |
+
#: include/templates/admin/api_key.php:30
|
152 |
+
#: include/templates/admin/settings.php:32
|
153 |
+
msgid "Register!"
|
154 |
+
msgstr "Зарегистрироваться!"
|
155 |
+
|
156 |
+
#. mailerlite
|
157 |
+
#: include/templates/admin/create.php:5
|
158 |
+
msgid "Create new signup form"
|
159 |
+
msgstr "Создать новую форму подписки"
|
160 |
+
|
161 |
+
#. mailerlite
|
162 |
+
#: include/templates/admin/create.php:11
|
163 |
+
msgid "Form type"
|
164 |
+
msgstr "Тип формы"
|
165 |
+
|
166 |
+
#. mailerlite
|
167 |
+
#: include/templates/admin/create.php:17
|
168 |
+
msgid "Add signup form"
|
169 |
+
msgstr "Пользовательская форма подписки"
|
170 |
+
|
171 |
+
#. mailerlite
|
172 |
+
#: include/templates/admin/create.php:23
|
173 |
+
msgid "Webforms created using MailerLite"
|
174 |
+
msgstr "Веб-формы, созданные с помощью MailerLite"
|
175 |
+
|
176 |
+
#. mailerlite
|
177 |
+
#: include/templates/admin/create.php:28
|
178 |
+
msgid "Create form"
|
179 |
+
msgstr "Создать форму"
|
180 |
+
|
181 |
+
#. mailerlite
|
182 |
+
#: include/templates/admin/create.php:29
|
183 |
+
#: include/templates/admin/edit_custom.php:96
|
184 |
+
#: include/templates/admin/edit_embedded.php:42
|
185 |
+
msgid "Back"
|
186 |
+
msgstr "Назад"
|
187 |
+
|
188 |
+
#. mailerlite
|
189 |
+
#: include/templates/admin/edit_custom.php:5
|
190 |
+
msgid "Edit custom signup form"
|
191 |
+
msgstr "Редактировать пользовательскую форму подписки"
|
192 |
+
|
193 |
+
#. mailerlite
|
194 |
+
#: include/templates/admin/edit_custom.php:7
|
195 |
+
#: include/templates/admin/edit_embedded.php:7
|
196 |
+
msgid "Form saved."
|
197 |
+
msgstr "Форма сохранена."
|
198 |
+
|
199 |
+
#. mailerlite
|
200 |
+
#: include/templates/admin/edit_custom.php:7
|
201 |
+
#: include/templates/admin/edit_embedded.php:7
|
202 |
+
msgid "Back to forms list"
|
203 |
+
msgstr "Вернуться к списку форм"
|
204 |
+
|
205 |
+
#. mailerlite
|
206 |
+
#: include/templates/admin/edit_custom.php:15
|
207 |
+
msgid "Main information"
|
208 |
+
msgstr "Основная информация"
|
209 |
+
|
210 |
+
#. default
|
211 |
+
#: include/templates/admin/edit_custom.php:20
|
212 |
+
msgid "Form name"
|
213 |
+
msgstr "Название формы"
|
214 |
+
|
215 |
+
#. mailerlite
|
216 |
+
#: include/templates/admin/edit_custom.php:21
|
217 |
+
#: include/templates/admin/edit_embedded.php:21
|
218 |
+
msgid "Tip:"
|
219 |
+
msgstr "Подсказка:"
|
220 |
+
|
221 |
+
#. mailerlite
|
222 |
+
#: include/templates/admin/edit_custom.php:21
|
223 |
+
#: include/templates/admin/edit_embedded.php:21
|
224 |
+
msgid "This title won't be displayed in public!"
|
225 |
+
msgstr "Это название не будет отображаться публично!"
|
226 |
+
|
227 |
+
#. mailerlite
|
228 |
+
#: include/templates/admin/edit_custom.php:28
|
229 |
+
msgid "Form details"
|
230 |
+
msgstr "Детали формы"
|
231 |
+
|
232 |
+
#. mailerlite
|
233 |
+
#: include/templates/admin/edit_custom.php:33
|
234 |
+
#: include/templates/admin/edit_embedded.php:20
|
235 |
+
msgid "Form title"
|
236 |
+
msgstr "Название формы"
|
237 |
+
|
238 |
+
#. mailerlite
|
239 |
+
#. default
|
240 |
+
#: include/templates/admin/edit_custom.php:34
|
241 |
+
#: include/templates/admin/edit_custom.php:55
|
242 |
+
msgid "Example:"
|
243 |
+
msgstr "Пример:"
|
244 |
+
|
245 |
+
#. mailerlite
|
246 |
+
#: include/templates/admin/edit_custom.php:34
|
247 |
+
msgid "Newsletter signup!"
|
248 |
+
msgstr "Подписка на рассылку!"
|
249 |
+
|
250 |
+
#. mailerlite
|
251 |
+
#: include/templates/admin/edit_custom.php:37
|
252 |
+
msgid "Form description"
|
253 |
+
msgstr "Описание формы"
|
254 |
+
|
255 |
+
#. mailerlite
|
256 |
+
#: include/templates/admin/edit_custom.php:54
|
257 |
+
msgid "Button title"
|
258 |
+
msgstr "Название кнопки"
|
259 |
+
|
260 |
+
#. mailerlite
|
261 |
+
#: include/templates/admin/edit_custom.php:62
|
262 |
+
msgid "Form fields and lists"
|
263 |
+
msgstr "Поля формы и списки"
|
264 |
+
|
265 |
+
#. mailerlite
|
266 |
+
#: include/templates/admin/edit_custom.php:67
|
267 |
+
msgid "Fields"
|
268 |
+
msgstr "Поля"
|
269 |
+
|
270 |
+
#. mailerlite
|
271 |
+
#: include/templates/admin/edit_custom.php:80
|
272 |
+
msgid "Lists"
|
273 |
+
msgstr "Списки"
|
274 |
+
|
275 |
+
#. mailerlite
|
276 |
+
#: include/templates/admin/edit_custom.php:95
|
277 |
+
#: include/templates/admin/edit_embedded.php:41
|
278 |
+
msgid "Save form"
|
279 |
+
msgstr "Сохранить форму"
|
280 |
+
|
281 |
+
#. mailerlite
|
282 |
+
#: include/templates/admin/edit_embedded.php:5
|
283 |
+
msgid "Edit webform"
|
284 |
+
msgstr "Редактировать веб-форму"
|
285 |
+
|
286 |
+
#. mailerlite
|
287 |
+
#: include/templates/admin/edit_embedded.php:15
|
288 |
+
msgid "Webform details"
|
289 |
+
msgstr "Детали веб-формы"
|
290 |
+
|
291 |
+
#. mailerlite
|
292 |
+
#: include/templates/admin/edit_embedded.php:24
|
293 |
+
msgid "Webform"
|
294 |
+
msgstr "Веб-форма"
|
295 |
+
|
296 |
+
#. mailerlite
|
297 |
+
#: include/templates/admin/main.php:5
|
298 |
+
msgid "Add New"
|
299 |
+
msgstr "Добавить новую"
|
300 |
+
|
301 |
+
#. mailerlite
|
302 |
+
#: include/templates/admin/main.php:14
|
303 |
+
msgid "ID"
|
304 |
+
msgstr "ID"
|
305 |
+
|
306 |
+
#. mailerlite
|
307 |
+
#: include/templates/admin/main.php:15
|
308 |
+
msgid "Name"
|
309 |
+
msgstr "Наименование"
|
310 |
+
|
311 |
+
#. mailerlite
|
312 |
+
#: include/templates/admin/main.php:16
|
313 |
+
msgid "Type"
|
314 |
+
msgstr "Тип"
|
315 |
+
|
316 |
+
#. mailerlite
|
317 |
+
#: include/templates/admin/main.php:17
|
318 |
+
msgid "Date"
|
319 |
+
msgstr "Дата"
|
320 |
+
|
321 |
+
#. mailerlite
|
322 |
+
#: include/templates/admin/main.php:29
|
323 |
+
msgid "Edit"
|
324 |
+
msgstr "Редактировать"
|
325 |
+
|
326 |
+
#. mailerlite
|
327 |
+
#: include/templates/admin/main.php:30
|
328 |
+
msgid "Are you sure you want to delete this form?"
|
329 |
+
msgstr "Вы уверены, что хотите удалить эту форму?"
|
330 |
+
|
331 |
+
#. mailerlite
|
332 |
+
#: include/templates/admin/main.php:30
|
333 |
+
msgid "Delete"
|
334 |
+
msgstr "Удалить"
|
335 |
+
|
336 |
+
#. mailerlite
|
337 |
+
#: include/templates/admin/main.php:33
|
338 |
+
msgid "Custom form"
|
339 |
+
msgstr "Пользовательская форма"
|
340 |
+
|
341 |
+
#. mailerlite
|
342 |
+
#: include/templates/admin/main.php:33
|
343 |
+
msgid "Embedded form"
|
344 |
+
msgstr "Встроенная форма"
|
345 |
+
|
346 |
+
#. mailerlite
|
347 |
+
#: include/templates/admin/main.php:42
|
348 |
+
msgid "There is no signup forms created yet!"
|
349 |
+
msgstr "Нет созданных форм подписки!"
|
350 |
+
|
351 |
+
#. mailerlite
|
352 |
+
#: include/templates/admin/main.php:43
|
353 |
+
msgid "Create signup form"
|
354 |
+
msgstr "Создать форму подписки"
|
355 |
+
|
356 |
+
#. mailerlite
|
357 |
+
#: include/templates/admin/settings.php:5
|
358 |
+
msgid "Plugin settings"
|
359 |
+
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
|
367 |
+
#: include/templates/admin/sidebar.php:4
|
368 |
+
msgid "Need help?"
|
369 |
+
msgstr "Нужна помощь?"
|
370 |
+
|
371 |
+
#. mailerlite
|
372 |
+
#: include/templates/admin/sidebar.php:6
|
373 |
+
msgid ""
|
374 |
+
"Have any questions? Stuck on something or found bug? Feel free to contact us!"
|
375 |
+
msgstr ""
|
376 |
+
"Есть вопросы? Застряли на каком-то моменте или нашли ошибку? Не стесняйтесь "
|
377 |
+
"обратиться к нам!"
|
378 |
+
|
379 |
+
#. mailerlite
|
380 |
+
#: include/templates/common/tiny_mce.php:13
|
381 |
+
msgid ""
|
382 |
+
"Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
|
383 |
+
"to your post!"
|
384 |
+
msgstr ""
|
385 |
+
"Выберите форму из списка и нажмите \"Добавить короткий код\" для его "
|
386 |
+
"добавления в свой пост!"
|
387 |
+
|
388 |
+
#. mailerlite
|
389 |
+
#: include/templates/common/tiny_mce.php:24
|
390 |
+
msgid "Add Shortcode"
|
391 |
+
msgstr "Добавить короткий код"
|
392 |
+
|
393 |
+
#. mailerlite
|
394 |
+
#: include/templates/forms/custom_form.php:19
|
395 |
+
msgid "Please wait..."
|
396 |
+
msgstr "Пожалуйста, подождите..."
|
397 |
+
|
398 |
+
#. mailerlite
|
399 |
+
#: include/templates/forms/custom_form.php:27
|
400 |
+
msgid "Thank you for signup!"
|
401 |
+
msgstr "Спасибо за подписку!"
|
languages/mailerlite-se_SE.mo
ADDED
Binary file
|
languages/mailerlite-se_SE.po
ADDED
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"MIME-Version: 1.0\n"
|
4 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
5 |
+
"Content-Transfer-Encoding: 8bit\n"
|
6 |
+
"X-Generator: Poedit 1.6.7\n"
|
7 |
+
"Project-Id-Version: MailerLite wordpress plugin\n"
|
8 |
+
"Language: sv\n"
|
9 |
+
"POT-Creation-Date: \n"
|
10 |
+
"PO-Revision-Date: \n"
|
11 |
+
"Last-Translator: \n"
|
12 |
+
"Language-Team: \n"
|
13 |
+
|
14 |
+
#. mailerlite
|
15 |
+
#: include/mailerlite-admin.php:52
|
16 |
+
msgid "Forms"
|
17 |
+
msgstr "Formulär"
|
18 |
+
|
19 |
+
#. mailerlite
|
20 |
+
#: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
|
21 |
+
msgid "Signup forms"
|
22 |
+
msgstr "Prenumerationsformulär"
|
23 |
+
|
24 |
+
#. mailerlite
|
25 |
+
#: include/mailerlite-admin.php:53
|
26 |
+
msgid "Settings"
|
27 |
+
msgstr "Inställningar"
|
28 |
+
|
29 |
+
#. mailerlite
|
30 |
+
#: include/mailerlite-admin.php:133
|
31 |
+
msgid "Subscribe for newsletter!"
|
32 |
+
msgstr "Prenumerera på nyhetsbrev!"
|
33 |
+
|
34 |
+
#. mailerlite
|
35 |
+
#: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
|
36 |
+
msgid "Newsletter signup"
|
37 |
+
msgstr "Prenumeration på nyhetsbrev "
|
38 |
+
|
39 |
+
#. mailerlite
|
40 |
+
#: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
|
41 |
+
msgid "Just simple MailerLite form!"
|
42 |
+
msgstr "Enkelt Mailerlite formulär"
|
43 |
+
|
44 |
+
#. mailerlite
|
45 |
+
#. default
|
46 |
+
#: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
|
47 |
+
#: include/templates/admin/edit_custom.php:55
|
48 |
+
msgid "Subscribe"
|
49 |
+
msgstr "Prenumerera "
|
50 |
+
|
51 |
+
#. mailerlite
|
52 |
+
#: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
|
53 |
+
msgid "Email"
|
54 |
+
msgstr "Epost"
|
55 |
+
|
56 |
+
#. mailerlite
|
57 |
+
#: include/mailerlite-admin.php:198
|
58 |
+
msgid "Embedded webform"
|
59 |
+
msgstr "Inbäddat webbformulär"
|
60 |
+
|
61 |
+
#. mailerlite
|
62 |
+
#: include/mailerlite-admin.php:267
|
63 |
+
msgid "You not allowed to do that"
|
64 |
+
msgstr "Detta är inte tillåtet "
|
65 |
+
|
66 |
+
#. mailerlite
|
67 |
+
#: include/mailerlite-admin.php:277
|
68 |
+
msgid "Wrong MailerLite API key"
|
69 |
+
msgstr "Felaktig MailerLite API nyckel"
|
70 |
+
|
71 |
+
#. mailerlite
|
72 |
+
#: include/mailerlite-admin.php:299
|
73 |
+
msgid "New custom signup form"
|
74 |
+
msgstr "Nytt anpassat registreringsformulär"
|
75 |
+
|
76 |
+
#. mailerlite
|
77 |
+
#: include/mailerlite-admin.php:310
|
78 |
+
msgid "New embedded signup form"
|
79 |
+
msgstr "Nytt inbäddat registreringsformulär"
|
80 |
+
|
81 |
+
#. mailerlite
|
82 |
+
#: include/mailerlite-form.php:75
|
83 |
+
msgid "Subscriber successfully saved"
|
84 |
+
msgstr "Prenumerant har sparats"
|
85 |
+
|
86 |
+
#. mailerlite
|
87 |
+
#: include/mailerlite-form.php:79
|
88 |
+
msgid "Form not found"
|
89 |
+
msgstr "Formuläret hittades inte"
|
90 |
+
|
91 |
+
#. mailerlite
|
92 |
+
#: include/mailerlite-form.php:84
|
93 |
+
msgid "Wrong data provided"
|
94 |
+
msgstr "Felaktiga uppgifter har lämnats"
|
95 |
+
|
96 |
+
#. mailerlite
|
97 |
+
#: include/mailerlite-widget.php:13
|
98 |
+
msgid "Mailerlite sign up form"
|
99 |
+
msgstr "Mailerlite registreringsformulär"
|
100 |
+
|
101 |
+
#. mailerlite
|
102 |
+
#: include/mailerlite-widget.php:14
|
103 |
+
msgid "MailerLite sign up form Widget"
|
104 |
+
msgstr "Mailerlite registreringsformulär Widget"
|
105 |
+
|
106 |
+
#. mailerlite
|
107 |
+
#: include/mailerlite-widget.php:66
|
108 |
+
msgid "Select form:"
|
109 |
+
msgstr "Välj formulär:"
|
110 |
+
|
111 |
+
#. mailerlite
|
112 |
+
#: include/templates/admin/api_key.php:8
|
113 |
+
msgid ""
|
114 |
+
"Hi there! You will be able to create awesome signup forms, but first we need "
|
115 |
+
"your MailerLite API key!"
|
116 |
+
msgstr ""
|
117 |
+
"Hej där! Du kommer att kunna skapa fantastiska registreringsformulär, men "
|
118 |
+
"först behöver vi din MailerLite API-nyckel!"
|
119 |
+
|
120 |
+
#. mailerlite
|
121 |
+
#: include/templates/admin/api_key.php:17
|
122 |
+
#: include/templates/admin/settings.php:19
|
123 |
+
msgid "Enter an API key"
|
124 |
+
msgstr "Ange en API nyckel"
|
125 |
+
|
126 |
+
#. mailerlite
|
127 |
+
#: include/templates/admin/api_key.php:18
|
128 |
+
#: include/templates/admin/settings.php:20
|
129 |
+
msgid "Don't know where to find it?"
|
130 |
+
msgstr "Vet du inte var den finns?"
|
131 |
+
|
132 |
+
#. mailerlite
|
133 |
+
#: include/templates/admin/api_key.php:18
|
134 |
+
#: include/templates/admin/settings.php:20
|
135 |
+
msgid "Check it here!"
|
136 |
+
msgstr "Kolla här!"
|
137 |
+
|
138 |
+
#. mailerlite
|
139 |
+
#: include/templates/admin/api_key.php:23
|
140 |
+
#: include/templates/admin/settings.php:25
|
141 |
+
msgid "Save this key"
|
142 |
+
msgstr "Spara den här nyckeln"
|
143 |
+
|
144 |
+
#. mailerlite
|
145 |
+
#: include/templates/admin/api_key.php:29
|
146 |
+
#: include/templates/admin/settings.php:31
|
147 |
+
msgid "Don't have an account?"
|
148 |
+
msgstr "Har du inget konto?"
|
149 |
+
|
150 |
+
#. mailerlite
|
151 |
+
#: include/templates/admin/api_key.php:30
|
152 |
+
#: include/templates/admin/settings.php:32
|
153 |
+
msgid "Register!"
|
154 |
+
msgstr "Registrera!"
|
155 |
+
|
156 |
+
#. mailerlite
|
157 |
+
#: include/templates/admin/create.php:5
|
158 |
+
msgid "Create new signup form"
|
159 |
+
msgstr "Skapa ett nytt registreringsformulär"
|
160 |
+
|
161 |
+
#. mailerlite
|
162 |
+
#: include/templates/admin/create.php:11
|
163 |
+
msgid "Form type"
|
164 |
+
msgstr "Typ av formulär"
|
165 |
+
|
166 |
+
#. mailerlite
|
167 |
+
#: include/templates/admin/create.php:17
|
168 |
+
msgid "Custom signup form"
|
169 |
+
msgstr "Anpassat registreringsformulär"
|
170 |
+
|
171 |
+
#. mailerlite
|
172 |
+
#: include/templates/admin/create.php:23
|
173 |
+
msgid "Webforms created using MailerLite"
|
174 |
+
msgstr "Webbformulär som skapats med MailerLite"
|
175 |
+
|
176 |
+
#. mailerlite
|
177 |
+
#: include/templates/admin/create.php:28
|
178 |
+
msgid "Create form"
|
179 |
+
msgstr "Skapa formulär"
|
180 |
+
|
181 |
+
#. mailerlite
|
182 |
+
#: include/templates/admin/create.php:29
|
183 |
+
#: include/templates/admin/edit_custom.php:96
|
184 |
+
#: include/templates/admin/edit_embedded.php:42
|
185 |
+
msgid "Back"
|
186 |
+
msgstr "Tillbaka"
|
187 |
+
|
188 |
+
#. mailerlite
|
189 |
+
#: include/templates/admin/edit_custom.php:5
|
190 |
+
msgid "Edit custom signup form"
|
191 |
+
msgstr "Redigera anpassat registreringsformulär"
|
192 |
+
|
193 |
+
#. mailerlite
|
194 |
+
#: include/templates/admin/edit_custom.php:7
|
195 |
+
#: include/templates/admin/edit_embedded.php:7
|
196 |
+
msgid "Form saved."
|
197 |
+
msgstr "Formuläret är sparat."
|
198 |
+
|
199 |
+
#. mailerlite
|
200 |
+
#: include/templates/admin/edit_custom.php:7
|
201 |
+
#: include/templates/admin/edit_embedded.php:7
|
202 |
+
msgid "Back to forms list"
|
203 |
+
msgstr "Tillbaka till lista över formulär"
|
204 |
+
|
205 |
+
#. mailerlite
|
206 |
+
#: include/templates/admin/edit_custom.php:15
|
207 |
+
msgid "Main information"
|
208 |
+
msgstr "Huvudinformation"
|
209 |
+
|
210 |
+
#. default
|
211 |
+
#: include/templates/admin/edit_custom.php:20
|
212 |
+
msgid "Form name"
|
213 |
+
msgstr "Formulärets namn"
|
214 |
+
|
215 |
+
#. mailerlite
|
216 |
+
#: include/templates/admin/edit_custom.php:21
|
217 |
+
#: include/templates/admin/edit_embedded.php:21
|
218 |
+
msgid "Tip:"
|
219 |
+
msgstr "Tips:"
|
220 |
+
|
221 |
+
#. mailerlite
|
222 |
+
#: include/templates/admin/edit_custom.php:21
|
223 |
+
#: include/templates/admin/edit_embedded.php:21
|
224 |
+
msgid "This title won't be displayed in public!"
|
225 |
+
msgstr "Den här rubriken kommer inte att visas offentligt!"
|
226 |
+
|
227 |
+
#. mailerlite
|
228 |
+
#: include/templates/admin/edit_custom.php:28
|
229 |
+
msgid "Form details"
|
230 |
+
msgstr "Formulärets detaljer"
|
231 |
+
|
232 |
+
#. mailerlite
|
233 |
+
#: include/templates/admin/edit_custom.php:33
|
234 |
+
#: include/templates/admin/edit_embedded.php:20
|
235 |
+
msgid "Form title"
|
236 |
+
msgstr "Formulärets rubrik"
|
237 |
+
|
238 |
+
#. mailerlite
|
239 |
+
#. default
|
240 |
+
#: include/templates/admin/edit_custom.php:34
|
241 |
+
#: include/templates/admin/edit_custom.php:55
|
242 |
+
msgid "Example:"
|
243 |
+
msgstr "Exempel:"
|
244 |
+
|
245 |
+
#. mailerlite
|
246 |
+
#: include/templates/admin/edit_custom.php:34
|
247 |
+
msgid "Newsletter signup!"
|
248 |
+
msgstr "Prenumeration av nyhetsbrev!"
|
249 |
+
|
250 |
+
#. mailerlite
|
251 |
+
#: include/templates/admin/edit_custom.php:37
|
252 |
+
msgid "Form description"
|
253 |
+
msgstr "Beskrivning av formulär"
|
254 |
+
|
255 |
+
#. mailerlite
|
256 |
+
#: include/templates/admin/edit_custom.php:54
|
257 |
+
msgid "Button title"
|
258 |
+
msgstr "Knappens rubrik"
|
259 |
+
|
260 |
+
#. mailerlite
|
261 |
+
#: include/templates/admin/edit_custom.php:62
|
262 |
+
msgid "Form fields and lists"
|
263 |
+
msgstr "Formulärfält och listor"
|
264 |
+
|
265 |
+
#. mailerlite
|
266 |
+
#: include/templates/admin/edit_custom.php:67
|
267 |
+
msgid "Fields"
|
268 |
+
msgstr "Fält"
|
269 |
+
|
270 |
+
#. mailerlite
|
271 |
+
#: include/templates/admin/edit_custom.php:80
|
272 |
+
msgid "Lists"
|
273 |
+
msgstr "Listor"
|
274 |
+
|
275 |
+
#. mailerlite
|
276 |
+
#: include/templates/admin/edit_custom.php:95
|
277 |
+
#: include/templates/admin/edit_embedded.php:41
|
278 |
+
msgid "Save form"
|
279 |
+
msgstr "Spara formulär"
|
280 |
+
|
281 |
+
#. mailerlite
|
282 |
+
#: include/templates/admin/edit_embedded.php:5
|
283 |
+
msgid "Edit webform"
|
284 |
+
msgstr "Redigera webb-formulär"
|
285 |
+
|
286 |
+
#. mailerlite
|
287 |
+
#: include/templates/admin/edit_embedded.php:15
|
288 |
+
msgid "Webform details"
|
289 |
+
msgstr "Webb-formulärets detaljer"
|
290 |
+
|
291 |
+
#. mailerlite
|
292 |
+
#: include/templates/admin/edit_embedded.php:24
|
293 |
+
msgid "Webform"
|
294 |
+
msgstr "Webb-formulär"
|
295 |
+
|
296 |
+
#. mailerlite
|
297 |
+
#: include/templates/admin/main.php:5
|
298 |
+
msgid "Add New"
|
299 |
+
msgstr "Lägg till nytt"
|
300 |
+
|
301 |
+
#. mailerlite
|
302 |
+
#: include/templates/admin/main.php:14
|
303 |
+
msgid "ID"
|
304 |
+
msgstr "ID"
|
305 |
+
|
306 |
+
#. mailerlite
|
307 |
+
#: include/templates/admin/main.php:15
|
308 |
+
msgid "Name"
|
309 |
+
msgstr "Namn"
|
310 |
+
|
311 |
+
#. mailerlite
|
312 |
+
#: include/templates/admin/main.php:16
|
313 |
+
msgid "Type"
|
314 |
+
msgstr "Typ"
|
315 |
+
|
316 |
+
#. mailerlite
|
317 |
+
#: include/templates/admin/main.php:17
|
318 |
+
msgid "Date"
|
319 |
+
msgstr "Datum"
|
320 |
+
|
321 |
+
#. mailerlite
|
322 |
+
#: include/templates/admin/main.php:29
|
323 |
+
msgid "Edit"
|
324 |
+
msgstr "Redigera"
|
325 |
+
|
326 |
+
#. mailerlite
|
327 |
+
#: include/templates/admin/main.php:30
|
328 |
+
msgid "Are you sure you want to delete this form?"
|
329 |
+
msgstr "Är du säker på att du vill radera det här formuläret?"
|
330 |
+
|
331 |
+
#. mailerlite
|
332 |
+
#: include/templates/admin/main.php:30
|
333 |
+
msgid "Delete"
|
334 |
+
msgstr "Radera"
|
335 |
+
|
336 |
+
#. mailerlite
|
337 |
+
#: include/templates/admin/main.php:33
|
338 |
+
msgid "Custom form"
|
339 |
+
msgstr "Anpassat formulär"
|
340 |
+
|
341 |
+
#. mailerlite
|
342 |
+
#: include/templates/admin/main.php:33
|
343 |
+
msgid "Embedded form"
|
344 |
+
msgstr "Inbäddat formulär"
|
345 |
+
|
346 |
+
#. mailerlite
|
347 |
+
#: include/templates/admin/main.php:42
|
348 |
+
msgid "There is no signup forms created yet!"
|
349 |
+
msgstr "Det finns inget registreringsformulär skapat ännu"
|
350 |
+
|
351 |
+
#. mailerlite
|
352 |
+
#: include/templates/admin/main.php:43
|
353 |
+
msgid "Create signup form"
|
354 |
+
msgstr "Skapa registreringsformulär "
|
355 |
+
|
356 |
+
#. mailerlite
|
357 |
+
#: include/templates/admin/settings.php:5
|
358 |
+
msgid "Plugin settings"
|
359 |
+
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
|
367 |
+
#: include/templates/admin/sidebar.php:4
|
368 |
+
msgid "Need help?"
|
369 |
+
msgstr "Behöver du hjälp?"
|
370 |
+
|
371 |
+
#. mailerlite
|
372 |
+
#: include/templates/admin/sidebar.php:6
|
373 |
+
msgid ""
|
374 |
+
"Have any questions? Stuck on something or found bug? Feel free to contact us!"
|
375 |
+
msgstr ""
|
376 |
+
"Har du några frågor? Fastnat på något eller hittat en bugg? Tveka inte att "
|
377 |
+
"kontakta oss!"
|
378 |
+
|
379 |
+
#. mailerlite
|
380 |
+
#: include/templates/common/tiny_mce.php:13
|
381 |
+
msgid ""
|
382 |
+
"Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
|
383 |
+
"to your post!"
|
384 |
+
msgstr ""
|
385 |
+
"Välj formuläret från listan nedan, och tryck på \"Lägg till shortkod \" för "
|
386 |
+
"att lägga in shortkoden i ditt inlägg!"
|
387 |
+
|
388 |
+
#. mailerlite
|
389 |
+
#: include/templates/common/tiny_mce.php:24
|
390 |
+
msgid "Add Shortcode"
|
391 |
+
msgstr "Lägg till shortkod"
|
392 |
+
|
393 |
+
#. mailerlite
|
394 |
+
#: include/templates/forms/custom_form.php:19
|
395 |
+
msgid "Please wait..."
|
396 |
+
msgstr "Vänligen vänta..."
|
397 |
+
|
398 |
+
#. mailerlite
|
399 |
+
#: include/templates/forms/custom_form.php:27
|
400 |
+
msgid "Thank you for signup!"
|
401 |
+
msgstr "Tack för din prenumeration!"
|
languages/mailerlite-ua_UA.mo
ADDED
Binary file
|
languages/mailerlite-ua_UA.po
ADDED
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"MIME-Version: 1.0\n"
|
4 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
5 |
+
"Content-Transfer-Encoding: 8bit\n"
|
6 |
+
"X-Generator: Poedit 1.6.7\n"
|
7 |
+
"Project-Id-Version: MailerLite wordpress plugin\n"
|
8 |
+
"Language: uk\n"
|
9 |
+
"POT-Creation-Date: \n"
|
10 |
+
"PO-Revision-Date: \n"
|
11 |
+
"Last-Translator: \n"
|
12 |
+
"Language-Team: \n"
|
13 |
+
|
14 |
+
#. mailerlite
|
15 |
+
#: include/mailerlite-admin.php:52
|
16 |
+
msgid "Forms"
|
17 |
+
msgstr "Форми"
|
18 |
+
|
19 |
+
#. mailerlite
|
20 |
+
#: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
|
21 |
+
msgid "Signup forms"
|
22 |
+
msgstr "Форми підписки"
|
23 |
+
|
24 |
+
#. mailerlite
|
25 |
+
#: include/mailerlite-admin.php:53
|
26 |
+
msgid "Settings"
|
27 |
+
msgstr "Налаштування"
|
28 |
+
|
29 |
+
#. mailerlite
|
30 |
+
#: include/mailerlite-admin.php:133
|
31 |
+
msgid "Subscribe for newsletter!"
|
32 |
+
msgstr "Підпишіться на новини!"
|
33 |
+
|
34 |
+
#. mailerlite
|
35 |
+
#: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
|
36 |
+
msgid "Newsletter signup"
|
37 |
+
msgstr "Підписка на новини"
|
38 |
+
|
39 |
+
#. mailerlite
|
40 |
+
#: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
|
41 |
+
msgid "Just simple MailerLite form!"
|
42 |
+
msgstr "Проста форма підписки MailerLite!"
|
43 |
+
|
44 |
+
#. mailerlite
|
45 |
+
#. default
|
46 |
+
#: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
|
47 |
+
#: include/templates/admin/edit_custom.php:55
|
48 |
+
msgid "Subscribe"
|
49 |
+
msgstr "Підписатися"
|
50 |
+
|
51 |
+
#. mailerlite
|
52 |
+
#: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
|
53 |
+
msgid "Email"
|
54 |
+
msgstr "Email"
|
55 |
+
|
56 |
+
#. mailerlite
|
57 |
+
#: include/mailerlite-admin.php:198
|
58 |
+
msgid "Embedded webform"
|
59 |
+
msgstr "Вбудована веб-форма"
|
60 |
+
|
61 |
+
#. mailerlite
|
62 |
+
#: include/mailerlite-admin.php:267
|
63 |
+
msgid "You not allowed to do that"
|
64 |
+
msgstr "Заборонена дія"
|
65 |
+
|
66 |
+
#. mailerlite
|
67 |
+
#: include/mailerlite-admin.php:277
|
68 |
+
msgid "Wrong MailerLite API key"
|
69 |
+
msgstr "Некоректний MailerLite API ключ"
|
70 |
+
|
71 |
+
#. mailerlite
|
72 |
+
#: include/mailerlite-admin.php:299
|
73 |
+
msgid "New custom signup form"
|
74 |
+
msgstr "Нова форма підписки користувача"
|
75 |
+
|
76 |
+
#. mailerlite
|
77 |
+
#: include/mailerlite-admin.php:310
|
78 |
+
msgid "New embedded signup form"
|
79 |
+
msgstr "Нова вбудована веб-форма"
|
80 |
+
|
81 |
+
#. mailerlite
|
82 |
+
#: include/mailerlite-form.php:75
|
83 |
+
msgid "Subscriber successfully saved"
|
84 |
+
msgstr "Інформація успішно збережена"
|
85 |
+
|
86 |
+
#. mailerlite
|
87 |
+
#: include/mailerlite-form.php:79
|
88 |
+
msgid "Form not found"
|
89 |
+
msgstr "Форма не знайдена"
|
90 |
+
|
91 |
+
#. mailerlite
|
92 |
+
#: include/mailerlite-form.php:84
|
93 |
+
msgid "Wrong data provided"
|
94 |
+
msgstr "Надані некоректні дані"
|
95 |
+
|
96 |
+
#. mailerlite
|
97 |
+
#: include/mailerlite-widget.php:13
|
98 |
+
msgid "Mailerlite sign up form"
|
99 |
+
msgstr "Форма підписки Mailerlite"
|
100 |
+
|
101 |
+
#. mailerlite
|
102 |
+
#: include/mailerlite-widget.php:14
|
103 |
+
msgid "MailerLite sign up form Widget"
|
104 |
+
msgstr "Віджет форми підписки Mailerlite"
|
105 |
+
|
106 |
+
#. mailerlite
|
107 |
+
#: include/mailerlite-widget.php:66
|
108 |
+
msgid "Select form:"
|
109 |
+
msgstr "Виберіть форму:"
|
110 |
+
|
111 |
+
#. mailerlite
|
112 |
+
#: include/templates/admin/api_key.php:8
|
113 |
+
msgid ""
|
114 |
+
"Hi there! You will be able to create awesome signup forms, but first we need "
|
115 |
+
"your MailerLite API key!"
|
116 |
+
msgstr ""
|
117 |
+
"Вітаємо! Ви зможете створювати красиві форми підписки, але спочатку просимо "
|
118 |
+
"надати ваш MailerLite API ключ!"
|
119 |
+
|
120 |
+
#. mailerlite
|
121 |
+
#: include/templates/admin/api_key.php:17
|
122 |
+
#: include/templates/admin/settings.php:19
|
123 |
+
msgid "Enter an API key"
|
124 |
+
msgstr "Введіть ключ API"
|
125 |
+
|
126 |
+
#. mailerlite
|
127 |
+
#: include/templates/admin/api_key.php:18
|
128 |
+
#: include/templates/admin/settings.php:20
|
129 |
+
msgid "Don't know where to find it?"
|
130 |
+
msgstr "Не знаєте, де його знайти?"
|
131 |
+
|
132 |
+
#. mailerlite
|
133 |
+
#: include/templates/admin/api_key.php:18
|
134 |
+
#: include/templates/admin/settings.php:20
|
135 |
+
msgid "Check it here!"
|
136 |
+
msgstr "Перевірте тут!"
|
137 |
+
|
138 |
+
#. mailerlite
|
139 |
+
#: include/templates/admin/api_key.php:23
|
140 |
+
#: include/templates/admin/settings.php:25
|
141 |
+
msgid "Save this key"
|
142 |
+
msgstr "Зберегти ключ"
|
143 |
+
|
144 |
+
#. mailerlite
|
145 |
+
#: include/templates/admin/api_key.php:29
|
146 |
+
#: include/templates/admin/settings.php:31
|
147 |
+
msgid "Don't have an account?"
|
148 |
+
msgstr "У вас немає аккаунта?"
|
149 |
+
|
150 |
+
#. mailerlite
|
151 |
+
#: include/templates/admin/api_key.php:30
|
152 |
+
#: include/templates/admin/settings.php:32
|
153 |
+
msgid "Register!"
|
154 |
+
msgstr "Зареєструватися!"
|
155 |
+
|
156 |
+
#. mailerlite
|
157 |
+
#: include/templates/admin/create.php:5
|
158 |
+
msgid "Create new signup form"
|
159 |
+
msgstr "Створити нову форму підписки"
|
160 |
+
|
161 |
+
#. mailerlite
|
162 |
+
#: include/templates/admin/create.php:11
|
163 |
+
msgid "Form type"
|
164 |
+
msgstr "Тип форми"
|
165 |
+
|
166 |
+
#. mailerlite
|
167 |
+
#: include/templates/admin/create.php:17
|
168 |
+
msgid "Custom signup form"
|
169 |
+
msgstr "Форма підписки користувача"
|
170 |
+
|
171 |
+
#. mailerlite
|
172 |
+
#: include/templates/admin/create.php:23
|
173 |
+
msgid "Webforms created using MailerLite"
|
174 |
+
msgstr "Веб-форми, створені за допомогою MailerLite"
|
175 |
+
|
176 |
+
#. mailerlite
|
177 |
+
#: include/templates/admin/create.php:28
|
178 |
+
msgid "Create form"
|
179 |
+
msgstr "Створити форму"
|
180 |
+
|
181 |
+
#. mailerlite
|
182 |
+
#: include/templates/admin/create.php:29
|
183 |
+
#: include/templates/admin/edit_custom.php:96
|
184 |
+
#: include/templates/admin/edit_embedded.php:42
|
185 |
+
msgid "Back"
|
186 |
+
msgstr "Назад"
|
187 |
+
|
188 |
+
#. mailerlite
|
189 |
+
#: include/templates/admin/edit_custom.php:5
|
190 |
+
msgid "Edit custom signup form"
|
191 |
+
msgstr "Редагувати форму підписки користувача"
|
192 |
+
|
193 |
+
#. mailerlite
|
194 |
+
#: include/templates/admin/edit_custom.php:7
|
195 |
+
#: include/templates/admin/edit_embedded.php:7
|
196 |
+
msgid "Form saved."
|
197 |
+
msgstr "Форма збережена."
|
198 |
+
|
199 |
+
#. mailerlite
|
200 |
+
#: include/templates/admin/edit_custom.php:7
|
201 |
+
#: include/templates/admin/edit_embedded.php:7
|
202 |
+
msgid "Back to forms list"
|
203 |
+
msgstr "Повернутися до списку форм"
|
204 |
+
|
205 |
+
#. mailerlite
|
206 |
+
#: include/templates/admin/edit_custom.php:15
|
207 |
+
msgid "Main information"
|
208 |
+
msgstr "Основна інформація"
|
209 |
+
|
210 |
+
#. default
|
211 |
+
#: include/templates/admin/edit_custom.php:20
|
212 |
+
msgid "Form name"
|
213 |
+
msgstr "Назва форми"
|
214 |
+
|
215 |
+
#. mailerlite
|
216 |
+
#: include/templates/admin/edit_custom.php:21
|
217 |
+
#: include/templates/admin/edit_embedded.php:21
|
218 |
+
msgid "Tip:"
|
219 |
+
msgstr "Підказка:"
|
220 |
+
|
221 |
+
#. mailerlite
|
222 |
+
#: include/templates/admin/edit_custom.php:21
|
223 |
+
#: include/templates/admin/edit_embedded.php:21
|
224 |
+
msgid "This title won't be displayed in public!"
|
225 |
+
msgstr "Ця назва не буде відображатися публічно!"
|
226 |
+
|
227 |
+
#. mailerlite
|
228 |
+
#: include/templates/admin/edit_custom.php:28
|
229 |
+
msgid "Form details"
|
230 |
+
msgstr "Деталі форми"
|
231 |
+
|
232 |
+
#. mailerlite
|
233 |
+
#: include/templates/admin/edit_custom.php:33
|
234 |
+
#: include/templates/admin/edit_embedded.php:20
|
235 |
+
msgid "Form title"
|
236 |
+
msgstr "Назва форми"
|
237 |
+
|
238 |
+
#. mailerlite
|
239 |
+
#. default
|
240 |
+
#: include/templates/admin/edit_custom.php:34
|
241 |
+
#: include/templates/admin/edit_custom.php:55
|
242 |
+
msgid "Example:"
|
243 |
+
msgstr "Приклад"
|
244 |
+
|
245 |
+
#. mailerlite
|
246 |
+
#: include/templates/admin/edit_custom.php:34
|
247 |
+
msgid "Newsletter signup!"
|
248 |
+
msgstr "Підписка на розсилку!"
|
249 |
+
|
250 |
+
#. mailerlite
|
251 |
+
#: include/templates/admin/edit_custom.php:37
|
252 |
+
msgid "Form description"
|
253 |
+
msgstr "Опис форми"
|
254 |
+
|
255 |
+
#. mailerlite
|
256 |
+
#: include/templates/admin/edit_custom.php:54
|
257 |
+
msgid "Button title"
|
258 |
+
msgstr "Назва кнопки"
|
259 |
+
|
260 |
+
#. mailerlite
|
261 |
+
#: include/templates/admin/edit_custom.php:62
|
262 |
+
msgid "Form fields and lists"
|
263 |
+
msgstr "Поля форми і списки"
|
264 |
+
|
265 |
+
#. mailerlite
|
266 |
+
#: include/templates/admin/edit_custom.php:67
|
267 |
+
msgid "Fields"
|
268 |
+
msgstr "Поля"
|
269 |
+
|
270 |
+
#. mailerlite
|
271 |
+
#: include/templates/admin/edit_custom.php:80
|
272 |
+
msgid "Lists"
|
273 |
+
msgstr "Списки"
|
274 |
+
|
275 |
+
#. mailerlite
|
276 |
+
#: include/templates/admin/edit_custom.php:95
|
277 |
+
#: include/templates/admin/edit_embedded.php:41
|
278 |
+
msgid "Save form"
|
279 |
+
msgstr "Зберегти форму"
|
280 |
+
|
281 |
+
#. mailerlite
|
282 |
+
#: include/templates/admin/edit_embedded.php:5
|
283 |
+
msgid "Edit webform"
|
284 |
+
msgstr "Редагувати веб-форму"
|
285 |
+
|
286 |
+
#. mailerlite
|
287 |
+
#: include/templates/admin/edit_embedded.php:15
|
288 |
+
msgid "Webform details"
|
289 |
+
msgstr "Деталі веб-форми"
|
290 |
+
|
291 |
+
#. mailerlite
|
292 |
+
#: include/templates/admin/edit_embedded.php:24
|
293 |
+
msgid "Webform"
|
294 |
+
msgstr "Веб-форма"
|
295 |
+
|
296 |
+
#. mailerlite
|
297 |
+
#: include/templates/admin/main.php:5
|
298 |
+
msgid "Add New"
|
299 |
+
msgstr "Додати нову"
|
300 |
+
|
301 |
+
#. mailerlite
|
302 |
+
#: include/templates/admin/main.php:14
|
303 |
+
msgid "ID"
|
304 |
+
msgstr "ID"
|
305 |
+
|
306 |
+
#. mailerlite
|
307 |
+
#: include/templates/admin/main.php:15
|
308 |
+
msgid "Name"
|
309 |
+
msgstr "Назва"
|
310 |
+
|
311 |
+
#. mailerlite
|
312 |
+
#: include/templates/admin/main.php:16
|
313 |
+
msgid "Type"
|
314 |
+
msgstr "Тип"
|
315 |
+
|
316 |
+
#. mailerlite
|
317 |
+
#: include/templates/admin/main.php:17
|
318 |
+
msgid "Date"
|
319 |
+
msgstr "Дата"
|
320 |
+
|
321 |
+
#. mailerlite
|
322 |
+
#: include/templates/admin/main.php:29
|
323 |
+
msgid "Edit"
|
324 |
+
msgstr "Редагувати"
|
325 |
+
|
326 |
+
#. mailerlite
|
327 |
+
#: include/templates/admin/main.php:30
|
328 |
+
msgid "Are you sure you want to delete this form?"
|
329 |
+
msgstr "Ви впевнені, що хочете видалити цю форму?"
|
330 |
+
|
331 |
+
#. mailerlite
|
332 |
+
#: include/templates/admin/main.php:30
|
333 |
+
msgid "Delete"
|
334 |
+
msgstr "Видалити"
|
335 |
+
|
336 |
+
#. mailerlite
|
337 |
+
#: include/templates/admin/main.php:33
|
338 |
+
msgid "Custom form"
|
339 |
+
msgstr "Форма користувача"
|
340 |
+
|
341 |
+
#. mailerlite
|
342 |
+
#: include/templates/admin/main.php:33
|
343 |
+
msgid "Embedded form"
|
344 |
+
msgstr "Вбудована форма"
|
345 |
+
|
346 |
+
#. mailerlite
|
347 |
+
#: include/templates/admin/main.php:42
|
348 |
+
msgid "There is no signup forms created yet!"
|
349 |
+
msgstr "Немає створених форм підписки!"
|
350 |
+
|
351 |
+
#. mailerlite
|
352 |
+
#: include/templates/admin/main.php:43
|
353 |
+
msgid "Add signup form"
|
354 |
+
msgstr "Створити форму підписки"
|
355 |
+
|
356 |
+
#. mailerlite
|
357 |
+
#: include/templates/admin/settings.php:5
|
358 |
+
msgid "Plugin settings"
|
359 |
+
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
|
367 |
+
#: include/templates/admin/sidebar.php:4
|
368 |
+
msgid "Need help?"
|
369 |
+
msgstr "Потрібна допомога?"
|
370 |
+
|
371 |
+
#. mailerlite
|
372 |
+
#: include/templates/admin/sidebar.php:6
|
373 |
+
msgid ""
|
374 |
+
"Have any questions? Stuck on something or found bug? Feel free to contact us!"
|
375 |
+
msgstr ""
|
376 |
+
"З'явилися питання? Застрягли на якомусь моменті або знайшли помилку? Не "
|
377 |
+
"соромтеся звернутися до нас!"
|
378 |
+
|
379 |
+
#. mailerlite
|
380 |
+
#: include/templates/common/tiny_mce.php:13
|
381 |
+
msgid ""
|
382 |
+
"Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
|
383 |
+
"to your post!"
|
384 |
+
msgstr ""
|
385 |
+
"Виберіть форму зі списку і натисніть «Додати короткий код\", щоб додати його "
|
386 |
+
"до свого посту!"
|
387 |
+
|
388 |
+
#. mailerlite
|
389 |
+
#: include/templates/common/tiny_mce.php:24
|
390 |
+
msgid "Add Shortcode"
|
391 |
+
msgstr "Додати короткий код"
|
392 |
+
|
393 |
+
#. mailerlite
|
394 |
+
#: include/templates/forms/custom_form.php:19
|
395 |
+
msgid "Please wait..."
|
396 |
+
msgstr "Будь ласка, зачекайте..."
|
397 |
+
|
398 |
+
#. mailerlite
|
399 |
+
#: include/templates/forms/custom_form.php:27
|
400 |
+
msgid "Thank you for signup!"
|
401 |
+
msgstr "Дякуємо за підписку!"
|
libs/mailerlite_rest/ML_Campaigns.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once dirname(__FILE__).'/base/ML_Rest.php';
|
4 |
+
|
5 |
+
class ML_Campaigns extends ML_Rest
|
6 |
+
{
|
7 |
+
function ML_Campaigns( $api_key )
|
8 |
+
{
|
9 |
+
$this->name = 'campaigns';
|
10 |
+
|
11 |
+
parent::__construct($api_key);
|
12 |
+
}
|
13 |
+
|
14 |
+
function getRecipients( )
|
15 |
+
{
|
16 |
+
$this->path .= 'recipients/';
|
17 |
+
|
18 |
+
return $this->execute( 'GET' );
|
19 |
+
}
|
20 |
+
|
21 |
+
function getOpens( )
|
22 |
+
{
|
23 |
+
$this->path .= 'opens/';
|
24 |
+
|
25 |
+
return $this->execute( 'GET' );
|
26 |
+
}
|
27 |
+
|
28 |
+
function getClicks( )
|
29 |
+
{
|
30 |
+
$this->path .= 'clicks/';
|
31 |
+
|
32 |
+
return $this->execute( 'GET' );
|
33 |
+
}
|
34 |
+
|
35 |
+
function getUnsubscribes( )
|
36 |
+
{
|
37 |
+
$this->path .= 'unsubscribes/';
|
38 |
+
|
39 |
+
return $this->execute( 'GET' );
|
40 |
+
}
|
41 |
+
|
42 |
+
function getBounces( )
|
43 |
+
{
|
44 |
+
$this->path .= 'bounces/';
|
45 |
+
|
46 |
+
return $this->execute( 'GET' );
|
47 |
+
}
|
48 |
+
|
49 |
+
function getJunk( )
|
50 |
+
{
|
51 |
+
$this->path .= 'junks/';
|
52 |
+
|
53 |
+
return $this->execute( 'GET' );
|
54 |
+
}
|
55 |
+
}
|
56 |
+
|
57 |
+
?>
|
libs/mailerlite_rest/ML_Lists.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once dirname(__FILE__).'/base/ML_Rest.php';
|
4 |
+
|
5 |
+
class ML_Lists extends ML_Rest
|
6 |
+
{
|
7 |
+
function ML_Lists( $api_key )
|
8 |
+
{
|
9 |
+
$this->name = 'lists';
|
10 |
+
|
11 |
+
parent::__construct($api_key);
|
12 |
+
}
|
13 |
+
|
14 |
+
function getActive( )
|
15 |
+
{
|
16 |
+
$this->path .= 'active/';
|
17 |
+
|
18 |
+
return $this->execute( 'GET' );
|
19 |
+
}
|
20 |
+
|
21 |
+
function getUnsubscribed( )
|
22 |
+
{
|
23 |
+
$this->path .= 'unsubscribed/';
|
24 |
+
|
25 |
+
return $this->execute( 'GET' );
|
26 |
+
}
|
27 |
+
|
28 |
+
function getBounced( )
|
29 |
+
{
|
30 |
+
$this->path .= 'bounced/';
|
31 |
+
|
32 |
+
return $this->execute( 'GET' );
|
33 |
+
}
|
34 |
+
|
35 |
+
function getFields( )
|
36 |
+
{
|
37 |
+
$this->path .= 'fields/';
|
38 |
+
return $this->execute( 'GET' );
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
?>
|
libs/mailerlite_rest/ML_Subscribers.php
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once dirname(__FILE__).'/base/ML_Rest.php';
|
4 |
+
|
5 |
+
class ML_Subscribers extends ML_Rest
|
6 |
+
{
|
7 |
+
public function ML_Subscribers( $api_key )
|
8 |
+
{
|
9 |
+
$this->name = 'subscribers';
|
10 |
+
|
11 |
+
parent::__construct($api_key);
|
12 |
+
}
|
13 |
+
|
14 |
+
function add( $subscriber = null, $resubscribe = 0 )
|
15 |
+
{
|
16 |
+
$subscriber['resubscribe'] = $resubscribe;
|
17 |
+
|
18 |
+
return $this->execute( 'POST', $subscriber );
|
19 |
+
}
|
20 |
+
|
21 |
+
function addAll( $subscribers, $resubscribe = 0 )
|
22 |
+
{
|
23 |
+
$data['resubscribe'] = $resubscribe;
|
24 |
+
|
25 |
+
$data['subscribers'] = $subscribers;
|
26 |
+
|
27 |
+
$this->path .= 'import/';
|
28 |
+
|
29 |
+
return $this->execute( 'POST', $data );
|
30 |
+
}
|
31 |
+
|
32 |
+
function get( $email = null, $history = 0 )
|
33 |
+
{
|
34 |
+
$this->setId( null );
|
35 |
+
|
36 |
+
$this->path .= '?email=' . urlencode( $email );
|
37 |
+
|
38 |
+
if ( $history )
|
39 |
+
$this->path .= '&history=1';
|
40 |
+
|
41 |
+
return $this->execute( 'GET' );
|
42 |
+
}
|
43 |
+
|
44 |
+
function remove( $email = null )
|
45 |
+
{
|
46 |
+
$this->path .= '?email=' . urlencode( $email );
|
47 |
+
|
48 |
+
return $this->execute( 'DELETE' );
|
49 |
+
}
|
50 |
+
|
51 |
+
function unsubscribe( $email )
|
52 |
+
{
|
53 |
+
$this->path .= 'unsubscribe/?email=' . urlencode( $email );
|
54 |
+
|
55 |
+
return $this->execute( 'POST' );
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
?>
|
libs/mailerlite_rest/ML_Webforms.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once dirname(__FILE__).'/base/ML_Rest.php';
|
4 |
+
|
5 |
+
class ML_Webforms extends ML_Rest
|
6 |
+
{
|
7 |
+
function ML_Webforms( $api_key )
|
8 |
+
{
|
9 |
+
$this->name = 'webforms';
|
10 |
+
|
11 |
+
parent::__construct($api_key);
|
12 |
+
}
|
13 |
+
}
|
14 |
+
|
15 |
+
?>
|
libs/mailerlite_rest/base/ML_Rest.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once dirname(__FILE__) . '/ML_Rest_Base.php';
|
4 |
+
|
5 |
+
class ML_Rest extends ML_Rest_Base
|
6 |
+
{
|
7 |
+
var $name = '';
|
8 |
+
|
9 |
+
var $id = null;
|
10 |
+
|
11 |
+
function __construct( $api_key )
|
12 |
+
{
|
13 |
+
parent::__construct();
|
14 |
+
|
15 |
+
$this->apiKey = $api_key;
|
16 |
+
|
17 |
+
$this->path = $this->url . $this->name . '/';
|
18 |
+
}
|
19 |
+
|
20 |
+
function setId( $id )
|
21 |
+
{
|
22 |
+
$this->id = $id;
|
23 |
+
|
24 |
+
if ( $this->id )
|
25 |
+
$this->path = $this->url . $this->name . '/' . $id . '/';
|
26 |
+
else
|
27 |
+
$this->path = $this->url . $this->name . '/';
|
28 |
+
|
29 |
+
return $this;
|
30 |
+
}
|
31 |
+
|
32 |
+
function getAll( )
|
33 |
+
{
|
34 |
+
return $this->execute( 'GET' );
|
35 |
+
}
|
36 |
+
|
37 |
+
function get( $data = null )
|
38 |
+
{
|
39 |
+
if (!$this->id)
|
40 |
+
throw new InvalidArgumentException('ID is not set.');
|
41 |
+
|
42 |
+
return $this->execute( 'GET' );
|
43 |
+
}
|
44 |
+
|
45 |
+
function add( $data = null )
|
46 |
+
{
|
47 |
+
return $this->execute( 'POST', $data );
|
48 |
+
}
|
49 |
+
|
50 |
+
function put( $data = null)
|
51 |
+
{
|
52 |
+
return $this->execute( 'PUT', $data );
|
53 |
+
}
|
54 |
+
|
55 |
+
function remove( $data = null )
|
56 |
+
{
|
57 |
+
return $this->execute( 'DELETE' );
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
?>
|
libs/mailerlite_rest/base/ML_Rest_Base.php
ADDED
@@ -0,0 +1,231 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class ML_Rest_Base
|
4 |
+
{
|
5 |
+
protected $url;
|
6 |
+
protected $verb;
|
7 |
+
protected $requestBody;
|
8 |
+
protected $requestLength;
|
9 |
+
protected $username;
|
10 |
+
protected $password;
|
11 |
+
protected $acceptType;
|
12 |
+
protected $responseBody;
|
13 |
+
protected $responseInfo;
|
14 |
+
|
15 |
+
protected $apiKey = '';
|
16 |
+
protected $path = '';
|
17 |
+
|
18 |
+
public function __construct ($url = 'https://app.mailerlite.com/api/v1/', $verb = 'GET')
|
19 |
+
{
|
20 |
+
$this->url = $url;
|
21 |
+
$this->verb = $verb;
|
22 |
+
$this->requestLength = 0;
|
23 |
+
$this->username = null;
|
24 |
+
$this->password = null;
|
25 |
+
$this->acceptType = 'application/json';
|
26 |
+
$this->responseBody = null;
|
27 |
+
$this->responseInfo = null;
|
28 |
+
}
|
29 |
+
|
30 |
+
public function flush ()
|
31 |
+
{
|
32 |
+
$this->requestBody = null;
|
33 |
+
$this->requestLength = 0;
|
34 |
+
$this->verb = 'GET';
|
35 |
+
$this->responseBody = null;
|
36 |
+
$this->responseInfo = null;
|
37 |
+
}
|
38 |
+
|
39 |
+
public function execute ( $method = null, $data = null )
|
40 |
+
{
|
41 |
+
$ch = curl_init();
|
42 |
+
$this->setAuth($ch);
|
43 |
+
|
44 |
+
if ( $method )
|
45 |
+
$this->verb = $method;
|
46 |
+
|
47 |
+
$this->requestBody = $data;
|
48 |
+
|
49 |
+
$this->buildPostBody();
|
50 |
+
|
51 |
+
try
|
52 |
+
{
|
53 |
+
switch (strtoupper($this->verb))
|
54 |
+
{
|
55 |
+
case 'GET':
|
56 |
+
$this->executeGet($ch);
|
57 |
+
break;
|
58 |
+
case 'POST':
|
59 |
+
$this->executePost($ch);
|
60 |
+
break;
|
61 |
+
case 'PUT':
|
62 |
+
$this->executePut($ch);
|
63 |
+
break;
|
64 |
+
case 'DELETE':
|
65 |
+
$this->executeDelete($ch);
|
66 |
+
break;
|
67 |
+
default:
|
68 |
+
throw new InvalidArgumentException('Current verb (' . $this->verb . ') is an invalid REST verb.');
|
69 |
+
}
|
70 |
+
}
|
71 |
+
catch (InvalidArgumentException $e)
|
72 |
+
{
|
73 |
+
curl_close($ch);
|
74 |
+
throw $e;
|
75 |
+
}
|
76 |
+
catch (Exception $e)
|
77 |
+
{
|
78 |
+
curl_close($ch);
|
79 |
+
throw $e;
|
80 |
+
}
|
81 |
+
|
82 |
+
return $this->responseBody;
|
83 |
+
}
|
84 |
+
|
85 |
+
public function buildPostBody ()
|
86 |
+
{
|
87 |
+
$data = $this->requestBody;
|
88 |
+
|
89 |
+
$data['apiKey'] = $this->apiKey;
|
90 |
+
|
91 |
+
if (!is_array($data))
|
92 |
+
{
|
93 |
+
throw new InvalidArgumentException('Invalid data input for postBody. Array expected');
|
94 |
+
}
|
95 |
+
|
96 |
+
$data = http_build_query($data, '', '&');
|
97 |
+
$this->requestBody = $data;
|
98 |
+
}
|
99 |
+
|
100 |
+
protected function executeGet ($ch)
|
101 |
+
{
|
102 |
+
$this->path .= ( strpos( $this->path, '?' ) === false ? '?' : '&' ) . $this->requestBody;
|
103 |
+
|
104 |
+
$this->doExecute($ch);
|
105 |
+
}
|
106 |
+
|
107 |
+
protected function executePost ($ch)
|
108 |
+
{
|
109 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->requestBody);
|
110 |
+
curl_setopt($ch, CURLOPT_POST, 1);
|
111 |
+
|
112 |
+
$this->doExecute($ch);
|
113 |
+
}
|
114 |
+
|
115 |
+
protected function executePut ($ch)
|
116 |
+
{
|
117 |
+
$this->requestLength = strlen($this->requestBody);
|
118 |
+
|
119 |
+
$fh = fopen('php://memory', 'rw');
|
120 |
+
fwrite($fh, $this->requestBody);
|
121 |
+
rewind($fh);
|
122 |
+
|
123 |
+
curl_setopt($ch, CURLOPT_INFILE, $fh);
|
124 |
+
curl_setopt($ch, CURLOPT_INFILESIZE, $this->requestLength);
|
125 |
+
curl_setopt($ch, CURLOPT_PUT, true);
|
126 |
+
|
127 |
+
$this->doExecute($ch);
|
128 |
+
|
129 |
+
fclose($fh);
|
130 |
+
}
|
131 |
+
|
132 |
+
protected function executeDelete ($ch)
|
133 |
+
{
|
134 |
+
$this->path .= ( strpos( $this->path, '?' ) === false ? '?' : '&' ) . $this->requestBody;
|
135 |
+
|
136 |
+
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
|
137 |
+
|
138 |
+
$this->doExecute($ch);
|
139 |
+
}
|
140 |
+
|
141 |
+
protected function doExecute (&$curlHandle)
|
142 |
+
{
|
143 |
+
$this->setCurlOpts($curlHandle);
|
144 |
+
$this->responseBody = curl_exec($curlHandle);
|
145 |
+
|
146 |
+
$this->responseInfo = curl_getinfo($curlHandle);
|
147 |
+
|
148 |
+
curl_close($curlHandle);
|
149 |
+
}
|
150 |
+
|
151 |
+
protected function setCurlOpts (&$curlHandle)
|
152 |
+
{
|
153 |
+
curl_setopt($curlHandle, CURLOPT_TIMEOUT, 10);
|
154 |
+
curl_setopt($curlHandle, CURLOPT_URL, $this->path);
|
155 |
+
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
|
156 |
+
curl_setopt($curlHandle, CURLOPT_HTTPHEADER, array ('Accept: ' . $this->acceptType));
|
157 |
+
|
158 |
+
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, false );
|
159 |
+
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false );
|
160 |
+
curl_setopt($curlHandle, CURLOPT_FOLLOWLOCATION, true );
|
161 |
+
}
|
162 |
+
|
163 |
+
protected function setAuth (&$curlHandle)
|
164 |
+
{
|
165 |
+
if ($this->username !== null && $this->password !== null)
|
166 |
+
{
|
167 |
+
curl_setopt($curlHandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
|
168 |
+
curl_setopt($curlHandle, CURLOPT_USERPWD, $this->username . ':' . $this->password);
|
169 |
+
}
|
170 |
+
}
|
171 |
+
|
172 |
+
public function getAcceptType ()
|
173 |
+
{
|
174 |
+
return $this->acceptType;
|
175 |
+
}
|
176 |
+
|
177 |
+
public function setAcceptType ($acceptType)
|
178 |
+
{
|
179 |
+
$this->acceptType = $acceptType;
|
180 |
+
}
|
181 |
+
|
182 |
+
public function getPassword ()
|
183 |
+
{
|
184 |
+
return $this->password;
|
185 |
+
}
|
186 |
+
|
187 |
+
public function setPassword ($password)
|
188 |
+
{
|
189 |
+
$this->password = $password;
|
190 |
+
}
|
191 |
+
|
192 |
+
public function getResponseBody ()
|
193 |
+
{
|
194 |
+
return $this->responseBody;
|
195 |
+
}
|
196 |
+
|
197 |
+
public function getResponseInfo ()
|
198 |
+
{
|
199 |
+
return $this->responseInfo;
|
200 |
+
}
|
201 |
+
|
202 |
+
public function getUrl ()
|
203 |
+
{
|
204 |
+
return $this->url;
|
205 |
+
}
|
206 |
+
|
207 |
+
public function setUrl ($url)
|
208 |
+
{
|
209 |
+
$this->url = $url;
|
210 |
+
}
|
211 |
+
|
212 |
+
public function getUsername ()
|
213 |
+
{
|
214 |
+
return $this->username;
|
215 |
+
}
|
216 |
+
|
217 |
+
public function setUsername ($username)
|
218 |
+
{
|
219 |
+
$this->username = $username;
|
220 |
+
}
|
221 |
+
|
222 |
+
public function getVerb ()
|
223 |
+
{
|
224 |
+
return $this->verb;
|
225 |
+
}
|
226 |
+
|
227 |
+
public function setVerb ($verb)
|
228 |
+
{
|
229 |
+
$this->verb = $verb;
|
230 |
+
}
|
231 |
+
}
|
mailerlite.php
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
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.0
|
7 |
+
* Author: MailerGroup
|
8 |
+
* Author URI: https://www.mailerlite.com
|
9 |
+
* License: GPLv2 or later
|
10 |
+
|
11 |
+
This program is free software; you can redistribute it and/or
|
12 |
+
modify it under the terms of the GNU General Public License
|
13 |
+
as published by the Free Software Foundation; either version 2
|
14 |
+
of the License, or (at your option) any later version.
|
15 |
+
|
16 |
+
This program is distributed in the hope that it will be useful,
|
17 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19 |
+
GNU General Public License for more details.
|
20 |
+
|
21 |
+
You should have received a copy of the GNU General Public License
|
22 |
+
along with this program; if not, write to the Free Software
|
23 |
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
24 |
+
*/
|
25 |
+
|
26 |
+
define( 'MAILERLITE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
27 |
+
define( 'MAILERLITE_PLUGIN_URL', plugins_url( '', __FILE__ ) );
|
28 |
+
|
29 |
+
define( 'MAILERLITE_VERSION', '1.0.1');
|
30 |
+
|
31 |
+
function mailerlite_load_plugin_textdomain() {
|
32 |
+
|
33 |
+
$domain = 'mailerlite';
|
34 |
+
load_plugin_textdomain( $domain, FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
|
35 |
+
|
36 |
+
}
|
37 |
+
add_action( 'init', 'mailerlite_load_plugin_textdomain' );
|
38 |
+
|
39 |
+
function mailerlite_install() {
|
40 |
+
global $wpdb;
|
41 |
+
|
42 |
+
$table_name = $wpdb->prefix . "mailerlite_forms";
|
43 |
+
|
44 |
+
$sql = "CREATE TABLE ".$table_name." (
|
45 |
+
id mediumint(9) NOT NULL AUTO_INCREMENT,
|
46 |
+
time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
|
47 |
+
name tinytext NOT NULL,
|
48 |
+
type tinyint(1) default '1' NOT NULL,
|
49 |
+
data text NOT NULL,
|
50 |
+
PRIMARY KEY (id)
|
51 |
+
);";
|
52 |
+
|
53 |
+
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
54 |
+
dbDelta( $sql );
|
55 |
+
}
|
56 |
+
|
57 |
+
register_activation_hook( __FILE__, 'mailerlite_install' );
|
58 |
+
|
59 |
+
function register_mailerlite_styles() {
|
60 |
+
wp_register_style( 'mailerlite_forms.css', MAILERLITE_PLUGIN_URL . '/assets/css/mailerlite_forms.css', array(), MAILERLITE_VERSION );
|
61 |
+
wp_enqueue_style( 'mailerlite_forms.css');
|
62 |
+
}
|
63 |
+
|
64 |
+
add_action( 'wp_enqueue_scripts', 'register_mailerlite_styles' );
|
65 |
+
|
66 |
+
if ( is_admin() )
|
67 |
+
{
|
68 |
+
require_once( MAILERLITE_PLUGIN_DIR . 'include/mailerlite-admin.php' );
|
69 |
+
add_action( 'init', array( 'MailerLite_Admin', 'init' ) );
|
70 |
+
}
|
71 |
+
|
72 |
+
|
73 |
+
require_once( MAILERLITE_PLUGIN_DIR . 'include/mailerlite-widget.php' );
|
74 |
+
require_once( MAILERLITE_PLUGIN_DIR . 'include/mailerlite-shortcode.php' );
|
75 |
+
|
76 |
+
add_action( 'init', array( 'MailerLite_Shortcode', 'init' ) );
|
77 |
+
add_action( 'init', array( 'MailerLite_Form', 'init' ) );
|
readme.txt
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Plugin Name ===
|
2 |
+
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: 3.9
|
7 |
+
Stable tag: 1.0.2
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
Add newsletter sign up forms to your WordPresss site. Subscribers will be saved directly to your MailerLite account. Super easy to set up!
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
= Official MailerLite WordPress plugin =
|
16 |
+
|
17 |
+
The Official MailerLite Sign Up Form plugin makes it easy to grow your newsletter subscriber list. Use the plugin to add newsletter sign up form to your Wordpress blog or website and automatically integrate it with your MailerLite account.
|
18 |
+
|
19 |
+
If you don't have MailerLite account yet, you can signup for a FREE trial here.
|
20 |
+
|
21 |
+
Once you activate the plugin, you'll be able to select and add any of webforms you have in your MailerLite account or create a new webform. Place the webform in the sidebar using widget or put it enywhere in your post with a shortcode.
|
22 |
+
|
23 |
+
Setup is fast and easy! You just need to enter your MailerLite account API code and you're all set.
|
24 |
+
|
25 |
+
Plugin features:
|
26 |
+
|
27 |
+
* Add webforms from your MailerLite account to your Wordpress blog or website
|
28 |
+
* Create new webforms
|
29 |
+
* Save subscribers automatically to your MailerLite account
|
30 |
+
* Place webforms using widget or shortcode
|
31 |
+
* Double opt-in signup
|
32 |
+
* Setup welcome emails in your MailerLite account
|
33 |
+
|
34 |
+
== Installation ==
|
35 |
+
|
36 |
+
= Method 1 =
|
37 |
+
|
38 |
+
1. Login to your WordPress admin panel.
|
39 |
+
2. Open Plugins in the left sidebar, click Add New, and search for MailerLite plugin.
|
40 |
+
3. Install the plugin and activate it.
|
41 |
+
|
42 |
+
= Method 2 =
|
43 |
+
|
44 |
+
1. Download the MailerLite plugin.
|
45 |
+
2. Unzip the downloaded file and upload to your /wp-content/plugins/ folder.
|
46 |
+
3. Activate the plugin in Wordpress admin panel.
|
47 |
+
|
48 |
+
= Setup =
|
49 |
+
|
50 |
+
1. After successful installation you will see MailerLite icon on the left sidebar. Click it.
|
51 |
+
2. Enter your MailerLite account API key. You can find it in your MailerLite account by clicking "Developer API" link in the bottom of the page.
|
52 |
+
3. Click "Add New Signup Form" .
|
53 |
+
4. Choose "Webforms created using MailerLite" if you wan't to use a sign up form that you already created in your MailerLite account or "Custom sign up form" if you want to create it now.
|
54 |
+
5. If you want to include sign up form in the sidebar of your blog or website, go to Appearance > Widgets and drag "MailerLite sign up form" to the sidebar. Choose which signup form to display.
|
55 |
+
6. If you want to include sign up form inside your post or page, use shortcodes. You will see MailerLite icon in your content editor, click it and choose which form to display. It will put a shortcode (for example [mailerlite_form form_id=1]) and your visitors will see signup form in that place.
|
56 |
+
|
57 |
+
|
58 |
+
== Frequently Asked Questions ==
|
59 |
+
|
60 |
+
= Requirements =
|
61 |
+
|
62 |
+
* Requires PHP5.
|
63 |
+
|
64 |
+
= What is the plugin license? =
|
65 |
+
|
66 |
+
* This plugin is released under a GPL license.
|
67 |
+
|
68 |
+
= What is MailerLite? =
|
69 |
+
MailerLite is easy to use web-based email marketing software. It can help you create and send email newsletters, manage subscribers, track and analyze results.
|
70 |
+
|
71 |
+
= Do I need a MailerLite account to use this plugin? =
|
72 |
+
Yes, you can easily register at www.mailerlite.com
|
73 |
+
|
74 |
+
= How to display a form in posts or pages? =
|
75 |
+
Use shortcode with form id which you created [mailerlite form_id=0].
|
76 |
+
|
77 |
+
= How to display a form in widget areas like a sidebar? =
|
78 |
+
Just add "Mailerlite sign up form widget" and select form you have created
|
79 |
+
|
80 |
+
= How to display a form in my template files? =
|
81 |
+
|
82 |
+
Use the load_mailerlite_form($id) function.
|
83 |
+
|
84 |
+
`
|
85 |
+
<?php
|
86 |
+
if( function_exists( 'load_mailerlite_form' ) ) {
|
87 |
+
load_mailerlite_form(0);
|
88 |
+
}
|
89 |
+
`
|
90 |
+
|
91 |
+
= How can I style the sign-up form? =
|
92 |
+
|
93 |
+
You can use CSS rules to style the sign-up form, use the following CSS selectors to target the various form elements.
|
94 |
+
|
95 |
+
Every form can be different, because element ID of form is:
|
96 |
+
`
|
97 |
+
#mailerlite-form_(your_form_id)
|
98 |
+
`
|
99 |
+
|
100 |
+
Elements of form can be styled.
|
101 |
+
|
102 |
+
`
|
103 |
+
.mailerlite-form .mailerlite-form-title {} /* the form title */
|
104 |
+
.mailerlite-form .mailerlite-form-description {} /* the form description */
|
105 |
+
.mailerlite-form .mailerlite-form-field label {} /* the form input label */
|
106 |
+
.mailerlite-form .mailerlite-form-field input {} /* the form inputs */
|
107 |
+
.mailerlite-form .mailerlite-form-loader {} /* the form loading text */
|
108 |
+
.mailerlite-form .mailerlite-subscribe-button-container {} /* the form button container */
|
109 |
+
.mailerlite-form .mailerlite-subscribe-button-container .mailerlite-subscribe-submit {} /* the form submit button */
|
110 |
+
.mailerlite-form .mailerlite-form-response {} /* the form response message */
|
111 |
+
`
|
112 |
+
|
113 |
+
Add your custom CSS rules to the end of your theme stylesheet, /wp-content/themes/your-theme-name/style.css. Do not add them to the plugin stylesheet as they will be automatically overwritten on the next plugin update.
|
114 |
+
|
115 |
+
= Where can I find my MailerLite API key? =
|
116 |
+
|
117 |
+
[Check it here!](http://mailerlite.helpscoutdocs.com/article/12-does-mailerlite-offer-an-api "Check it here!")
|
118 |
+
|
119 |
+
== Screenshots ==
|
120 |
+
|
121 |
+
1. screenshot-1.jpg
|
122 |
+
2. screenshot-2.jpg
|
123 |
+
3. screenshot-3.jpg
|
124 |
+
4. screenshot-4.jpg
|
125 |
+
5. screenshot-5.jpg
|
126 |
+
6. screenshot-6.jpg
|
127 |
+
|
128 |
+
|
129 |
+
== Changelog ==
|
130 |
+
|
131 |
+
= 1.0.2 =
|
132 |
+
* Small changes
|
133 |
+
= 1.0.1 =
|
134 |
+
* Added translations
|
135 |
+
= 1.0 =
|
136 |
+
* First release
|
137 |
+
|
138 |
+
== Upgrade Notice ==
|
139 |
+
|
140 |
+
= 1.0.2 =
|
141 |
+
* Small changes
|
142 |
+
= 1.0.1 =
|
143 |
+
* Added translations
|
144 |
+
= 1.0 =
|
145 |
+
* First release
|
146 |
+
|
147 |
+
== Arbitrary section ==
|
screenshot-1.jpg
ADDED
Binary file
|
screenshot-2.jpg
ADDED
Binary file
|
screenshot-3.jpg
ADDED
Binary file
|
screenshot-4.jpg
ADDED
Binary file
|
screenshot-5.jpg
ADDED
Binary file
|
screenshot-6.jpg
ADDED
Binary file
|