admin_user_status_field.html
1 year ago
confirm_unsubscribe.html
2 months ago
index.php
3 years ago
manage_subscription.html
2 months ago
unsubscribe_reason.html
2 months ago
manage_subscription.html
65 lines
| 1 | <% block content %> |
| 2 | <form class="mailpoet-manage-subscription<% if isModernStyle %> mailpoet-manage-subscription--modern<% endif %><% if isModernStyle and isGloballyUnsubscribed %> mailpoet-manage-subscription--global-unsubscribed<% endif %>" method="post" action="<%= actionUrl|escape %>" novalidate> |
| 3 | <input type="hidden" name="action" value="mailpoet_subscription_update" /> |
| 4 | <input type="hidden" name="data[segments]" value="" /> |
| 5 | <input type="hidden" name="mailpoet_redirect" value="<%= redirectUrl|escape %>"/> |
| 6 | <input type="hidden" name="data[email]" value="<%= email|escape %>" /> |
| 7 | <input type="hidden" name="token" value="<%= token %>" /> |
| 8 | <% if isModernStyle %> |
| 9 | <% if formState == 'success' %> |
| 10 | <p class="mailpoet-submit-success" role="status" aria-live="polite"> |
| 11 | <%= _x('Your subscription settings have been saved.', 'success message after saving subscription settings') %> |
| 12 | </p> |
| 13 | <% elseif formState == 'error' %> |
| 14 | <p class="mailpoet-submit-error" role="alert" aria-live="assertive" tabindex="-1"> |
| 15 | <%= _x('We could not save your subscription settings. Please review the form and try again.', 'error message after failing to save subscription settings') %> |
| 16 | </p> |
| 17 | <% endif %> |
| 18 | <section class="mailpoet-manage-subscription-section mailpoet-manage-subscription-settings"> |
| 19 | <h2><%= __('Your email settings', 'mailpoet') %></h2> |
| 20 | <p class="mailpoet-manage-subscription-section-description"> |
| 21 | <%= __('Review your email address and choose whether you can receive emails from this site.', 'mailpoet') %> |
| 22 | </p> |
| 23 | <p class="mailpoet_paragraph mailpoet-manage-subscription-email"> |
| 24 | <span class="mailpoet_text_label"><%= __('Email address', 'mailpoet') %></span> |
| 25 | <strong><%= email|escape %></strong> |
| 26 | <span class="mailpoet-change-email-info"> |
| 27 | <% set allowedHtml = {'a': {'href': [], 'target': [], 'rel': []}} %> |
| 28 | <%= editEmailInfo|wpKses(allowedHtml) %> |
| 29 | </span> |
| 30 | </p> |
| 31 | <%= identityFieldsHtml|raw %> |
| 32 | <% if not hasVisibleLists %> |
| 33 | <p class="mailpoet-manage-subscription-no-lists"> |
| 34 | <%= __('There are no individual list preferences to manage for this email address.', 'mailpoet') %> |
| 35 | </p> |
| 36 | <% endif %> |
| 37 | <%= additionalIdentityFieldsHtml|raw %> |
| 38 | </section> |
| 39 | <%= listFieldsHtml|raw %> |
| 40 | <div class="mailpoet-manage-subscription-actions"> |
| 41 | <%= submitHtml|raw %> |
| 42 | </div> |
| 43 | <% else %> |
| 44 | <p class="mailpoet_paragraph"> |
| 45 | <label> <%= __('Email', 'mailpoet') %><br /><strong><%= email|escape %></strong></label> |
| 46 | <br /> |
| 47 | <span class="mailpoet-change-email-info"> |
| 48 | <% set allowedHtml = {'a': {'href': [], 'target': [], 'rel': []}} %> |
| 49 | <%= editEmailInfo|wpKses(allowedHtml) %> |
| 50 | </span> |
| 51 | </p> |
| 52 | <%= formHtml|raw %> |
| 53 | <% if formState == 'success' %> |
| 54 | <p class="mailpoet-submit-success"> |
| 55 | <%= _x('Your preferences have been saved.', 'success message after saving subscription settings') %> |
| 56 | </p> |
| 57 | <% elseif formState == 'error' %> |
| 58 | <p class="mailpoet-submit-error" role="alert" aria-live="assertive" tabindex="-1"> |
| 59 | <%= _x('We could not save your subscription settings. Please review the form and try again.', 'error message after failing to save subscription settings') %> |
| 60 | </p> |
| 61 | <% endif %> |
| 62 | <% endif %> |
| 63 | </form> |
| 64 | <% endblock %> |
| 65 |