Files
piratepoet/views/update.html
pavel-mailpoet 812c6634ba Mixpanel analytics [MAILPOET-686] (#940)
* Send analytics data to mixpanel

[MAILPOET-686]
2017-06-20 12:20:50 +03:00

63 lines
1.9 KiB
HTML

<% extends 'layout.html' %>
<% block content %>
<style type="text/css">
#mailpoet-changelog ul {
list-style: disc;
padding-left: 20px;
}
</style>
<div class="wrap mailpoet-about-wrap">
<h1><%= __('Welcome to MailPoet') %> <%= settings.version %></h1>
<p class="about-text"><%= __("Thank you for helping us test and improve this new version of MailPoet. You're one of our extra-special beta testers. We really appreciate your help!") %>
</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" clas="feature-section one-col">
<h2><%= __("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>
<br>
<% endfor %>
<% else %>
<p style="text-align: center"><%= __("See readme.txt for a changelog.") %></p>
<% endif %>
</div>
<hr>
<div clas="feature-section one-col">
<br>
<p style="text-align: center"><a class="button button-primary" href="admin.php?page=mailpoet-newsletters"><%= __("Awesome! Now, take me to MailPoet") %> &rarr;</a> <a class="button button-secondary" href="https://wordpress.org/plugins/mailpoet/#developers" target="_blank"><%= __("View all changes") %> &rarr;</a></p>
</div>
</div>
<script type="text/javascript">
jQuery(function($) {
$(function() {
MailPoet.trackEvent(
'User has updated MailPoet',
{'MailPoet Free version': window.mailpoet_version}
);
});
});
</script>
<% endblock %>