deactivationSurvey
7 years ago
emails
6 years ago
form
5 years ago
newsletter
5 years ago
subscribers
5 years ago
subscription
5 years ago
woocommerce
6 years ago
automatic_emails.html
6 years ago
blank.html
8 years ago
experimental-features.html
7 years ago
forms.html
5 years ago
help.html
5 years ago
index.html
8 years ago
index.php
9 years ago
layout.html
5 years ago
mp2migration.html
7 years ago
mss_pitch_translations.html
5 years ago
newsletters.html
5 years ago
premium.html
5 years ago
segments.html
5 years ago
settings.html
5 years ago
update.html
7 years ago
welcome_wizard.html
5 years ago
woocommerce_setup.html
5 years ago
woocommerce_setup_translations.html
5 years ago
layout.html
185 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 | <!-- pre connect to 3d party to speed up page loading --> |
| 13 | <link rel="preconnect" href="https://beacon-v2.helpscout.net/"> |
| 14 | <link rel="dns-prefetch" href="https://beacon-v2.helpscout.net/"> |
| 15 | <link rel="preconnect" href="http://cdn.mxpnl.com"> |
| 16 | <link rel="dns-prefetch" href="http://cdn.mxpnl.com"> |
| 17 | |
| 18 | <!-- system notices --> |
| 19 | <div id="mailpoet_notice_system" class="mailpoet_notice" style="display:none;"></div> |
| 20 | |
| 21 | <!-- handlebars templates --> |
| 22 | <% block templates %><% endblock %> |
| 23 | |
| 24 | <!-- main container --> |
| 25 | <% block container %> |
| 26 | <div class="wrap"> |
| 27 | <!-- notices --> |
| 28 | <div id="mailpoet_notice_error" class="mailpoet_notice" style="display:none;"></div> |
| 29 | <div id="mailpoet_notice_success" class="mailpoet_notice" style="display:none;"></div> |
| 30 | <!-- React notices --> |
| 31 | <div id="mailpoet_notices"></div> |
| 32 | |
| 33 | <!-- Set FROM address modal React root --> |
| 34 | <div id="mailpoet_set_from_address_modal"></div> |
| 35 | |
| 36 | <!-- title block --> |
| 37 | <% block title %><% endblock %> |
| 38 | <!-- content block --> |
| 39 | <% block content %><% endblock %> |
| 40 | </div> |
| 41 | <% endblock %> |
| 42 | |
| 43 | <!-- stylesheets --> |
| 44 | <%= stylesheet( |
| 45 | 'mailpoet-plugin.css' |
| 46 | )%> |
| 47 | |
| 48 | <%= do_action('mailpoet_styles_admin_after') %> |
| 49 | |
| 50 | <% block after_css %><% endblock %> |
| 51 | |
| 52 | <script type="text/javascript"> |
| 53 | var mailpoet_date_format = "<%= wp_datetime_format()|escape('js') %>"; |
| 54 | var mailpoet_time_format = "<%= wp_time_format()|escape('js') %>"; |
| 55 | var mailpoet_version = "<%= mailpoet_version() %>"; |
| 56 | var mailpoet_locale = "<%= mailpoet_locale() %>"; |
| 57 | var mailpoet_premium_version = <%= json_encode(mailpoet_premium_version()) %>; |
| 58 | var mailpoet_analytics_enabled = <%= is_analytics_enabled() | json_encode %>; |
| 59 | var mailpoet_analytics_data = <%= json_encode(get_analytics_data()) %>; |
| 60 | var mailpoet_analytics_public_id = <%= json_encode(get_analytics_public_id()) %>; |
| 61 | var mailpoet_analytics_new_public_id = <%= is_analytics_public_id_new() | json_encode %>; |
| 62 | var mailpoet_free_domains = <%= json_encode(mailpoet_free_domains()) %>; |
| 63 | var mailpoet_woocommerce_active = <%= json_encode(is_woocommerce_active()) %>; |
| 64 | // RFC 5322 standard; http://emailregex.com/ combined with https://google.github.io/closure-library/api/goog.format.EmailAddress.html#isValid |
| 65 | 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,})))/; |
| 66 | var mailpoet_feature_flags = <%= json_encode(feature_flags) %>; |
| 67 | var mailpoet_referral_id = <%= json_encode(referral_id) %>; |
| 68 | </script> |
| 69 | |
| 70 | <!-- javascripts --> |
| 71 | <%= javascript( |
| 72 | 'vendor.js', |
| 73 | 'mailpoet.js' |
| 74 | )%> |
| 75 | |
| 76 | <%= localize({ |
| 77 | 'ajaxFailedErrorMessage': __('An error has happened while performing a request, the server has responded with response code %d'), |
| 78 | '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'), |
| 79 | 'senderEmailAddressWarning2': _x('Use an address like %1$s for the Sender and put %2$s in the <em>Reply-to</em> field below.', 'In the last step, before sending a newsletter. URL: ?page=mailpoet-newsletters#/send/2'), |
| 80 | 'senderEmailAddressWarning3': _x('Read more.'), |
| 81 | 'mailerSendingResumedNotice': __('Sending has been resumed.'), |
| 82 | 'dismissNotice': __('Dismiss this notice.'), |
| 83 | |
| 84 | 'subscribersLimitNoticeTitle': __('Congratulations, you now have more than [subscribersLimit] subscribers!'), |
| 85 | 'freeVersionLimit': __('Our free version is limited to [subscribersLimit] subscribers.'), |
| 86 | 'yourPlanLimit': __('Your plan is limited to [subscribersLimit] subscribers.'), |
| 87 | 'youNeedToUpgrade': __('You need to upgrade now to be able to continue using MailPoet.'), |
| 88 | 'upgradeNow': __('Upgrade Now'), |
| 89 | 'refreshMySubscribers': __('I’ve upgraded my subscription, refresh subscriber limit'), |
| 90 | |
| 91 | 'setFromAddressModalTitle': __('It’s time to set your default FROM address!', 'mailpoet'), |
| 92 | 'setFromAddressModalDescription': __('Set one of [link]your authorized email addresses[/link] as the default FROM email for your MailPoet emails.', 'mailpoet'), |
| 93 | 'setFromAddressModalSave': __('Save', 'mailpoet'), |
| 94 | 'setFromAddressEmailSuccess': __('Excellent. Your authorized email was saved. You can change it in the [link]Basics tab of the MailPoet settings[/link].', 'mailpoet'), |
| 95 | 'setFromAddressEmailNotAuthorized': __('Can’t use this email yet! [link]Please authorize it first[/link].', 'mailpoet'), |
| 96 | 'setFromAddressEmailUnknownError': __('An error occured when saving FROM email address.', 'mailpoet'), |
| 97 | |
| 98 | 'reviewRequestHeading': _x('Thank you! Time to tell the world?', 'After a user gives us positive feedback via the NPS poll, we ask them to review our plugin on WordPress.org.'), |
| 99 | 'reviewRequestDidYouKnow': __('[username], did you know that hundreds of WordPress users read the reviews on the plugin repository? They’re also a source of inspiration for our team.'), |
| 100 | 'reviewRequestUsingForDays': _n('You’ve been using MailPoet for [days] day now, and we would love to read your own review.', 'You’ve been using MailPoet for [days] days now, and we would love to read your own review.', installed_days_ago), |
| 101 | 'reviewRequestUsingForMonths': _n('You’ve been using MailPoet for [months] month now, and we would love to read your own review.', 'You’ve been using MailPoet for [months] months now, and we would love to read your own review.', (installed_days_ago / 30) | round), |
| 102 | 'reviewRequestRateUsNow': _x('Rate us now', 'Review our plugin on WordPress.org.'), |
| 103 | 'reviewRequestNotNow': __('Not now'), |
| 104 | |
| 105 | 'notSentYet': __('Not sent yet!'), |
| 106 | }) %> |
| 107 | <% block translations %><% endblock %> |
| 108 | |
| 109 | <% block after_translations %><% endblock %> |
| 110 | |
| 111 | <%= javascript( |
| 112 | 'admin_vendor_chunk.js', |
| 113 | 'admin_vendor.js' |
| 114 | )%> |
| 115 | |
| 116 | <%= do_action('mailpoet_scripts_admin_before') %> |
| 117 | |
| 118 | <%= javascript( |
| 119 | 'admin.js' |
| 120 | )%> |
| 121 | |
| 122 | <%= javascript('lib/analytics.js') %> |
| 123 | |
| 124 | <% set helpscout_form_id = '1c666cab-c0f6-4614-bc06-e5d0ad78db2b' %> |
| 125 | <%if mailpoet_api_key_state.data.support_tier == 'premium' %> |
| 126 | <% set helpscout_form_id = 'e93d0423-1fa6-4bbc-9df9-c174f823c35f' %> |
| 127 | <% endif %> |
| 128 | |
| 129 | <script type="text/javascript">!function(e,t,n){function a(){var e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,a){e.Beacon.readyQueue.push({method:t,options:n,data:a})},n.readyQueue=[],"complete"===t.readyState)return a();e.attachEvent?e.attachEvent("onload",a):e.addEventListener("load",a,!1)}(window,document,window.Beacon||function(){});</script> |
| 130 | |
| 131 | <script type="text/javascript"></script> |
| 132 | |
| 133 | <script type="text/javascript"> |
| 134 | if(window['Beacon'] !== undefined && window.hide_mailpoet_beacon !== true) { |
| 135 | window.Beacon('init', '<%= helpscout_form_id %>'); |
| 136 | |
| 137 | // HelpScout Beacon: Configuration |
| 138 | window.Beacon("config", { |
| 139 | icon: 'message', |
| 140 | zIndex: 50000, |
| 141 | instructions: "<%= __('Want to give feedback to the MailPoet team? Contact us here. Please provide as much information as possible!') %>", |
| 142 | showContactFields: true |
| 143 | }); |
| 144 | |
| 145 | // HelpScout Beacon: Custom information |
| 146 | window.Beacon("identify", |
| 147 | <%= json_encode(get_helpscout_data()) %> |
| 148 | ); |
| 149 | |
| 150 | if (window.mailpoet_beacon_articles) { |
| 151 | window.Beacon('suggest', window.mailpoet_beacon_articles) |
| 152 | } |
| 153 | } |
| 154 | </script> |
| 155 | <script> |
| 156 | Parsley.addMessages('mailpoet', { |
| 157 | defaultMessage: '<%= __("This value seems to be invalid.") %>', |
| 158 | type: { |
| 159 | email: '<%= __("This value should be a valid email.") %>', |
| 160 | url: '<%= __("This value should be a valid url.") %>', |
| 161 | number: '<%= __("This value should be a valid number.") %>', |
| 162 | integer: '<%= __("This value should be a valid integer.") %>', |
| 163 | digits: '<%= __("This value should be digits.") %>', |
| 164 | alphanum: '<%= __("This value should be alphanumeric.") %>' |
| 165 | }, |
| 166 | notblank: '<%= __("This value should not be blank.") %>', |
| 167 | required: '<%= __("This value is required.") %>', |
| 168 | pattern: '<%= __("This value seems to be invalid.") %>', |
| 169 | min: '<%= __("This value should be greater than or equal to %s.") %>', |
| 170 | max: '<%= __("This value should be lower than or equal to %s.") %>', |
| 171 | range: '<%= __("This value should be between %s and %s.") %>', |
| 172 | minlength: '<%= __("This value is too short. It should have %s characters or more.") %>', |
| 173 | maxlength: '<%= __("This value is too long. It should have %s characters or fewer.") %>', |
| 174 | length: '<%= __("This value length is invalid. It should be between %s and %s characters long.") %>', |
| 175 | mincheck: '<%= __("You must select at least %s choices.") %>', |
| 176 | maxcheck: '<%= __("You must select %s choices or fewer.") %>', |
| 177 | check: '<%= __("You must select between %s and %s choices.") %>', |
| 178 | equalto: '<%= __("This value should be the same.") %>' |
| 179 | }); |
| 180 | |
| 181 | Parsley.setLocale('mailpoet'); |
| 182 | </script> |
| 183 | <% block after_javascript %><% endblock %> |
| 184 | <div id="mailpoet-modal"></div> |
| 185 |