deactivationSurvey
7 years ago
emails
7 years ago
form
7 years ago
newsletter
7 years ago
settings
7 years ago
subscribers
7 years ago
blank.html
8 years ago
forms.html
7 years ago
help.html
7 years ago
index.html
8 years ago
index.php
9 years ago
invalidkey.html
8 years ago
layout.html
7 years ago
limit.html
7 years ago
mp2migration.html
7 years ago
newsletters.html
7 years ago
premium.html
7 years ago
segments.html
7 years ago
settings.html
7 years ago
update.html
7 years ago
welcome_wizard.html
7 years ago
layout.html
122 lines
| 1 | <% if sub_menu %> |
| 2 | <script type="text/javascript"> |
| 3 | jQuery('.toplevel_page_mailpoet-newsletters.menu-top-last') |
| 4 | .addClass('wp-has-current-submenu') |
| 5 | .find('a[href$="<%= sub_menu %>"]') |
| 6 | .addClass('current') |
| 7 | .parent() |
| 8 | .addClass('current'); |
| 9 | </script> |
| 10 | <% endif %> |
| 11 | |
| 12 | <!-- system notices --> |
| 13 | <div id="mailpoet_notice_system" class="mailpoet_notice" style="display:none;"></div> |
| 14 | |
| 15 | <!-- handlebars templates --> |
| 16 | <% block templates %><% endblock %> |
| 17 | |
| 18 | <!-- main container --> |
| 19 | <div class="wrap"> |
| 20 | <!-- notices --> |
| 21 | <div id="mailpoet_notice_error" class="mailpoet_notice" style="display:none;"></div> |
| 22 | <div id="mailpoet_notice_success" class="mailpoet_notice" style="display:none;"></div> |
| 23 | |
| 24 | <!-- title block --> |
| 25 | <% block title %><% endblock %> |
| 26 | <!-- content block --> |
| 27 | <% block content %><% endblock %> |
| 28 | </div> |
| 29 | |
| 30 | <!-- stylesheets --> |
| 31 | <%= stylesheet( |
| 32 | 'admin.css' |
| 33 | )%> |
| 34 | |
| 35 | <%= do_action('mailpoet_styles_admin_after') %> |
| 36 | |
| 37 | <!-- rtl specific stylesheet --> |
| 38 | <% if is_rtl() %> |
| 39 | <%= stylesheet('rtl.css') %> |
| 40 | <% endif %> |
| 41 | |
| 42 | <% block after_css %><% endblock %> |
| 43 | |
| 44 | <script type="text/javascript"> |
| 45 | var mailpoet_date_format = "<%= wp_datetime_format()|escape('js') %>"; |
| 46 | var mailpoet_time_format = "<%= wp_time_format()|escape('js') %>"; |
| 47 | var mailpoet_version = "<%= mailpoet_version() %>"; |
| 48 | var mailpoet_locale = "<%= mailpoet_locale() %>"; |
| 49 | var mailpoet_polls_data = <%= json_encode(get_polls_data()) %>; |
| 50 | var mailpoet_polls_visibility = <%= json_encode(get_polls_visiblity()) %>; |
| 51 | var mailpoet_premium_version = <%= json_encode(mailpoet_premium_version()) %>; |
| 52 | var mailpoet_analytics_enabled = <%= is_analytics_enabled() | json_encode %>; |
| 53 | var mailpoet_analytics_data = <%= json_encode(get_analytics_data()) %>; |
| 54 | var mailpoet_analytics_public_id = <%= json_encode(get_analytics_public_id()) %>; |
| 55 | var mailpoet_analytics_new_public_id = <%= is_analytics_public_id_new() | json_encode %>; |
| 56 | // RFC 5322 standard; http://emailregex.com/ combined with https://google.github.io/closure-library/api/goog.format.EmailAddress.html#isValid |
| 57 | 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,})))/; |
| 58 | </script> |
| 59 | |
| 60 | <!-- javascripts --> |
| 61 | <%= javascript( |
| 62 | 'vendor.js', |
| 63 | 'mailpoet.js' |
| 64 | )%> |
| 65 | |
| 66 | <%= localize({ |
| 67 | 'ajaxFailedErrorMessage': __('An error has happened while performing a request, the server has responded with response code %d'), |
| 68 | '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'), |
| 69 | 'senderEmailAddressWarning2': _x('Use an address like %suggested for the Sender and put %originalSender in the the <em>Reply-to</em> field below.', 'In the last step, before sending a newsletter. URL: ?page=mailpoet-newsletters#/send/2'), |
| 70 | 'senderEmailAddressWarning3': _x('Read more.'), |
| 71 | }) %> |
| 72 | <% block translations %><% endblock %> |
| 73 | |
| 74 | <% block after_translations %><% endblock %> |
| 75 | |
| 76 | <%= javascript( |
| 77 | 'admin_vendor_chunk.js', |
| 78 | 'admin_vendor.js' |
| 79 | )%> |
| 80 | |
| 81 | <%= do_action('mailpoet_scripts_admin_before') %> |
| 82 | |
| 83 | <%= javascript( |
| 84 | 'admin.js' |
| 85 | )%> |
| 86 | |
| 87 | <%= javascript('lib/analytics.js') %> |
| 88 | |
| 89 | <% set has_valid_premium_key = mailpoet_has_valid_premium_key() %> |
| 90 | |
| 91 | <% set helpscout_form_id = 'dd918048-8d73-11e7-b5b5-0ec85169275a' %> |
| 92 | <%if has_valid_premium_key %> |
| 93 | <% set helpscout_form_id = '6974b88d-8d85-11e7-b5b5-0ec85169275a' %> |
| 94 | <% endif %> |
| 95 | <script>!function(e,o,n){window.HSCW=o,window.HS=n,n.beacon=n.beacon||{};var t=n.beacon;t.userConfig={},t.readyQueue=[],t.config=function(e){this.userConfig=e},t.ready=function(e){this.readyQueue.push(e)},o.config={docs:{enabled:!0,baseUrl:"https://mailpoet3.helpscoutdocs.com/"},contact:{enabled:!0,formId:"<%= helpscout_form_id %>"}};var r=e.getElementsByTagName("script")[0],c=e.createElement("script");c.type="text/javascript",c.async=!0,c.src="https://djtflbt20bdde.cloudfront.net/",r.parentNode.insertBefore(c,r)}(document,window.HSCW||{},window.HS||{});</script> |
| 96 | |
| 97 | <script type="text/javascript"> |
| 98 | if(window['HS'] !== undefined) { |
| 99 | // HelpScout Beacon: Configuration |
| 100 | HS.beacon.config({ |
| 101 | icon: 'message', |
| 102 | zIndex: 50000, |
| 103 | instructions: "<%= __('Want to give feedback to the MailPoet team? Contact us here. Please provide as much information as possible!') %>", |
| 104 | showContactFields: true |
| 105 | }); |
| 106 | |
| 107 | // HelpScout Beacon: Custom information |
| 108 | HS.beacon.ready(function() { |
| 109 | HS.beacon.identify( |
| 110 | <%= json_encode(get_helpscout_data()) %> |
| 111 | ); |
| 112 | }); |
| 113 | } |
| 114 | </script> |
| 115 | |
| 116 | |
| 117 | <script> |
| 118 | // SatisMeter for tracking NPS score |
| 119 | (function() { window.satismeter = window.satismeter || function() {(window.satismeter.q = window.satismeter.q || []).push(arguments);};window.satismeter.l = 1 * new Date();var script = document.createElement("script");var parent = document.getElementsByTagName("script")[0].parentNode;script.async = 1;script.src = "https://app.satismeter.com/satismeter.js";parent.appendChild(script);})(); |
| 120 | </script> |
| 121 | <% block after_javascript %><% endblock %> |
| 122 |