This commit is contained in:
emmymayo
2025-02-05 23:15:46 +01:00
commit 7269c99357
16995 changed files with 3389680 additions and 0 deletions
@@ -0,0 +1,24 @@
<script type="text/javascript">
(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,
0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
window.mixpanelTrackingId = "8cce373b255e5a76fb22d57b85db0c92";
window.mixpanelIsLoaded = false;
window.mixpanelInitConfig = { 'loaded': function() {
window.mixpanelIsLoaded = true;
}}
mixpanel.init(window.mixpanelTrackingId, window.mixpanelInitConfig);
mixpanel.register({'Platform': 'Plugin'});
if(typeof window.mailpoet_analytics_public_id === 'string' && window.mailpoet_analytics_public_id.length > 0) {
if(window.mailpoet_analytics_new_public_id === true) {
mixpanel.alias(window.mailpoet_analytics_public_id);
} else {
mixpanel.identify(window.mailpoet_analytics_public_id);
}
}
</script>
@@ -0,0 +1,20 @@
<% extends 'layout.html' %>
<% block content %>
<div id="mailpoet_automation"></div>
<script type="text/javascript">
var mailpoet_locale_full = <%= json_encode(locale_full) %>;
var mailpoet_automation_api = <%= json_encode(api) %>;
var mailpoet_automation_count = <%= json_encode(automationCount) %>;
var mailpoet_legacy_automation_count = <%= json_encode(legacyAutomationCount) %>;
var mailpoet_automation_templates = <%= json_encode(templates) %>;
var mailpoet_automation_template_categories = <%= json_encode(template_categories) %>;
var mailpoet_automation_registry = <%= json_encode(registry) %>;
var mailpoet_automation_context = <%= json_encode(context) %>;
var mailpoet_segments = <%= json_encode(segments) %>;
var mailpoet_roles = <%= json_encode(roles) %>;
var mailpoet_woocommerce_automatic_emails = <%= json_encode(automatic_emails) %>;
var mailpoet_legacy_automations_notice_dismissed = <%= json_encode(legacy_automations_notice_dismissed) %>;
</script>
<% endblock %>
@@ -0,0 +1,15 @@
<% extends 'layout.html' %>
<% block content %>
<div id="mailpoet_automation_analytics" class="woocommerce-page"></div>
<script type="text/javascript">
var mailpoet_locale_full = <%= json_encode(locale_full) %>;
var mailpoet_automation_api = <%= json_encode(api) %>;
var mailpoet_json_api = <%= json_encode(jsonapi) %>;
var mailpoet_automation_registry = <%= json_encode(registry) %>;
var mailpoet_automation_context = <%= json_encode(context) %>;
var mailpoet_automation = <%= automation ? json_encode(automation) : 'undefined' %>;
</script>
<% endblock %>
@@ -0,0 +1,15 @@
<% extends 'layout.html' %>
<% block container %>
<div id="mailpoet_automation_editor" class="edit-site"></div>
<script type="text/javascript">
var mailpoet_locale_full = <%= json_encode(locale_full) %>;
var mailpoet_automation_api = <%= json_encode(api) %>;
var mailpoet_json_api = <%= json_encode(jsonapi) %>;
var mailpoet_segments = <%= json_encode(segments) %>;
var mailpoet_automation_registry = <%= json_encode(registry) %>;
var mailpoet_automation_context = <%= json_encode(context) %>;
var mailpoet_automation = <%= automation ? json_encode(automation) : 'undefined' %>;
</script>
<% endblock %>
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,14 @@
<% extends 'layout.html' %>
<% block content %>
<div id="mailpoet_automation_templates"></div>
<script type="text/javascript">
var mailpoet_locale_full = <%= json_encode(locale_full) %>;
var mailpoet_automation_api = <%= json_encode(api) %>;
var mailpoet_automation_templates = <%= json_encode(templates) %>;
var mailpoet_automation_template_categories = <%= json_encode(template_categories) %>;
var mailpoet_automation_registry = <%= json_encode(registry) %>;
var mailpoet_automation_context = <%= json_encode(context) %>;
</script>
<% endblock %>
@@ -0,0 +1,5 @@
<% extends 'layout.html' %>
<% block content %>
<%= do_action('mailpoet_pages_' ~ page_name) %>
<% endblock %>
@@ -0,0 +1,40 @@
<style type="text/css">
.mailpoet-deactivate-survey-modal {
display: none;
table-layout: fixed;
position: fixed;
z-index: 9999;
width: 100%;
height: 100%;
text-align: center;
font-size: 14px;
top: 0;
left: 0;
background: rgba(0,0,0,0.8);
}
.mailpoet-deactivate-survey-wrap {
display: table-cell;
vertical-align: middle;
}
.mailpoet-deactivate-survey {
background-color: #fff;
border: 0 solid #ccc;
border-radius: 3px;
margin: 0 auto;
padding: 12px;
width: 520px;
direction: ltr;
}
.mailpoet-deactivate-survey a.button {
white-space: normal;
height: auto;
}
.pds-box .pds-vote {
display: flex;
align-items: center;
justify-content: center;
}
</style>
@@ -0,0 +1,53 @@
<div class="mailpoet-deactivate-survey-modal" id="mailpoet-deactivate-survey-modal">
<div class="mailpoet-deactivate-survey-wrap">
<div class="mailpoet-deactivate-survey">
<script type="text/javascript">
window.addEventListener('load', function() {
var deactivateLink = document.querySelector('#the-list [data-slug="mailpoet"] span.deactivate a');
var overlay = document.querySelector('#mailpoet-deactivate-survey-modal');
var closeButton = document.querySelector('#mailpoet-deactivate-survey-close');
var formOpen = false;
if (!deactivateLink || !overlay || !closeButton) {
return;
}
deactivateLink.addEventListener('click', function (event) {
event.preventDefault();
overlay.style.display = 'table';
formOpen = true;
});
closeButton.addEventListener('click', function (event) {
event.preventDefault();
overlay.style.display = 'none';
formOpen = false;
location.href = deactivateLink.getAttribute('href');
});
document.addEventListener('keyup', function (event) {
if ((event.keyCode === 27) && formOpen) {
location.href = deactivateLink.getAttribute('href');
}
});
});
// This callback is by docs, and guarantees that the modal window is closed and deactivated only after the vote has been submitted
var pd_callback = function(json) {
var obj = JSON.parse(json);
var deactivateLink = document.querySelector('#the-list [data-slug="mailpoet"] span.deactivate a');
var overlay = document.querySelector('#mailpoet-deactivate-survey-modal');
if (obj.result === 'already-registered' || obj.result === 'registered') {
overlay.style.display = 'none';
location.href = deactivateLink.getAttribute('href');
}
};
</script>
<script type="text/javascript" charset="utf-8" src="https://secure.polldaddy.com/p/11161195.js"></script>
<noscript><a href="https://poll.fm/11161195"><%= __("We're sorry to see you leave. Could you tell us more why are you deactivating MailPoet?") %></a></noscript>
<a class="button" id="mailpoet-deactivate-survey-close"><%= __('Skip survey and deactivate MailPoet') %> &rarr;</a>
</div>
</div>
</div>
@@ -0,0 +1,6 @@
<% if(is_loading_3rd_party_enabled()) %>
<% include 'deactivationPoll/embedded-poll.html' %>
<% else %>
<% include 'deactivationPoll/link-poll.html' %>
<% endif %>
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,62 @@
<div class="mailpoet-deactivate-survey-modal" id="mailpoet-deactivate-survey-modal">
<div class="mailpoet-deactivate-survey-wrap">
<div class="mailpoet-deactivate-survey">
<script type="text/javascript">
window.addEventListener('load', function() {
var deactivateLink = document.querySelector('#the-list [data-slug="mailpoet"] span.deactivate a');
var overlay = document.querySelector('#mailpoet-deactivate-survey-modal');
var closeButton = document.querySelector('#mailpoet-deactivate-survey-close');
var participateButton = document.querySelector('#mailpoet-deactivate-survey-participate');
var formOpen = false;
if (!deactivateLink || !overlay || !closeButton || !participateButton) {
return;
}
deactivateLink.addEventListener('click', function (event) {
event.preventDefault();
overlay.style.display = 'table';
formOpen = true;
});
closeButton.addEventListener('click', function (event) {
event.preventDefault();
overlay.style.display = 'none';
formOpen = false;
location.href = deactivateLink.getAttribute('href');
});
participateButton.addEventListener('click', function (event) {
setTimeout(function() {closeButton.click(); }, 50);
});
document.addEventListener('keyup', function (event) {
if ((event.keyCode === 27) && formOpen) {
location.href = deactivateLink.getAttribute('href');
}
});
});
</script>
<p><strong>
<%= __("We're sorry to see you go. Would you be open to sharing how MailPoet didn't work for you so we could improve it?") %>
</strong><br><%= __('It will take only a minute.') %></p>
<a
class="button button-primary"
id="mailpoet-deactivate-survey-participate"
href="https://poll.fm/11161195"
target="_blank"
rel="noopener nofollow"
><%= __("Yes") %> &rarr;</a>
<a
class="button"
id="mailpoet-deactivate-survey-close"
>
<%= __('No') %>
</a>
</div>
</div>
</div>
@@ -0,0 +1,140 @@
<html lang="<%= language() %>" style="margin:0;padding:0">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no" />
<title><%= subject %></title>
<style type="text/css">
@media screen and (max-width: 599px) {
div, .mailpoet_cols-two {
max-width: 100% !important;
}
}
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0;background-color:#f0f0f0">
<table class="mailpoet_template" border="0" width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tbody>
<tr>
<td align="center" class="mailpoet-wrapper" valign="top" style="border-collapse:collapse;background-color:#f0f0f0"><!--[if mso]>
<table align="center" border="0" cellspacing="0" cellpadding="0"
width="660">
<tr>
<td class="mailpoet_content-wrapper" align="center" valign="top" width="660">
<![endif]--><table class="mailpoet_content-wrapper" border="0" width="660" cellpadding="0" cellspacing="0" style="border-collapse:collapse;background-color:#ffffff;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;max-width:660px;width:100%">
<tbody>
<tr>
<td class="mailpoet_content" align="center" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tbody>
<tr>
<td style="border-collapse:collapse;padding-left:0;padding-right:0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mailpoet_cols-one" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_spacer" height="36" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_image mailpoet_padded_vertical mailpoet_padded_side" align="center" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px">
<img src="<%= cdn_url('logo-orange-400x122.png') %>" width="80" alt="new_logo_orange" style="height:auto;max-width:100%;-ms-interpolation-mode:bicubic;border:0;display:block;outline:none;text-align:center" />
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="26" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px;word-break:break-word;word-wrap:break-word">
<h1 style="margin:0 0 12px;color:#111111;font-family:'Trebuchet MS','Lucida Grande','Lucida Sans Unicode','Lucida Sans',Tahoma,sans-serif;font-size:40px;line-height:64px;margin-bottom:0;text-align:center;padding:0;font-style:normal;font-weight:normal"><strong><%= __('Congrats!') %><br /><%= __('MailPoet is now sending your emails') %></strong></h1>
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="41" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px;word-break:break-word;word-wrap:break-word">
<table style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px;word-break:break-word;word-wrap:break-word;text-align:center">
<%= __('This email was sent automatically with the MailPoet Sending Service after you activated your key in your MailPoet settings.') %>
</td>
</tr></table>
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="55" valign="top" style="border-collapse:collapse"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_content-cols-two" align="left" style="border-collapse:collapse;background-color:#fe5301!important" bgcolor="#fe5301">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tbody>
<tr>
<td align="center" style="border-collapse:collapse;font-size:0"><!--[if mso]>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="330" valign="top">
<![endif]--><div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse;width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_spacer" bgcolor="#fe5301" height="22" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_image mailpoet_padded_vertical mailpoet_padded_side" align="left" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px">
<img src="<%= cdn_url('logo-white-400x122.png') %>" width="130" alt="new_logo_white" style="height:auto;max-width:100%;-ms-interpolation-mode:bicubic;border:0;display:block;outline:none;text-align:center" />
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="26" valign="top" style="border-collapse:collapse"></td>
</tr>
</tbody>
</table>
</div><!--[if mso]>
</td>
<td width="330" valign="top">
<![endif]--><div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse;width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_spacer" bgcolor="#fe5301" height="20" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_header_footer_padded mailpoet_footer" style="border-collapse:collapse;padding:10px 20px;line-height:25.6px;text-align:right;color:#222222;font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:16px">
</td>
</tr>
</tbody>
</table>
</div><!--[if mso]>
</td>
</tr>
</tbody>
</table>
<![endif]--></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table><!--[if mso]>
</td>
</tr>
</table>
<![endif]--></td>
</tr>
</tbody>
</table>
</body>
</html>
@@ -0,0 +1,5 @@
<%= __('Congrats!') %>
<%= __('MailPoet is now sending your emails') %>
<%= __('This email was sent automatically with the MailPoet Sending Service after you activated your key in your MailPoet settings.') %>
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,23 @@
<p><%= __('Howdy,') %>
<p><%= __('The subscriber %1$s has just subscribed to your list %2$s!')
|replace({'%1$s': subscriber_email, '%2$s': segments_names})
%>
<p><%= __('Cheers,') %>
<p><%= __('The MailPoet Plugin') %>
<p><small><%= __('You can disable these emails in your [link]MailPoet Settings.[/link]'
|replaceLinkTags(link_settings)
) %></small>
<% if 'now'|date('Y-m-d') < '2018-11-30'|date('Y-m-d') %>
<p>
<small>
<%= __('PS. MailPoet annual plans are nearly half price for a limited time.
[link]Find out more in the Premium page in your admin.[/link]'
|replaceLinkTags(link_premium)
) %>
</small>
<% endif %>
@@ -0,0 +1,17 @@
<%= __('Howdy,') %>
<%= __('The subscriber %1$s has just subscribed to your list %2$s!')
|replace({'%1$s': subscriber_email, '%2$s': segments_names})
%>
<%= __('Cheers,') %>
<%= __('The MailPoet Plugin') %>
<%= __('You can disable these emails in your MailPoet Settings.') %>
<%= link_settings %>
<% if 'now'|date('Y-m-d') < '2018-11-30'|date('Y-m-d') %>
<%= __('PS. MailPoet annual plans are nearly half price for a limited time. Find out more in the Premium page in your admin.') %>
<%= link_premium %>
<% endif %>
@@ -0,0 +1,497 @@
<% extends 'emails/statsNotificationLayout.html' %>
<% block content %>
<tr>
<td class="mailpoet_content" align="center" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<td style="padding-left:0;padding-right:0;border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mailpoet_cols-one" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_spacer" height="36" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_image mailpoet_padded_vertical mailpoet_padded_side" align="center" valign="top" style="border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<img src="<%= cdn_url('logo-orange-400x122.png') %>" width="80" alt="new_logo_orange" style="height:auto;max-width:100%;-ms-interpolation-mode:bicubic;border:0;display:block;outline:none;text-align:center"/>
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="26" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<h1 style="text-align:center;padding:0;font-style:normal;font-weight:normal;margin:0 0 12px;color:#111111;font-family:'Trebuchet MS','Lucida Grande','Lucida Sans Unicode','Lucida Sans',Tahoma,sans-serif;font-size:40px;line-height:64px">
<strong><%= __('Your stats are in!') %></strong>
</h1>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<h3 class="title" style="text-align:center;padding:0;font-style:normal;font-weight:normal;margin:0 0 6px;color:#333333;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:20px;line-height:32px">
<em><%= subject %></em>
</h3>
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="55" valign="top" style="border-collapse:collapse"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<% if subscribersLimitReached %>
<tr>
<td class="mailpoet_content" align="center" style="border-collapse:collapse;background-color:#fe5301!important" bgcolor="#fe5301">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tbody>
<tr>
<td style="border-collapse:collapse;padding-left:0;padding-right:0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mailpoet_cols-one" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_spacer" height="26" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px;word-break:break-word;word-wrap:break-word">
<table style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0" width="100%" cellpadding="0">
<tbody>
<tr>
<td class="mailpoet_paragraph" style="border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px;word-break:break-word;word-wrap:break-word;text-align:left">
<span style="color: #ffffff;"><strong><%= __('Congratulations, you now have more than [subscribersLimit] subscribers!')|replace({'[subscribersLimit]': subscribersLimit}) %></strong></span><br><br>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0" width="100%" cellpadding="0">
<tbody>
<tr>
<td class="mailpoet_paragraph" style="border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px;word-break:break-word;word-wrap:break-word;text-align:left">
<span style="color: #ffffff;"><strong></strong></span>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0" width="100%" cellpadding="0">
<tbody>
<tr>
<td class="mailpoet_paragraph" style="border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px;word-break:break-word;word-wrap:break-word;text-align:left">
<span style="color: #ffffff;"><%= __('Our free version is limited to [subscribersLimit] subscribers. You need to upgrade now to be able to continue using MailPoet.')|replace({'[subscribersLimit]': subscribersLimit}) %></span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px">
<div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tbody>
<tr>
<td class="mailpoet_button-container" style="border-collapse:collapse;text-align:center">
<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w="urn:schemas-microsoft-com:office:word"
href=""
style="height:50px; width:288px; v-text-anchor:middle;"
arcsize="6%"
strokeweight="0px"
strokecolor="#0074a2"
fillcolor="#ffffff">
<w:anchorlock/>
<center style="color:#fe5301;
font-family:Arial;
font-size:20px;
font-weight:bold;">Upgrade Now
</center>
</v:roundrect>
<![endif]-->
<a class="mailpoet_button" href="<%= upgradeNowLink %>" style="color:#fe5301;text-decoration:none !important;display:inline-block;-webkit-text-size-adjust:none;mso-hide:all;text-align:center;background-color:#ffffff;border-color:#0074a2;border-width:0px;border-radius:3px;border-style:solid;width:288px;line-height:50px;font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:20px;font-weight:normal">Upgrade Now</a>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="26" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_spacer" bgcolor="#ffffff" height="26" valign="top" style="border-collapse:collapse"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<% endif %>
<tr>
<td class="mailpoet_content-cols-two" align="left" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<td align="center" style="font-size:0;border-collapse:collapse">
<!--[if mso]>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_padded_vertical mailpoet_padded_side" valign="top"
style="border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tr>
<td class="mailpoet_button-container" style="text-align:center;border-collapse:collapse">
<a class="mailpoet_button" href="" style="display:inline-block;-webkit-text-size-adjust:none;mso-hide:all;text-decoration:none;text-align:center;background-color:<%= stats_color(clicked) %> ;border-color:#0074a2 ;border-width:0px ;border-radius:3px ;border-style:solid ;width:100px ;line-height:20px ;color:#ffffff ;font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif ;font-size:10px ;font-weight:normal ">
<%= clicked_stats_text(clicked) %>
</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-left:20px;padding-right:20px">
<h2 style="text-align:center;padding:0;font-style:normal;font-weight:normal;margin:0 0 12px;color:#222222;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:40px;line-height:64px">
<span style="color: <%= stats_color(clicked) %>">
<strong><%= stats_number_format_i18n(clicked) %>%</strong>
</span>
</h2>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:center;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<span style="color: <%= stats_color(clicked) %>">
<%= __('clicked') %>
</span>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
</tr>
</tbody>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_content-cols-two" align="left" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<td align="center" style="font-size:0;border-collapse:collapse">
<!--[if mso]>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-left:20px;padding-right:20px">
<h2 style="text-align:center;padding:0;font-style:normal;font-weight:normal;margin:0 0 12px;color:#222222;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:40px;line-height:64px">
<span>
<strong><%= stats_number_format_i18n(opened) %>%</strong>
</span>
</h2>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:center;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<span>
<%= __('opened') %>
</span>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-left:20px;padding-right:20px">
<h2 style="text-align:center;padding:0;font-style:normal;font-weight:normal;margin:0 0 12px;color:#222222;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:40px;line-height:64px">
<span>
<strong><%= stats_number_format_i18n(machineOpened) %>%</strong>
</span>
</h2>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:center;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<span>
<%= __('machine-opened') %>
</span>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
</tr>
</tbody>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_content-cols-two" align="left" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<td align="center" style="font-size:0;border-collapse:collapse">
<!--[if mso]>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-left:20px;padding-right:20px">
<h2 style="text-align:center;padding:0;font-style:normal;font-weight:normal;margin:0 0 12px;color:#222222;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:40px;line-height:64px">
<span>
<strong><%= stats_number_format_i18n(unsubscribed) %>%</strong>
</span>
</h2>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:center;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<span>
<%= __('unsubscribed') %>
</span>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-left:20px;padding-right:20px">
<h2 style="text-align:center;padding:0;font-style:normal;font-weight:normal;margin:0 0 12px;color:#222222;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:40px;line-height:64px">
<span>
<strong><%= stats_number_format_i18n(bounced) %>%</strong>
</span>
</h2>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:center;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<span>
<%= __('bounced') %>
</span>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
</tr>
</tbody>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<% if topLinkClicks > 0 %>
<tr>
<td class="mailpoet_content" align="center" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<td style="padding-left:0;padding-right:0;border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mailpoet_cols-one" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_divider" valign="top" style="padding:26.5px 20px 26.5px 20px;border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tr>
<td class="mailpoet_divider-cell" style="border-top-width:1px;border-top-style:solid;border-top-color:#e8e8e8;border-collapse:collapse"></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_content" align="center" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<td style="padding-left:0;padding-right:0;border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mailpoet_cols-one" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_header_footer_padded mailpoet_header" style="line-height:38.4px;text-align:center ;color:#222222 ;font-family:'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif ;font-size:24px ;border-collapse:collapse;padding:10px 20px">
<span style="font-weight: 600;">
<%= __('Most clicked link') %>
</span>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:center;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<% if topLink starts with 'http' %>
<a href="<%= topLink %>" target="_blank" rel="noopener noreferrer"
style="color:#008282;text-decoration:underline">
<%= topLink %>
</a>
<% else %>
<%= topLink %>
<% endif %>
</td>
</tr>
</table>
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:center;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<span style="color: #000000;">
<%= __('%s unique clicks')|replace({'%s': topLinkClicks}) %>
</span>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<% endif %>
<tr>
<td class="mailpoet_content" align="center" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<td style="padding-left:0;padding-right:0;border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mailpoet_cols-one" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_divider" valign="top" style="padding:6.5px 20px 6.5px 20px;border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tr>
<td class="mailpoet_divider-cell" style="border-top-width:1px;border-top-style:solid;border-top-color:#e8e8e8;border-collapse:collapse"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="30" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tr>
<td class="mailpoet_button-container" style="text-align:center;border-collapse:collapse">
<a class="mailpoet_button" href="<%= linkStats %>" style="display:inline-block;-webkit-text-size-adjust:none;mso-hide:all;text-decoration:none;text-align:center;background-color:#fe5301 ;border-color:#0074a2 ;border-width:0px ;border-radius:3px ;border-style:solid ;width:288px ;line-height:50px ;color:#ffffff ;font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif ;font-size:20px ;font-weight:normal ">
<%= __('View all stats') %>
</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="20" valign="top" style="border-collapse:collapse"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<% endblock %>
@@ -0,0 +1,43 @@
<% extends 'emails/statsNotificationLayout.txt' %>
<% block content %>
<%= __('Your stats are in!') %>
<%= subject %>
<% if subscribersLimitReached %>
<%= __('Congratulations, you now have more than [subscribersLimit] subscribers!')|replace({'[subscribersLimit]': subscribersLimit}) %>
<% if hasValidApiKey %>
<%= __('Your plan is limited to [subscribersLimit] subscribers.')|replace({'[subscribersLimit]': subscribersLimit}) %>
<% else %>
<%= __('Our free version is limited to [subscribersLimit] subscribers.')|replace({'[subscribersLimit]': subscribersLimit}) %>
<% endif %>
<%= __('You need to upgrade now to be able to continue using MailPoet.') %>
<%= __('Upgrade Now') %>
<%= upgradeNowLink %>
<% endif %>
<%= stats_number_format_i18n(clicked) %>% <%= __('clicked') %>
<%= clicked_stats_text(clicked) %>
<%= stats_number_format_i18n(opened) %>% <%= __('opened') %>
<%= stats_number_format_i18n(machineOpened) %>% <%= __('machine-opened') %>
<%= stats_number_format_i18n(unsubscribed) %>% <%= __('unsubscribed') %>
<%= stats_number_format_i18n(bounced) %>% <%= __('bounced') %>
<% if topLinkClicks > 0 %>
<%= __('Most clicked link') %>
<%= topLink %>
<%= __('%s unique clicks')|replace({'%s': topLinkClicks}) %>
<% endif %>
<%= __('View all stats') %>
<%= linkStats %>
<% endblock %>
@@ -0,0 +1,284 @@
<% extends 'emails/statsNotificationLayout.html' %>
<% block content %>
<tr>
<td class="mailpoet_content" align="center" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<td style="padding-left:0;padding-right:0;border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mailpoet_cols-one" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_spacer" height="36" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_image mailpoet_padded_vertical mailpoet_padded_side" align="center" valign="top" style="border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<img src="<%= cdn_url('logo-orange-400x122.png') %>" width="80" alt="new_logo_orange" style="height:auto;max-width:100%;-ms-interpolation-mode:bicubic;border:0;display:block;outline:none;text-align:center" />
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="26" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<h1 style="text-align:center;padding:0;font-style:normal;font-weight:normal;margin:0 0 12px;color:#111111;font-family:'Trebuchet MS','Lucida Grande','Lucida Sans Unicode','Lucida Sans',Tahoma,sans-serif;font-size:40px;line-height:64px">
<strong><%= __('Your monthly stats are in!') %></strong>
</h1>
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="55" valign="top" style="border-collapse:collapse"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<% for newsletter in newsletters %>
<tr>
<td class="mailpoet_content" align="center" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tbody>
<tr>
<td style="border-collapse:collapse;padding-left:0;padding-right:0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mailpoet_cols-one" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_divider" valign="top" style="border-collapse:collapse;padding:29.5px 20px 29.5px 20px">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tr>
<td class="mailpoet_divider-cell" style="border-collapse:collapse;border-top-width:1px;border-top-style:solid;border-top-color:#e8e8e8">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px;word-break:break-word;word-wrap:break-word">
<h2 class="title" style="margin:0 0 7.8px;color:#222222;font-family:lato,'helvetica neue',helvetica,arial,sans-serif;font-size:26px;line-height:31.2px;margin-bottom:0;text-align:center;padding:0;font-style:normal;font-weight:normal">
<strong>
<a href="<%= newsletter.linkStats %>" style="color:#0074a2;text-decoration:underline">
<%= newsletter.subject %>
</a>
</strong>
</h2>
</td>
</tr>
<tr>
<td class="mailpoet_spacer" height="28" valign="top" style="border-collapse:collapse"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_content-cols-two" align="left" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tbody>
<tr>
<td align="center" style="border-collapse:collapse;font-size:0">
<!--[if mso]>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse;width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px">
<div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tr>
<td class="mailpoet_button-container" style="border-collapse:collapse;text-align:center">
<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word"
href="<%= newsletter.linkStats %>"
style="height:20px;
width:50px;
v-text-anchor:middle;"
arcsize="15%"
strokeweight="0px"
strokecolor="#0074a2"
fillcolor="<%= stats_color(newsletter.clicked) %>">
<w:anchorlock/>
<center style="color:#ffffff; font-family:Arial; font-size:10px; font-weight:bold;">
<%= clicked_stats_text(newsletter.clicked) %>
</center>
</v:roundrect>
<![endif]-->
<a class="mailpoet_button" href="<%= newsletter.linkStats %>" style="color:#ffffff;text-decoration:none !important;display:inline-block;-webkit-text-size-adjust:none;mso-hide:all;text-align:center;background-color:<%= stats_color(newsletter.clicked) %>;border-color:#0074a2;border-width:0px;border-radius:3px;border-style:solid;width:80px;line-height:20px;font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:10px;font-weight:normal">
<%= clicked_stats_text(newsletter.clicked) %>
</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px;word-break:break-word;word-wrap:break-word">
<h3 style="margin:0 0 5.4px;color:#333333;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:18px;line-height:21.6px;margin-bottom:0;text-align:center;padding:0;font-style:normal;font-weight:normal">
<span style="color: <%= stats_color(newsletter.clicked) %>;">
<strong>
<span style="color: <%= stats_color(newsletter.clicked) %>;"><%= stats_number_format_i18n(newsletter.clicked) %>%</span>
</strong>
<span style="color: #000000;">
<%= __('clicked') %>
</span>
</span>
</h3>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
</tr>
</tbody>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_content-cols-two" align="left" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tbody>
<tr>
<td align="center" style="border-collapse:collapse;font-size:0">
<!--[if mso]>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse;width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px;word-break:break-word;word-wrap:break-word">
<h3 style="margin:0 0 5.4px;color:#333333;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:18px;line-height:21.6px;margin-bottom:0;text-align:center;padding:0;font-style:normal;font-weight:normal">
<span>
<strong><%= stats_number_format_i18n(newsletter.opened) %>%</strong> <%= __('opened') %>
</span>
</h3>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse;width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px;word-break:break-word;word-wrap:break-word">
<h3 style="margin:0 0 5.4px;color:#333333;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:18px;line-height:21.6px;margin-bottom:0;text-align:center;padding:0;font-style:normal;font-weight:normal">
<span>
<strong><%= stats_number_format_i18n(newsletter.machineOpened) %>%</strong> <%= __('machine-opened') %>
</span>
</h3>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
</tr>
</tbody>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mailpoet_content-cols-two" align="left" style="border-collapse:collapse">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0">
<tbody>
<tr>
<td align="center" style="border-collapse:collapse;font-size:0">
<!--[if mso]>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse;width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px;word-break:break-word;word-wrap:break-word">
<h3 style="margin:0 0 5.4px;color:#333333;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:18px;line-height:21.6px;margin-bottom:0;text-align:center;padding:0;font-style:normal;font-weight:normal">
<span>
<strong><%= stats_number_format_i18n(newsletter.unsubscribed) %>%</strong> <%= __('unsubscribed') %>
</span>
</h3>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
<td width="330" valign="top">
<![endif]-->
<div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="border-collapse:collapse;width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0">
<tbody>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px;word-break:break-word;word-wrap:break-word">
<h3 style="margin:0 0 5.4px;color:#333333;font-family:'Courier New',Courier,'Lucida Sans Typewriter','Lucida Typewriter',monospace;font-size:18px;line-height:21.6px;margin-bottom:0;text-align:center;padding:0;font-style:normal;font-weight:normal">
<span>
<strong><%= stats_number_format_i18n(newsletter.bounced) %>%</strong> <%= __('bounced') %>
</span>
</h3>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso]>
</td>
</tr>
</tbody>
</table>
<![endif]-->
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<% endfor %>
<tr>
<td class="mailpoet_spacer" height="55" valign="top" style="border-collapse:collapse"></td>
</tr>
<% endblock %>
@@ -0,0 +1,19 @@
<% extends 'emails/statsNotificationLayout.txt' %>
<% block content %>
<%= __('Your monthly stats are in!') %>
<% for newsletter in newsletters %>
------------------------------------------
<%= newsletter.subject %>
<%= stats_number_format_i18n(newsletter.clicked) %>% <%= __('clicked') %> (<%= clicked_stats_text(newsletter.clicked) %>)
<%= stats_number_format_i18n(newsletter.opened) %>% <%= __('opened') %>
<%= stats_number_format_i18n(newsletter.machineOpened) %>% <%= __('machine-opened') %>
<%= stats_number_format_i18n(newsletter.unsubscribed) %>% <%= __('unsubscribed') %>
<%= stats_number_format_i18n(newsletter.bounced) %>% <%= __('bounced') %>
<%= __('View all stats') %>
<%= newsletter.linkStats %>
<% endfor %>
------------------------------------------
<% endblock %>
@@ -0,0 +1,133 @@
<html lang="<%= language() %>" style="margin:0;padding:0">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no" />
<title><%= subject %></title>
<style type="text/css"> @media screen and (max-width: 480px) {
.mailpoet_button {width:100% !important;}
}
@media screen and (max-width: 599px) {
.mailpoet_header {
padding: 10px 20px;
}
.mailpoet_button {
width: 100% !important;
padding: 5px 0 !important;
box-sizing:border-box !important;
}
div, .mailpoet_cols-two {
max-width: 100% !important;
}
}
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0;padding:0;background-color:#f0f0f0">
<table class="mailpoet_template" border="0" width="100%" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<% if preheader is defined %>
<td class="mailpoet_preheader" style="-webkit-text-size-adjust:none;font-size:1px;line-height:1px;color:#ffffff;border-collapse:collapse;display:none;visibility:hidden;mso-hide:all;max-height:0;max-width:0;opacity:0;overflow:hidden" height="1">
<%= preheader %>
</td>
<% endif %>
</tr>
<tr>
<td align="center" class="mailpoet-wrapper" valign="top" style="border-collapse:collapse;background-color:#f0f0f0"><!--[if mso]>
<table align="center" border="0" cellspacing="0" cellpadding="0"
width="660">
<tr>
<td class="mailpoet_content-wrapper" align="center" valign="top" width="660">
<![endif]--><table class="mailpoet_content-wrapper" border="0" width="660" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;max-width:660px;width:100%;border-collapse:collapse;background-color:#ffffff">
<tbody>
<% block content %><% endblock %>
<tr>
<td class="mailpoet_content-cols-two" align="left" style="border-collapse:collapse;background-color:#fe5301" bgcolor="#fe5301">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse">
<tbody>
<tr>
<td align="center" style="font-size:0;border-collapse:collapse"><!--[if mso]>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="330" valign="top">
<![endif]--><div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_spacer" bgcolor="#fe5301" height="24" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_image mailpoet_padded_vertical mailpoet_padded_side" align="left" valign="top" style="border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<img src="<%= cdn_url('logo-white-400x122.png') %>" width="130" alt="new_logo_white" style="height:auto;max-width:100%;-ms-interpolation-mode:bicubic;border:0;display:block;outline:none;text-align:center" />
</td>
</tr>
</tbody>
</table>
</div><!--[if mso]>
</td>
<td width="330" valign="top">
<![endif]--><div style="display:inline-block; max-width:330px; vertical-align:top; width:100%;">
<table width="330" class="mailpoet_cols-two" border="0" cellpadding="0" cellspacing="0" align="left" style="width:100%;max-width:330px;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;table-layout:fixed;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;border-collapse:collapse">
<tbody>
<tr>
<td class="mailpoet_spacer" bgcolor="#fe5301" height="20" valign="top" style="border-collapse:collapse"></td>
</tr>
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;padding-top:0;border-collapse:collapse;padding-bottom:20px;padding-left:20px;padding-right:20px">
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:right;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<span style="color: #ffffff;">
<a href="https://www.mailpoet.com/how-to-improve-open-rates/" title="<%= __('How to Improve Open and Click Rates') %>" style="color:#fff;text-decoration:underline">
<%= __('How to improve my open rate?') %>
</a>
</span>
</td>
</tr></table>
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:right;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<span style="color: #ffffff;"><a href="https://www.mailpoet.com/how-to-improve-click-rates/" title="<%= __('How to Improve Open and Click Rates') %>" style="color:#fff;text-decoration:underline">
<%= __('And my click rate?') %>
</a></span>
</td>
</tr></table>
<table style="border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;border-collapse:collapse" width="100%" cellpadding="0">
<tr>
<td class="mailpoet_paragraph" style="word-break:break-word;word-wrap:break-word;text-align:right;border-collapse:collapse;color:#000000;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:16px;line-height:25.6px">
<a href="<%= linkSettings %>" style="color:#fff;text-decoration:underline">
<%= __('Disable these emails') %>
</a>
</td>
</tr></table>
</td>
</tr>
</tbody>
</table>
</div><!--[if mso]>
</td>
</tr>
</tbody>
</table>
<![endif]--></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table><!--[if mso]>
</td>
</tr>
</table>
<![endif]--></td>
</tr>
</tbody>
</table>
</body>
</html>
@@ -0,0 +1,5 @@
<% block content %><% endblock %>
<%= __('How to improve my open rate?') %> https://www.mailpoet.com/how-to-improve-open-rates/
<%= __('And my click rate?') %> https://www.mailpoet.com/how-to-improve-click-rates/
<%= __('Disable these emails') %> <%= linkSettings %>
@@ -0,0 +1,24 @@
<% extends 'layout.html' %>
<% block content %>
<div class="wrap">
<h1 class="mailpoet-h1">Experimental features</h1>
<div class="mailpoet_notice notice notice-error">
<p>
<strong>These features are not finished, they are not meant to be used yet.</strong>
</p>
<p>
If you enable them anything can happen: your website may go down,
all your data can be deleted.
</p>
<p>
We are not liable.
</p>
</div>
<div id="experimental_features_container"></div>
</div>
<% endblock %>
@@ -0,0 +1,102 @@
<!-- date settings and block templates -->
<%= partial('form_template_date_years',
'form/templatesLegacy/blocks/date_years.hbs',
'_settings_date_years'
) %>
<%= partial('form_template_date_months',
'form/templatesLegacy/blocks/date_months.hbs',
'_settings_date_months'
) %>
<%= partial('form_template_date_days',
'form/templatesLegacy/blocks/date_days.hbs',
'_settings_date_days'
) %>
<%= partial('form_template_date', 'form/templatesLegacy/blocks/date.hbs') %>
<!-- field settings -->
<%= partial('form_template_field_settings', 'form/templatesLegacy/settings/field.hbs') %>
<%= partial('field_settings_label',
'form/templatesLegacy/settings/label.hbs',
'_settings_label'
) %>
<%= partial('field_settings_label_within',
'form/templatesLegacy/settings/label_within.hbs',
'_settings_label_within'
) %>
<%= partial('field_settings_required',
'form/templatesLegacy/settings/required.hbs',
'_settings_required'
) %>
<%= partial('field_settings_validate',
'form/templatesLegacy/settings/validate.hbs',
'_settings_validate'
) %>
<%= partial('field_settings_values',
'form/templatesLegacy/settings/values.hbs',
'_settings_values'
) %>
<%= partial('field_settings_date_default',
'form/templatesLegacy/settings/date_default.hbs',
'_settings_date_default'
) %>
<%= partial('field_settings_submit',
'form/templatesLegacy/settings/submit.hbs',
'_settings_submit'
) %>
<%= partial('field_settings_values_item',
'form/templatesLegacy/settings/values_item.hbs') %>
<%= partial(
'field_settings_date_format',
'form/templatesLegacy/settings/date_formats.hbs',
'_settings_date_format'
) %>
<%= partial(
'field_settings_date_type',
'form/templatesLegacy/settings/date_types.hbs',
'_settings_date_type'
) %>
<%= partial('field_settings_segment_selection_item',
'form/templatesLegacy/settings/segment_selection_item.hbs'
) %>
<%= partial('field_settings_segment_selection',
'form/templatesLegacy/settings/segment_selection.hbs',
'_settings_segment_selection'
) %>
<!-- custom field: new -->
<%= partial('form_template_field_form',
'form/templatesLegacy/settings/field_form.hbs'
) %>
<!-- field settings depending on field type -->
<script id="form_template_field_text" type="text/x-handlebars-template">
{{> _settings_required }}
{{> _settings_validate }}
</script>
<script id="form_template_field_textarea" type="text/x-handlebars-template">
{{> _settings_required }}
{{> _settings_validate }}
</script>
<script id="form_template_field_radio" type="text/x-handlebars-template">
{{> _settings_values }}
{{> _settings_required }}
</script>
<script id="form_template_field_checkbox" type="text/x-handlebars-template">
{{> _settings_values }}
{{> _settings_required }}
</script>
<script id="form_template_field_select" type="text/x-handlebars-template">
{{> _settings_values }}
{{> _settings_required }}
</script>
<script id="form_template_field_date" type="text/x-handlebars-template">
{{> _settings_required }}
{{> _settings_date_type }}
</script>
@@ -0,0 +1,215 @@
<% extends 'layout.html' %>
<% block container %>
<div class="block-editor">
<div id="mailpoet_form_edit" class="block-editor__container">
</div>
</div>
<script>
<% autoescape 'js' %>
var mailpoet_form_data = <%= json_encode(form) %>;
var mailpoet_form_exports = <%= json_encode(form_exports) %>;
var mailpoet_form_segments = <%= json_encode(segments) %>;
var mailpoet_custom_fields = <%= json_encode(custom_fields) %>;
var mailpoet_date_types = <%= json_encode(date_types) %>;
var mailpoet_date_formats = <%= json_encode(date_formats) %>;
var mailpoet_month_names = <%= json_encode(month_names) %>;
var mailpoet_form_preview_page = <%= json_encode(preview_page_url) %>;
var mailpoet_custom_fonts = <%= json_encode(custom_fonts) %>;
var mailpoet_translations = <%= json_encode(translations) %>;
var mailpoet_all_wp_posts = <%= json_encode(posts) %>;
var mailpoet_all_wp_pages = <%= json_encode(pages) %>;
var mailpoet_all_wp_categories = <%= json_encode(categories) %>;
var mailpoet_all_wp_tags = <%= json_encode(tags) %>;
var mailpoet_woocommerce_products = <%= json_encode(products) %>;
var mailpoet_woocommerce_categories = <%= json_encode(product_categories) %>;
var mailpoet_woocommerce_tags = <%= json_encode(product_tags) %>;
var mailpoet_close_icons_url = '<%= image_url("form_close_icon") %>';
var mailpoet_tutorial_seen = '<%= editor_tutorial_seen %>';
var mailpoet_tutorial_url = '<%= cdn_url('form-editor/tutorial.mp4') %>';
var mailpoet_is_administrator = <%= is_administrator ? 'true' : 'false' %>;
var mailpoet_form_edit_url = "<%= admin_url('admin.php?page=mailpoet-form-editor&id=') %>";
var mailpoet_theme_support_widgets = <%= theme_support_widgets ? 'true' : 'false' %>;
var mailpoet_theme_support_fse = <%= theme_support_fse ? 'true' : 'false' %>;
<% endautoescape %>
</script>
<style id="mailpoet-form-editor-form-styles"></style>
<%= localize({
'displayForm': __('Display the form'),
'enable': __('Enable'),
'addFormName': _x('Add form name', 'A placeholder for form name input'),
'back': __('Back'),
'form': __('Form'),
'formSettings': _x('Settings', 'A settings section heading'),
'formSettingsStyles': __('Styles'),
'formSettingsColor': __('Color'),
'formSettingsStylesBackground': __('Background'),
'formSettingsStylesBackgroundImage': __('Background Image'),
'formSettingsStylesSelectImage': __('Select Image…'),
'formSettingsStylesFontSize': __('Font Size'),
'formSettingsStylesFont': __('Font'),
'formSettingsStylesFontColorInherit': __('Inherit from theme'),
'formSettingsInheritStyleFromTheme': __('Inherit style from theme'),
'formSettingsDisplayFullWidth': _x('Display Fullwidth', 'A label for checkbox in form style settings'),
'formSettingsBold': _x('Bold', 'A label for checkbox in form style settings'),
'formSettingsBorderSize': _x('Border Size', 'A label for checkbox in form style settings'),
'formSettingsBorderRadius': _x('Border Radius', 'A label for checkbox in form style settings'),
'formSettingsInputPadding': _x('Input Padding', 'A label for form style settings'),
'formSettingsFormPadding': _x('Form Padding', 'A label for form style settings'),
'formSettingsAlignment': _x('Alignment', 'A label for form style settings'),
'formSettingsAlignmentLeft': _x('left', 'An alignment value for form editor'),
'formSettingsAlignmentCenter': _x('center', 'An alignment value for form editor'),
'formSettingsAlignmentRight': _x('right', 'An alignment value for form editor'),
'formSettingsBorder': _x('Border', 'A label for checkbox in form style settings'),
'formSettingsApplyToAll': __('Apply styles to all inputs'),
'formSettingsWidth': _x('Form width', 'A label for form width settings'),
'customFieldSettings': _x('Custom field settings', 'A settings section heading'),
'customFieldsFormSettings': _x('Form settings', 'A settings section heading'),
'formPlacement': _x('Form Placement', 'A settings section heading'),
'formPlacementLabel': _x('Form placement', 'A label for a select box'),
'customCss': _x('Custom CSS', 'A settings section heading'),
'formSaved': __('Form saved.'),
'formSavedAppendix': __('Cookies reset — you will see all your dismissed popup forms again.'),
'customFieldSaved': __('Custom field saved.'),
'placeFixedBarFormOnPages': _x('Fixed bar', 'This is a text on a widget that leads to settings for form placement - form type is fixed bar'),
'placeFixedBarFormOnPagesDescription': __('Display your form in a fixed horizontal bar at the top or bottom of posts or pages.'),
'placeSlideInFormOnPages': _x('Slidein', 'This is a text on a widget that leads to settings for form placement - form type is slide in'),
'placeSlideInFormOnPagesDescription': __('Display your form in a slidein form on top of your page content.'),
'placePopupFormOnPages': _x('Pop-up', 'This is a text on a widget that leads to settings for form placement - form type is pop-up, it will be displayed on page in a small modal window'),
'placePopupFormOnPagesDescription': __('Display your form in a pop-up window.'),
'exitIntentTitle': __('Display on exit-intent'),
'exitIntentDescription': __('Show the form immediately if the visitor attempts to leave the site.'),
'exitIntentSwitch': __('Exit-intent display'),
'placeFormBellowPages': _x('Below pages', 'This is a text on a widget that leads to settings for form placement'),
'placeFormBellowPagesDescription': __('This form placement allows you to add this form at the end of all the pages or posts, below the content.'),
'placeFormOnAllPages': _x('Display on all pages', 'This is a text on a switch if a form should be displayed bellow all pages'),
'placeFormOnAllPosts': _x('Display on all posts/products', 'This is a text on a switch if a form should be displayed bellow all posts'),
'placeFormOnHomepage': __('Display on the homepage'),
'placeFormOthers': _x('Others (widget)', 'Placement of the form using theme widget'),
'formPlacementDelay': _x('Display with a delay of', 'Label on a selection of different times'),
'formPlacementPlacementPosition': _x('Position', 'Placement of a fixed bar form, on top of the page or on the bottom'),
'formPlacementPlacementPositionTop': _x('top', 'Placement of a fixed bar form, on top of the page or on the bottom'),
'formPlacementPlacementPositionBottom': _x('bottom', 'Placement of a fixed bar form, on top of the page or on the bottom'),
'formPlacementPlacementPositionLeft': _x('left', 'Placement of a slide in form, on the left or right side of the page'),
'formPlacementPlacementPositionRight': _x('right', 'Placement of a slide in form, on the left or right side of the page'),
'formPlacementDelaySeconds': _x('%1s sec', 'times selection should be in the end "30 sec"'),
'formPlacementCookieExpiration': _x('Show form every', 'Label on a selection of different times'),
'formPlacementCookieExpirationAlways': _x('Always', 'times selection'),
'formPlacementCookieExpirationDay': _x('1 day', 'times selection should be in the end "1 day"'),
'formPlacementCookieExpirationDays': _x('%1s days', 'times selection should be in the end "7 days"'),
'formPlacementSave': _x('Close', 'Text on a button to save and close a form'),
'formPlacementOtherLabel': _x('Shortcode & other', 'Label in the form placement section (Other form placements)'),
'animationHeader': __('Show animation on display'),
'animationNone': _x('No Animation', 'Value in a selectbox with a list of animations'),
'addFormWidgetHint': __('You can add this form to a [link]widget area of your theme[/link] (new tab).'),
'addFormFSEHint': __('You can add this form to your site using the [link]site editor[/link] (new tab).'),
'addFormShortcodeHint': __('You can also use a block on any page or post, or this shortcode if you prefer [shortcode].'),
'addFormPhpIframeHint': __('When needed, use [link]PHP[/link] or an [link]iFrame[/link] HTML element.'),
'settingsListLabel': __('This form adds the subscribers to these lists'),
'settingsAfterSubmit': __('After submit…'),
'settingsShowMessage': __('Show message'),
'settingsGoToPage': __('Go to Page'),
'settingsPleaseSelectList': __('Please select a list'),
'fieldsBlocksCategory': __('Fields'),
'customFieldsBlocksCategory': __('Custom Fields'),
'layoutBlocksCategory': __('Layout'),
'customFieldNumberOfLines': __('Number of lines'),
'customFieldSaveCTA': _x('Update custom field', 'Text on the save button'),
'customFieldDeleteCTA': _x('Delete this custom field', 'Text on the delete button'),
'customFieldDeleteConfirm': __('This field will be deleted for all your subscribers. Are you sure?'),
'customFieldTypeText': __('Text Input'),
'customFieldTypeTextarea': __('Text Area'),
'customFieldTypeRadio': __('Radio buttons'),
'customFieldTypeCheckbox': __('Checkbox'),
'customFieldTypeSelect': _x('Select', 'Form input type'),
'selectPage': _x('Select', 'It is a placeholder in the select box - verb'),
'displayOnCategories': __('Display on posts with these categories'),
'displayOnAllCategoryArchives': __('Display on all post/product category archives'),
'displayOnTags': __('Display on posts with these tags'),
'displayOnAllTagArchives': __('Display on all post/product tag archives'),
'selectSpecificArchiveTags': __('Select specific tags'),
'selectSpecificArchiveCategories': __('Select specific categories'),
'customFieldTypeDate': __('Date'),
'customFieldDateType': __('Type of date'),
'customFieldDateFormat': __('Order'),
'customFieldDefaultToday': __('Preselect todays date'),
'customFieldDay': __('Day'),
'customFieldMonth': __('Month'),
'customFieldYear': __('Year'),
'customField1Line': _x('1 line', 'Number of rows in textarea'),
'customField2Lines': _x('2 lines', 'Number of rows in textarea'),
'customField3Lines': _x('3 lines', 'Number of rows in textarea'),
'customField4Lines': _x('4 lines', 'Number of rows in textarea'),
'customField5Lines': _x('5 lines', 'Number of rows in textarea'),
'customFieldValidateFor': __('Validate for'),
'customFieldValidateNothing': __('Nothing'),
'customFieldValidateNumbersOnly': __('Numbers only'),
'customFieldValidateAlphanumerical': __('Alphanumerical'),
'customFieldValidatePhoneNumber': __('Phone number, (+,-,#,(,) and spaces allowed)'),
'customFieldAddItem': __('Add item'),
'blockMandatory': __('Mandatory field'),
'blockFirstName': __('First name'),
'blockFirstNameDescription': __('Input field used to catch subscribers first names.'),
'blockLastName': __('Last name'),
'blockLastNameDescription': __('Input field used to catch subscribers last names.'),
'blockSegmentSelect': __('List selection'),
'blockLastNameDescription': __('Allow your subscribers to select which list(s) they want to subscribe to.'),
'blockSegmentSelectLabel': __('Select list(s):'),
'blockSegmentSelectNoLists': __('Please select at least one list'),
'blockSegmentSelectListLabel': __('Select the list that you want to add'),
'blockEmail': __('Email'),
'blockEmailDescription': __('Input field used to catch subscribers email addresses.'),
'blockSubmit': __('Submit button'),
'blockSubmitDescription': __('Button used to submit the form.'),
'blockSubmitLabel': _x('Subscribe!', 'a default value for a subscription form button'),
'missingObligatoryBlock': __('Email input or submit is missing. Try reloading the form editor.'),
'label': _x('Label', 'settings for a label of an input'),
'displayLabelWithinInput': __('Display label within input'),
'displayLabel': _x('Display label', 'Settings - if label should be displayed'),
'blockDivider': _x('Divider / Spacer', 'The name of the block in the editor'),
'blockCustomHtml' : __('Custom HTML'),
'blockCustomHtmlDescription': __('Display custom text or HTML code in your form.'),
'blockCustomHtmlDefault': __('Subscribe to our newsletter and join [mailpoet_subscribers_count] other subscribers.'),
'blockCustomHtmlContentLabel': _x('Custom text', 'Textarea label'),
'blockCustomHtmlNl2br': __('Automatically add paragraphs'),
'blockAddCustomField': __('Create Custom Field'),
'blockAddCustomFieldDescription': __('Create a new custom field for your subscribers.'),
'blockAddCustomFieldFormHeading': __('New Custom Field.'),
'blockCreateButton': _x('Create', 'Label on form submit button.'),
'customFieldName': _x('Field name', 'Label for form field for custom input name'),
'selectCustomFieldType': _x('Select a field type', 'Label for form field for custom input type'),
'customFieldWithNameExists': __('The custom field [name] already exists. Please choose another name.'),
'successMessage': __('This is what the success message looks like.'),
'errorMessage': __('This is what the error message looks like.'),
'formPreview': __('Form Preview'),
'formSettingsStylesFontFamily': __('Font Family'),
'formFontsDefaultTheme': __('Themes default fonts'),
'formFontsStandard': _x('Standard fonts', 'Heading in the font selection list: Arial, Times, ...'),
'formFontsCustom': _x('Custom fonts', 'Heading in the font selection list for a list of custom fonts'),
'blockSpacerHeight': _x('Height', 'Settings in the spacer block'),
'blockSpacerEnableDivider': _x('Enable Divider', 'Settings in the spacer block'),
'imagePlacementScale': _x('Scale', 'How a background image will be rendered: scale, fit or tile'),
'imagePlacementFit': _x('Fit', 'How a background image will be rendered: scale, fit or tile'),
'imagePlacementTile': _x('Tile', 'How a background image will be rendered: scale, fit or tile'),
'blockDividerStyle': _x('Divider Style', 'Settings in the divider block (solid, dotted, …)'),
'blockDividerStyleSolid': _x('Solid', 'Setting in the divider block'),
'blockDividerStyleDashed': _x('Dashed', 'Setting in the divider block'),
'blockDividerStyleDotted': _x('Dotted', 'Setting in the divider block'),
'blockDividerDividerHeight': _x('Divider Height', 'Settings in the divider block'),
'blockDividerDividerWidth': _x('Divider Width', 'Settings in the divider block'),
'blockDividerBackground': _x('Background', 'Settings in the divider block'),
'validationMessageColor': _x('Message Color', 'heading above the settings'),
'successValidationColorTitle': _x('Success', 'A label for the success message color'),
'errorValidationColorTitle': _x('Error', 'A label for the error message color'),
'formPreviewOthersDisclaimer': __('Psssst. We try our best to show you what the widget might look like, but better check the final result on your website.'),
'closeButtonHeading': __('Close Button Style'),
'tutorialHeading': __('A video tour of the form editor'),
'noName': _x('no name', 'fallback for forms without a name in a form list'),
'saveFormFirst': __('Please save the form first!'),
'addNewTag': __('Add New Tag'),
}) %>
<% endblock %>
@@ -0,0 +1,14 @@
<% block content %>
<% if(formType == 'others') %>
<div id="mailpoet_widget_preview" class="mailpoet_widget_preview">
<div id="sidebar" class="sidebar widget-area si-sidebar-container">
<div class="widget si-widget">
<%= form | raw %>
</div>
</div>
</div>
<% else %>
<%= post | raw %>
<%= form | raw %>
<% endif %>
<% endblock %>
@@ -0,0 +1,83 @@
<% block content %>
<% if(before_widget) %>
<%= before_widget | raw %>
<% endif %>
<% if(title) %>
<%= before_title | raw %><%= title | raw %><%= after_title | raw %>
<% endif %>
<div class="
mailpoet_form_popup_overlay
<% if(animation != '') %>
mailpoet_form_overlay_animation_<%= animation %>
mailpoet_form_overlay_animation
<% endif %>
"></div>
<div
id="<%= form_html_id %>"
class="
mailpoet_form
mailpoet_form_<%= form_type %>
mailpoet_form_position_<%= position %>
mailpoet_form_animation_<%= animation %>
"
<% if(is_preview) %>
data-is-preview="1"
data-editor-url="<%= editor_url %>"
<% endif %>
>
<style type="text/css">
<%= styles|raw %>
</style>
<form
target="_self"
method="post"
action="<%= admin_url('admin-post.php?action=mailpoet_subscription_form') %>"
class="mailpoet_form mailpoet_form_form mailpoet_form_<%= form_type %>"
novalidate
data-delay="<%= delay %>"
data-exit-intent-enabled="<%= enableExitIntent %>"
data-font-family="<%= fontFamily %>"
data-cookie-expiration-time="<%= cookieFormExpirationTime %>"
>
<input type="hidden" name="data[form_id]" value="<%= form_id %>" />
<input type="hidden" name="token" value="<%= token %>" />
<input type="hidden" name="api_version" value="<%= api_version %>" />
<input type="hidden" name="endpoint" value="subscribers" />
<input type="hidden" name="mailpoet_method" value="subscribe" />
<%= html | raw %>
<div class="mailpoet_message">
<p class="mailpoet_validate_success"
<% if not(success) %>
style="display:none;"
<% endif %>
><%= form_success_message %>
</p>
<p class="mailpoet_validate_error"
<% if not(error) %>
style="display:none;"
<% endif %>
><% if (error) %>
<%= __("An error occurred, make sure you have filled all the required fields.") %>
<% endif %>
</p>
</div>
</form>
<% if form_type == 'popup' or form_type == 'fixed_bar' or form_type == 'slide_in' %>
<input type="image"
class="mailpoet_form_close_icon"
alt="<%= __('Close') %>"
src='<%= image_url("form_close_icon/" ~ close_button_icon ~ ".svg") %>'
/>
<% endif %>
</div>
<% if(after_widget) %>
<%= after_widget | raw %>
<% endif %>
<% endblock %>
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <%= language_attributes | raw %>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <%= language_attributes | raw %>>
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<html <%= language_attributes | raw %>>
<script>
var additionalHeight = 10,
attemptsToAdjust = 3,
delayToAdjust = 400,
intervalHandle;
var sendSize = function() {
if(!attemptsToAdjust && intervalHandle !== undefined) {
window.clearInterval(intervalHandle)
return;
}
window.top.postMessage({MailPoetIframeHeight: document.body.scrollHeight + additionalHeight + 'px'}, '*');
attemptsToAdjust--;
};
window.addEventListener('load', function () {
sendSize();
if(!window.MutationObserver) {
intervalHandle = setInterval(sendSize, delayToAdjust);
return;
}
var observer = new MutationObserver(sendSize);
observer.observe(document.body, {
childList: true,
subtree: true
});
});
</script>
<!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="robots" content="noindex, nofollow">
<title><%= __('MailPoet Subscription Form') %></title>
<style>
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
color: rgb(40, 48, 61);
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: normal;
text-align: left;
}
</style>
<% set allowedHtml = {'link': {'href': [], 'rel': []}} %>
<%= fonts_link | wpKses(allowedHtml) %>
<link rel="stylesheet" type="text/css" href="<%= mailpoet_public_css_url %>" />
<%= scripts | raw %>
</head>
<body>
<%= form | raw %>
<script type="text/javascript">
var MailPoetForm = <%= json_encode(mailpoet_form) %>;
</script>
</body>
</html>
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,18 @@
<% extends 'layout.html' %>
<% block content %>
<div class="block-editor">
<div id="mailpoet_form_edit_templates">
</div>
</div>
<script>
<% autoescape 'js' %>
var mailpoet_templates = <%= json_encode(templates) %>;
var mailpoet_form_edit_url =
"<%= admin_url('admin.php?page=mailpoet-form-editor&template_id=') %>";
<% endautoescape %>
</script>
<style id="mailpoet-form-editor-form-styles"></style>
<% endblock %>
@@ -0,0 +1,50 @@
{{#if params.label}}
<p>
<label>{{ params.label }}{{#if params.required}} *{{/if}}</label>
</p>
{{/if}}
{{#ifCond params.date_type "==" "year_month_day"}}
{{#unless params.date_format}}
{{> _settings_date_months }}
{{> _settings_date_days }}
{{> _settings_date_years }}
{{/unless}}
{{#ifCond params.date_format "==" "MM/DD/YYYY"}}
{{> _settings_date_months }}
{{> _settings_date_days }}
{{> _settings_date_years }}
{{/ifCond}}
{{#ifCond params.date_format "==" "DD/MM/YYYY"}}
{{> _settings_date_days }}
{{> _settings_date_months }}
{{> _settings_date_years }}
{{/ifCond}}
{{#ifCond params.date_format "==" "YYYY/MM/DD"}}
{{> _settings_date_years }}
{{> _settings_date_months }}
{{> _settings_date_days }}
{{/ifCond}}
{{/ifCond}}
{{#ifCond params.date_type "==" "year_month"}}
{{#unless params.date_format}}
{{> _settings_date_months }}
{{> _settings_date_years }}
{{/unless}}
{{#ifCond params.date_format "==" "MM/YYYY"}}
{{> _settings_date_months }}
{{> _settings_date_years }}
{{/ifCond}}
{{#ifCond params.date_format "==" "YYYY/MM"}}
{{> _settings_date_years }}
{{> _settings_date_months }}
{{/ifCond}}
{{/ifCond}}
{{#ifCond params.date_type "==" "year"}}
{{> _settings_date_years }}
{{/ifCond}}
{{#ifCond params.date_type "==" "month"}}
{{> _settings_date_months }}
{{/ifCond}}
@@ -0,0 +1,11 @@
<% set currentDay = 'now' | date('d') | number_format %>
<select id="{{ id }}_days">
<option value=""><%= __('Day') %></option>
<% for day in 1..31 %>
<option
<% if(currentDay == day) %>
{{#if params.is_default_today}}selected="selected"{{/if}}
<% endif %>
><%= day %></option>
<% endfor %>
</select>
@@ -0,0 +1,13 @@
<% set currentMonth = 'now'|date('n') %>
<select id="{{ id }}_months">
<option value=""><%= __('Month') %></option>
<% for month in 1..12 %>
<option
<% if(currentMonth == month) %>
{{#if params.is_default_today}}selected="selected"{{/if}}
<% endif %>
>
<%= month_names[month - 1] %>
</option>
<% endfor %>
</select>
@@ -0,0 +1,13 @@
<% set currentYear = "now"|date("Y") %>
<% set minYear = currentYear - 100 %>
<select id="{{ id }}_years">
<option value=""><%= __('Year') %></option>
<% for year in currentYear..minYear %>
<option
<% if(currentYear == year) %>
{{#if params.is_default_today}}selected="selected"{{/if}}
<% endif %>
><%= year %></option>
<% endfor %>
</select>
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,23 @@
<p class="clearfix">
<label><%= __("Preselect today's date:") %></label>
<span class="group">
<label>
<input
class="mailpoet_radio"
type="radio"
name="params[is_default_today]"
value="1"
{{#if params.is_default_today}}checked="checked"{{/if}}
/><%= __('Yes') %>
</label>
<label>
<input
class="mailpoet_radio"
type="radio"
name="params[is_default_today]"
value=""
{{#unless params.is_default_today}}checked="checked"{{/unless}}
/><%= __('No') %>
</label>
</span>
</p>
@@ -0,0 +1,23 @@
<% for date_type, formats in date_formats %>
{{#ifCond params.date_type "===" "<%= date_type %>"}}
<% if(formats | length == 1) %>
<!-- display format as hidden value -->
<input type="hidden" name="params[date_format]" value="<%= formats[0] %>" />
<% else %>
<!-- display label -->
<p class="clearfix">
<label><%= __('Order') %></label>
<!-- display all possible date formats -->
<select name="params[date_format]">
<% for format in formats %>
<option
{{#ifCond params.date_format "===" "<%= format %>"}}
selected="selected"
{{/ifCond}}
value="<%= format %>"><%= format %></option>
<% endfor %>
</select>
</p>
<% endif %>
{{/ifCond}}
<% endfor %>
@@ -0,0 +1,28 @@
<p class="clearfix">
<label><%= __('Type of date') %></label>
<select name="params[date_type]">
<% for type, label in date_types %>
<option
{{#ifCond params.date_type "==" "<%= type %>"}}
selected="selected"
{{/ifCond}}
data-format="<%= date_formats[type][0] %>" value="<%= type %>"
><%= label %></option>
<% endfor %>
</select>
<input type="hidden" name="params[date_format]" value="" />
</p>
<script type="text/javascript">
jQuery(function($) {
$('select[name="params[date_type]"]').on('change', function() {
// set default date format depending on date type
$('input[name="params[date_format]"]')
.val($(this)
.find('option:selected')
.data('format'));
});
// set default format
$('select[name="params[date_type]"]').trigger('change');
});
<{{!}}/script>
@@ -0,0 +1,77 @@
<form id="form_field_settings" name="form_field_settings" action="" method="post">
{{#ifCond type 'in' 'submit'}}
{{> _settings_label }}
{{/ifCond}}
{{#ifCond type '==' 'text'}}
{{> _settings_label }}
{{> _settings_label_within }}
{{#ifCond id 'in' 'first_name,last_name' }}
{{> _settings_required }}
{{/ifCond}}
{{/ifCond}}
{{#ifCond type '==' 'textarea'}}
{{> _settings_label }}
{{> _settings_label_within }}
<p class="clearfix">
<label><%= __('Number of lines:') %></label>
<select name="params[lines]">
<% for i in 1..5 %>
<option value="<%= i %>"
{{#ifCond params.lines '==' <%= i %>}}selected="selected"{{/ifCond}}
><%= _n('1 line', '%d lines', i) | format(i) %></option>
<% endfor %>
</select>
</p>
{{/ifCond}}
{{#ifCond type 'in' 'checkbox,radio'}}
{{> _settings_label }}
{{/ifCond}}
{{#ifCond type '==' 'segment'}}
{{> _settings_label }}
{{> _settings_segment_selection }}
{{/ifCond}}
{{#ifCond type '==' 'select'}}
{{> _settings_label }}
{{> _settings_label_within }}
{{/ifCond}}
{{#ifCond type '==' 'date'}}
{{> _settings_label }}
{{> _settings_date_default }}
{{> _settings_date_format }}
{{/ifCond}}
{{#ifCond type '==' 'html'}}
<textarea name="params[text]" class="mailpoet_form_field_settings_text">{{ params.text }}</textarea>
<p class="clearfix">
<label>
<input type="hidden" name="params[nl2br]" value="0" />
<input
class="mailpoet_checkbox"
type="checkbox"
name="params[nl2br]"
{{#ifCond params.nl2br ">" 0}}checked="checked"{{/ifCond}}
value="1"
/>&nbsp;<%= __('Automatically add paragraphs') %>
</label>
</p>
{{/ifCond}}
{{> _settings_submit }}
</form>
<script type="text/javascript">
jQuery(function($) {
$(document).on('submit', '#form_field_settings', function(e) {
// trigger callback
MailPoet.Modal.success();
return false;
});
});
<{{!}}/script>
@@ -0,0 +1,96 @@
<form
id="form_field_new"
name="form_field_new"
action=""
method="post"
data-parsley-validate="true"
>
{{#if id}}<input type="hidden" id="field_id" name="id" value="{{ id }}" />{{/if}}
<p>
<label for="field_type"><%= __('Select a field type:') %></label>
<select
id="field_type"
name="type"
data-parsley-required="true"
data-parsley-required-message="<%= __('Please specify a type.') %>"
>
<option value="">--</option>
<option
{{#ifCond type '==' 'text'}}selected="selected"{{/ifCond}}
value="text"><%= __('Text Input') %>
</option>
<option
{{#ifCond type '==' 'textarea'}}selected="selected"{{/ifCond}}
value="textarea"><%= __('Text Area') %>
</option>
<option
{{#ifCond type '==' 'radio'}}selected="selected"{{/ifCond}}
value="radio"><%= __('Radio buttons') %>
</option>
<option
{{#ifCond type '==' 'checkbox'}}selected="selected"{{/ifCond}}
value="checkbox"><%= __('Checkbox') %>
</option>
<option
{{#ifCond type '==' 'select'}}selected="selected"{{/ifCond}}
value="select"><%= _x('Select', 'Form input type') %>
</option>
<option
{{#ifCond type '==' 'date'}}selected="selected"{{/ifCond}}
value="date"><%= __('Date') %>
</option>
</select>
</p>
<p>
<label for="field_name"><%= __("Field name:") %></label>
<input
id="field_name"
type="text"
name="name"
value="{{ name }}"
data-parsley-required="true"
data-parsley-required-message="<%= __('Please specify a name.') %>"
/>
</p>
<hr />
<div class="field_type_form"></div>
<p class="mailpoet_align_right">
<input type="submit" value="<%= __('Done') %>" class="button-primary" />
</p>
</form>
<script type="text/javascript">
jQuery(function($) {
$(function() {
loadFieldForm();
});
$('#form_field_new #field_type').on('change', function() {
loadFieldForm($(this).val());
});
function loadFieldForm(type) {
type = (type === undefined) ? $('#form_field_new #field_type').val() : type;
if(type !== '') {
var template = Handlebars.compile($('#form_template_field_'+type).html()),
data = {type: type},
field_id = $('#form_field_new #field_id').val();
if(field_id !== undefined && field_id.length > 0) {
var params = $('.mailpoet_form_field[wysija_id="'+field_id+'"]').attr('wysija_params');
if(params !== undefined) {
data.params = JSON.parse(params);
}
}
// render field template
$('#form_field_new .field_type_form').html(template(data));
} else {
$('#form_field_new .field_type_form').html('');
}
}
});
</script>
@@ -0,0 +1,4 @@
<p class="clearfix">
<label for="label"><%= __('Label:') %></label>
<input id="label" type="text" name="params[label]" value="{{ params.label }}" />
</p>
@@ -0,0 +1,11 @@
<p class="clearfix">
<label><%= __('Display label within input:') %></label>
<span class="group">
<label>
<input class="mailpoet_radio" type="radio" name="params[label_within]" value="1" {{#if params.label_within}}checked="checked"{{/if}} /><%= __('Yes') %>
</label>
<label>
<input class="mailpoet_radio" type="radio" name="params[label_within]" value="" {{#unless params.label_within}}checked="checked"{{/unless}} /><%= __('No') %>
</label>
</span>
</p>
@@ -0,0 +1,20 @@
<p class="clearfix">
<label><%= __('Is this field mandatory?') %></label>
<span class="group">
<label>
<input type="radio"
class="mailpoet_radio"
name="params[required]"
value="1"
{{#if params.required}}checked="checked"{{/if}} /><%= __('Yes') %>
</label>
<label>
<input
class="mailpoet_radio"
type="radio"
name="params[required]"
value=""
{{#unless params.required}}checked="checked"{{/unless}} /><%= __('No') %>
</label>
</span>
</p>
@@ -0,0 +1,130 @@
<ul id="mailpoet_segment_selection" class="clearfix"></ul>
<div id="mailpoet_segment_available_container">
<h3><%= __('Select the list that you want to add:') %></h3>
<select class="mailpoet_segment_available"></select>
<a href="javascript:;" class="mailpoet_segment_add"><span><%= __('Add') %></span></a>
</div>
<script type="text/javascript">
jQuery(function($) {
<% autoescape false %>
var selected_segments = {{#if params.values}}{{{ json_encode params.values }}}
{{else}}[]{{/if}};
<% endautoescape %>
$(function() {
mailpoet_segment_available_render();
mailpoet_segment_selection_render();
setInputNames();
// add segment
$('.mailpoet_segment_add').on('click', function() {
// add currently selected segment to the selection
var selected_segment = $('.mailpoet_segment_available :selected');
// add segment to selection
selected_segments.push({
id: selected_segment.val(),
name: selected_segment.text(),
is_checked: 0
});
// remove segment from available segments
selected_segment.remove();
// render selection
mailpoet_segment_selection_render();
setInputNames();
});
// remove segment
$('#mailpoet_segment_selection').on('click', '.remove', function(e) {
if($('#mailpoet_segment_selection').children().length === 1) {
return e.preventDefault();
}
var element = $(this).parents('li');
// remove currently selected segment to the selection
var selected_segment = parseInt(element.data('segment'), 10);
// remove segment from selection
selected_segments = selected_segments.filter(function(segment) {
return (parseInt(segment.id, 10) !== selected_segment);
});
// remove element
element.remove();
// render available segment
mailpoet_segment_available_render();
setInputNames();
});
});
function setupSortableSegments() {
// make segment selection sortable
Sortable.create('mailpoet_segment_selection', {
handles: $$('#mailpoet_segment_selection .handle'),
onChange: function(item) {
setInputNames();
}
});
}
function mailpoet_segment_available_render() {
// clear available segments
$('.mailpoet_segment_available').html('');
var selected_segment_ids = selected_segments.map(function(segment) {
return segment.id;
});
// display available segments
$.each(mailpoet_segments, function(i, segment) {
if($.inArray(segment.id, selected_segment_ids) < 0) {
$('.mailpoet_segment_available').append(
'<option value="'+segment.id+'">'+segment.name+'</option>'
);
}
});
mailpoet_segment_available_toggle();
}
function mailpoet_segment_selection_render() {
// segment item template
var template = Handlebars.compile(
$('#field_settings_segment_selection_item').html()
);
// update view
$('#mailpoet_segment_selection').html(
template({ segments: selected_segments })
);
mailpoet_segment_available_toggle();
}
function mailpoet_segment_available_toggle() {
// toggle visibility of available segments
if($('.mailpoet_segment_available option').length === 0) {
$('#mailpoet_segment_available_container').hide();
} else {
$('#mailpoet_segment_available_container').show();
}
}
function setInputNames() {
$('#mailpoet_segment_selection li').each(function(index, item) {
$(item).find('.mailpoet_is_checked').attr('name', 'params[values]['+index+'][is_checked]');
$(item).find('.mailpoet_segment_id').attr('name', 'params[values]['+index+'][id]');
$(item).find('.mailpoet_segment_name').attr('name', 'params[values]['+index+'][name]');
});
setupSortableSegments();
}
});
<{{!}}/script>
@@ -0,0 +1,13 @@
{{#each segments}}
<li data-segment="{{ id }}">
<label>
<input class="mailpoet_segment_id" type="hidden" value="{{ id }}" />
<input class="mailpoet_is_checked" type="checkbox" value="1"
{{#ifCond is_checked '>' 0}}checked="checked"{{/ifCond}} />
<input class="mailpoet_segment_name" type="hidden" value="{{ name }}" />
{{ name }}
</label>
<a class="remove" href="javascript:;"><%= __('Remove') %></a>
<a class="handle" href="javascript:;"><%= __('Move') %></a>
</li>
{{/each}}
@@ -0,0 +1,3 @@
<p class="mailpoet_align_right">
<input type="submit" value="<%= __('Done') %>" class="button-primary" />
</p>
@@ -0,0 +1,24 @@
<p class="clearfix">
<label><%= __('Validate for:') %></label>
<select name="params[validate]">
<option {{#ifCond params.validate '==' ''}}selected="selected"{{/ifCond}}
value="">
<%= __('Nothing') %>
</option>
<option {{#ifCond params.validate '==' 'number'}}selected="selected"{{/ifCond}}
value="number">
<%= __('Numbers only') %>
</option>
<option {{#ifCond params.validate '==' 'alphanum'}}selected="selected"{{/ifCond}}
value="alphanum">
<%= __('Alphanumerical') %>
</option>
<option {{#ifCond params.validate '==' 'phone'}}selected="selected"{{/ifCond}}
value="phone">
<%= __('Phone number, (+,-,#,(,) and spaces allowed)') %>
</option>
</select>
</p>
@@ -0,0 +1,82 @@
<div class="mailpoet_multiple_values">
<ul></ul>
{{#ifCond type 'in' 'radio,select'}}
<a href="javascript:;" class="add"><span></span><%= __('Add item') %></a>
{{/ifCond}}
</div>
<script type="text/javascript">
jQuery(function($) {
{{#if params.values}}
var field_values = {{{ json_encode params.values }}};
{{else}}
var field_values = [{ value: '' }];
{{/if}}
var field_type = "{{ type }}";
var template = Handlebars.compile($('#field_settings_values_item').html());
// set default value for checkbox type if there is no value defined
if(field_type === 'checkbox' && field_values.length !== 1) {
if(field_values.length > 1) {
field_values = [field_values[0]];
} else {
// push a default empty value
field_values = [{}];
}
}
$(function() {
// render all values by creating inputs
for(var i = 0, count = field_values.length; i < count; i++) {
createInput(template, field_values[i]);
}
// set inputs name
setInputNames();
// add value
$('.mailpoet_multiple_values .add').on('click', function() {
createInput(template);
setInputNames();
});
// remove value
$(document).on('click', '.mailpoet_multiple_values li .remove', function() {
$(this).parent('li').remove();
setInputNames();
});
// create an input
function createInput(template, values) {
var data = values || {};
// set field type
data.type = field_type;
// add input to selection
$('.mailpoet_multiple_values ul').append(template(data));
}
// set input names (since their index is based on their position)
function setInputNames() {
$('.mailpoet_multiple_values li').each(function(index, item) {
$(item).find('.is_checked').attr('name', 'params[values]['+index+'][is_checked]');
$(item).find('.value').attr('name', 'params[values]['+index+'][value]');
});
// hide remove button if only one item remains
if ($('.mailpoet_multiple_values li').length > 1) {
$('.mailpoet_multiple_values .remove').show();
} else {
$('.mailpoet_multiple_values .remove').hide();
}
}
{{#ifCond type '!=' 'checkbox'}}
$('.mailpoet_multiple_values').on('click', '.is_checked', function() {
// get click checkbox's state
var is_checked = $(this).is(':checked');
// uncheck all checkboxes
$('.mailpoet_multiple_values .is_checked').removeProp('checked');
// toggle clicked checkbox
if(is_checked === false) {
$(this).removeProp('checked');
} else {
$(this).prop('checked', 'checked');
}
});
{{/ifCond}}
});
});
<{{!}}/script>
@@ -0,0 +1,22 @@
<li class="clearfix">
{{#ifCond type 'in' 'radio,select'}}
<input class="is_checked radio" type="radio" name=""
{{#if is_checked}}checked="checked"{{/if}} value="1"/>
{{else}}
<input class="is_checked checkbox" type="checkbox" name=""
{{#if is_checked}}checked="checked"{{/if}} value="1"/>
{{/ifCond}}
<input
type="text"
name=""
class="value"
value="{{ value }}"
data-parsley-errors-messages-disabled="true"
data-parsley-required="true"
/>
{{#ifCond type 'in' 'radio,select'}}
<a class="remove" href="javascript:;"><%= __('Remove') %></a>
{{/ifCond}}
</li>
@@ -0,0 +1,97 @@
<% extends 'layout.html' %>
<% block content %>
<div id="forms_container"></div>
<div>
<p class="mailpoet_sending_methods_help help">
<% set allowedHtml = {'a': {'href': [], 'target': [], 'id': []}, 'strong': {}} %>
<%= __('<strong>Tip:</strong> check out [link]this list[/link] of form plugins that integrate with MailPoet.')
|replaceLinkTags('https://kb.mailpoet.com/article/198-list-of-forms-plugins-that-work-with-mailpoet?utm_source=plugin&utm_medium=settings&utm_campaign=helpdocs', {'target': '_blank', id: 'mailpoet_helper_link'})
|wpKses(allowedHtml)
%>
</p>
</div>
<script type="text/javascript">
var mailpoet_listing_per_page = <%= items_per_page %>;
var mailpoet_segments = <%= json_encode(segments) %>;
var mailpoet_form_template_selection_url =
"<%= admin_url('admin.php?page=mailpoet-form-editor-template-selection') %>";
var mailpoet_form_edit_url =
"<%= admin_url('admin.php?page=mailpoet-form-editor&id=') %>";
var mailpoet_display_nps_poll = <%= json_encode(display_nps_survey) %>;
<%if display_nps_survey %>
var mailpoet_display_nps_form = true;
var mailpoet_current_wp_user = <%= json_encode(current_wp_user) %>;
var mailpoet_current_wp_user_firstname = '<%= current_wp_user_firstname %>';
var mailpoet_review_request_illustration_url = '<%= cdn_url('review-request/review-request-illustration.20190815-1427.svg') %>';
<%endif%>
</script>
<%= localize({
'pageTitle': __('Forms'),
'searchLabel': __('Search'),
'loadingItems': __('Loading forms...'),
'noItemsFound': __('No forms were found. Why not create a new one?'),
'permanentlyDeleted': __('%d forms permanently deleted.'),
'selectBulkAction': __('Select bulk action'),
'bulkActions': __('Bulk Actions'),
'apply': __('Apply'),
'filter': __('Filter'),
'emptyTrash': __('Empty Trash'),
'selectAll': __('Select All'),
'restore': __('Restore'),
'deletePermanently': __('Delete Permanently'),
'status': __('Status'),
'active': __('Active'),
'inactive': __('Not Active'),
'formActivated': __('Your Form is now activated!'),
'previousPage': __('Previous page'),
'firstPage': __('First page'),
'nextPage': __('Next page'),
'lastPage': __('Last page'),
'currentPage': __('Current Page'),
'pageOutOf': __('of'),
'numberOfItemsSingular': __('1 item'),
'numberOfItemsMultiple': __('%1$d items'),
'formName': __('Name'),
'noName': _x('no name', 'fallback for forms without a name in a form list'),
'segments': __('Lists'),
'type': __('Type'),
'userChoice': __('User choice:'),
'signups': __('Sign-ups'),
'updatedAt': __('Modified date'),
'oneFormTrashed': __('1 form was moved to the trash.'),
'multipleFormsTrashed': __('%1$d forms were moved to the trash.'),
'oneFormDeleted': __('1 form was permanently deleted.'),
'multipleFormsDeleted': __('%1$d forms were permanently deleted.'),
'oneFormRestored': __('1 form has been restored from the trash.'),
'multipleFormsRestored': __('%1$d forms have been restored from the trash.'),
'edit': __('Edit'),
'duplicate': __('Duplicate'),
'formDuplicated': __('Form "%1$s" has been duplicated.'),
'trash': __('Trash'),
'moveToTrash': __('Move to trash'),
'new': __('New Form'),
'placeFormBellowPages': _x('Below pages', 'This is a text on a widget that leads to settings for form placement'),
'placeFixedBarFormOnPages': _x('Fixed bar', 'This is a text on a widget that leads to settings for form placement - form type is fixed bar'),
'placeSlideInFormOnPages': _x('Slidein', 'This is a text on a widget that leads to settings for form placement - form type is slide in'),
'placePopupFormOnPages': _x('Pop-up', 'This is a text on a widget that leads to settings for form placement - form type is pop-up, it will be displayed on page in a small modal window'),
'placeFormOthers': _x('Others (widget)', 'Placement of the form using theme widget'),
'formSettingsCorrupted': __('Form settings of "%1$s" form are corrupted. Please [link]reconfigure the form in the editor[/link].'),
}) %>
<% endblock %>
<% block after_javascript %>
<script type="text/javascript">
jQuery('#mailpoet_helper_link').on('click', function() {
MailPoet.trackEvent('Forms page > link to doc page');
});
</script>
<% endblock %>
@@ -0,0 +1,87 @@
<% extends 'layout.html' %>
<% block content %>
<div id="mailpoet_help">
<script type="text/javascript">
var systemInfoData = <%= json_encode(systemInfoData) %>;
var systemStatusData = <%= json_encode(systemStatusData) %>;
var actionSchedulerData = <%= json_encode(actionSchedulerData) %>;
</script>
<div id="help_container"></div>
</div>
<%= localize({
'tabKnowledgeBaseTitle': __('Knowledge Base'),
'tabSystemInfoTitle': __('System Info'),
'tabSystemStatusTitle': __('System Status'),
'tabYourPrivacyTitle': __('Your Privacy'),
'systemStatusIntroCronMSS': __('For the plugin to work, it must be able to establish connection with the task scheduler and the key activation/MailPoet Sending Service.'),
'systemStatusCronTitle': __('Task Scheduler'),
'systemStatusMSSTitle': __('Connection to the MailPoet Sending Service'),
'systemStatusMSSConnectionUnsuccessfulInfo': __('Please contact our technical support for assistance.'),
'systemStatusMSSConnectionCanConnect': __('Your installation can connect to our sending service.'),
'knowledgeBaseIntro': __('Click on one of these categories below to find more information:'),
'knowledgeBaseButton': __('Visit our Knowledge Base for more articles'),
'systemInfoIntro': __('The information below is useful when you need to get in touch with our support. Just copy all the text below and paste it into a message to us.'),
'systemInfoDataError': __('Sorry, there was an error, please try again later.'),
'copyToClipboard': __('Copy to clipboard'),
'copyToClipboardSuccess': __('Copied to clipboard.'),
'copyToClipboardFailure': __('Could not copy to clipboard.'),
'systemStatusCronStatusTitle': __('Cron'),
'systemStatusQueueTitle': __('Sending Queue'),
'yourPrivacyContent1': __('MailPoet respects your privacy. We dont track any information about your website or yourself without your explicit consent.'),
'yourPrivacyContent2': __('Third-party services used within the plugin may track information such as your email & IP address.'),
'yourPrivacyContent3': __('If you send with MailPoet, we track data that is used to ensure that the service works correctly.'),
'yourPrivacyButton': __('Read our Privacy Notice'),
'lastUpdated': _x('Last updated', 'A label in a status table e.g. Last updated: 2018-10-18 18:50'),
'lastRunStarted': _x('Last run started', 'A label in a status table e.g. Last run started: 2018-10-18 18:50'),
'lastRunCompleted': _x('Last run completed', 'A label in a status table e.g. Last run completed: 2018-10-18 18:50'),
'lastSeenError': _x('Last seen error', 'A label in a status table e.g. Last seen error: Process timeout'),
'lastSeenErrorDate': _x('Last seen error date', 'A label in a status table e.g. Last seen error date: 2018-10-18 18:50'),
'unknown': _x('unknown', 'An unknown state is a status table e.g. Last run started: unknown'),
'accessible': _x('Accessible', 'A label in a status table e.g. Accessible: yes'),
'status': __('Status'),
'yes': __('yes'),
'no': __('no'),
'none': _x('none', 'An empty state is a status table e.g. Error: none'),
'running': _x('running', 'A state of a process.'),
'paused': _x('paused', 'A state of a process.'),
'cronWaiting': _x('waiting for the next run', 'A state of a process.'),
'startedAt': _x('Started at', 'A label in a status table e.g. Started at: 2018-10-18 18:50'),
'sentEmails': _x('Sent emails', 'A label in a status table e.g. Sent emails: 50'),
'retryAttempt': _x('Retry attempt', 'A label in a status table e.g. Retry attempt: 2'),
'retryAt': _x('Retry at', 'A label in a status table e.g. Retry at: 2018-10-18 18:50'),
'error': _x('Error', 'A label in a status table e.g. Error: missing data'),
'totalCompletedTasks': __('Total completed tasks'),
'totalScheduledTasks': __('Total scheduled tasks'),
'totalCancelledTasks': __('Total cancelled tasks'),
'totalRunningTasks': __('Total running tasks'),
'totalPausedTasks': __('Total paused tasks'),
'scheduledTasks': __('Scheduled sending tasks'),
'runningTasks': __('Running sending tasks'),
'completedTasks': __('Completed sending tasks'),
'cancelledTasks': __('Cancelled sending tasks'),
'pausedTasks': __('Paused sending tasks'),
'type': _x('Type', 'Table column heading for task type.'),
'email': __('Email'),
'subscriber': __('Subscriber'),
'multipleSubscribers': _x('Multiple subscribers', 'Used when multiple subscribers are selected for a task and we don\'t list them all.'),
'priority': _x('Priority', 'Table column heading for task priority (number).' ),
'scheduledAt': __('Scheduled at'),
'cancelledAt': __('Cancelled at'),
'updatedAt': __('Updated at'),
'action': _x('Action', 'Table column heading to perform an action.'),
'nothingToShow': __('Nothing to show.'),
'preview': _x('Preview', 'Text of a link to email preview page.'),
'actionSchedulerStatus': __('WP Cron / Action Scheduler Status'),
'version': __('Version'),
'storage': __('Storage type'),
'latestActionSchedulerTrigger': _x('Next trigger run', 'Label for the next date and time of background job trigger run.'),
'latestActionSchedulerCompletedTrigger': _x('Last trigger run', 'Label for the last date and time of background job trigger run.'),
'latestActionSchedulerCompletedRun': _x('Last worker run', 'Label for the last date and time of background job worker run.'),
}) %>
<% endblock %>
@@ -0,0 +1,107 @@
<% extends 'layout.html' %>
<% block content %>
<div id="mailpoet_homepage_container">
</div>
<script>
<% autoescape 'js' %>
var mailpoet_mta_log = <%= json_encode(mta_log) %>;
var mailpoet_homepage_data = <%= json_encode(homepage) %>;
<% endautoescape %>
</script>
<%= localize({
'welcomeToMailPoet': __('Welcome to MailPoet 🎉'),
'beginByCompletingSetup': __('Begin by completing your setup'),
'hideList': __('Hide setup list'),
'senderSetTask': _x('Add your sender information', 'Link in a task list'),
'senderSetTaskDone': _x('Sender information added!', 'Link in a task list'),
'mssConnectedTask': _x('Connect MailPoet Sending Service', 'Link in a task list'),
'mssConnectedTaskDone': _x('MailPoet Sending Service activated!', 'Link in a task list'),
'wooSubscribersImportedTask': _x('Import WooCommerce subscribers', 'Link in a task list'),
'wooSubscribersImportedTaskDone': _x('WooCommerce subscribers imported!', 'Link in a task list'),
'subscribersAddedTask': _x('Import existing subscribers', 'Link in a task list'),
'subscribersAddedTaskDoneByImport': _x('Subscribers imported!', 'Link in a task list'),
'subscribersAddedTaskDoneByForm': _x('Subscription form created!', 'Link in a task list'),
'senderDomainAuthenticatedTask': _x('Authenticate your sender domain', 'Link in a task list'),
'senderDomainAuthenticatedTaskDone': _x('Sender domain authenticated!', 'Link in a task list'),
'improveDeliveryRates': __('Improve email delivery rates'),
'youAreSet': _x('Youre all set!', 'Part of string "Youre all set! Dismiss setup list"'),
'dismissList': _x('Dismiss setup list', 'Part of string "Youre all set! Dismiss setup list"'),
'noSubscribersQuestion': _x('No subscribers yet?', 'Part of string "No subscribers yet? Set up a subscription form"'),
'setUpForm': _x('Set up a subscription form', 'Part of string "No subscribers yet? Set up a subscription form"'),
'haveSubscribersQuestion': _x('Have existing subscribers?', 'Part of string "Have existing subscribers? Import"'),
'import': _x('Import', 'Part of string "Have existing subscribers? Import"'),
'startEngagingWithYourCustomers': __('Start engaging with your customers'),
'setUpWelcomeCampaign': __('Set up a welcome campaign'),
'setUpWelcomeCampaignDesc': __('Choose from our list of templates or start with a blank editor'),
'setUpWelcomeCampaignDone': __('You started a welcome campaign'),
'addSubscriptionForm': __('Add a subscription form'),
'addSubscriptionFormDesc': __('Collect new contacts from signup forms'),
'addSubscriptionFormDone': __('You added a subscription form'),
'sendFirstNewsletter': __('Send your first newsletter'),
'sendFirstNewsletterDesc': __('Drive traffic with newsletters that are easy to build and measure'),
'sendFirstNewsletterDone': __('You sent or scheduled your first newsletter'),
'setUpAbandonedCartEmail': __('Set up an abandoned cart email'),
'setUpAbandonedCartEmailDesc': __('Create customized email sequences with our new automation editor'),
'setUpAbandonedCartEmailDone': __('You set up an abandoned cart campaign'),
'brandWooEmails': __('Brand your WooCommerce transactional emails'),
'brandWooEmailsDesc': __('Make your store notification emails shine'),
'brandWooEmailsDone': __('You branded your transactional emails'),
'allDone': _x('All done!', 'Part of string "All done! Dismiss tasks"'),
'dismissTasks': _x('Dismiss tasks', 'Part of string "All done! Dismiss tasks"'),
'accelerateYourGrowth': __('Accelerate your growth with our Business plan'),
'detailedAnalytics': __('Detailed analytics'),
'advancedSubscriberSegmentation': __('Advanced subscriber segmentation'),
'emailMarketingAutomations': __('Email marketing automations'),
'prioritySupport': __('Priority support'),
'upgradePlan': __('Upgrade plan'),
'close': __('Close'),
'subscribersHeading': __('Subscribers'),
'subscribersSectionDescription': __('Changes in the last 30 days'),
'newSubscribers': __('new'),
'unsubscribedSubscribers': _x('unsubscribed', 'Label for a number of subscribers who unsubscribed from email delivery'),
'subscribedSubscribers': _x('subscribed', 'Label for a number of subscribers who subscribed to email delivery'),
'listName': __('List name'),
'listScore': __('List score'),
'unknownBadgeName': __('Unknown'),
'unknownBadgeTooltip': __('Not enough data.'),
'tooltipUnknown': __('Fewer than 3 emails sent'),
'excellentBadgeName': __('Excellent'),
'excellentBadgeTooltip': __('Congrats!'),
'tooltipExcellent': __('50% or more'),
'goodBadgeName': __('Good'),
'goodBadgeTooltip': __('Good stuff.'),
'tooltipGood': __('between 20 and 50%'),
'averageBadgeName': __('Low'),
'averageBadgeTooltip': __('Something to improve.'),
'tooltipAverage': __('20% or fewer'),
'engagementScoreDescription': __('Average percent of emails subscribers read in the last year'),
'changesWillAppear': __('Changes to your audience will appear here.'),
'starBySettingUpForm': __('Start by setting up a subscription form.'),
'subscriberCountHasNotChangeLongTime': __('Your subscriber count hasnt changed in the last 30 days. Launch a new campaign to grow your audience.'),
'createForm': _x('Create a subscription form', 'Cta link title'),
'exploreCampaigns': _x('Explore campaigns', 'Cta link title'),
'learnMoreAboutEmailMarketing': __('Learn more about email marketing'),
'createAnEmailTitle': __('Create an Email: Types of Campaigns'),
'createAnEmailAbstract': __('MailPoet allows you to create five different types of campaigns: Newsletter, Welcome Email, Latest Post Notifications, Re-engagement Emails, and WooCommerce behavior-based emails. Each one has a different purpose and you can read more about it in this article.'),
'createAFormTitle': __('Create a Subscription Form'),
'createAFormAbstract': __('You can create sign-up forms with the MailPoet form editor, to gather new subscribers for your email campaign.'),
'segmentationGuideTitle': __('The beginners guide to segmentation'),
'segmentationGuideAbstract': __('Do you still have just one big email list for all your subscribers? If so, youre probably not getting the best performance. The good news is that email segmentation is a relatively straightforward way to enhance what youre already doing.'),
'reEngagementTitle': __('Re-Engagement Emails: Examples and Best Practices to Win Back Subscribers'),
'reEngagementAbstract': __('Beyond people unsubscribing, you might also have people who stop engaging with your emails. By sending re-engagement emails, you have a chance to win back those unengaged subscribers and get them to start opening and clicking your emails again.'),
'marketingStrategyTitle': __('Why You Need a Newsletter Marketing Strategy + How to Make One'),
'marketingStrategyAbstract': __('Your email list is only as valuable as the number of engaged subscribers on it. This makes it essential to create an effective long-term newsletter marketing strategy.'),
'promotingSalesTitle': __('How to promote your sales with email marketing and segmentation'),
'promotingSalesAbstract': __('Planning a sale? Discounts are great, but when youre competing against millions of other online stores, "build it and they will come" isnt a winning strategy. Instead, you can ensure the success of your sale by learning how to use email marketing to promote it.'),
'pageOf': _x('Page %1$d of %2$d', 'Page 1 of 3'),
'previousPostsPage': _x('Next page with posts', 'Title of a link to a previous page of posts'),
'nextPostsPage': _x('Previous page with posts', 'Title of a link to a next page of posts'),
}) %>
<% endblock %>
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,12 @@
<% extends 'layout.html' %>
<% block content %>
<div id="mailpoet_landingpage_container"></div>
<script type="text/javascript">
<% autoescape 'js' %>
var mailpoet_welcome_wizard_url = <%= json_encode(welcome_wizard_url) %>;
var mailpoet_welcome_wizard_current_step = <%= json_encode(welcome_wizard_current_step) %>;
<% endautoescape %>
</script>
<% endblock %>
@@ -0,0 +1,217 @@
<!-- pre connect to 3d party to speed up page loading -->
<link rel="preconnect" href="https://widget.docsbot.ai/">
<link rel="dns-prefetch" href="https://widget.docsbot.ai/">
<link rel="preconnect" href="http://cdn.mxpnl.com">
<link rel="dns-prefetch" href="http://cdn.mxpnl.com">
<!-- system notices -->
<div id="mailpoet_notice_system" class="mailpoet_notice" style="display:none;"></div>
<!-- handlebars templates -->
<% block templates %><% endblock %>
<!-- main container -->
<% block container %>
<div class="wrap">
<div class="wp-header-end"></div>
<!-- notices -->
<div id="mailpoet_notice_error" class="mailpoet_notice" style="display:none;"></div>
<div id="mailpoet_notice_success" class="mailpoet_notice" style="display:none;"></div>
<!-- React notices -->
<div id="mailpoet_notices"></div>
<!-- Set FROM address modal React root -->
<div id="mailpoet_set_from_address_modal"></div>
<!-- Set Authorize sender email React root -->
<div id="mailpoet_authorize_sender_email_modal"></div>
<!-- title block -->
<% block title %><% endblock %>
<!-- content block -->
<% block content %><% endblock %>
</div>
<% endblock %>
<script type="text/javascript">
var mailpoet_wp_locale = "<%= get_locale() %>";
var mailpoet_datetime_format = "<%= wp_datetime_format()|escape('js') %>";
var mailpoet_date_format = "<%= wp_date_format()|escape('js') %>";
var mailpoet_time_format = "<%= wp_time_format()|escape('js') %>";
var mailpoet_date_offset = <%= json_encode(get_option('gmt_offset')) %>;
var mailpoet_version = "<%= mailpoet_version() %>";
var mailpoet_locale = "<%= mailpoet_locale() %>";
var mailpoet_wp_week_starts_on = "<%= wp_start_of_week() %>";
var mailpoet_urls = <%= json_encode(urls) %>;
var mailpoet_premium_version = <%= json_encode(mailpoet_premium_version()) %>;
var mailpoet_main_page_slug = <%= json_encode(main_page) %>;
var mailpoet_3rd_party_libs_enabled = <%= is_loading_3rd_party_enabled() | json_encode %>;
var mailpoet_analytics_enabled = <%= is_analytics_enabled() | json_encode %>;
var mailpoet_analytics_public_id = <%= json_encode(get_analytics_public_id()) %>;
var mailpoet_analytics_new_public_id = <%= is_analytics_public_id_new() | json_encode %>;
var mailpoet_free_domains = <%= json_encode(mailpoet_free_domains()) %>;
var mailpoet_woocommerce_active = <%= json_encode(is_woocommerce_active()) %>;
var mailpoet_woocommerce_subscriptions_active = <%= json_encode(is_woocommerce_subscriptions_active) %>;
var mailpoet_woocommerce_store_config = <%= json_encode(woocommerce_store_config) %>;
// RFC 5322 standard; http://emailregex.com/ combined with https://google.github.io/closure-library/api/goog.format.EmailAddress.html#isValid
var mailpoet_email_regex = /(?=^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$)(?=^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})))/;
var mailpoet_feature_flags = <%= json_encode(feature_flags) %>;
var mailpoet_referral_id = <%= json_encode(referral_id) %>;
var mailpoet_wp_segment_state = <%= json_encode(wp_segment_state) %>;
var mailpoet_mta_method = '<%= mta_method %>';
var mailpoet_tracking_config = <%= json_encode(tracking_config) %>;
var mailpoet_is_new_user = <%= json_encode(is_new_user == true) %>;
var mailpoet_installed_days_ago = <%= json_encode(installed_days_ago) %>;
var mailpoet_send_transactional_emails = <%= json_encode(send_transactional_emails) %>;
var mailpoet_transactional_emails_opt_in_notice_dismissed = <%= json_encode(transactional_emails_opt_in_notice_dismissed) %>;
var mailpoet_deactivate_subscriber_after_inactive_days = <%= json_encode(deactivate_subscriber_after_inactive_days) %>;
var mailpoet_woocommerce_version = <%= json_encode(get_woocommerce_version()) %>;
var mailpoet_track_wizard_loaded_via_woocommerce = <%= json_encode(track_wizard_loaded_via_woocommerce) %>;
var mailpoet_track_wizard_loaded_via_woocommerce_marketing_dashboard = <%= json_encode(track_wizard_loaded_via_woocommerce_marketing_dashboard) %>;
var mailpoet_mail_function_enabled = '<%= mail_function_enabled %>';
var mailpoet_admin_plugins_url = '<%= admin_plugins_url %>';
var mailpoet_is_dotcom = <%= json_encode(is_dotcom()) %>;
var mailpoet_cron_trigger_method = <%= json_encode(cron_trigger_method) %>;
var mailpoet_site_name = '<%= site_name %>';
var mailpoet_site_url = "<%= site_url %>";
var mailpoet_site_address = '<%= site_address %>';
// Premium status
var mailpoet_current_wp_user_email = '<%= current_wp_user_email|escape('js') %>';
var mailpoet_premium_link = <%= json_encode(link_premium) %>;
var mailpoet_premium_plugin_installed = <%= json_encode(premium_plugin_installed) %>;
var mailpoet_premium_active = <%= json_encode(premium_plugin_active) %>;
var mailpoet_premium_plugin_download_url = <%= json_encode(premium_plugin_download_url) %>;
var mailpoet_premium_plugin_activation_url = <%= json_encode(premium_plugin_activation_url) %>;
var mailpoet_has_valid_api_key = <%= json_encode(has_valid_api_key) %>;
var mailpoet_has_valid_premium_key = <%= json_encode(has_valid_premium_key) %>;
var mailpoet_has_premium_support = <%= json_encode(has_premium_support) %>;
var has_mss_key_specified = <%= json_encode(has_mss_key_specified) %>;
var mailpoet_mss_key_invalid = <%= json_encode(mss_key_invalid) %>;
var mailpoet_mss_key_valid = <%= json_encode(mss_key_valid) %>;
var mailpoet_mss_key_pending_approval = '<%= mss_key_pending_approval %>';
var mailpoet_mss_active = <%= json_encode(mss_active) %>;
var mailpoet_plugin_partial_key = '<%= plugin_partial_key %>';
var mailpoet_subscribers_count = <%= subscriber_count %>;
var mailpoet_subscribers_counts_cache_created_at = <%= json_encode(subscribers_counts_cache_created_at) %>;
var mailpoet_subscribers_limit = <%= subscribers_limit ? subscribers_limit : 'false' %>;
var mailpoet_subscribers_limit_reached = <%= json_encode(subscribers_limit_reached) %>;
var mailpoet_email_volume_limit = <%= json_encode(email_volume_limit) %>;
var mailpoet_email_volume_limit_reached = <%= json_encode(email_volume_limit_reached) %>;
var mailpoet_capabilities = <%= json_encode(capabilities) %>;
var mailpoet_tier = <%= json_encode(tier) %>;
var mailpoet_cdn_url = <%= json_encode(cdn_url("")) %>;
var mailpoet_tags = <%= json_encode(tags) %>;
<% if not(premium_plugin_active) %>
var mailpoet_free_premium_subscribers_limit = <%= free_premium_subscribers_limit %>;
<% endif %>
</script>
<%= localize({
'topBarLogoTitle': __('Back to section root'),
'topBarUpdates': __('Updates'),
'whatsNew': __("Whats new"),
'updateMailPoetNotice': __('[link]Update MailPoet[/link] to see the latest changes'),
'ajaxFailedErrorMessage': __('An error has happened while performing a request, the server has responded with response code %d'),
'ajaxTimeoutErrorMessage': __('An error has happened while performing a request, the server request has timed out after %d seconds'),
'senderEmailAddressWarning1': _x('You might not reach the inbox of your subscribers if you use this email address.', 'In the last step, before sending a newsletter. URL: ?page=mailpoet-newsletters#/send/2'),
'senderEmailAddressWarning3': _x('Read more.'),
'mailerSendingNotResumedUnauthorized': __('Failed to resume sending because the email address is unauthorized. Please authorize it and try again.'),
'dismissNotice': __('Dismiss this notice.'),
'confirmEdit': __('Sending is in progress. Do you want to pause sending and edit the newsletter?'),
'confirmAutomaticNewsletterEdit': __('To edit this email, it needs to be deactivated. You can activate it again after you make the changes.'),
'subscribersLimitNoticeTitle': __('Action required: Upgrade your plan for more than [subscribersLimit] subscribers!'),
'subscribersLimitNoticeTitleUnknownLimit': __('Action required: Upgrade your plan!'),
'subscribersLimitReached': __('Congratulations on reaching over [subscribersLimit] subscribers!'),
'subscribersLimitReachedUnknownLimit': __('Congratulations, you now have more subscribers than your plans limit!'),
'freeVersionLimit': __('Our free version is limited to [subscribersLimit] subscribers.'),
'yourPlanLimit': __('Your plan is limited to [subscribersLimit] subscribers.'),
'youNeedToUpgrade': __('To continue using MailPoet without interruption, its time to upgrade your plan.'),
'actToSeamlessService': __('Act now to ensure seamless service to your growing audience.'),
'checkHowToManageSubscribers': __('Alternatively, [link]check how to manage your subscribers[/link] to keep your numbers below your plans limit.'),
'upgradeNow': __('Upgrade Now'),
'refreshMySubscribers': __('Refresh subscriber limit'),
'emailVolumeLimitNoticeTitle': __('Congratulations, you sent more than [emailVolumeLimit] emails this month!'),
'emailVolumeLimitNoticeTitleUnknownLimit': __('Congratulations, you sent a lot of emails this month!'),
'youReachedEmailVolumeLimit': __('You have sent more emails this month than your MailPoet plan includes ([emailVolumeLimit]), and sending has been temporarily paused.'),
'youReachedEmailVolumeLimitUnknownLimit': __('You have sent more emails this month than your MailPoet plan includes, and sending has been temporarily paused.'),
'toContinueUpgradeYourPlanOrWaitUntil': __('To continue sending with MailPoet Sending Service please [link]upgrade your plan[/link], or wait until sending is automatically resumed on <b>[date]</b>.'),
'refreshMyEmailVolumeLimit': __('Refresh monthly email limit'),
'manageSenderDomainHeaderSubtitle': __('To help your audience and MailPoet authenticate you as the domain owner, please add the following DNS records to your domains DNS and click “Verify the DNS records”. Please note that it may take up to 24 hours for DNS changes to propagate after you make the change. [link]Read the guide[/link].', 'mailpoet'),
'sent': __('Sent'),
'notSentYet': __('Not sent yet!'),
'renderingProblem': __('There was a problem with rendering!', 'mailpoet'),
'allSendingPausedHeader': __('All sending is currently paused!'),
'allSendingPausedBody': __('Your [link]API key[/link] to send with MailPoet is invalid.'),
'allSendingPausedPremiumValidBody': __('You are not allowed to use the MailPoet sending service with your current API key. Kindly upgrate to a [link]MailPoet sending plan[/link] or switch your [link]sending method[/link].'),
'allSendingPausedLink': __('Purchase a key'),
'allSendingPausedPremiumValidLink': __('Upgrade the plan'),
'cronPingErrorHeader': __('There is an issue with the MailPoet task scheduler'),
'systemStatusConnectionSuccessful': __('Connection successful.'),
'systemStatusConnectionUnsuccessful': __('Connection unsuccessful.'),
'systemStatusCronConnectionUnsuccessfulInfo': __('Please consult our [link]knowledge base article[/link] for troubleshooting tips.'),
'systemStatusIntroCron': __('For the plugin to work, it must be able to establish connection with the task scheduler.'),
'bridgePingErrorHeader': __('There is an issue with the connection to the MailPoet Sending Service'),
'systemStatusMSSConnectionCanNotConnect': __('Currently, your installation can not reach the sending service. If you want to use our service please consult our [link]knowledge base article[/link] for troubleshooting tips.'),
'transactionalEmailNoticeTitle': __('Good news! MailPoet can now send your websites emails too'),
'transactionalEmailNoticeBody': __('All of your WordPress and WooCommerce emails are sent with your hosting company, unless you have an SMTP plugin. Would you like such emails to be delivered with MailPoets active sending method for better deliverability?'),
'transactionalEmailNoticeBodyReadMore': _x('Read more.', 'This is a link that leads to more information about transactional emails'),
'transactionalEmailNoticeCTA': _x('Enable', 'Button, after clicking it we will enable transactional emails'),
'mailerSendErrorNotice': __('Sending has been paused due to a technical issue with %1$s'),
'mailerSendErrorCheckConfiguration': __('Please check your sending method configuration, you may need to consult with your hosting company.'),
'mailerSendErrorUseSendingService': __('The easy alternative is to <b>send emails with MailPoet Sending Service</b> instead, like thousands of other users do.'),
'mailerSendErrorSignUpForSendingService': __('Sign up for free in minutes'),
'mailerConnectionErrorNotice': __('Sending is paused because the following connection issue prevents MailPoet from delivering emails'),
'mailerErrorCode': __('Error code: %1$s'),
'mailerCheckSettingsNotice': __('Check your [link]sending method settings[/link].'),
'mailerResumeSendingButton': __('Resume sending'),
'mailerResumeSendingAfterUpgradeButton': __('I have upgraded my subscription, resume sending'),
'topBarLogoTitle': __('Back to section root'),
'close': __('Close'),
'today': __('Today'),
}) %>
<% block after_translations %><% endblock %>
<% if is_analytics_enabled() %>
<% include 'analytics.html' %>
<% endif %>
<% if display_docsbot_widget and not is_dotcom_ecommerce_plan() %>
<script type="text/javascript">window.DocsBotAI=window.DocsBotAI||{},DocsBotAI.init=function(c){return new Promise(function(e,o){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://widget.docsbot.ai/chat.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n),t.addEventListener("load",function(){window.DocsBotAI.mount({id:c.id,supportCallback:c.supportCallback,identify:c.identify,options:c.options});var t;t=function(n){return new Promise(function(e){if(document.querySelector(n))return e(document.querySelector(n));var o=new MutationObserver(function(t){document.querySelector(n)&&(e(document.querySelector(n)),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})},t&&t("#docsbotai-root").then(e).catch(o)}),t.addEventListener("error",function(t){o(t.message)})})};</script>
<script type="text/javascript">
DocsBotAI.init({
id: "TqTdebbGjJeUjrmBIFjh/kzFE5FBebBJiSJ2Tm0nR",
// We want to redirect users to the proper page depending on their plan
supportCallback: function (event, history) {
<% if has_premium_support %>
const mailpoet_redirect_support_link = 'https://www.mailpoet.com/support/premium/';
<% else %>
const mailpoet_redirect_support_link = 'https://wordpress.org/support/plugin/mailpoet/';
<% endif %>
event.preventDefault(); // Prevent default behavior opening the url.
window.open(mailpoet_redirect_support_link, '_blank');
},
}).then(() => {
// stopping propagation to avoid conflicts with other keydown events form WP.com
function writingFixer (e) {
e.stopPropagation();
}
document.getElementById('docsbotai-root').addEventListener("keydown", writingFixer);
})
</script>
<% endif %>
<div id="mailpoet-modal"></div>
@@ -0,0 +1,22 @@
<% extends 'layout.html' %>
<% block content %>
<div class="wrap">
<h1 class="mailpoet-h1">Logs</h1>
<div id="mailpoet_logs_container"></div>
<script type="text/javascript">
<% autoescape 'js' %>
var mailpoet_logs = <%= json_encode(logs) %>;
var mailpoet_logs_default_from = '<%= logs_default_from %>';
<% endautoescape %>
</script>
</div>
<%= localize({
'pageTitle': __('Logs'),
}) %>
<% endblock %>
@@ -0,0 +1,26 @@
<%= localize({
'welcomeWizardMSSFirstPartTitle': _x('Connect your MailPoet account', 'Promotion for our email sending service: Title'),
'welcomeWizardMSSFirstPartSubtitle': _x('To start sending emails, create and connect a MailPoet account with your site. With a MailPoet account, youll get:', 'Promotion for our email sending service: Paragraph'),
'welcomeWizardMSSList1': _x('Emails that reach inboxes, not spam boxes', 'Promotion for our email sending service: Feature item'),
'welcomeWizardMSSList2': _x('Less hassle setting up, as we would manage all the configurations', 'Promotion for our email sending service: Feature item'),
'welcomeWizardMSSList3Free': _x('Start sending for free and scale as you grow', 'Promotion for our email sending service: Feature item'),
'welcomeWizardMSSList3Paid': _x('Super fast: send up to 50,000 emails per hour', 'Promotion for our email sending service: Feature item'),
'welcomeWizardMSSFirstPartButton': _x('Connect MailPoet', 'Promotion for our email sending service: Button'),
'welcomeWizardMSSAdvancedUsers': _x('(For advanced users) You can choose to use MailPoet with your own email delivery service. [link]Ill set up my own email service[/link].', 'Promotion for our email sending service: message for users about not using MSS'),
'welcomeWizardMSSConfirmationModalTitle': _x('Confirm sending service selection', 'Promotion for our email sending service: title of the modal where the user confirms that they want to use their own sending service'),
'welcomeWizardMSSConfirmationModalFirstParagraph': _x('Are you sure that you would like to continue using your own email delivery service? This would require configuring your web host or a third-party email delivery service to work with the MailPoet plugin.', 'Promotion for our email sending service: first paragraph of the modal where the user confirms that they want to use their own sending service'),
'welcomeWizardMSSConfirmationModalFirstParagraphWithoutMailFunction': _x('Are you sure that you would like to continue using your own email delivery service? This would require configuring a third-party email delivery service to work with the MailPoet plugin.', 'Promotion for our email sending service: first paragraph of the modal where the user confirms that they want to use their own sending service'),
'welcomeWizardMSSConfirmationModalSecondParagraph': _x('We do not recommend this option if you are unfamiliar with setting up your own email service.', 'Promotion for our email sending service: second paragraph of the modal where the user confirms that they want to use their own sending service'),
'welcomeWizardMSSConfirmationModalGoBackButton': _x('Go back', 'Promotion for our email sending service: go back button'),
'welcomeWizardMSSConfirmationModalOkButton': _x('Yes, Ill use my own service', 'Promotion for our email sending service: confirm button'),
'welcomeWizardMSSSecondPartTitle': _x('Activate your MailPoet account', 'Promotion for our email sending service: title of the second part'),
'welcomeWizardMSSSecondPartEnterKey': __('Enter your activation key to validate your account.'),
'welcomeWizardMSSSecondPartNoAccount': __('Dont have one yet? [link]Sign up for a MailPoet plan[/link].'),
'welcomeWizardMSSSecondPartInputLabel': __('Activation key'),
'welcomeWizardMSSSecondPartInputPlaceholder': __('Enter your key here'),
'welcomeWizardMSSSecondPartButton': __('Verify account'),
'welcomeWizardMSSThirdPartTitle': _x('MailPoet account connected', 'Promotion for our email sending service: title of the third part'),
'welcomeWizardMSSThirdPartFirstParagraph': __('You have successfully connected your MailPoet account.'),
'welcomeWizardMSSThirdPartSecondParagraph': __('Start using MailPoet to send beautiful emails that reach inboxes every time, and create loyal subscribers.'),
'welcomeWizardMSSThirdPartButton': __('Start using MailPoet'),
}) %>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,6 @@
<div class="mailpoet_tools"></div>
<div class="mailpoet_abandoned_cart_content_block_overlay" data-automation-id="acc_overlay">
<span class="mailpoet_overlay_message"><%= __('This is only a preview! Your customers will see the product(s) they left in their shopping cart.') %></span>
</div>
<div class="mailpoet_abandoned_cart_content_container"></div>
<div class="mailpoet_block_highlight"></div>
@@ -0,0 +1,7 @@
<h3><%= __('Display options') %></h3>
<div class="mailpoet_settings_abandoned_cart_content_display_options"></div>
<div class="mailpoet_settings_abandoned_cart_content_controls">
<div class="mailpoet_form_field">
<input type="button" class="button button-primary mailpoet_done_editing" value="<%= __('Done') | escape('html_attr') %>" />
</div>
</div>
@@ -0,0 +1,199 @@
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_display_type" class="mailpoet_products_display_type" value="titleOnly" {{#ifCond model.displayType '==' 'titleOnly'}}CHECKED{{/ifCond}}/>
<%= __('Title only') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_display_type" class="mailpoet_products_display_type" value="excerpt" {{#ifCond model.displayType '==' 'excerpt'}}CHECKED{{/ifCond}}/>
<%= __('Title and a short description') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_display_type" class="mailpoet_products_display_type" value="full" {{#ifCond model.displayType '==' 'full'}}CHECKED{{/ifCond}} />
<%= __('Title and description') %>
</label>
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Title Format') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_format" class="mailpoet_products_title_format" value="h1" {{#ifCond model.titleFormat '==' 'h1'}}CHECKED{{/ifCond}}/>
<%= __('Heading 1') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_format" class="mailpoet_products_title_format" value="h2" {{#ifCond model.titleFormat '==' 'h2'}}CHECKED{{/ifCond}}/>
<%= __('Heading 2') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_format" class="mailpoet_products_title_format" value="h3" {{#ifCond model.titleFormat '==' 'h3'}}CHECKED{{/ifCond}}/>
<%= __('Heading 3') %>
</label>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Title Alignment') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_alignment" class="mailpoet_products_title_alignment" value="left" {{#ifCond model.titleAlignment '==' 'left'}}CHECKED{{/ifCond}} />
<%= __('Left') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_alignment" class="mailpoet_products_title_alignment" value="center" {{#ifCond model.titleAlignment '==' 'center'}}CHECKED{{/ifCond}} />
<%= __('Center') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_alignment" class="mailpoet_products_title_alignment" value="right" {{#ifCond model.titleAlignment '==' 'right'}}CHECKED{{/ifCond}} />
<%= __('Right') %>
</label>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= _x('Make the product title into a link', 'Display the product title into a link') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_as_links" class="mailpoet_products_title_as_links" value="true" {{#if model.titleIsLink}}CHECKED{{/if}}/>
<%= __('Yes') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_as_links" class="mailpoet_products_title_as_links" value="false" {{#unless model.titleIsLink}}CHECKED{{/unless}}/>
<%= __('No') %>
</label>
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field mailpoet_products_title_position {{#ifCond model.displayType '===' 'titleOnly'}}mailpoet_hidden{{/ifCond}}">
<div class="mailpoet_form_field_title"><%= _x('Product title position', 'Setting in the email designer to position an ecommerce product title') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_position" class="mailpoet_products_title_position" value="abovePost" {{#ifCond model.titlePosition '!=' 'aboveExcerpt'}}CHECKED{{/ifCond}}/>
<%= _x('Above the product', 'Display the product title above the product block') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_title_position" class="mailpoet_products_title_position" value="aboveExcerpt" {{#ifCond model.titlePosition '==' 'aboveExcerpt'}}CHECKED{{/ifCond}}/>
<%= _x('Above the product description', 'Display the product title above the product description') %>
</label>
</div>
</div>
<hr class="mailpoet_separator mailpoet_products_title_position_separator {{#ifCond model.displayType '===' 'titleOnly'}}mailpoet_hidden{{/ifCond}}" />
<div> <!-- empty div for better git diff -->
<div class="mailpoet_form_field mailpoet_products_featured_image_position_container">
<div class="mailpoet_form_field_title"><%= __('Product image position') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_featured_image_position" class="mailpoet_products_featured_image_position" value="centered" {{#ifCond model.featuredImagePosition '==' 'centered' }}CHECKED{{/ifCond}}/>
<%= __('Centered') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_featured_image_position" class="mailpoet_products_featured_image_position" value="left" {{#ifCond model.featuredImagePosition '==' 'left' }}CHECKED{{/ifCond}}/>
<%= __('Left') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_featured_image_position" class="mailpoet_products_featured_image_position" value="right" {{#ifCond model.featuredImagePosition '==' 'right' }}CHECKED{{/ifCond}}/>
<%= __('Right') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_featured_image_position" class="mailpoet_products_featured_image_position" value="alternate" {{#ifCond model.featuredImagePosition '==' 'alternate' }}CHECKED{{/ifCond}}/>
<%= __('Alternate') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_featured_image_position" class="mailpoet_products_featured_image_position" value="none" {{#ifCond model.featuredImagePosition '==' 'none' }}CHECKED{{/ifCond}}/>
<%= __('None') %>
</label>
</div>
</div>
<div class="mailpoet_form_field mailpoet_products_image_full_width_option {{#ifCond model.displayType '==' 'titleOnly'}}mailpoet_hidden{{/ifCond}}">
<div class="mailpoet_form_field_title"><%= __('Image width') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="imageFullWidth" class="mailpoet_products_image_full_width" value="true" {{#if model.imageFullWidth}}CHECKED{{/if}}/>
<%= __('Full width') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="imageFullWidth" class="mailpoet_products_image_full_width" value="false" {{#unless model.imageFullWidth}}CHECKED{{/unless}}/>
<%= __('Padded') %>
</label>
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Price') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_price_position" class="mailpoet_products_price_position" value="below" {{#ifCond model.pricePosition '==' 'below'}}CHECKED{{/ifCond}} />
<%= __('Below text') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_price_position" class="mailpoet_products_price_position" value="above" {{#ifCond model.pricePosition '==' 'above'}}CHECKED{{/ifCond}} />
<%= __('Above text') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_price_position" class="mailpoet_products_price_position" value="hidden" {{#ifCond model.pricePosition '==' 'hidden'}}CHECKED{{/ifCond}} />
<%= __('No') %>
</label>
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title mailpoet_form_field_title_small mailpoet_form_field_title_inline"><%= __('Show divider between products') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_show_divider" class="mailpoet_products_show_divider" value="true" {{#if model.showDivider}}CHECKED{{/if}}/>
<%= __('Yes') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_products_show_divider"class="mailpoet_products_show_divider" value="false" {{#unless model.showDivider}}CHECKED{{/unless}}/>
<%= __('No') %>
</label>
</div>
<div class="mailpoet_form_field_input_option">
<a href="javascript:;" class="mailpoet_products_select_divider"><%= __('Select divider') %></a>
</div>
</div>
</div>
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/block-icons/acc-block.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('Abandoned Cart Content') %></div>
@@ -0,0 +1,6 @@
<div class="mailpoet_tools"></div>
<div class="mailpoet_content">
<div class="mailpoet_automated_latest_content_block_overlay"></div>
<div class="mailpoet_automated_latest_content_block_posts"></div>
</div>
<div class="mailpoet_block_highlight"></div>
@@ -0,0 +1,301 @@
<h3><%= __('Post selection') %></h3>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Show max:') %></div>
<div class="mailpoet_form_field_input_option">
<input type="text" class="mailpoet_input mailpoet_input_small mailpoet_automated_latest_content_show_amount" value="{{ model.amount }}" maxlength="2" size="2" />
<select class="mailpoet_select mailpoet_select_large mailpoet_automated_latest_content_content_type">
<option value="post" {{#ifCond model.contentType '==' 'post'}}SELECTED{{/ifCond}}><%= __('Posts') %></option>
<option value="page" {{#ifCond model.contentType '==' 'page'}}SELECTED{{/ifCond}}><%= __('Pages') %></option>
<option value="mailpoet_page" {{#ifCond model.contentType '==' 'mailpoet_page'}}SELECTED{{/ifCond}}><%= __('MailPoet pages') %></option>
</select>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_select_option">
<select class="mailpoet_select mailpoet_automated_latest_content_categories_and_tags" multiple="multiple">
{{#each model.terms}}
<option value="{{ id }}" selected="selected">{{ text }}</option>
{{/each}}
</select>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_include_or_exclude" class="mailpoet_automated_latest_content_include_or_exclude" value="include" {{#ifCond model.inclusionType '==' 'include'}}CHECKED{{/ifCond}}/>
<%= __('Include') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_include_or_exclude" class="mailpoet_automated_latest_content_include_or_exclude" value="exclude" {{#ifCond model.inclusionType '==' 'exclude'}}CHECKED{{/ifCond}} />
<%= __('Exclude') %>
</label>
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field">
<a href="javascript:;" class="mailpoet_automated_latest_content_show_display_options"><%= __('Display options') %></a>
</div>
<div class="mailpoet_automated_latest_content_display_options mailpoet_closed">
<div class="mailpoet_form_field">
<a href="javascript:;" class="mailpoet_automated_latest_content_hide_display_options"><%= __('Hide display options') %></a>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_display_type" class="mailpoet_automated_latest_content_display_type" value="excerpt" {{#ifCond model.displayType '==' 'excerpt'}}CHECKED{{/ifCond}}/>
<%= __('Excerpt') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_display_type" class="mailpoet_automated_latest_content_display_type" value="full" {{#ifCond model.displayType '==' 'full'}}CHECKED{{/ifCond}}/>
<%= __('Full post') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_display_type" class="mailpoet_automated_latest_content_display_type" value="titleOnly" {{#ifCond model.displayType '==' 'titleOnly'}}CHECKED{{/ifCond}} />
<%= __('Title only') %>
</label>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Title Format') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_format" class="mailpoet_automated_latest_content_title_format" value="h1" {{#ifCond model.titleFormat '==' 'h1'}}CHECKED{{/ifCond}}/>
<%= __('Heading 1') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_format" class="mailpoet_automated_latest_content_title_format" value="h2" {{#ifCond model.titleFormat '==' 'h2'}}CHECKED{{/ifCond}}/>
<%= __('Heading 2') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_format" class="mailpoet_automated_latest_content_title_format" value="h3" {{#ifCond model.titleFormat '==' 'h3'}}CHECKED{{/ifCond}}/>
<%= __('Heading 3') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option mailpoet_automated_latest_content_title_as_list {{#ifCond model.displayType '!=' 'titleOnly'}}mailpoet_hidden{{/ifCond}}">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_format" class="mailpoet_automated_latest_content_title_format" value="ul" {{#ifCond model.titleFormat '==' 'ul'}}CHECKED{{/ifCond}}/>
<%= __('Show as list') %>
</label>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Title Alignment') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_alignment" class="mailpoet_automated_latest_content_title_alignment" value="left" {{#ifCond model.titleAlignment '==' 'left'}}CHECKED{{/ifCond}} />
<%= __('Left') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_alignment" class="mailpoet_automated_latest_content_title_alignment" value="center" {{#ifCond model.titleAlignment '==' 'center'}}CHECKED{{/ifCond}} />
<%= __('Center') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_alignment" class="mailpoet_automated_latest_content_title_alignment" value="right" {{#ifCond model.titleAlignment '==' 'right'}}CHECKED{{/ifCond}} />
<%= __('Right') %>
</label>
</div>
</div>
<div class="mailpoet_form_field mailpoet_automated_latest_content_title_as_link {{#ifCond model.titleFormat '===' 'ul'}}mailpoet_hidden{{/ifCond}}">
<div class="mailpoet_form_field_title"><%= __('Title as links') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_as_links" class="mailpoet_automated_latest_content_title_as_links" value="true" {{#if model.titleIsLink}}CHECKED{{/if}}/>
<%= __('Yes') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_as_links" class="mailpoet_automated_latest_content_title_as_links" value="false" {{#unless model.titleIsLink}}CHECKED{{/unless}}/>
<%= __('No') %>
</label>
</div>
</div>
<hr class="mailpoet_separator mailpoet_automated_latest_content_image_separator {{#ifCond model.displayType '===' 'titleOnly'}}mailpoet_hidden{{/ifCond}}" />
<div class="mailpoet_form_field mailpoet_automated_latest_content_featured_image_position_container {{#ifCond model.displayType '!==' 'excerpt'}}mailpoet_hidden{{/ifCond}}">
<div class="mailpoet_form_field_title"><%= __('Featured image position') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_featured_image_position" class="mailpoet_automated_latest_content_featured_image_position" value="belowTitle" {{#ifCond model.featuredImagePosition '==' 'belowTitle' }}CHECKED{{/ifCond}}/>
<%= __('Below title') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_featured_image_position" class="mailpoet_automated_latest_content_featured_image_position" value="aboveTitle" {{#ifCond model.featuredImagePosition '==' 'aboveTitle' }}CHECKED{{/ifCond}}/>
<%= __('Above title') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_featured_image_position" class="mailpoet_automated_latest_content_featured_image_position" value="none" {{#ifCond model.featuredImagePosition '==' 'none' }}CHECKED{{/ifCond}}/>
<%= __('None') %>
</label>
</div>
</div>
<div class="mailpoet_automated_latest_content_non_title_list_options {{#ifCond model.displayType '==' 'titleOnly'}}{{#ifCond model.titleFormat '==' 'ul'}}mailpoet_hidden{{/ifCond}}{{/ifCond}}">
<div class="mailpoet_form_field mailpoet_automated_latest_content_image_full_width_option {{#ifCond model.displayType '==' 'titleOnly'}}mailpoet_hidden{{/ifCond}}">
<div class="mailpoet_form_field_title"><%= __('Image width') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="imageFullWidth" class="mailpoet_automated_latest_content_image_full_width" value="true" {{#if model.imageFullWidth}}CHECKED{{/if}}/>
<%= __('Full width') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="imageFullWidth" class="mailpoet_automated_latest_content_image_full_width" value="false" {{#unless model.imageFullWidth}}CHECKED{{/unless}}/>
<%= __('Padded') %>
</label>
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Show author') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_author" class="mailpoet_automated_latest_content_show_author" value="no" {{#ifCond model.showAuthor '==' 'no'}}CHECKED{{/ifCond}}/>
<%= __('No') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_author" class="mailpoet_automated_latest_content_show_author" value="aboveText" {{#ifCond model.showAuthor '==' 'aboveText'}}CHECKED{{/ifCond}}/>
<%= __('Above text') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_author" class="mailpoet_automated_latest_content_show_author" value="belowText" {{#ifCond model.showAuthor '==' 'belowText'}}CHECKED{{/ifCond}}/>
<%= __('Below text') %><br />
</label>
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('Preceded by:') %></div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_block">
<input type="text" class="mailpoet_input mailpoet_input_full mailpoet_automated_latest_content_author_preceded_by" value="{{ model.authorPrecededBy }}" />
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Show categories') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_categories" class="mailpoet_automated_latest_content_show_categories" value="no" {{#ifCond model.showCategories '==' 'no'}}CHECKED{{/ifCond}}/>
<%= __('No') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_categories" class="mailpoet_automated_latest_content_show_categories" value="aboveText" {{#ifCond model.showCategories '==' 'aboveText'}}CHECKED{{/ifCond}}/>
<%= __('Above text') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_categories" class="mailpoet_automated_latest_content_show_categories" value="belowText" {{#ifCond model.showCategories '==' 'belowText'}}CHECKED{{/ifCond}}/>
<%= __('Below text') %>
</label>
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('Preceded by:') %></div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_block">
<input type="text" class="mailpoet_input mailpoet_input_full mailpoet_automated_latest_content_categories" value="{{ model.categoriesPrecededBy }}" />
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('"Read more" text') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_read_more_type" class="mailpoet_automated_latest_content_read_more_type" value="link" {{#ifCond model.readMoreType '==' 'link'}}CHECKED{{/ifCond}}/>
<%= __('Link') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_read_more_type" class="mailpoet_automated_latest_content_read_more_type" value="button" {{#ifCond model.readMoreType '==' 'button'}}CHECKED{{/ifCond}}/>
<%= __('Button') %>
</label>
</div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_block">
<input type="text" class="mailpoet_input mailpoet_input_full mailpoet_automated_latest_content_read_more_text {{#ifCond model.readMoreType '!=' 'link'}}mailpoet_hidden{{/ifCond}}" value="{{ model.readMoreText }}" />
</div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_block">
<a href="javascript:;" class="mailpoet_automated_latest_content_select_button {{#ifCond model.readMoreType '!=' 'button'}}mailpoet_hidden{{/ifCond}}"><%= __('Design a button') %></a>
</div>
</div>
<hr class="mailpoet_separator" />
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('Sort by') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_sort_by" class="mailpoet_automated_latest_content_sort_by" value="newest" {{#ifCond model.sortBy '==' 'newest'}}CHECKED{{/ifCond}}/>
<%= __('Newest') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_sort_by" class="mailpoet_automated_latest_content_sort_by" value="oldest" {{#ifCond model.sortBy '==' 'oldest'}}CHECKED{{/ifCond}}/>
<%= __('Oldest') %>
</label>
</div>
</div>
<div class="mailpoet_automated_latest_content_non_title_list_options {{#ifCond model.displayType '==' 'titleOnly'}}{{#ifCond model.titleFormat '==' 'ul'}}mailpoet_hidden{{/ifCond}}{{/ifCond}}">
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('Show divider between posts') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_divider"class="mailpoet_automated_latest_content_show_divider" value="true" {{#if model.showDivider}}CHECKED{{/if}}/>
<%= __('Yes') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_divider"class="mailpoet_automated_latest_content_show_divider" value="false" {{#unless model.showDivider}}CHECKED{{/unless}}/>
<%= __('No') %>
</label>
</div>
<div>
<a href="javascript:;" class="mailpoet_automated_latest_content_select_divider"><%= __('Select divider') %></a>
</div>
</div>
</div>
</div>
<div class="mailpoet_form_field">
<input type="button" class="button button-primary mailpoet_done_editing" value="<%= __('Done') | escape('html_attr') %>" />
</div>
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/block-icons/auto-post.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('Automatic Latest Content') %></div>
@@ -0,0 +1,8 @@
<div class="mailpoet_tools"></div>
<div class="mailpoet_content">
<div class="mailpoet_automated_latest_content_block_overlay" data-automation-id="alc_overlay">
<span class="mailpoet_overlay_message"><%= __('This is only a preview! Your subscribers will see your latest blog posts.') %></span>
</div>
<div class="mailpoet_automated_latest_content_block_posts" data-automation-id="alc_posts"></div>
</div>
<div class="mailpoet_block_highlight"></div>
@@ -0,0 +1,333 @@
<h3><%= __('Post selection') %></h3>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Show max:') %></div>
<div class="mailpoet_form_field_input_option">
<input type="text" class="mailpoet_input mailpoet_input_small mailpoet_automated_latest_content_show_amount" value="{{ model.amount }}" maxlength="2" size="2" data-automation-id="show_max_posts" />
<select class="mailpoet_select mailpoet_select_large mailpoet_automated_latest_content_content_type">
<option value="post" {{#ifCond model.contentType '==' 'post'}}SELECTED{{/ifCond}}><%= __('Posts') %></option>
<option value="page" {{#ifCond model.contentType '==' 'page'}}SELECTED{{/ifCond}}><%= __('Pages') %></option>
<option value="mailpoet_page" {{#ifCond model.contentType '==' 'mailpoet_page'}}SELECTED{{/ifCond}}><%= __('MailPoet pages') %></option>
</select>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_select_option">
<select class="mailpoet_select mailpoet_automated_latest_content_categories_and_tags" multiple="multiple">
{{#each model.terms}}
<option value="{{ id }}" selected="selected">{{ text }}</option>
{{/each}}
</select>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_include_or_exclude" class="mailpoet_automated_latest_content_include_or_exclude" value="include" {{#ifCond model.inclusionType '==' 'include'}}CHECKED{{/ifCond}}/>
<%= __('Include') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_include_or_exclude" class="mailpoet_automated_latest_content_include_or_exclude" value="exclude" {{#ifCond model.inclusionType '==' 'exclude'}}CHECKED{{/ifCond}} />
<%= __('Exclude') %>
</label>
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field">
<a href="javascript:;" class="mailpoet_automated_latest_content_show_display_options" data-automation-id="display_options">
{{#if _displayOptionsHidden}}
<%= __('Display options') %>
{{else}}
<%= __('Hide display options') %>
{{/if}}
</a>
</div>
<div class="mailpoet_automated_latest_content_display_options {{#if _displayOptionsHidden}}mailpoet_closed{{/if}}">
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_display_type" class="mailpoet_automated_latest_content_display_type" value="excerpt" {{#ifCond model.displayType '==' 'excerpt'}}CHECKED{{/ifCond}}/>
<%= __('Excerpt') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_display_type" class="mailpoet_automated_latest_content_display_type" value="full" {{#ifCond model.displayType '==' 'full'}}CHECKED{{/ifCond}}/>
<%= __('Full post') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_display_type" class="mailpoet_automated_latest_content_display_type" value="titleOnly" {{#ifCond model.displayType '==' 'titleOnly'}}CHECKED{{/ifCond}} />
<%= __('Title only') %>
</label>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Title Format') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_format" class="mailpoet_automated_latest_content_title_format" value="h1" {{#ifCond model.titleFormat '==' 'h1'}}CHECKED{{/ifCond}}/>
<%= __('Heading 1') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_format" class="mailpoet_automated_latest_content_title_format" value="h2" {{#ifCond model.titleFormat '==' 'h2'}}CHECKED{{/ifCond}}/>
<%= __('Heading 2') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_format" class="mailpoet_automated_latest_content_title_format" value="h3" {{#ifCond model.titleFormat '==' 'h3'}}CHECKED{{/ifCond}}/>
<%= __('Heading 3') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option mailpoet_automated_latest_content_title_as_list {{#ifCond model.displayType '!=' 'titleOnly'}}mailpoet_hidden{{/ifCond}}">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_format" class="mailpoet_automated_latest_content_title_format" value="ul" {{#ifCond model.titleFormat '==' 'ul'}}CHECKED{{/ifCond}}/>
<%= __('Show as list') %>
</label>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Title Alignment') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_alignment" class="mailpoet_automated_latest_content_title_alignment" value="left" {{#ifCond model.titleAlignment '==' 'left'}}CHECKED{{/ifCond}} />
<%= __('Left') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_alignment" class="mailpoet_automated_latest_content_title_alignment" value="center" {{#ifCond model.titleAlignment '==' 'center'}}CHECKED{{/ifCond}} />
<%= __('Center') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_alignment" class="mailpoet_automated_latest_content_title_alignment" value="right" {{#ifCond model.titleAlignment '==' 'right'}}CHECKED{{/ifCond}} />
<%= __('Right') %>
</label>
</div>
</div>
<div class="mailpoet_form_field mailpoet_automated_latest_content_title_as_link {{#ifCond model.titleFormat '===' 'ul'}}mailpoet_hidden{{/ifCond}}">
<div class="mailpoet_form_field_title"><%= __('Title as links') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_as_links" class="mailpoet_automated_latest_content_title_as_links" value="true" {{#if model.titleIsLink}}CHECKED{{/if}}/>
<%= __('Yes') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_title_as_links" class="mailpoet_automated_latest_content_title_as_links" value="false" {{#unless model.titleIsLink}}CHECKED{{/unless}}/>
<%= __('No') %>
</label>
</div>
</div>
<hr class="mailpoet_separator mailpoet_automated_latest_content_title_position_separator {{#ifCond model.displayType '===' 'titleOnly'}}mailpoet_hidden{{/ifCond}}" />
<div class="mailpoet_form_field mailpoet_automated_latest_content_title_position {{#ifCond model.displayType '===' 'titleOnly'}}mailpoet_hidden{{/ifCond}}">
<div class="mailpoet_form_field_title"><%= _x('Title position', 'Setting in the email designer to position the blog post title') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input data-automation-id="title_above_post" type="radio" name="mailpoet_automated_latest_content_title_position" class="mailpoet_automated_latest_content_title_position" value="abovePost" {{#ifCond model.titlePosition '!=' 'aboveExcerpt'}}CHECKED{{/ifCond}}/>
<%= _x('Above the post', 'Display the post title above the post block') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input data-automation-id="title_above_excerpt" type="radio" name="mailpoet_automated_latest_content_title_position" class="mailpoet_automated_latest_content_title_position" value="aboveExcerpt" {{#ifCond model.titlePosition '==' 'aboveExcerpt'}}CHECKED{{/ifCond}}/>
<%= _x('Above the excerpt text', 'Display the post title above the post excerpt') %>
</label>
</div>
</div>
<hr class="mailpoet_separator mailpoet_automated_latest_content_image_separator {{#ifCond model.displayType '===' 'titleOnly'}}mailpoet_hidden{{/ifCond}}" />
<div class="mailpoet_form_field mailpoet_automated_latest_content_featured_image_position_container {{#ifCond model.displayType '===' 'titleOnly'}}mailpoet_hidden{{/ifCond}}">
<div class="mailpoet_form_field_title"><%= __('Featured image position') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_featured_image_position" class="mailpoet_automated_latest_content_featured_image_position" value="centered" {{#ifCond _featuredImagePosition '==' 'centered' }}CHECKED{{/ifCond}}/>
<%= __('Centered') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_featured_image_position" class="mailpoet_automated_latest_content_featured_image_position" value="left" {{#ifCond _featuredImagePosition '==' 'left' }}CHECKED{{/ifCond}}/>
<%= __('Left') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_featured_image_position" class="mailpoet_automated_latest_content_featured_image_position" value="right" {{#ifCond _featuredImagePosition '==' 'right' }}CHECKED{{/ifCond}}/>
<%= __('Right') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_featured_image_position" class="mailpoet_automated_latest_content_featured_image_position" value="alternate" {{#ifCond _featuredImagePosition '==' 'alternate' }}CHECKED{{/ifCond}}/>
<%= __('Alternate') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_featured_image_position" class="mailpoet_automated_latest_content_featured_image_position" value="none" {{#ifCond _featuredImagePosition '==' 'none' }}CHECKED{{/ifCond}}/>
<%= __('None') %>
</label>
</div>
</div>
<div class="mailpoet_automated_latest_content_non_title_list_options {{#ifCond model.displayType '==' 'titleOnly'}}{{#ifCond model.titleFormat '==' 'ul'}}mailpoet_hidden{{/ifCond}}{{/ifCond}}">
<div class="mailpoet_form_field mailpoet_automated_latest_content_image_full_width_option {{#ifCond model.displayType '==' 'titleOnly'}}mailpoet_hidden{{/ifCond}}">
<div class="mailpoet_form_field_title"><%= __('Image width') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="imageFullWidth" class="mailpoet_automated_latest_content_image_full_width" value="true" {{#if model.imageFullWidth}}CHECKED{{/if}}/>
<%= __('Full width') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="imageFullWidth" class="mailpoet_automated_latest_content_image_full_width" value="false" {{#unless model.imageFullWidth}}CHECKED{{/unless}}/>
<%= __('Padded') %>
</label>
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Show author') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_author" class="mailpoet_automated_latest_content_show_author" value="no" {{#ifCond model.showAuthor '==' 'no'}}CHECKED{{/ifCond}}/>
<%= __('No') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_author" class="mailpoet_automated_latest_content_show_author" value="aboveText" {{#ifCond model.showAuthor '==' 'aboveText'}}CHECKED{{/ifCond}}/>
<%= __('Above text') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_author" class="mailpoet_automated_latest_content_show_author" value="belowText" {{#ifCond model.showAuthor '==' 'belowText'}}CHECKED{{/ifCond}}/>
<%= __('Below text') %><br />
</label>
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('Preceded by:') %></div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_block">
<input type="text" class="mailpoet_input mailpoet_input_full mailpoet_automated_latest_content_author_preceded_by" value="{{ model.authorPrecededBy }}" />
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Show categories') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_categories" class="mailpoet_automated_latest_content_show_categories" value="no" {{#ifCond model.showCategories '==' 'no'}}CHECKED{{/ifCond}}/>
<%= __('No') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_categories" class="mailpoet_automated_latest_content_show_categories" value="aboveText" {{#ifCond model.showCategories '==' 'aboveText'}}CHECKED{{/ifCond}}/>
<%= __('Above text') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_categories" class="mailpoet_automated_latest_content_show_categories" value="belowText" {{#ifCond model.showCategories '==' 'belowText'}}CHECKED{{/ifCond}}/>
<%= __('Below text') %>
</label>
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('Preceded by:') %></div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_block">
<input type="text" class="mailpoet_input mailpoet_input_full mailpoet_automated_latest_content_categories" value="{{ model.categoriesPrecededBy }}" />
</div>
</div>
<hr class="mailpoet_separator" />
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('"Read more" text') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_read_more_type" class="mailpoet_automated_latest_content_read_more_type" value="link" {{#ifCond model.readMoreType '==' 'link'}}CHECKED{{/ifCond}}/>
<%= __('Link') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_read_more_type" class="mailpoet_automated_latest_content_read_more_type" value="button" {{#ifCond model.readMoreType '==' 'button'}}CHECKED{{/ifCond}}/>
<%= __('Button') %>
</label>
</div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_block">
<input type="text" class="mailpoet_input mailpoet_input_full mailpoet_automated_latest_content_read_more_text {{#ifCond model.readMoreType '!=' 'link'}}mailpoet_hidden{{/ifCond}}" value="{{ model.readMoreText }}" />
</div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_block">
<a href="javascript:;" class="mailpoet_automated_latest_content_select_button {{#ifCond model.readMoreType '!=' 'button'}}mailpoet_hidden{{/ifCond}}"><%= __('Design a button') %></a>
</div>
</div>
<hr class="mailpoet_separator" />
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('Sort by') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_sort_by" class="mailpoet_automated_latest_content_sort_by" value="newest" {{#ifCond model.sortBy '==' 'newest'}}CHECKED{{/ifCond}}/>
<%= __('Newest') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_sort_by" class="mailpoet_automated_latest_content_sort_by" value="oldest" {{#ifCond model.sortBy '==' 'oldest'}}CHECKED{{/ifCond}}/>
<%= __('Oldest') %>
</label>
</div>
</div>
<div class="mailpoet_automated_latest_content_non_title_list_options {{#ifCond model.displayType '==' 'titleOnly'}}{{#ifCond model.titleFormat '==' 'ul'}}mailpoet_hidden{{/ifCond}}{{/ifCond}}">
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title mailpoet_form_field_title_small"><%= __('Show divider between posts') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_divider"class="mailpoet_automated_latest_content_show_divider" value="true" {{#if model.showDivider}}CHECKED{{/if}}/>
<%= __('Yes') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="mailpoet_automated_latest_content_show_divider"class="mailpoet_automated_latest_content_show_divider" value="false" {{#unless model.showDivider}}CHECKED{{/unless}}/>
<%= __('No') %>
</label>
</div>
<div>
<a href="javascript:;" class="mailpoet_automated_latest_content_select_divider"><%= __('Select divider') %></a>
</div>
</div>
</div>
</div>
<div class="mailpoet_form_field">
<input type="button" data-automation-id="alc_settings_done" class="button button-primary mailpoet_done_editing" value="<%= __('Done') | escape('html_attr') %>" />
</div>
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/block-icons/auto-post.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('Automatic Latest Content') %></div>
@@ -0,0 +1,35 @@
<div class="mailpoet_tools_slider">
{{#if tools.layerSelector}}
<a href="javascript:;" class="mailpoet_tool mailpoet_newsletter_layer_selector mailpoet_ignore_drag" title="<%= __('Switch editing layer') %>">
<%= source('newsletter/templates/svg/block-tools/settings.svg') %>
</a>
{{/if}}
{{#if tools.settings}}
<a href="javascript:;" data-automation-id="settings_tool" class="mailpoet_tool mailpoet_edit_block mailpoet_ignore_drag" title="<%= __('Edit settings') %>">
<%= source('newsletter/templates/svg/block-tools/settings.svg') %>
</a>
{{/if}}
{{#if tools.delete}}
<div class="mailpoet_delete_block mailpoet_ignore_drag">
<a href="javascript:;" class="mailpoet_tool mailpoet_delete_block_activate" title="<%= __('Delete') %>">
<%= source('newsletter/templates/svg/block-tools/trash.svg') %>
</a>
<a href="javascript:;" class="mailpoet_delete_block_cancel" title="<%= __('Cancel deletion') %>">
<%= __('Cancel') %>
</a>
<a href="javascript:;" class="mailpoet_delete_block_confirm" title="<%= __('Confirm deletion') %>">
<%= __('Delete') %>
</a>
</div>
{{/if}}
{{#if tools.duplicate}}
<a href="javascript:;" data-automation-id="duplicate_tool" class="mailpoet_tool mailpoet_duplicate_block" title="<%= __('Duplicate') %>">
<%= source('newsletter/templates/svg/block-tools/duplicate.svg') %>
</a>
{{/if}}
{{#if tools.move}}
<a href="javascript:;" class="mailpoet_tool mailpoet_move_block" title="<%= __('Drag to move') %>">
<%= source('newsletter/templates/svg/block-tools/move.svg') %>
</a>
{{/if}}
</div>
@@ -0,0 +1,5 @@
<div class="mailpoet_tools"></div>
<div class="mailpoet_content">
<a href="{{escapeURL model.url}}" class="mailpoet_editor_button" style="{{#ifCond model.styles.block.textAlign '==' 'left'}}margin: 0 auto 0 0; {{/ifCond}}{{#ifCond model.styles.block.textAlign '==' 'center'}}margin: auto; {{/ifCond}}{{#ifCond model.styles.block.textAlign '==' 'right'}}margin: 0 0 0 auto; {{/ifCond}}line-height: {{ model.styles.block.lineHeight }}; width: {{ model.styles.block.width }}; background-color: {{ model.styles.block.backgroundColor }}; color: {{ model.styles.block.fontColor }}; font-family: {{fontWithFallback model.styles.block.fontFamily }}; font-size: {{ model.styles.block.fontSize }}; font-weight: {{ model.styles.block.fontWeight }}; border: {{ model.styles.block.borderWidth }} {{ model.styles.block.borderStyle }} {{ model.styles.block.borderColor }}; border-radius: {{ model.styles.block.borderRadius }};" onClick="return false;">{{ model.text }}</a>
</div>
<div class="mailpoet_block_highlight"></div>
@@ -0,0 +1,129 @@
<h3><%= __('Button') %></h3>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Label') %></div>
<div class="mailpoet_form_field_input_option">
<input type="text" name="text" class="mailpoet_input mailpoet_field_button_text" value="{{ model.text }}" />
</div>
</label>
</div>
{{#ifCond renderOptions.hideLink '!==' true}}
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Link') %></div>
<div class="mailpoet_form_field_input_option">
<input type="text" name="url" class="mailpoet_input mailpoet_field_button_url" value="{{ model.url }}" placeholder="http://" />
</div>
</label>
</div>
{{/ifCond}}
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Alignment') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="alignment" class="mailpoet_field_button_alignment" value="left" {{#ifCond model.styles.block.textAlign '===' 'left'}}CHECKED{{/ifCond}}/>
<%= __('Left') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="alignment" class="mailpoet_field_button_alignment" value="center" {{#ifCond model.styles.block.textAlign '===' 'center'}}CHECKED{{/ifCond}}/>
<%= __('Center') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="alignment" class="mailpoet_field_button_alignment" value="right" {{#ifCond model.styles.block.textAlign '===' 'right'}}CHECKED{{/ifCond}}/>
<%= __('Right') %>
</label>
</div>
</div>
<div class="mailpoet_form_field mailpoet_form_narrow_select2">
<div class="mailpoet_form_field_title"><%= __('Text') %></div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_input_nowrap">
<input type="text" name="font-color" id="mailpoet_field_button_font_color" class="mailpoet_field_button_font_color mailpoet_color" value="{{ model.styles.block.fontColor }}" />
<select id="mailpoet_field_button_font_family" name="font-family" class="mailpoet_select mailpoet_select_medium mailpoet_field_button_font_family mailpoet_font_family">
<optgroup label="<%= __('Standard fonts')%>">
{{#each availableStyles.fonts.standard}}
<option value="{{ this }}" {{#ifCond this '==' ../model.styles.block.fontFamily}}SELECTED{{/ifCond}}>{{ this }}</option>
{{/each}}
</optgroup>
<optgroup label="<%= __('Custom fonts')%>">
{{#each availableStyles.fonts.custom}}
<option value="{{ this }}" {{#ifCond this '==' ../model.styles.block.fontFamily}}SELECTED{{/ifCond}}>{{ this }}</option>
{{/each}}
</optgroup>
</select>
<select id="mailpoet_field_button_font_size" name="font-size" class="mailpoet_select mailpoet_select_small mailpoet_field_button_font_size mailpoet_font_size">
{{#each availableStyles.headingSizes}}
<option value="{{ this }}" {{#ifCond this '==' ../model.styles.block.fontSize}}SELECTED{{/ifCond}}>{{ this }}</option>
{{/each}}
</select>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_checkbox_option">
<label>
<input type="checkbox" name="fontWeight" class="mailpoet_field_button_font_weight" value="bold" {{#ifCond model.styles.block.fontWeight '===' 'bold'}}CHECKED{{/ifCond}}/>
<%= __('Bold') %>
</label>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_input_option">
<input type="text" name="background-color" class="mailpoet_field_button_background_color mailpoet_color" value="{{ model.styles.block.backgroundColor }}" />
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Background') %></div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_input_option">
<input type="text" name="border-color" class="mailpoet_field_button_border_color mailpoet_color" value="{{ model.styles.block.borderColor }}" />
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Border') %></div>
<div class="mailpoet_form_field_input_option">
<input type="number" name="border-width-input" class="mailpoet_input mailpoet_input_small mailpoet_field_button_border_width_input" value="{{getNumber model.styles.block.borderWidth}}" min="0" max="10" step="1" /> px
<input type="range" min="0" max="10" step="1" name="border-width" class="mailpoet_range mailpoet_range_small mailpoet_field_button_border_width" value="{{getNumber model.styles.block.borderWidth}}" />
</div>
</div>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_title"><%= __('Rounded corners') %></div>
<div class="mailpoet_form_field_input_option">
<input type="number" name="border-radius-input" class="mailpoet_input mailpoet_input_small mailpoet_field_button_border_radius_input" value="{{getNumber model.styles.block.borderRadius}}" min="0" max="40" step="1" /> px
<input type="range" min="0" max="40" step="1" name="border-radius" class="mailpoet_range mailpoet_range_medium mailpoet_field_button_border_radius" value="{{getNumber model.styles.block.borderRadius }}" />
</div>
</label>
</div>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_title"><%= __('Width') %></div>
<div class="mailpoet_form_field_input_option">
<input type="number" name="width-input" class="mailpoet_input mailpoet_input_small mailpoet_field_button_width_input" value="{{getNumber model.styles.block.width}}" min="50" max="288" step="1" /> px
<input type="range" min="50" max="288" step="1" name="width" class="mailpoet_range mailpoet_range_medium mailpoet_field_button_width" value="{{getNumber model.styles.block.width }}" />
</div>
</label>
</div>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_title"><%= __('Height') %></div>
<div class="mailpoet_form_field_input_option">
<input type="number" name="line-height-input" class="mailpoet_input mailpoet_input_small mailpoet_field_button_line_height_input" value="{{getNumber model.styles.block.lineHeight}}" min="20" max="50" step="1" /> px
<input type="range" min="20" max="50" step="1" name="line-height" class="mailpoet_range mailpoet_range_medium mailpoet_field_button_line_height" value="{{getNumber model.styles.block.lineHeight }}" />
</div>
</label>
</div>
{{#ifCond renderOptions.hideApplyToAll '!==' true}}
<div class="mailpoet_form_field">
<input type="button" name="replace-all-button-styles" class="button button-secondary mailpoet_button_full mailpoet_field_button_replace_all_styles" value="<%= __('Apply styles to all buttons') | escape('html_attr') %>" />
</div>
{{/ifCond}}
<div class="mailpoet_form_field">
<input type="button" class="button button-primary mailpoet_done_editing" value="<%= __('Done') | escape('html_attr') %>" />
</div>
<script type="text/javascript">
fontsSelect('#mailpoet_field_button_font_family');
</script>
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/block-icons/button.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('Button') %></div>
@@ -0,0 +1,22 @@
{{#if model.image.src}}
<style type="text/css">
.mailpoet_editor_view_{{ viewCid }} {
background-color: {{#ifCond model.styles.block.backgroundColor '!=' 'transparent'}}{{ model.styles.block.backgroundColor }}{{else}}#ffffff{{/ifCond}} !important;
background-image: url({{ model.image.src }});
background-position: center;
background-repeat: {{#ifCond model.image.display '==' 'tile'}}repeat{{else}}no-repeat{{/ifCond}};
background-size: {{#ifCond model.image.display '==' 'scale'}}cover{{else}}contain{{/ifCond}};
}
.mailpoet_editor_view_{{ viewCid }} .mailpoet_container { background: transparent; }
</style>
{{else}}
{{#ifCond model.styles.block.backgroundColor '!=' 'transparent'}}
<style type="text/css">
.mailpoet_editor_view_{{ viewCid }} { background-color: {{ model.styles.block.backgroundColor }}; }
.mailpoet_editor_view_{{ viewCid }} .mailpoet_container { background-color: {{ model.styles.block.backgroundColor }}; }
</style>
{{/ifCond}}
{{/if}}
<div class="mailpoet_container {{#ifCond model.orientation '===' 'horizontal'}}mailpoet_container_horizontal{{/ifCond}}{{#ifCond model.orientation '===' 'vertical'}}mailpoet_container_vertical{{/ifCond}}"></div>
<div class="mailpoet_tools"></div><div class="mailpoet_block_highlight">
@@ -0,0 +1,2 @@
<div class="mailpoet_container_empty">{{#ifCond emptyContainerMessage '!==' ''}}{{emptyContainerMessage}}{{else}}{{#if isRoot}}<%= __('Add a column block here.') %>{{else}}<%= __('Add a content block here.') %>{{/if}}{{/ifCond}}</div>
{{debug}}
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/layout-icons/1-column.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('1 column') %></div>
@@ -0,0 +1,48 @@
<h3><%= __('Columns') %></h3>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_input_option">
<input type="text" name="background-color" class="mailpoet_field_container_background_color mailpoet_color" value="{{ model.styles.block.backgroundColor }}" />
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Background color') %></div>
</label>
</div>
<hr>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_title"><%= __('Background image') %></div>
<div class="mailpoet_form_field_input_option">
<input type="text" name="src" class="mailpoet_input mailpoet_field_image_address" value="{{ model.image.src }}" placeholder="http://" /><br />
</div>
</label>
</div>
<div class="mailpoet_form_field">
<input type="button" name="select-image" class="button button-secondary mailpoet_button_full mailpoet_field_image_select_image" value="{{#if model.image.src}}<%= __('Select another image') | escape('html_attr') %>{{else}}<%= _x('Select background image', 'call to action to select an image as a background image of a layout block') | escape('html_attr') %>{{/if}}" />
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Display options') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="display_type" class="mailpoet_field_display_type" value="scale" {{#ifCond model.image.display '===' 'scale'}}CHECKED{{/ifCond}}/>
<%= __('Scale') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="display_type" class="mailpoet_field_display_type" value="fit" {{#ifCond model.image.display '===' 'fit'}}CHECKED{{/ifCond}}/>
<%= __('Fit') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="display_type" class="mailpoet_field_display_type" value="tile" {{#ifCond model.image.display '===' 'tile'}}CHECKED{{/ifCond}}/>
<%= __('Tile') %>
</label>
</div>
</div>
<div class="mailpoet_form_field">
<p class="mailpoet_settings_notice"><%= _x('A [link]few email clients[/link] do not show background images. Make sure you have a good background color to fall back on if the image is not displayed.', 'Editor > right sidebar for column block settings.')|replaceLinkTags('https://kb.mailpoet.com/article/261-add-a-background-image-to-your-newsletter', {'target': '_blank'})|raw %></p>
</div>
<div class="mailpoet_form_field">
<input type="button" class="button button-primary mailpoet_done_editing" value="<%= __('Done') | escape('html_attr') %>" />
</div>
@@ -0,0 +1,5 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/layout-icons/3-column.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('3 columns') %></div>
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/layout-icons/2-column.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('2 columns') %></div>
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/layout-icons/2-column-12.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('1:2 columns') %></div>
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/layout-icons/2-column-21.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('2:1 columns') %></div>
@@ -0,0 +1,13 @@
<div class="mailpoet_tools"></div>
<div class="mailpoet_content" data-automation-id="coupon_block">
<div class="mailpoet_editor_coupon" style="{{#ifCond model.styles.block.textAlign '==' 'left'}}margin: 0 auto 0 0; {{/ifCond}}{{#ifCond model.styles.block.textAlign '==' 'center'}}margin: auto; {{/ifCond}}{{#ifCond model.styles.block.textAlign '==' 'right'}}margin: 0 0 0 auto; {{/ifCond}}line-height: {{ model.styles.block.lineHeight }}; width: {{ model.styles.block.width }}; background-color: {{ model.styles.block.backgroundColor }}; color: {{ model.styles.block.fontColor }}; font-family: {{fontWithFallback model.styles.block.fontFamily }}; font-size: {{ model.styles.block.fontSize }}; font-weight: {{ model.styles.block.fontWeight }}; border: {{ model.styles.block.borderWidth }} {{ model.styles.block.borderStyle }} {{ model.styles.block.borderColor }}; border-radius: {{ model.styles.block.borderRadius }};">{{ model.code }}</div>
<div class="mailpoet_editor_coupon_overlay" style="{{#ifCond model.source '==' 'allCoupons'}}visibility: hidden;{{/ifCond}}">
<%= __('The coupon code will be auto-generated when this campaign is activated.') %>
{{#ifCond model.isStandardEmail '==' true}}
<%= __('All subscribers of this campaign will receive the same coupon code.') %>
{{else}}
<%= __('Each subscriber of this campaign will receive a new coupon code.') %>
{{/ifCond}}
</div>
</div>
<div class="mailpoet_block_highlight"></div>
@@ -0,0 +1,119 @@
<h3 data-automation-id="coupon_settings_heading"><%= __('Coupon') %></h3>
<div id="mailpoet_coupon_block_settings" class="mailpoet_coupon_block_settings"></div>
<div class="mailpoet_coupon_block_display_options mailpoet_closed">
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_title"><%= __('Alignment') %></div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="alignment" class="mailpoet_field_coupon_alignment" value="left" {{#ifCond model.styles.block.textAlign '===' 'left'}}CHECKED{{/ifCond}}/>
<%= __('Left') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="alignment" class="mailpoet_field_coupon_alignment" value="center" {{#ifCond model.styles.block.textAlign '===' 'center'}}CHECKED{{/ifCond}}/>
<%= __('Center') %>
</label>
</div>
<div class="mailpoet_form_field_radio_option">
<label>
<input type="radio" name="alignment" class="mailpoet_field_coupon_alignment" value="right" {{#ifCond model.styles.block.textAlign '===' 'right'}}CHECKED{{/ifCond}}/>
<%= __('Right') %>
</label>
</div>
</div>
<div class="mailpoet_form_field mailpoet_form_narrow_select2">
<div class="mailpoet_form_field_title"><%= __('Text') %></div>
<div class="mailpoet_form_field_input_option mailpoet_form_field_input_nowrap">
<input type="text" name="font-color" id="mailpoet_field_coupon_font_color" class="mailpoet_field_coupon_font_color mailpoet_color" value="{{ model.styles.block.fontColor }}" />
<select id="mailpoet_field_coupon_font_family" name="font-family" class="mailpoet_select mailpoet_select_medium mailpoet_field_coupon_font_family mailpoet_font_family">
<optgroup label="<%= __('Standard fonts')%>">
{{#each availableStyles.fonts.standard}}
<option value="{{ this }}" {{#ifCond this '==' ../model.styles.block.fontFamily}}SELECTED{{/ifCond}}>{{ this }}</option>
{{/each}}
</optgroup>
<optgroup label="<%= __('Custom fonts')%>">
{{#each availableStyles.fonts.custom}}
<option value="{{ this }}" {{#ifCond this '==' ../model.styles.block.fontFamily}}SELECTED{{/ifCond}}>{{ this }}</option>
{{/each}}
</optgroup>
</select>
<select id="mailpoet_field_coupon_font_size" name="font-size" class="mailpoet_select mailpoet_select_small mailpoet_field_coupon_font_size mailpoet_font_size">
{{#each availableStyles.headingSizes}}
<option value="{{ this }}" {{#ifCond this '==' ../model.styles.block.fontSize}}SELECTED{{/ifCond}}>{{ this }}</option>
{{/each}}
</select>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_checkbox_option">
<label>
<input type="checkbox" name="fontWeight" class="mailpoet_field_coupon_font_weight" value="bold" {{#ifCond model.styles.block.fontWeight '===' 'bold'}}CHECKED{{/ifCond}}/>
<%= __('Bold') %>
</label>
</div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_input_option">
<input type="text" name="background-color" class="mailpoet_field_coupon_background_color mailpoet_color" value="{{ model.styles.block.backgroundColor }}" />
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Background') %></div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_input_option">
<input type="text" name="border-color" class="mailpoet_field_coupon_border_color mailpoet_color" value="{{ model.styles.block.borderColor }}" />
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Border') %></div>
<div class="mailpoet_form_field_input_option">
<input type="number" name="border-width-input" class="mailpoet_input mailpoet_input_small mailpoet_field_coupon_border_width_input" value="{{getNumber model.styles.block.borderWidth}}" min="0" max="10" step="1" /> px
<input type="range" min="0" max="10" step="1" name="border-width" class="mailpoet_range mailpoet_range_small mailpoet_field_coupon_border_width" value="{{getNumber model.styles.block.borderWidth}}" />
</div>
</div>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_title"><%= __('Rounded corners') %></div>
<div class="mailpoet_form_field_input_option">
<input type="number" name="border-radius-input" class="mailpoet_input mailpoet_input_small mailpoet_field_coupon_border_radius_input" value="{{getNumber model.styles.block.borderRadius}}" min="0" max="40" step="1" /> px
<input type="range" min="0" max="40" step="1" name="border-radius" class="mailpoet_range mailpoet_range_medium mailpoet_field_coupon_border_radius" value="{{getNumber model.styles.block.borderRadius }}" />
</div>
</label>
</div>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_title"><%= __('Width') %></div>
<div class="mailpoet_form_field_input_option">
<input type="number" name="width-input" class="mailpoet_input mailpoet_input_small mailpoet_field_coupon_width_input" value="{{getNumber model.styles.block.width}}" min="50" max="288" step="1" /> px
<input type="range" min="50" max="288" step="1" name="width" class="mailpoet_range mailpoet_range_medium mailpoet_field_coupon_width" value="{{getNumber model.styles.block.width }}" />
</div>
</label>
</div>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_title"><%= __('Height') %></div>
<div class="mailpoet_form_field_input_option">
<input type="number" name="line-height-input" class="mailpoet_input mailpoet_input_small mailpoet_field_coupon_line_height_input" value="{{getNumber model.styles.block.lineHeight}}" min="20" max="50" step="1" /> px
<input type="range" min="20" max="50" step="1" name="line-height" class="mailpoet_range mailpoet_range_medium mailpoet_field_coupon_line_height" value="{{getNumber model.styles.block.lineHeight }}" />
</div>
</label>
</div>
{{#ifCond renderOptions.hideApplyToAll '!==' true}}
<div class="mailpoet_form_field">
<input type="button" name="replace-all-coupon-styles" class="button button-secondary mailpoet_coupon_full mailpoet_field_coupon_replace_all_styles" value="<%= __('Apply styles to all coupons') | escape('html_attr') %>" />
</div>
{{/ifCond}}
</div>
<div class="mailpoet_form_field">
<a href="javascript:;" class="mailpoet_settings_coupon_show_coupon_configuration mailpoet_hidden"><%= __('Back to selection') %></a>
<a href="javascript:;" class="mailpoet_settings_coupon_show_display_options"><%= __('Display options') %></a>
</div>
<div class="mailpoet_form_field">
<input type="button" class="button button-primary mailpoet_done_editing" data-automation-id="coupon_done_button" value="<%= __('Done') | escape('html_attr') %>" />
</div>
<script type="text/javascript">
fontsSelect('#mailpoet_field_coupon_font_family');
</script>
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/block-icons/coupon.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('Coupon') %></div>
@@ -0,0 +1,11 @@
<div class="mailpoet_tools"></div>
<div class="mailpoet_content" data-automation-id="divider" style="padding: {{ model.styles.block.padding }} 0; background-color: {{ model.styles.block.backgroundColor }};">
<div class="mailpoet_divider" style="border-top-width: {{ model.styles.block.borderWidth }}; border-top-style: {{ model.styles.block.borderStyle }}; border-top-color: {{ model.styles.block.borderColor }};"></div>
<div class="mailpoet_resize_handle_container">
<div class="mailpoet_resize_handle" data-automation-id="divider_resize_handle">
<span class="mailpoet_resize_handle_text">{{ totalHeight }}</span>
<span class="mailpoet_resize_handle_icon"><%= source('newsletter/templates/svg/block-icons/spacer.svg') %></span>
</div>
</div>
</div>
<div class="mailpoet_block_highlight"></div>
@@ -0,0 +1,38 @@
<h3><%= __('Dividers') %></h3>
<div class="mailpoet_divider_selector" data-automation-id="divider_selector">
{{#each availableStyles.dividers}}
<div class="mailpoet_field_divider_style{{#ifCond this '==' ../model.styles.block.borderStyle}} mailpoet_active_divider_style{{/ifCond}}" data-style="{{ this }}">
<div style="border-top-width: 5px; border-top-style: {{ this }}; border-top-color: {{ ../model.styles.block.borderColor }};"></div>
</div>
{{/each}}
</div>
<div class="mailpoet_form_field">
<label>
<div class="mailpoet_form_field_input_option">
<input type="number" name="border-width-input" class="mailpoet_input mailpoet_input_small mailpoet_field_divider_border_width_input" value="{{getNumber model.styles.block.borderWidth}}" min="1" max="30" step="1" /> px
<input type="range" min="1" max="30" step="1" name="divider-width" class="mailpoet_range mailpoet_range_small mailpoet_field_divider_border_width" value="{{getNumber model.styles.block.borderWidth }}" />
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Divider height') %></div>
</label>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_input_option">
<input type="text" name="divider-color" class="mailpoet_field_divider_border_color mailpoet_color" value="{{ model.styles.block.borderColor }}" />
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Divider color') %></div>
</div>
<div class="mailpoet_form_field">
<div class="mailpoet_form_field_input_option">
<input type="text" name="background-color" class="mailpoet_field_divider_background_color mailpoet_color" value="{{ model.styles.block.backgroundColor }}" />
</div>
<div class="mailpoet_form_field_title mailpoet_form_field_title_inline"><%= __('Background') %></div>
</div>
{{#ifCond renderOptions.hideApplyToAll '!==' true}}
<div class="mailpoet_form_field">
<input type="button" name="apply-to-all-dividers" class="button button-secondary mailpoet_button_full mailpoet_button_divider_apply_to_all" value="<%= __('Apply to all dividers') | escape('html_attr') %>" />
</div>
{{/ifCond}}
<div class="mailpoet_form_field">
<input type="button" class="button button-primary mailpoet_done_editing" value="<%= __('Done') | escape('html_attr') %>" />
</div>
@@ -0,0 +1,4 @@
<div class="mailpoet_widget_icon">
<%= source('newsletter/templates/svg/block-icons/divider.svg') %>
</div>
<div class="mailpoet_widget_title"><%= __('Divider') %></div>
@@ -0,0 +1,20 @@
<div class="mailpoet_tools"></div>
<style type="text/css">
.mailpoet_editor_view_{{ viewCid }} .mailpoet_content,
.mailpoet_editor_view_{{ viewCid }} .mailpoet_content p {
color: {{ model.styles.text.fontColor }};
font-family: {{fontWithFallback model.styles.text.fontFamily }};
font-size: {{ model.styles.text.fontSize }};
background-color: {{ model.styles.block.backgroundColor }};
text-align: {{ model.styles.text.textAlign }};
}
.mailpoet_editor_view_{{ viewCid }} .mailpoet_content a,
.mailpoet_editor_view_{{ viewCid }} .mailpoet_content a:hover,
.mailpoet_editor_view_{{ viewCid }} .mailpoet_content a:active,
.mailpoet_editor_view_{{ viewCid }} .mailpoet_content a:visited {
color: {{ model.styles.link.fontColor }};
text-decoration: {{ model.styles.link.textDecoration }};
}
</style>
<div class="mailpoet_content mailpoet_text_content" data-automation-id="footer">{{{ model.text }}}</div>
<div class="mailpoet_block_highlight"></div>

Some files were not shown because too many files have changed in this diff Show More