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
segments.html
168 lines
| 1 | <% extends 'layout.html' %> |
| 2 | |
| 3 | <% block content %> |
| 4 | <div id="segments_container"></div> |
| 5 | |
| 6 | <script type="text/javascript"> |
| 7 | var mailpoet_listing_per_page = <%= items_per_page %>; |
| 8 | var mailpoet_beacon_articles = [ |
| 9 | '5d667fc22c7d3a7a4d77c426', |
| 10 | '57f47ca3c697914f21035256', |
| 11 | '5d4beee42c7d3a330e3c4207', |
| 12 | '5e187a3a2c7d3a7e9ae607ff', |
| 13 | '57ce079f903360649f6e56fc', |
| 14 | '5d722c7104286364bc8ecf19', |
| 15 | '5a574bd92c7d3a194368233e', |
| 16 | '59a89621042863033a1c82e6' |
| 17 | ]; |
| 18 | var mailpoet_mss_active = <%= json_encode(mss_active) %>; |
| 19 | var mailpoet_subscribers_limit = <%= subscribers_limit ? subscribers_limit : 'false' %>; |
| 20 | var mailpoet_subscribers_limit_reached = <%= subscribers_limit_reached ? 'true' : 'false' %>; |
| 21 | var mailpoet_has_valid_api_key = <%= has_valid_api_key ? 'true' : 'false' %>; |
| 22 | var mailpoet_mss_key_invalid = <%= mss_key_invalid ? 'true' : 'false' %>; |
| 23 | var mailpoet_subscribers_count = <%= subscriber_count %>; |
| 24 | var mailpoet_subscribers_in_plan_count = <%= subscriber_count %>; |
| 25 | var mailpoet_premium_subscribers_count = <%= premium_subscriber_count %>; |
| 26 | var mailpoet_has_premium_support = <%= has_premium_support ? 'true' : 'false' %>; |
| 27 | var mailpoet_wp_users_count = <%= wp_users_count ? wp_users_count : 'false' %>; |
| 28 | var wordpress_editable_roles_list = <%= json_encode(wordpress_editable_roles_list) %>; |
| 29 | var mailpoet_newsletters_list = <%= json_encode(newsletters_list) %>; |
| 30 | var mailpoet_product_categories = <%= json_encode(product_categories) %>; |
| 31 | mailpoet_product_categories = mailpoet_product_categories.map(function(category) { |
| 32 | category.id = category.cat_ID; |
| 33 | return category; |
| 34 | }); |
| 35 | var mailpoet_products = <%= json_encode(products) %>; |
| 36 | mailpoet_products = mailpoet_products.map(function(product) { |
| 37 | product.id = product.ID; |
| 38 | return product; |
| 39 | }); |
| 40 | var is_woocommerce_active = <%= json_encode(is_woocommerce_active) %>; |
| 41 | |
| 42 | </script> |
| 43 | <% endblock %> |
| 44 | |
| 45 | <% block translations %> |
| 46 | <%= localize({ |
| 47 | 'pageTitle': __('Lists'), |
| 48 | 'searchLabel': __('Search'), |
| 49 | 'loadingItems': __('Loading lists...'), |
| 50 | 'noItemsFound': __('No lists found'), |
| 51 | 'selectAllLabel': __('All lists on this page are selected.'), |
| 52 | 'selectedAllLabel': __('All %d lists are selected.'), |
| 53 | 'selectAllLink': __('Select all lists on all pages'), |
| 54 | 'clearSelection': __('Clear selection'), |
| 55 | 'permanentlyDeleted': __('%d lists were permanently deleted.'), |
| 56 | 'selectBulkAction': __('Select bulk action'), |
| 57 | 'bulkActions': __('Bulk Actions'), |
| 58 | 'apply': __('Apply'), |
| 59 | 'name': __('Name'), |
| 60 | 'description': __('Description'), |
| 61 | 'segmentUpdated': __('List successfully updated!'), |
| 62 | 'segmentAdded': __('List successfully added!'), |
| 63 | 'segment': __('List'), |
| 64 | 'subscribed': __('Subscribed'), |
| 65 | 'unconfirmed': __('Unconfirmed'), |
| 66 | 'unsubscribed': __('Unsubscribed'), |
| 67 | 'inactive': __('Inactive'), |
| 68 | 'bounced': __('Bounced'), |
| 69 | 'createdOn': __('Created on'), |
| 70 | 'oneSegmentTrashed': __('1 list was moved to the trash. Note that deleting a list does not delete its subscribers.'), |
| 71 | 'multipleSegmentsTrashed': __('%$1d lists were moved to the trash. Note that deleting a list does not delete its subscribers.'), |
| 72 | 'oneSegmentDeleted': __('1 list was permanently deleted. Note that deleting a list does not delete its subscribers.'), |
| 73 | 'multipleSegmentsDeleted': __('%$1d lists were permanently deleted. Note that deleting a list does not delete its subscribers.'), |
| 74 | 'oneSegmentRestored': __('1 list has been restored from the Trash.'), |
| 75 | 'multipleSegmentsRestored': __('%$1d lists have been restored from the Trash.'), |
| 76 | 'duplicate': __('Duplicate'), |
| 77 | 'listDuplicated': __('List "%$1s" has been duplicated.'), |
| 78 | 'update': __('Update'), |
| 79 | 'forceSync': __('Force Sync'), |
| 80 | 'readMore': __('Read More'), |
| 81 | 'listSynchronized': __('List "%$1s" has been synchronized.'), |
| 82 | 'viewSubscribers': __('View Subscribers'), |
| 83 | 'new': __('New List'), |
| 84 | 'newSegment': __('New Segment'), |
| 85 | 'edit': __('Edit'), |
| 86 | 'trash': __('Trash'), |
| 87 | 'moveToTrash': __('Move to trash'), |
| 88 | 'emptyTrash': __('Empty Trash'), |
| 89 | 'selectAll': __('Select All'), |
| 90 | 'restore': __('Restore'), |
| 91 | 'deletePermanently': __('Delete permanently'), |
| 92 | 'save': __('Save'), |
| 93 | 'trashDisallowed': _x('List cannot be deleted because it’s used for %$1s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.'), |
| 94 | |
| 95 | 'previousPage': __('Previous page'), |
| 96 | 'firstPage': __('First page'), |
| 97 | 'nextPage': __('Next page'), |
| 98 | 'lastPage': __('Last page'), |
| 99 | 'currentPage': __('Current page'), |
| 100 | 'pageOutOf': __('of'), |
| 101 | 'numberOfItemsSingular': __('1 item'), |
| 102 | 'numberOfItemsMultiple': __('%$1d items'), |
| 103 | 'allSendingPausedHeader': __('All sending is currently paused!'), |
| 104 | 'allSendingPausedBody': __('Your key to send with MailPoet is invalid.'), |
| 105 | 'allSendingPausedLink': __('Purchase a key'), |
| 106 | |
| 107 | 'segmentDescriptionTip': __('This text box is for your own use and is never shown to your subscribers.'), |
| 108 | 'backToList': __('Back'), |
| 109 | |
| 110 | 'subscribersInPlanCount': _x('%$1d / %$2d', 'count / total subscribers'), |
| 111 | 'subscribersInPlan': _x('%s subscribers in your plan', 'number of subscribers in a sending plan'), |
| 112 | 'subscribersInPlanTooltip': __('This is the total of subscribed, unconfirmed and inactive subscribers we count when you are sending with MailPoet Sending Service. The count excludes unsubscribed and bounced (invalid) email addresses.'), |
| 113 | |
| 114 | 'mailpoetSubscribers': _x('%s MailPoet subscribers', 'number of subscribers in the plugin'), |
| 115 | 'mailpoetSubscribersTooltipFree': __('This is the total of all subscribers including %$1d WordPress users. To exclude WordPress users, please purchase one of our premium plans.'), |
| 116 | 'mailpoetSubscribersTooltipPremium': __('This is the total of all subscribers excluding all WordPress users.'), |
| 117 | |
| 118 | 'pageTitleSegments': __('Segments'), |
| 119 | 'formPageTitle': __('Segment'), |
| 120 | 'formSegmentTitle': __('Segment'), |
| 121 | 'descriptionTip': __('This text box is for your own use and is never shown to your subscribers.'), |
| 122 | 'dynamicSegmentUpdated': __('Segment successfully updated!'), |
| 123 | 'dynamicSegmentAdded': __('Segment successfully added!'), |
| 124 | 'segmentType': __('Type'), |
| 125 | 'wpUserRole': __('WordPress user roles'), |
| 126 | 'email': __('Email'), |
| 127 | 'nameColumn': __('Name'), |
| 128 | 'subscribersCountColumn': __('Number of subscribers'), |
| 129 | 'updatedAtColumn': __('Modified on'), |
| 130 | 'loadingDynamicSegmentItems': __('Loading data…'), |
| 131 | 'noDynamicSegmentItemsFound': __('No segments found'), |
| 132 | 'numberOfItemsSingular': __('1 item'), |
| 133 | 'numberOfItemsMultiple': __('%$1d items'), |
| 134 | 'previousPage': __('Previous page'), |
| 135 | 'firstPage': __('First page'), |
| 136 | 'nextPage': __('Next page'), |
| 137 | 'lastPage': __('Last page'), |
| 138 | 'currentPage': __('Current page'), |
| 139 | 'pageOutOf': _x('of', 'Page X of Y'), |
| 140 | 'notSentYet': __('Not sent yet'), |
| 141 | 'selectLinkPlaceholder': __('Select link'), |
| 142 | 'selectNewsletterPlaceholder': __('Select email'), |
| 143 | 'selectActionPlaceholder': __('Select action'), |
| 144 | 'selectUserRolePlaceholder': __('Select user role'), |
| 145 | 'emailActionOpened': _x('opened', 'Dynamic segment creation: when newsletter was opened'), |
| 146 | 'emailActionNotOpened': _x('not opened', 'Dynamic segment creation: when newsletter was not opened'), |
| 147 | 'emailActionClicked': _x('clicked', 'Dynamic segment creation: when a newsletter link was clicked'), |
| 148 | 'emailActionNotClicked': _x('not clicked', 'Dynamic segment creation: when a newsletter link was not clicked'), |
| 149 | 'searchLabel': __('Search'), |
| 150 | 'segmentsTip': _x('Tip', 'A note about dynamic segments usage'), |
| 151 | 'segmentsTipText': __('segments allow you to group your subscribers by other criteria, such as events and actions.'), |
| 152 | 'segmentsTipLink': __('Read more.'), |
| 153 | |
| 154 | 'oneDynamicSegmentTrashed': __('1 segment was moved to the trash.'), |
| 155 | 'multipleDynamicSegmentsTrashed': __('%$1d segments were moved to the trash.'), |
| 156 | 'oneDynamicSegmentRestored': __('1 segment has been restored from the Trash.'), |
| 157 | 'multipleDynamicSegmentsRestored': __('%$1d segments have been restored from the Trash.'), |
| 158 | 'multipleDynamicSegmentsDeleted': __('%$1d segments were permanently deleted.'), |
| 159 | 'oneDynamicSegmentDeleted': __('1 segment was permanently deleted.'), |
| 160 | |
| 161 | 'wooPurchasedCategory': __('Customers who have purchased in this category…'), |
| 162 | 'wooPurchasedProduct': __('Customers who have purchased this product…'), |
| 163 | 'selectWooPurchasedCategory': __('Search category'), |
| 164 | 'selectWooPurchasedProduct': __('Search products'), |
| 165 | 'woocommerce': _x('WooCommerce', 'Dynamic segment creation: User selects this to use any woocommerce filters'), |
| 166 | }) %> |
| 167 | <% endblock %> |
| 168 |