95 lines
3.3 KiB
HTML
95 lines
3.3 KiB
HTML
<% extends 'layout.html' %>
|
|
|
|
<% block content %>
|
|
|
|
<div class="wrap mailpoet-about-wrap">
|
|
<h1><%= __('Greetings, humans.') %></h1>
|
|
|
|
<p class="about-text"><%= __('The new MailPoet. Simply better. And with regular updates.') %></p>
|
|
<div class="mailpoet-logo"><img src="<%= image_url('welcome_template/mailpoet-logo.png') %>" alt="MailPoet Logo" /></div>
|
|
|
|
<h2 class="nav-tab-wrapper wp-clearfix">
|
|
<a href="admin.php?page=mailpoet-welcome" class="nav-tab"><%= __('Welcome') %></a>
|
|
<a href="admin.php?page=mailpoet-update" class="nav-tab nav-tab-active"><%= __("What's New") %></a>
|
|
</h2>
|
|
|
|
<div id="mailpoet-changelog" class="feature-section one-col">
|
|
<h2 class="mailpoet-feature-top"><%= __('List of Changes') %></h2>
|
|
<% if changelog %>
|
|
<% for item in changelog %>
|
|
<h3><%= item.version %></h3>
|
|
<ul>
|
|
<% for change in item.changes %>
|
|
<li><%= change %></li>
|
|
<% endfor %>
|
|
</ul>
|
|
<% endfor %>
|
|
<% else %>
|
|
<p style="text-align: center"><%= __('See readme.txt for a changelog.') %></p>
|
|
<% endif %>
|
|
<a class="button button-secondary" href="https://wordpress.org/plugins/mailpoet/#developers" target="_blank"><%= __('View all changes') %> →</a>
|
|
</div>
|
|
|
|
<div class="feature-section one-col mailpoet_centered">
|
|
<h2><%= __('Care to Give Your Opinion?') %></h2>
|
|
|
|
<% if(is_new_user) %>
|
|
<div class="pd-embed" id="pd_1516701033"></div>
|
|
<script type="text/javascript">
|
|
var _polldaddy = [] || _polldaddy;
|
|
|
|
_polldaddy.push( {
|
|
type: "iframe",
|
|
auto: "1",
|
|
domain: "mailpoet.polldaddy.com/s/",
|
|
id: "experience-so-far",
|
|
placeholder: "pd_1516701033"
|
|
} );
|
|
|
|
(function(d,c,j){if(!document.getElementById(j)){var pd=d.createElement(c),s;pd.id=j;pd.src=('https:'==document.location.protocol)?'https://polldaddy.com/survey.js':'http://i0.poll.fm/survey.js';s=document.getElementsByTagName(c)[0];s.parentNode.insertBefore(pd,s);}}(document,'script','pd-embed'));
|
|
</script>
|
|
<% else %>
|
|
<script type="text/javascript" charset="utf-8" src="https://secure.polldaddy.com/p/9927957.js"></script>
|
|
<noscript><a href="https://polldaddy.com/poll/9927957/">In what category are you in?</a></noscript>
|
|
<% endif %>
|
|
|
|
<hr>
|
|
|
|
<div class="feature-section one-col mailpoet_centered">
|
|
<a class="button button-primary go-to-plugin" href="admin.php?page=mailpoet-newsletters"><%= __('Awesome! Now, take me to MailPoet') %> →</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
jQuery(function($) {
|
|
$(function() {
|
|
MailPoet.trackEvent(
|
|
'User has updated MailPoet',
|
|
{'MailPoet Free version': window.mailpoet_version}
|
|
);
|
|
});
|
|
$('#mailpoet_analytics_enabled').on('click', function() {
|
|
var is_enabled = $(this).is(':checked') ? true : '';
|
|
MailPoet.Ajax.post({
|
|
api_version: window.mailpoet_api_version,
|
|
endpoint: 'settings',
|
|
action: 'set',
|
|
data: {
|
|
analytics: { enabled: (is_enabled)}
|
|
}
|
|
}).fail(function(response) {
|
|
if (response.errors.length > 0) {
|
|
MailPoet.Notice.error(
|
|
response.errors.map(function(error) { return error.message; }),
|
|
{ scroll: true }
|
|
);
|
|
}
|
|
});
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
<% endblock %>
|