Няма описание

segments.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <% extends 'layout.html' %>
  2. <% block content %>
  3. <div id="segments_container"></div>
  4. <script type="text/javascript">
  5. var mailpoet_listing_per_page = <%= items_per_page %>;
  6. var mailpoet_beacon_articles = [
  7. '5d667fc22c7d3a7a4d77c426',
  8. '57f47ca3c697914f21035256',
  9. '5d4beee42c7d3a330e3c4207',
  10. '5e187a3a2c7d3a7e9ae607ff',
  11. '57ce079f903360649f6e56fc',
  12. '5d722c7104286364bc8ecf19',
  13. '5a574bd92c7d3a194368233e',
  14. '59a89621042863033a1c82e6'
  15. ];
  16. var mailpoet_mss_active = <%= json_encode(mss_active) %>;
  17. var mailpoet_subscribers_limit = <%= subscribers_limit ? subscribers_limit : 'false' %>;
  18. var mailpoet_subscribers_limit_reached = <%= subscribers_limit_reached ? 'true' : 'false' %>;
  19. var mailpoet_has_valid_api_key = <%= has_valid_api_key ? 'true' : 'false' %>;
  20. var mailpoet_mss_key_invalid = <%= mss_key_invalid ? 'true' : 'false' %>;
  21. var mailpoet_subscribers_count = <%= subscriber_count %>;
  22. var mailpoet_custom_fields = <%= json_encode(custom_fields) %>;
  23. var mailpoet_has_premium_support = <%= has_premium_support ? 'true' : 'false' %>;
  24. var wordpress_editable_roles_list = <%= json_encode(wordpress_editable_roles_list) %>;
  25. var mailpoet_newsletters_list = <%= json_encode(newsletters_list) %>;
  26. var mailpoet_product_categories = <%= json_encode(product_categories) %>;
  27. var mailpoet_products = <%= json_encode(products) %>;
  28. var mailpoet_subscription_products = <%= json_encode(subscription_products) %>;
  29. var is_woocommerce_active = <%= json_encode(is_woocommerce_active) %>;
  30. var mailpoet_can_use_woocommerce_subscriptions = <%= json_encode(can_use_woocommerce_subscriptions) %>;
  31. var mailpoet_woocommerce_currency_symbol = <%= json_encode(woocommerce_currency_symbol) %>;
  32. var mailpoet_woocommerce_countries = <%= json_encode(woocommerce_countries) %>;
  33. var mailpoet_tracking_enabled = <%= json_encode(tracking_enabled) %>;
  34. var mailpoet_subscribers_counts_cache_created_at = <%= json_encode(subscribers_counts_cache_created_at) %>;
  35. </script>
  36. <% endblock %>
  37. <% block translations %>
  38. <%= localize({
  39. 'pageTitle': __('Lists'),
  40. 'searchLabel': __('Search'),
  41. 'loadingItems': __('Loading lists...'),
  42. 'noItemsFound': __('No lists found'),
  43. 'selectAllLabel': __('All lists on this page are selected.'),
  44. 'selectedAllLabel': __('All %d lists are selected.'),
  45. 'selectAllLink': __('Select all lists on all pages'),
  46. 'clearSelection': __('Clear selection'),
  47. 'permanentlyDeleted': __('%d lists were permanently deleted.'),
  48. 'selectBulkAction': __('Select bulk action'),
  49. 'bulkActions': __('Bulk Actions'),
  50. 'apply': __('Apply'),
  51. 'name': __('Name'),
  52. 'description': __('Description'),
  53. 'segmentUpdated': __('List successfully updated!'),
  54. 'segmentAdded': __('List successfully added!'),
  55. 'segment': __('List'),
  56. 'subscribed': __('Subscribed'),
  57. 'unconfirmed': __('Unconfirmed'),
  58. 'unsubscribed': __('Unsubscribed'),
  59. 'inactive': __('Inactive'),
  60. 'bounced': __('Bounced'),
  61. 'createdOn': __('Created on'),
  62. 'oneSegmentTrashed': __('1 list was moved to the trash. Note that deleting a list does not delete its subscribers.'),
  63. 'multipleSegmentsTrashed': __('%$1d lists were moved to the trash. Note that deleting a list does not delete its subscribers.'),
  64. 'oneSegmentDeleted': __('1 list was permanently deleted. Note that deleting a list does not delete its subscribers.'),
  65. 'multipleSegmentsDeleted': __('%$1d lists were permanently deleted. Note that deleting a list does not delete its subscribers.'),
  66. 'oneSegmentRestored': __('1 list has been restored from the Trash.'),
  67. 'multipleSegmentsRestored': __('%$1d lists have been restored from the Trash.'),
  68. 'duplicate': __('Duplicate'),
  69. 'listDuplicated': __('List "%$1s" has been duplicated.'),
  70. 'update': __('Update'),
  71. 'forceSync': __('Force Sync'),
  72. 'readMore': __('Read More'),
  73. 'listSynchronized': __('List "%$1s" has been synchronized.'),
  74. 'viewSubscribers': __('View Subscribers'),
  75. 'new': __('New List'),
  76. 'newSegment': __('New Segment'),
  77. 'edit': __('Edit'),
  78. 'trash': __('Trash'),
  79. 'moveToTrash': __('Move to trash'),
  80. 'emptyTrash': __('Empty Trash'),
  81. 'selectAll': __('Select All'),
  82. 'restore': __('Restore'),
  83. 'deletePermanently': __('Delete permanently'),
  84. 'save': __('Save'),
  85. 'trashAndDisable': __('Trash and disable'),
  86. 'restoreAndEnable': __('Restore and enable'),
  87. 'listScore': __('List score'),
  88. 'previousPage': __('Previous page'),
  89. 'firstPage': __('First page'),
  90. 'nextPage': __('Next page'),
  91. 'lastPage': __('Last page'),
  92. 'currentPage': __('Current page'),
  93. 'pageOutOf': __('of'),
  94. 'numberOfItemsSingular': __('1 item'),
  95. 'numberOfItemsMultiple': __('%$1d items'),
  96. 'segmentDescriptionTip': __('This text box is for your own use and is never shown to your subscribers.'),
  97. 'backToList': __('Back'),
  98. 'subscribersInPlanCount': _x('%$1d / %$2d', 'count / total subscribers'),
  99. 'subscribersInPlan': _x('%s subscribers in your plan', 'number of subscribers in a sending plan'),
  100. '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.'),
  101. 'mailpoetSubscribers': _x('%s MailPoet subscribers', 'number of subscribers in the plugin'),
  102. 'mailpoetSubscribersTooltipFree': __('This is the total of all subscribers including %$1d WordPress users. To exclude WordPress users, please purchase one of our premium plans.'),
  103. 'mailpoetSubscribersTooltipPremium': __('This is the total of all subscribers excluding all WordPress users.'),
  104. 'pageTitleSegments': __('Segments'),
  105. 'formPageTitle': __('Segment'),
  106. 'formSegmentTitle': __('Segment'),
  107. 'descriptionTip': __('This text box is for your own use and is never shown to your subscribers.'),
  108. 'dynamicSegmentUpdated': __('Segment successfully updated!'),
  109. 'dynamicSegmentAdded': __('Segment successfully added!'),
  110. 'segmentType': __('Type'),
  111. 'wpUserRole': __('Subscriber'),
  112. 'email': __('Email'),
  113. 'nameColumn': __('Name'),
  114. 'subscribersCountColumn': __('Number of subscribers'),
  115. 'updatedAtColumn': __('Modified on'),
  116. 'missingPluginMessageColumn': __('Missing plugin message'),
  117. 'loadingDynamicSegmentItems': __('Loading data…'),
  118. 'noDynamicSegmentItemsFound': __('No segments found'),
  119. 'numberOfItemsSingular': __('1 item'),
  120. 'numberOfItemsMultiple': __('%$1d items'),
  121. 'previousPage': __('Previous page'),
  122. 'firstPage': __('First page'),
  123. 'nextPage': __('Next page'),
  124. 'lastPage': __('Last page'),
  125. 'currentPage': __('Current page'),
  126. 'pageOutOf': _x('of', 'Page X of Y'),
  127. 'notSentYet': __('Not sent yet'),
  128. 'selectLinkPlaceholder': __('Select link'),
  129. 'selectNewsletterPlaceholder': __('Select email'),
  130. 'selectActionPlaceholder': __('Select action'),
  131. 'selectUserRolePlaceholder': __('Select user role'),
  132. 'selectCustomFieldPlaceholder': __('Select custom field'),
  133. 'emailActionOpened': _x('opened', 'Dynamic segment creation: when newsletter was opened'),
  134. 'emailActionMachineOpened': _x('machine-opened', 'Dynamic segment creation: list of all subscribers that opened the newsletter automatically in the background'),
  135. 'emailActionOpensAbsoluteCount': __('# of opens'),
  136. 'emailActionMachineOpensAbsoluteCount': __('# of machine-opens'),
  137. 'emailActionOpens': __('opens'),
  138. 'emailActionDays': __('days'),
  139. 'emailActionOpensSentence': _x('{condition} {opens} opens', 'The result will be "more than 20 opens"'),
  140. 'emailActionOpensDaysSentence': _x('in the last {days} days', 'The result will be "in the last 5 days"'),
  141. 'moreThan': __('more than'),
  142. 'lessThan': __('less than'),
  143. 'equals': __('equals'),
  144. 'contains': __('contains'),
  145. 'value': __('value'),
  146. 'selectValue': __('Select value'),
  147. 'checked': __('checked'),
  148. 'unchecked': __('unchecked'),
  149. 'before': _x('before', 'Meaning: "Subscriber subscribed before Aprile"'),
  150. 'after': _x('after', 'Meaning: "Subscriber subscribed after April'),
  151. 'inTheLast': _x('in the last', 'Meaning: "Subscriber subscribed in the last 3 days"'),
  152. 'notInTheLast': _x('not in the last', 'Meaning: "Subscriber subscribed not in the last 3 days"'),
  153. 'emailActionNotOpened': _x('not opened', 'Dynamic segment creation: when newsletter was not opened'),
  154. 'emailActionClicked': _x('clicked', 'Dynamic segment creation: when a newsletter link was clicked'),
  155. 'emailActionClickedAnyEmail': _x('clicked any email', 'Dynamic segment creation: when a newsletter link in any email was clicked'),
  156. 'emailActionNotClicked': _x('not clicked', 'Dynamic segment creation: when a newsletter link was not clicked'),
  157. 'searchLabel': __('Search'),
  158. 'segmentsTip': _x('Tip', 'A note about dynamic segments usage'),
  159. 'segmentsTipText': __('segments allow you to group your subscribers by other criteria, such as events and actions.'),
  160. 'segmentsTipLink': __('Read more.'),
  161. 'subscribedDate': __('subscribed date'),
  162. 'segmentsSubscriber': __('WordPress user role'),
  163. 'mailpoetCustomField': __('MailPoet custom field'),
  164. 'segmentsActiveSubscription': __('has an active subscription'),
  165. 'woocommerceSubscriptions': _x('WooCommerce Subscriptions', 'Dynamic segment creation: User selects this to use any WooCommerce Subscriptions filters'),
  166. 'selectWooSubscription': __('Search subscriptions'),
  167. 'oneDynamicSegmentTrashed': __('1 segment was moved to the trash.'),
  168. 'multipleDynamicSegmentsTrashed': __('%$1d segments were moved to the trash.'),
  169. 'oneDynamicSegmentRestored': __('1 segment has been restored from the Trash.'),
  170. 'multipleDynamicSegmentsRestored': __('%$1d segments have been restored from the Trash.'),
  171. 'multipleDynamicSegmentsDeleted': __('%$1d segments were permanently deleted.'),
  172. 'oneDynamicSegmentDeleted': __('1 segment was permanently deleted.'),
  173. 'wooNumberOfOrders': __('# of orders'),
  174. 'equal': __('equal'),
  175. 'moreThan': __('more than'),
  176. 'lessThan': __('less than'),
  177. 'wooNumberOfOrdersCount': __('count'),
  178. 'daysPlaceholder': __('days'),
  179. 'days': _x('days', 'Appears together with `inTheLast` when creating a new WooCommerce segment based on the number of orders.'),
  180. 'inTheLast': _x('in the last', 'Appears together with `days` when creating a new WooCommerce segment based on the number of orders.'),
  181. 'wooNumberOfOrdersOrders': __('orders'),
  182. 'wooPurchasedCategory': __('purchased in this category'),
  183. 'wooPurchasedProduct': __('purchased this product'),
  184. 'wooTotalSpent': __('total spent'),
  185. 'wooCustomerInCountry': __('is in country'),
  186. 'wooTotalSpentAmount': __('amount'),
  187. 'selectWooPurchasedCategory': __('Search category'),
  188. 'selectWooPurchasedProduct': __('Search products'),
  189. 'selectWooCountry': __('Select country'),
  190. 'woocommerce': _x('WooCommerce', 'Dynamic segment creation: User selects this to use any woocommerce filters'),
  191. 'dynamicSegmentSizeIsCalculated': __('Calculating segment size…'),
  192. 'dynamicSegmentSizeCalculatingTimeout': __("It's taking longer than usual to generate the segment, which may be due to a complex configuration. Try using fewer or simpler conditions."),
  193. 'dynamicSegmentSize': __('This segment has %$1d subscribers.'),
  194. 'unknownBadgeName': __('Unknown'),
  195. 'unknownBadgeTooltip': __('Not enough data.'),
  196. 'tooltipUnknown': __('Fewer than 3 emails sent'),
  197. 'excellentBadgeName': __('Excellent'),
  198. 'excellentBadgeTooltip': __('Congrats!'),
  199. 'tooltipExcellent': __('50% or more'),
  200. 'goodBadgeName': __('Good'),
  201. 'goodBadgeTooltip': __('Good stuff.'),
  202. 'tooltipGood': __('between 20 and 50%'),
  203. 'averageBadgeName': __('Low'),
  204. 'averageBadgeTooltip': __('Something to improve.'),
  205. 'tooltipAverage': __('20% or fewer'),
  206. 'engagementScoreDescription': __('Average percent of emails subscribers read in the last year'),
  207. 'addCondition': __('Add a condition'),
  208. 'allConditions': _x('<strong>All</strong> of the following conditions', 'Dynamic segment creation: The user can select join between condition when he has more than one'),
  209. 'anyConditions': _x('<strong>Any</strong> of the following conditions', 'Dynamic segment creation: The user can select join between condition when he has more than one'),
  210. 'filterConnectAnd': _x('and', 'Dynamic segment creation: The user can see logical operator between condition when has more than one'),
  211. 'filterConnectOr': _x('or', 'Dynamic segment creation: The user can see logical operator between condition when has more than one'),
  212. 'subscribersCountWereCalculated': __('Lists and Segments subscribers counts were calculated'),
  213. 'subscribersMinutesAgo': __('minutes ago'),
  214. 'recalculateNow': __('Recalculate now'),
  215. 'privacyProtectionNotice': __('Due to email privacy protections, some opens may not be tracked. Consider using a different engagement metric.'),
  216. }) %>
  217. <% endblock %>