editor.html
1942 lines
| 1 | <% extends 'layout.html' %> |
| 2 | |
| 3 | <% block templates %> |
| 4 | <%= partial( |
| 5 | 'newsletter_editor_template_tools_generic', |
| 6 | 'newsletter/templates/blocks/base/toolsGeneric.hbs' |
| 7 | ) %> |
| 8 | <%= partial( |
| 9 | 'newsletter_editor_template_automated_latest_content_block', |
| 10 | 'newsletter/templates/blocks/automatedLatestContent/block.hbs' |
| 11 | ) %> |
| 12 | <%= partial( |
| 13 | 'newsletter_editor_template_automated_latest_content_widget', |
| 14 | 'newsletter/templates/blocks/automatedLatestContent/widget.hbs' |
| 15 | ) %> |
| 16 | <%= partial( |
| 17 | 'newsletter_editor_template_automated_latest_content_settings', |
| 18 | 'newsletter/templates/blocks/automatedLatestContent/settings.hbs' |
| 19 | ) %> |
| 20 | <%= partial( |
| 21 | 'newsletter_editor_template_automated_latest_content_layout_block', |
| 22 | 'newsletter/templates/blocks/automatedLatestContentLayout/block.hbs' |
| 23 | ) %> |
| 24 | <%= partial( |
| 25 | 'newsletter_editor_template_automated_latest_content_layout_widget', |
| 26 | 'newsletter/templates/blocks/automatedLatestContentLayout/widget.hbs' |
| 27 | ) %> |
| 28 | <%= partial( |
| 29 | 'newsletter_editor_template_automated_latest_content_layout_settings', |
| 30 | 'newsletter/templates/blocks/automatedLatestContentLayout/settings.hbs' |
| 31 | ) %> |
| 32 | <%= partial( |
| 33 | 'newsletter_editor_template_dynamic_products_block', |
| 34 | 'newsletter/templates/blocks/dynamicProducts/block.hbs' |
| 35 | ) %> |
| 36 | <%= partial( |
| 37 | 'newsletter_editor_template_dynamic_products_widget', |
| 38 | 'newsletter/templates/blocks/dynamicProducts/widget.hbs' |
| 39 | ) %> |
| 40 | <%= partial( |
| 41 | 'newsletter_editor_template_dynamic_products_settings', |
| 42 | 'newsletter/templates/blocks/dynamicProducts/settings.hbs' |
| 43 | ) %> |
| 44 | <%= partial( |
| 45 | 'newsletter_editor_template_button_block', |
| 46 | 'newsletter/templates/blocks/button/block.hbs' |
| 47 | ) %> |
| 48 | <%= partial( |
| 49 | 'newsletter_editor_template_button_widget', |
| 50 | 'newsletter/templates/blocks/button/widget.hbs' |
| 51 | ) %> |
| 52 | <%= partial( |
| 53 | 'newsletter_editor_template_button_settings', |
| 54 | 'newsletter/templates/blocks/button/settings.hbs' |
| 55 | ) %> |
| 56 | <%= partial( |
| 57 | 'newsletter_editor_template_container_block', |
| 58 | 'newsletter/templates/blocks/container/block.hbs' |
| 59 | ) %> |
| 60 | <%= partial( |
| 61 | 'newsletter_editor_template_container_block_empty', |
| 62 | 'newsletter/templates/blocks/container/emptyBlock.hbs' |
| 63 | ) %> |
| 64 | <%= partial( |
| 65 | 'newsletter_editor_template_container_one_column_widget', |
| 66 | 'newsletter/templates/blocks/container/oneColumnLayoutWidget.hbs' |
| 67 | ) %> |
| 68 | <%= partial( |
| 69 | 'newsletter_editor_template_container_two_column_widget', |
| 70 | 'newsletter/templates/blocks/container/twoColumnLayoutWidget.hbs' |
| 71 | ) %> |
| 72 | <%= partial( |
| 73 | 'newsletter_editor_template_container_two_column_12_widget', |
| 74 | 'newsletter/templates/blocks/container/twoColumnLayoutWidget12.hbs' |
| 75 | ) %> |
| 76 | <%= partial( |
| 77 | 'newsletter_editor_template_container_two_column_21_widget', |
| 78 | 'newsletter/templates/blocks/container/twoColumnLayoutWidget21.hbs' |
| 79 | ) %> |
| 80 | <%= partial( |
| 81 | 'newsletter_editor_template_container_three_column_widget', |
| 82 | 'newsletter/templates/blocks/container/threeColumnLayoutWidget.hbs' |
| 83 | ) %> |
| 84 | <%= partial( |
| 85 | 'newsletter_editor_template_container_settings', |
| 86 | 'newsletter/templates/blocks/container/settings.hbs' |
| 87 | ) %> |
| 88 | <%= partial( |
| 89 | 'newsletter_editor_template_container_column_settings', |
| 90 | 'newsletter/templates/blocks/container/columnSettings.hbs' |
| 91 | ) %> |
| 92 | <%= partial( |
| 93 | 'newsletter_editor_template_divider_block', |
| 94 | 'newsletter/templates/blocks/divider/block.hbs' |
| 95 | ) %> |
| 96 | <%= partial( |
| 97 | 'newsletter_editor_template_divider_widget', |
| 98 | 'newsletter/templates/blocks/divider/widget.hbs' |
| 99 | ) %> |
| 100 | <%= partial( |
| 101 | 'newsletter_editor_template_divider_settings', |
| 102 | 'newsletter/templates/blocks/divider/settings.hbs' |
| 103 | ) %> |
| 104 | <%= partial( |
| 105 | 'newsletter_editor_template_footer_block', |
| 106 | 'newsletter/templates/blocks/footer/block.hbs' |
| 107 | ) %> |
| 108 | <%= partial( |
| 109 | 'newsletter_editor_template_footer_widget', |
| 110 | 'newsletter/templates/blocks/footer/widget.hbs' |
| 111 | ) %> |
| 112 | <%= partial( |
| 113 | 'newsletter_editor_template_footer_settings', |
| 114 | 'newsletter/templates/blocks/footer/settings.hbs' |
| 115 | ) %> |
| 116 | <%= partial( |
| 117 | 'newsletter_editor_template_header_block', |
| 118 | 'newsletter/templates/blocks/header/block.hbs' |
| 119 | ) %> |
| 120 | <%= partial( |
| 121 | 'newsletter_editor_template_header_widget', |
| 122 | 'newsletter/templates/blocks/header/widget.hbs' |
| 123 | ) %> |
| 124 | <%= partial( |
| 125 | 'newsletter_editor_template_header_settings', |
| 126 | 'newsletter/templates/blocks/header/settings.hbs' |
| 127 | ) %> |
| 128 | <%= partial( |
| 129 | 'newsletter_editor_template_image_block', |
| 130 | 'newsletter/templates/blocks/image/block.hbs' |
| 131 | ) %> |
| 132 | <%= partial( |
| 133 | 'newsletter_editor_template_image_widget', |
| 134 | 'newsletter/templates/blocks/image/widget.hbs' |
| 135 | ) %> |
| 136 | <%= partial( |
| 137 | 'newsletter_editor_template_image_settings', |
| 138 | 'newsletter/templates/blocks/image/settings.hbs' |
| 139 | ) %> |
| 140 | <%= partial( |
| 141 | 'newsletter_editor_template_posts_block', |
| 142 | 'newsletter/templates/blocks/posts/block.hbs' |
| 143 | ) %> |
| 144 | <%= partial( |
| 145 | 'newsletter_editor_template_posts_widget', |
| 146 | 'newsletter/templates/blocks/posts/widget.hbs' |
| 147 | ) %> |
| 148 | <%= partial( |
| 149 | 'newsletter_editor_template_posts_settings', |
| 150 | 'newsletter/templates/blocks/posts/settings.hbs' |
| 151 | ) %> |
| 152 | <%= partial( |
| 153 | 'newsletter_editor_template_posts_settings_display_options', |
| 154 | 'newsletter/templates/blocks/posts/settingsDisplayOptions.hbs' |
| 155 | ) %> |
| 156 | <%= partial( |
| 157 | 'newsletter_editor_template_posts_settings_selection', |
| 158 | 'newsletter/templates/blocks/posts/settingsSelection.hbs' |
| 159 | ) %> |
| 160 | <%= partial( |
| 161 | 'newsletter_editor_template_posts_settings_selection_empty', |
| 162 | 'newsletter/templates/blocks/posts/settingsSelectionEmpty.hbs' |
| 163 | ) %> |
| 164 | <%= partial( |
| 165 | 'newsletter_editor_template_posts_settings_single_post', |
| 166 | 'newsletter/templates/blocks/posts/settingsSinglePost.hbs' |
| 167 | ) %> |
| 168 | <%= partial( |
| 169 | 'newsletter_editor_template_products_block', |
| 170 | 'newsletter/templates/blocks/products/block.hbs' |
| 171 | ) %> |
| 172 | <%= partial( |
| 173 | 'newsletter_editor_template_products_widget', |
| 174 | 'newsletter/templates/blocks/products/widget.hbs' |
| 175 | ) %> |
| 176 | <%= partial( |
| 177 | 'newsletter_editor_template_products_settings', |
| 178 | 'newsletter/templates/blocks/products/settings.hbs' |
| 179 | ) %> |
| 180 | <%= partial( |
| 181 | 'newsletter_editor_template_products_settings_display_options', |
| 182 | 'newsletter/templates/blocks/products/settingsDisplayOptions.hbs' |
| 183 | ) %> |
| 184 | <%= partial( |
| 185 | 'newsletter_editor_template_products_settings_selection', |
| 186 | 'newsletter/templates/blocks/products/settingsSelection.hbs' |
| 187 | ) %> |
| 188 | <%= partial( |
| 189 | 'newsletter_editor_template_products_settings_selection_empty', |
| 190 | 'newsletter/templates/blocks/products/settingsSelectionEmpty.hbs' |
| 191 | ) %> |
| 192 | <%= partial( |
| 193 | 'newsletter_editor_template_products_settings_single_post', |
| 194 | 'newsletter/templates/blocks/products/settingsSinglePost.hbs' |
| 195 | ) %> |
| 196 | <%= partial( |
| 197 | 'newsletter_editor_template_acc_block', |
| 198 | 'newsletter/templates/blocks/abandonedCartContent/block.hbs' |
| 199 | ) %> |
| 200 | <%= partial( |
| 201 | 'newsletter_editor_template_acc_widget', |
| 202 | 'newsletter/templates/blocks/abandonedCartContent/widget.hbs' |
| 203 | ) %> |
| 204 | <%= partial( |
| 205 | 'newsletter_editor_template_acc_settings', |
| 206 | 'newsletter/templates/blocks/abandonedCartContent/settings.hbs' |
| 207 | ) %> |
| 208 | <%= partial( |
| 209 | 'newsletter_editor_template_acc_settings_display_options', |
| 210 | 'newsletter/templates/blocks/abandonedCartContent/settingsDisplayOptions.hbs' |
| 211 | ) %> |
| 212 | <%= partial( |
| 213 | 'newsletter_editor_template_social_block', |
| 214 | 'newsletter/templates/blocks/social/block.hbs' |
| 215 | ) %> |
| 216 | <%= partial( |
| 217 | 'newsletter_editor_template_social_block_icon', |
| 218 | 'newsletter/templates/blocks/social/blockIcon.hbs' |
| 219 | ) %> |
| 220 | <%= partial( |
| 221 | 'newsletter_editor_template_social_widget', |
| 222 | 'newsletter/templates/blocks/social/widget.hbs' |
| 223 | ) %> |
| 224 | <%= partial( |
| 225 | 'newsletter_editor_template_social_settings', |
| 226 | 'newsletter/templates/blocks/social/settings.hbs' |
| 227 | ) %> |
| 228 | <%= partial( |
| 229 | 'newsletter_editor_template_social_settings_icon', |
| 230 | 'newsletter/templates/blocks/social/settingsIcon.hbs' |
| 231 | ) %> |
| 232 | <%= partial( |
| 233 | 'newsletter_editor_template_social_settings_icon_selector', |
| 234 | 'newsletter/templates/blocks/social/settingsIconSelector.hbs' |
| 235 | ) %> |
| 236 | <%= partial( |
| 237 | 'newsletter_editor_template_social_settings_styles', |
| 238 | 'newsletter/templates/blocks/social/settingsStyles.hbs' |
| 239 | ) %> |
| 240 | <%= partial( |
| 241 | 'newsletter_editor_template_spacer_block', |
| 242 | 'newsletter/templates/blocks/spacer/block.hbs' |
| 243 | ) %> |
| 244 | <%= partial( |
| 245 | 'newsletter_editor_template_spacer_widget', |
| 246 | 'newsletter/templates/blocks/spacer/widget.hbs' |
| 247 | ) %> |
| 248 | <%= partial( |
| 249 | 'newsletter_editor_template_spacer_settings', |
| 250 | 'newsletter/templates/blocks/spacer/settings.hbs' |
| 251 | ) %> |
| 252 | <%= partial( |
| 253 | 'newsletter_editor_template_text_block', |
| 254 | 'newsletter/templates/blocks/text/block.hbs' |
| 255 | ) %> |
| 256 | <%= partial( |
| 257 | 'newsletter_editor_template_text_widget', |
| 258 | 'newsletter/templates/blocks/text/widget.hbs' |
| 259 | ) %> |
| 260 | <%= partial( |
| 261 | 'newsletter_editor_template_text_settings', |
| 262 | 'newsletter/templates/blocks/text/settings.hbs' |
| 263 | ) %> |
| 264 | <%= partial( |
| 265 | 'newsletter_editor_template_heading', |
| 266 | 'newsletter/templates/components/heading.hbs' |
| 267 | ) %> |
| 268 | <%= partial( |
| 269 | 'newsletter_editor_template_history', |
| 270 | 'newsletter/templates/components/history.hbs' |
| 271 | ) %> |
| 272 | <%= partial( |
| 273 | 'newsletter_editor_template_save', |
| 274 | 'newsletter/templates/components/save.hbs' |
| 275 | ) %> |
| 276 | <%= partial( |
| 277 | 'newsletter_editor_template_styles', |
| 278 | 'newsletter/templates/components/styles.hbs' |
| 279 | ) %> |
| 280 | <%= partial( |
| 281 | 'newsletter_editor_template_newsletter_preview', |
| 282 | 'newsletter/templates/components/newsletterPreview.hbs' |
| 283 | ) %> |
| 284 | <%= partial( |
| 285 | 'newsletter_editor_template_sidebar', |
| 286 | 'newsletter/templates/components/sidebar/sidebar.hbs' |
| 287 | ) %> |
| 288 | <%= partial( |
| 289 | 'newsletter_editor_template_sidebar_content', |
| 290 | 'newsletter/templates/components/sidebar/content.hbs' |
| 291 | ) %> |
| 292 | <%= partial( |
| 293 | 'newsletter_editor_template_sidebar_layout', |
| 294 | 'newsletter/templates/components/sidebar/layout.hbs' |
| 295 | ) %> |
| 296 | <%= partial( |
| 297 | 'newsletter_editor_template_sidebar_styles', |
| 298 | 'newsletter/templates/components/sidebar/styles.hbs' |
| 299 | ) %> |
| 300 | <%= partial( |
| 301 | 'newsletter_editor_template_woocommerce_new_account_content', |
| 302 | 'newsletter/templates/blocks/woocommerceContent/new_account.hbs' |
| 303 | ) %> |
| 304 | <%= partial( |
| 305 | 'newsletter_editor_template_woocommerce_processing_order_content', |
| 306 | 'newsletter/templates/blocks/woocommerceContent/processing_order.hbs' |
| 307 | ) %> |
| 308 | <%= partial( |
| 309 | 'newsletter_editor_template_woocommerce_completed_order_content', |
| 310 | 'newsletter/templates/blocks/woocommerceContent/completed_order.hbs' |
| 311 | ) %> |
| 312 | <%= partial( |
| 313 | 'newsletter_editor_template_woocommerce_customer_note_content', |
| 314 | 'newsletter/templates/blocks/woocommerceContent/customer_note.hbs' |
| 315 | ) %> |
| 316 | <%= partial( |
| 317 | 'newsletter_editor_template_woocommerce_new_account_content_improved', |
| 318 | 'newsletter/templates/blocks/woocommerceContentImproved/new_account.hbs' |
| 319 | ) %> |
| 320 | <%= partial( |
| 321 | 'newsletter_editor_template_woocommerce_processing_order_content_improved', |
| 322 | 'newsletter/templates/blocks/woocommerceContentImproved/processing_order.hbs' |
| 323 | ) %> |
| 324 | <%= partial( |
| 325 | 'newsletter_editor_template_woocommerce_completed_order_content_improved', |
| 326 | 'newsletter/templates/blocks/woocommerceContentImproved/completed_order.hbs' |
| 327 | ) %> |
| 328 | <%= partial( |
| 329 | 'newsletter_editor_template_woocommerce_customer_note_content_improved', |
| 330 | 'newsletter/templates/blocks/woocommerceContentImproved/customer_note.hbs' |
| 331 | ) %> |
| 332 | <%= partial( |
| 333 | 'newsletter_editor_template_woocommerce_content_widget', |
| 334 | 'newsletter/templates/blocks/woocommerceContent/widget.hbs' |
| 335 | ) %> |
| 336 | <%= partial( |
| 337 | 'newsletter_editor_template_woocommerce_heading_block', |
| 338 | 'newsletter/templates/blocks/woocommerceHeading/block.hbs' |
| 339 | ) %> |
| 340 | <%= partial( |
| 341 | 'newsletter_editor_template_woocommerce_heading_widget', |
| 342 | 'newsletter/templates/blocks/woocommerceHeading/widget.hbs' |
| 343 | ) %> |
| 344 | <%= partial( |
| 345 | 'newsletter_editor_template_unknown_block_fallback_block', |
| 346 | 'newsletter/templates/blocks/unknownBlockFallback/block.hbs' |
| 347 | ) %> |
| 348 | <%= partial( |
| 349 | 'newsletter_editor_template_unknown_block_fallback_widget', |
| 350 | 'newsletter/templates/blocks/unknownBlockFallback/widget.hbs' |
| 351 | ) %> |
| 352 | <%= partial( |
| 353 | 'newsletter_editor_template_coupon_block', |
| 354 | 'newsletter/templates/blocks/coupon/block.hbs' |
| 355 | ) %> |
| 356 | <%= partial( |
| 357 | 'newsletter_editor_template_coupon_widget', |
| 358 | 'newsletter/templates/blocks/coupon/widget.hbs' |
| 359 | ) %> |
| 360 | <%= partial( |
| 361 | 'newsletter_editor_template_coupon_settings', |
| 362 | 'newsletter/templates/blocks/coupon/settings.hbs' |
| 363 | ) %> |
| 364 | <% endblock %> |
| 365 | |
| 366 | <% block content %> |
| 367 | <!-- Hidden heading for notices to appear under --> |
| 368 | <h1 style="display:none"><%= __('Newsletter Editor') %></h1> |
| 369 | <div id="mailpoet_editor"> |
| 370 | <div id="mailpoet_editor_steps_heading"></div> |
| 371 | <div class="clearfix"></div> |
| 372 | <div id="mailpoet_editor_heading_left"> |
| 373 | <div id="mailpoet_editor_heading"></div> |
| 374 | </div> |
| 375 | <div id="mailpoet_editor_heading_right"> |
| 376 | <div id="mailpoet_editor_top"></div> |
| 377 | </div> |
| 378 | <div class="clearfix"></div> |
| 379 | <div id="mailpoet_editor_main_wrapper"> |
| 380 | <div id="mailpoet_editor_styles"></div> |
| 381 | <div id="mailpoet_editor_content_container"> |
| 382 | <div class="mailpoet_newsletter_wrapper"> |
| 383 | <div id="mailpoet_editor_content"></div> |
| 384 | </div> |
| 385 | </div> |
| 386 | <div id="mailpoet_editor_sidebar"></div> |
| 387 | <div class="clear"></div> |
| 388 | </div> |
| 389 | <div id="mailpoet_editor_bottom"></div> |
| 390 | |
| 391 | <div class="mailpoet_layer_overlay" style="display:none;"></div> |
| 392 | </div> |
| 393 | |
| 394 | <script type="text/javascript"> |
| 395 | var mailpoet_email_editor_tutorial_seen = '<%= editor_tutorial_seen %>'; |
| 396 | var mailpoet_email_editor_tutorial_url = '<%= cdn_url('newsletter-editor/editor-drag-demo.20190226-1505.mp4') %>'; |
| 397 | var mailpoet_installed_at = '<%= settings.installed_at %>'; |
| 398 | var mailpoet_newsletters_api = <%= json_encode(api) %>; |
| 399 | </script> |
| 400 | |
| 401 | <% if brand_styles.available %> |
| 402 | <script type="text/javascript"> |
| 403 | var mailpoet_brand_styles = { |
| 404 | available: true |
| 405 | }; |
| 406 | </script> |
| 407 | <% endif %> |
| 408 | |
| 409 | <% endblock %> |
| 410 | |
| 411 | <% block after_javascript %> |
| 412 | |
| 413 | <%= do_action('mailpoet_newsletter_editor_after_javascript') %> |
| 414 | |
| 415 | <script type="text/javascript"> |
| 416 | function renderWithFont(node) { |
| 417 | if (!node.element) return node.text; |
| 418 | var $wrapper = jQuery('<span></span>'); |
| 419 | $wrapper.css({'font-family': Handlebars.helpers.fontWithFallback(node.element.value)}); |
| 420 | $wrapper.text(node.text); |
| 421 | return $wrapper; |
| 422 | } |
| 423 | function fontsSelect(selector) { |
| 424 | jQuery(selector).select2({ |
| 425 | minimumResultsForSearch: Infinity, |
| 426 | templateSelection: renderWithFont, |
| 427 | templateResult: renderWithFont |
| 428 | }); |
| 429 | } |
| 430 | |
| 431 | var templates = { |
| 432 | styles: Handlebars.compile( |
| 433 | jQuery('#newsletter_editor_template_styles').html() |
| 434 | ), |
| 435 | save: Handlebars.compile( |
| 436 | jQuery('#newsletter_editor_template_save').html() |
| 437 | ), |
| 438 | heading: Handlebars.compile( |
| 439 | jQuery('#newsletter_editor_template_heading').html() |
| 440 | ), |
| 441 | history: Handlebars.compile( |
| 442 | jQuery('#newsletter_editor_template_history').html() |
| 443 | ), |
| 444 | |
| 445 | sidebar: Handlebars.compile( |
| 446 | jQuery('#newsletter_editor_template_sidebar').html() |
| 447 | ), |
| 448 | sidebarContent: Handlebars.compile( |
| 449 | jQuery('#newsletter_editor_template_sidebar_content').html() |
| 450 | ), |
| 451 | sidebarLayout: Handlebars.compile( |
| 452 | jQuery('#newsletter_editor_template_sidebar_layout').html() |
| 453 | ), |
| 454 | sidebarStyles: Handlebars.compile( |
| 455 | jQuery('#newsletter_editor_template_sidebar_styles').html() |
| 456 | ), |
| 457 | newsletterPreview: Handlebars.compile( |
| 458 | jQuery('#newsletter_editor_template_newsletter_preview').html() |
| 459 | ), |
| 460 | |
| 461 | genericBlockTools: Handlebars.compile( |
| 462 | jQuery('#newsletter_editor_template_tools_generic').html() |
| 463 | ), |
| 464 | |
| 465 | containerBlock: Handlebars.compile( |
| 466 | jQuery('#newsletter_editor_template_container_block').html() |
| 467 | ), |
| 468 | containerEmpty: Handlebars.compile( |
| 469 | jQuery('#newsletter_editor_template_container_block_empty').html() |
| 470 | ), |
| 471 | oneColumnLayoutInsertion: Handlebars.compile( |
| 472 | jQuery('#newsletter_editor_template_container_one_column_widget').html() |
| 473 | ), |
| 474 | twoColumnLayoutInsertion: Handlebars.compile( |
| 475 | jQuery('#newsletter_editor_template_container_two_column_widget').html() |
| 476 | ), |
| 477 | twoColumn12LayoutInsertion: Handlebars.compile( |
| 478 | jQuery('#newsletter_editor_template_container_two_column_12_widget').html() |
| 479 | ), |
| 480 | twoColumn21LayoutInsertion: Handlebars.compile( |
| 481 | jQuery('#newsletter_editor_template_container_two_column_21_widget').html() |
| 482 | ), |
| 483 | threeColumnLayoutInsertion: Handlebars.compile( |
| 484 | jQuery('#newsletter_editor_template_container_three_column_widget').html() |
| 485 | ), |
| 486 | containerBlockSettings: Handlebars.compile( |
| 487 | jQuery('#newsletter_editor_template_container_settings').html() |
| 488 | ), |
| 489 | containerBlockColumnSettings: Handlebars.compile( |
| 490 | jQuery('#newsletter_editor_template_container_column_settings').html() |
| 491 | ), |
| 492 | |
| 493 | buttonBlock: Handlebars.compile( |
| 494 | jQuery('#newsletter_editor_template_button_block').html() |
| 495 | ), |
| 496 | buttonInsertion: Handlebars.compile( |
| 497 | jQuery('#newsletter_editor_template_button_widget').html() |
| 498 | ), |
| 499 | buttonBlockSettings: Handlebars.compile( |
| 500 | jQuery('#newsletter_editor_template_button_settings').html() |
| 501 | ), |
| 502 | |
| 503 | dividerBlock: Handlebars.compile( |
| 504 | jQuery('#newsletter_editor_template_divider_block').html() |
| 505 | ), |
| 506 | dividerInsertion: Handlebars.compile( |
| 507 | jQuery('#newsletter_editor_template_divider_widget').html() |
| 508 | ), |
| 509 | dividerBlockSettings: Handlebars.compile( |
| 510 | jQuery('#newsletter_editor_template_divider_settings').html() |
| 511 | ), |
| 512 | |
| 513 | footerBlock: Handlebars.compile( |
| 514 | jQuery('#newsletter_editor_template_footer_block').html() |
| 515 | ), |
| 516 | footerInsertion: Handlebars.compile( |
| 517 | jQuery('#newsletter_editor_template_footer_widget').html() |
| 518 | ), |
| 519 | footerBlockSettings: Handlebars.compile( |
| 520 | jQuery('#newsletter_editor_template_footer_settings').html() |
| 521 | ), |
| 522 | |
| 523 | headerBlock: Handlebars.compile( |
| 524 | jQuery('#newsletter_editor_template_header_block').html() |
| 525 | ), |
| 526 | headerInsertion: Handlebars.compile( |
| 527 | jQuery('#newsletter_editor_template_header_widget').html() |
| 528 | ), |
| 529 | headerBlockSettings: Handlebars.compile( |
| 530 | jQuery('#newsletter_editor_template_header_settings').html() |
| 531 | ), |
| 532 | |
| 533 | imageBlock: Handlebars.compile( |
| 534 | jQuery('#newsletter_editor_template_image_block').html() |
| 535 | ), |
| 536 | imageInsertion: Handlebars.compile( |
| 537 | jQuery('#newsletter_editor_template_image_widget').html() |
| 538 | ), |
| 539 | imageBlockSettings: Handlebars.compile( |
| 540 | jQuery('#newsletter_editor_template_image_settings').html() |
| 541 | ), |
| 542 | |
| 543 | socialBlock: Handlebars.compile( |
| 544 | jQuery('#newsletter_editor_template_social_block').html() |
| 545 | ), |
| 546 | socialIconBlock: Handlebars.compile( |
| 547 | jQuery('#newsletter_editor_template_social_block_icon').html() |
| 548 | ), |
| 549 | socialInsertion: Handlebars.compile( |
| 550 | jQuery('#newsletter_editor_template_social_widget').html() |
| 551 | ), |
| 552 | socialBlockSettings: Handlebars.compile( |
| 553 | jQuery('#newsletter_editor_template_social_settings').html() |
| 554 | ), |
| 555 | socialSettingsIconSelector: Handlebars.compile( |
| 556 | jQuery('#newsletter_editor_template_social_settings_icon_selector').html() |
| 557 | ), |
| 558 | socialSettingsIcon: Handlebars.compile( |
| 559 | jQuery('#newsletter_editor_template_social_settings_icon').html() |
| 560 | ), |
| 561 | socialSettingsStyles: Handlebars.compile( |
| 562 | jQuery('#newsletter_editor_template_social_settings_styles').html() |
| 563 | ), |
| 564 | |
| 565 | spacerBlock: Handlebars.compile( |
| 566 | jQuery('#newsletter_editor_template_spacer_block').html() |
| 567 | ), |
| 568 | spacerInsertion: Handlebars.compile( |
| 569 | jQuery('#newsletter_editor_template_spacer_widget').html() |
| 570 | ), |
| 571 | spacerBlockSettings: Handlebars.compile( |
| 572 | jQuery('#newsletter_editor_template_spacer_settings').html() |
| 573 | ), |
| 574 | |
| 575 | automatedLatestContentBlock: Handlebars.compile( |
| 576 | jQuery('#newsletter_editor_template_automated_latest_content_block').html() |
| 577 | ), |
| 578 | automatedLatestContentInsertion: Handlebars.compile( |
| 579 | jQuery('#newsletter_editor_template_automated_latest_content_widget').html() |
| 580 | ), |
| 581 | automatedLatestContentBlockSettings: Handlebars.compile( |
| 582 | jQuery('#newsletter_editor_template_automated_latest_content_settings').html() |
| 583 | ), |
| 584 | |
| 585 | automatedLatestContentLayoutBlock: Handlebars.compile( |
| 586 | jQuery('#newsletter_editor_template_automated_latest_content_layout_block').html() |
| 587 | ), |
| 588 | automatedLatestContentLayoutInsertion: Handlebars.compile( |
| 589 | jQuery('#newsletter_editor_template_automated_latest_content_layout_widget').html() |
| 590 | ), |
| 591 | automatedLatestContentLayoutBlockSettings: Handlebars.compile( |
| 592 | jQuery('#newsletter_editor_template_automated_latest_content_layout_settings').html() |
| 593 | ), |
| 594 | |
| 595 | postsBlock: Handlebars.compile( |
| 596 | jQuery('#newsletter_editor_template_posts_block').html() |
| 597 | ), |
| 598 | postsInsertion: Handlebars.compile( |
| 599 | jQuery('#newsletter_editor_template_posts_widget').html() |
| 600 | ), |
| 601 | postsBlockSettings: Handlebars.compile( |
| 602 | jQuery('#newsletter_editor_template_posts_settings').html() |
| 603 | ), |
| 604 | postSelectionPostsBlockSettings: Handlebars.compile( |
| 605 | jQuery('#newsletter_editor_template_posts_settings_selection').html() |
| 606 | ), |
| 607 | emptyPostPostsBlockSettings: Handlebars.compile( |
| 608 | jQuery('#newsletter_editor_template_posts_settings_selection_empty').html() |
| 609 | ), |
| 610 | singlePostPostsBlockSettings: Handlebars.compile( |
| 611 | jQuery('#newsletter_editor_template_posts_settings_single_post').html() |
| 612 | ), |
| 613 | displayOptionsPostsBlockSettings: Handlebars.compile( |
| 614 | jQuery('#newsletter_editor_template_posts_settings_display_options').html() |
| 615 | ), |
| 616 | |
| 617 | productsBlock: Handlebars.compile( |
| 618 | jQuery('#newsletter_editor_template_products_block').html() |
| 619 | ), |
| 620 | productsInsertion: Handlebars.compile( |
| 621 | jQuery('#newsletter_editor_template_products_widget').html() |
| 622 | ), |
| 623 | productsBlockSettings: Handlebars.compile( |
| 624 | jQuery('#newsletter_editor_template_products_settings').html() |
| 625 | ), |
| 626 | postSelectionProductsBlockSettings: Handlebars.compile( |
| 627 | jQuery('#newsletter_editor_template_products_settings_selection').html() |
| 628 | ), |
| 629 | emptyPostProductsBlockSettings: Handlebars.compile( |
| 630 | jQuery('#newsletter_editor_template_products_settings_selection_empty').html() |
| 631 | ), |
| 632 | singlePostProductsBlockSettings: Handlebars.compile( |
| 633 | jQuery('#newsletter_editor_template_products_settings_single_post').html() |
| 634 | ), |
| 635 | displayOptionsProductsBlockSettings: Handlebars.compile( |
| 636 | jQuery('#newsletter_editor_template_products_settings_display_options').html() |
| 637 | ), |
| 638 | |
| 639 | abandonedCartContentBlock: Handlebars.compile( |
| 640 | jQuery('#newsletter_editor_template_acc_block').html() |
| 641 | ), |
| 642 | abandonedCartContentInsertion: Handlebars.compile( |
| 643 | jQuery('#newsletter_editor_template_acc_widget').html() |
| 644 | ), |
| 645 | abandonedCartContentBlockSettings: Handlebars.compile( |
| 646 | jQuery('#newsletter_editor_template_acc_settings').html() |
| 647 | ), |
| 648 | displayOptionsAbandonedCartContentBlockSettings: Handlebars.compile( |
| 649 | jQuery('#newsletter_editor_template_acc_settings_display_options').html() |
| 650 | ), |
| 651 | |
| 652 | textBlock: Handlebars.compile( |
| 653 | jQuery('#newsletter_editor_template_text_block').html() |
| 654 | ), |
| 655 | textInsertion: Handlebars.compile( |
| 656 | jQuery('#newsletter_editor_template_text_widget').html() |
| 657 | ), |
| 658 | textBlockSettings: Handlebars.compile( |
| 659 | jQuery('#newsletter_editor_template_text_settings').html() |
| 660 | ), |
| 661 | |
| 662 | woocommerceNewAccount: Handlebars.compile( |
| 663 | jQuery('#newsletter_editor_template_woocommerce_new_account_content').html() |
| 664 | ), |
| 665 | woocommerceProcessingOrder: Handlebars.compile( |
| 666 | jQuery('#newsletter_editor_template_woocommerce_processing_order_content').html() |
| 667 | ), |
| 668 | woocommerceCompletedOrder: Handlebars.compile( |
| 669 | jQuery('#newsletter_editor_template_woocommerce_completed_order_content').html() |
| 670 | ), |
| 671 | woocommerceCustomerNote: Handlebars.compile( |
| 672 | jQuery('#newsletter_editor_template_woocommerce_customer_note_content').html() |
| 673 | ), |
| 674 | woocommerceContentInsertion: Handlebars.compile( |
| 675 | jQuery('#newsletter_editor_template_woocommerce_content_widget').html() |
| 676 | ), |
| 677 | |
| 678 | woocommerceNewAccountImproved: Handlebars.compile( |
| 679 | jQuery('#newsletter_editor_template_woocommerce_new_account_content_improved').html() |
| 680 | ), |
| 681 | woocommerceProcessingOrderImproved: Handlebars.compile( |
| 682 | jQuery('#newsletter_editor_template_woocommerce_processing_order_content_improved').html() |
| 683 | ), |
| 684 | woocommerceCompletedOrderImproved: Handlebars.compile( |
| 685 | jQuery('#newsletter_editor_template_woocommerce_completed_order_content_improved').html() |
| 686 | ), |
| 687 | woocommerceCustomerNoteImproved: Handlebars.compile( |
| 688 | jQuery('#newsletter_editor_template_woocommerce_customer_note_content_improved').html() |
| 689 | ), |
| 690 | |
| 691 | woocommerceHeadingBlock: Handlebars.compile( |
| 692 | jQuery('#newsletter_editor_template_woocommerce_heading_block').html() |
| 693 | ), |
| 694 | woocommerceHeadingInsertion: Handlebars.compile( |
| 695 | jQuery('#newsletter_editor_template_woocommerce_heading_widget').html() |
| 696 | ), |
| 697 | |
| 698 | unknownBlockFallbackBlock: Handlebars.compile( |
| 699 | jQuery('#newsletter_editor_template_unknown_block_fallback_block').html() |
| 700 | ), |
| 701 | unknownBlockFallbackInsertion: Handlebars.compile( |
| 702 | jQuery('#newsletter_editor_template_unknown_block_fallback_widget').html() |
| 703 | ), |
| 704 | couponBlock: Handlebars.compile( |
| 705 | jQuery('#newsletter_editor_template_coupon_block').html() |
| 706 | ), |
| 707 | couponInsertion: Handlebars.compile( |
| 708 | jQuery('#newsletter_editor_template_coupon_widget').html() |
| 709 | ), |
| 710 | couponBlockSettings: Handlebars.compile( |
| 711 | jQuery('#newsletter_editor_template_coupon_settings').html() |
| 712 | ), |
| 713 | |
| 714 | dynamicProductsBlock: Handlebars.compile( |
| 715 | jQuery('#newsletter_editor_template_dynamic_products_block').html() |
| 716 | ), |
| 717 | dynamicProductsInsertion: Handlebars.compile( |
| 718 | jQuery('#newsletter_editor_template_dynamic_products_widget').html() |
| 719 | ), |
| 720 | dynamicProductsBlockSettings: Handlebars.compile( |
| 721 | jQuery('#newsletter_editor_template_dynamic_products_settings').html() |
| 722 | ), |
| 723 | }; |
| 724 | |
| 725 | var currentUserEmail = '<%= current_wp_user.user_email %>'; |
| 726 | var mailpoet_product_categories = <%= json_encode(product_categories) %>; |
| 727 | var mailpoet_products = <%= json_encode(products) %>; |
| 728 | var mailpoet_original_template_body = <%= json_encode(original_template_body) %>; |
| 729 | |
| 730 | var config = { |
| 731 | availableStyles: { |
| 732 | textSizes: [ |
| 733 | '9px', '10px', '11px', '12px', '13px', '14px', '15px', '16px', |
| 734 | '17px', '18px', '19px', '20px', '21px', '22px', '23px', '24px' |
| 735 | ], |
| 736 | headingSizes: [ |
| 737 | '10px', '12px', '14px', '16px', '18px', '20px', '22px', '24px', |
| 738 | '26px', '30px', '36px', '40px' |
| 739 | ], |
| 740 | lineHeights: [ |
| 741 | '1.0', |
| 742 | '1.2', |
| 743 | '1.4', |
| 744 | '1.6', |
| 745 | '1.8', |
| 746 | '2.0', |
| 747 | ], |
| 748 | fonts: { |
| 749 | standard: [ |
| 750 | 'Arial', |
| 751 | 'Comic Sans MS', |
| 752 | 'Courier New', |
| 753 | 'Georgia', |
| 754 | 'Lucida', |
| 755 | 'Tahoma', |
| 756 | 'Times New Roman', |
| 757 | 'Trebuchet MS', |
| 758 | 'Verdana' |
| 759 | <% if customFontsEnabled %> |
| 760 | ], |
| 761 | custom: [ |
| 762 | 'Arvo', |
| 763 | 'Lato', |
| 764 | 'Lora', |
| 765 | 'Merriweather', |
| 766 | 'Merriweather Sans', |
| 767 | 'Noticia Text', |
| 768 | 'Open Sans', |
| 769 | 'Playfair Display', |
| 770 | 'Roboto', |
| 771 | 'Source Sans Pro', |
| 772 | 'Oswald', |
| 773 | 'Raleway', |
| 774 | 'Permanent Marker', |
| 775 | 'Pacifico', |
| 776 | <% endif %> |
| 777 | ] |
| 778 | }, |
| 779 | socialIconSets: { |
| 780 | 'official': { |
| 781 | 'custom': '<%= image_url( |
| 782 | 'newsletter_editor/social-icons/11-official/Website.png' |
| 783 | ) %>', |
| 784 | 'behance': '<%= image_url( |
| 785 | 'newsletter_editor/social-icons/11-official/Behance.png' |
| 786 | ) %>', |
| 787 | 'bluesky': '<%= image_url( |
| 788 | 'newsletter_editor/social-icons/11-official/Bluesky.png' |
| 789 | ) %>', |
| 790 | 'discord': '<%= image_url( |
| 791 | 'newsletter_editor/social-icons/11-official/Discord.png' |
| 792 | ) %>', |
| 793 | 'email': '<%= image_url( |
| 794 | 'newsletter_editor/social-icons/11-official/Email.png' |
| 795 | ) %>', |
| 796 | 'facebook': '<%= image_url( |
| 797 | 'newsletter_editor/social-icons/11-official/Facebook.png' |
| 798 | ) %>', |
| 799 | 'feed': '<%= image_url( |
| 800 | 'newsletter_editor/social-icons/11-official/Feed.png' |
| 801 | ) %>', |
| 802 | 'github': '<%= image_url( |
| 803 | 'newsletter_editor/social-icons/11-official/Github.png' |
| 804 | ) %>', |
| 805 | 'gravatar': '<%= image_url( |
| 806 | 'newsletter_editor/social-icons/11-official/Gravatar.png' |
| 807 | ) %>', |
| 808 | 'instagram': '<%= image_url( |
| 809 | 'newsletter_editor/social-icons/11-official/Instagram.png' |
| 810 | ) %>', |
| 811 | 'linkedin': '<%= image_url( |
| 812 | 'newsletter_editor/social-icons/11-official/Linkedin.png' |
| 813 | ) %>', |
| 814 | 'mastodon': '<%= image_url( |
| 815 | 'newsletter_editor/social-icons/11-official/Mastodon.png' |
| 816 | ) %>', |
| 817 | 'medium': '<%= image_url( |
| 818 | 'newsletter_editor/social-icons/11-official/Medium.png' |
| 819 | ) %>', |
| 820 | 'patreon': '<%= image_url( |
| 821 | 'newsletter_editor/social-icons/11-official/Patreon.png' |
| 822 | ) %>', |
| 823 | 'pinterest': '<%= image_url( |
| 824 | 'newsletter_editor/social-icons/11-official/Pinterest.png' |
| 825 | ) %>', |
| 826 | 'reddit': '<%= image_url( |
| 827 | 'newsletter_editor/social-icons/11-official/Reddit.png' |
| 828 | ) %>', |
| 829 | 'spotify': '<%= image_url( |
| 830 | 'newsletter_editor/social-icons/11-official/Spotify.png' |
| 831 | ) %>', |
| 832 | 'telegram': '<%= image_url( |
| 833 | 'newsletter_editor/social-icons/11-official/Telegram.png' |
| 834 | ) %>', |
| 835 | 'threads': '<%= image_url( |
| 836 | 'newsletter_editor/social-icons/11-official/Threads.png' |
| 837 | ) %>', |
| 838 | 'tiktok': '<%= image_url( |
| 839 | 'newsletter_editor/social-icons/11-official/Tiktok.png' |
| 840 | ) %>', |
| 841 | 'tumblr': '<%= image_url( |
| 842 | 'newsletter_editor/social-icons/11-official/Tumblr.png' |
| 843 | ) %>', |
| 844 | 'twitch': '<%= image_url( |
| 845 | 'newsletter_editor/social-icons/11-official/Twitch.png' |
| 846 | ) %>', |
| 847 | 'twitter': '<%= image_url( |
| 848 | 'newsletter_editor/social-icons/11-official/Twitter.png' |
| 849 | ) %>', |
| 850 | 'vimeo': '<%= image_url( |
| 851 | 'newsletter_editor/social-icons/11-official/Vimeo.png' |
| 852 | ) %>', |
| 853 | 'website': '<%= image_url( |
| 854 | 'newsletter_editor/social-icons/11-official/Website.png' |
| 855 | ) %>', |
| 856 | 'whatsapp': '<%= image_url( |
| 857 | 'newsletter_editor/social-icons/11-official/Whatsapp.png' |
| 858 | ) %>', |
| 859 | 'wordpress': '<%= image_url( |
| 860 | 'newsletter_editor/social-icons/11-official/Wordpress.png' |
| 861 | ) %>', |
| 862 | 'x': '<%= image_url( |
| 863 | 'newsletter_editor/social-icons/11-official/X.png' |
| 864 | ) %>', |
| 865 | 'youtube': '<%= image_url( |
| 866 | 'newsletter_editor/social-icons/11-official/Youtube.png' |
| 867 | ) %>' |
| 868 | }, |
| 869 | 'official-white': { |
| 870 | 'custom': '<%= image_url( |
| 871 | 'newsletter_editor/social-icons/12-official-white/Website.png' |
| 872 | ) %>', |
| 873 | 'behance': '<%= image_url( |
| 874 | 'newsletter_editor/social-icons/12-official-white/Behance.png' |
| 875 | ) %>', |
| 876 | 'bluesky': '<%= image_url( |
| 877 | 'newsletter_editor/social-icons/12-official-white/Bluesky.png' |
| 878 | ) %>', |
| 879 | 'discord': '<%= image_url( |
| 880 | 'newsletter_editor/social-icons/12-official-white/Discord.png' |
| 881 | ) %>', |
| 882 | 'email': '<%= image_url( |
| 883 | 'newsletter_editor/social-icons/12-official-white/Email.png' |
| 884 | ) %>', |
| 885 | 'facebook': '<%= image_url( |
| 886 | 'newsletter_editor/social-icons/12-official-white/Facebook.png' |
| 887 | ) %>', |
| 888 | 'feed': '<%= image_url( |
| 889 | 'newsletter_editor/social-icons/12-official-white/Feed.png' |
| 890 | ) %>', |
| 891 | 'github': '<%= image_url( |
| 892 | 'newsletter_editor/social-icons/12-official-white/Github.png' |
| 893 | ) %>', |
| 894 | 'gravatar': '<%= image_url( |
| 895 | 'newsletter_editor/social-icons/12-official-white/Gravatar.png' |
| 896 | ) %>', |
| 897 | 'instagram': '<%= image_url( |
| 898 | 'newsletter_editor/social-icons/12-official-white/Instagram.png' |
| 899 | ) %>', |
| 900 | 'linkedin': '<%= image_url( |
| 901 | 'newsletter_editor/social-icons/12-official-white/Linkedin.png' |
| 902 | ) %>', |
| 903 | 'mastodon': '<%= image_url( |
| 904 | 'newsletter_editor/social-icons/12-official-white/Mastodon.png' |
| 905 | ) %>', |
| 906 | 'medium': '<%= image_url( |
| 907 | 'newsletter_editor/social-icons/12-official-white/Medium.png' |
| 908 | ) %>', |
| 909 | 'patreon': '<%= image_url( |
| 910 | 'newsletter_editor/social-icons/12-official-white/Patreon.png' |
| 911 | ) %>', |
| 912 | 'pinterest': '<%= image_url( |
| 913 | 'newsletter_editor/social-icons/12-official-white/Pinterest.png' |
| 914 | ) %>', |
| 915 | 'reddit': '<%= image_url( |
| 916 | 'newsletter_editor/social-icons/12-official-white/Reddit.png' |
| 917 | ) %>', |
| 918 | 'spotify': '<%= image_url( |
| 919 | 'newsletter_editor/social-icons/12-official-white/Spotify.png' |
| 920 | ) %>', |
| 921 | 'telegram': '<%= image_url( |
| 922 | 'newsletter_editor/social-icons/12-official-white/Telegram.png' |
| 923 | ) %>', |
| 924 | 'threads': '<%= image_url( |
| 925 | 'newsletter_editor/social-icons/12-official-white/Threads.png' |
| 926 | ) %>', |
| 927 | 'tiktok': '<%= image_url( |
| 928 | 'newsletter_editor/social-icons/12-official-white/Tiktok.png' |
| 929 | ) %>', |
| 930 | 'tumblr': '<%= image_url( |
| 931 | 'newsletter_editor/social-icons/12-official-white/Tumblr.png' |
| 932 | ) %>', |
| 933 | 'twitch': '<%= image_url( |
| 934 | 'newsletter_editor/social-icons/12-official-white/Twitch.png' |
| 935 | ) %>', |
| 936 | 'twitter': '<%= image_url( |
| 937 | 'newsletter_editor/social-icons/12-official-white/Twitter.png' |
| 938 | ) %>', |
| 939 | 'vimeo': '<%= image_url( |
| 940 | 'newsletter_editor/social-icons/12-official-white/Vimeo.png' |
| 941 | ) %>', |
| 942 | 'website': '<%= image_url( |
| 943 | 'newsletter_editor/social-icons/12-official-white/Website.png' |
| 944 | ) %>', |
| 945 | 'whatsapp': '<%= image_url( |
| 946 | 'newsletter_editor/social-icons/12-official-white/Whatsapp.png' |
| 947 | ) %>', |
| 948 | 'wordpress': '<%= image_url( |
| 949 | 'newsletter_editor/social-icons/12-official-white/Wordpress.png' |
| 950 | ) %>', |
| 951 | 'x': '<%= image_url( |
| 952 | 'newsletter_editor/social-icons/12-official-white/X.png' |
| 953 | ) %>', |
| 954 | 'youtube': '<%= image_url( |
| 955 | 'newsletter_editor/social-icons/12-official-white/Youtube.png' |
| 956 | ) %>' |
| 957 | }, |
| 958 | 'default': { |
| 959 | 'custom': '<%= image_url( |
| 960 | 'newsletter_editor/social-icons/custom.png' |
| 961 | ) %>', |
| 962 | 'facebook': '<%= image_url( |
| 963 | 'newsletter_editor/social-icons/01-social/Facebook.png' |
| 964 | ) %>', |
| 965 | 'twitter': '<%= image_url( |
| 966 | 'newsletter_editor/social-icons/01-social/Twitter.png' |
| 967 | ) %>', |
| 968 | 'youtube': '<%= image_url( |
| 969 | 'newsletter_editor/social-icons/01-social/Youtube.png' |
| 970 | ) %>', |
| 971 | 'website': '<%= image_url( |
| 972 | 'newsletter_editor/social-icons/01-social/Website.png' |
| 973 | ) %>', |
| 974 | 'email': '<%= image_url( |
| 975 | 'newsletter_editor/social-icons/01-social/Email.png' |
| 976 | ) %>', |
| 977 | 'instagram': '<%= image_url( |
| 978 | 'newsletter_editor/social-icons/01-social/Instagram.png' |
| 979 | ) %>', |
| 980 | 'pinterest': '<%= image_url( |
| 981 | 'newsletter_editor/social-icons/01-social/Pinterest.png' |
| 982 | ) %>', |
| 983 | 'linkedin': '<%= image_url( |
| 984 | 'newsletter_editor/social-icons/01-social/LinkedIn.png' |
| 985 | ) %>', |
| 986 | 'bluesky': '<%= image_url( |
| 987 | 'newsletter_editor/social-icons/01-social/Bluesky.png' |
| 988 | ) %>' |
| 989 | }, |
| 990 | 'grey': { |
| 991 | 'custom': '<%= image_url( |
| 992 | 'newsletter_editor/social-icons/custom.png' |
| 993 | ) %>', |
| 994 | 'facebook': '<%= image_url( |
| 995 | 'newsletter_editor/social-icons/02-grey/Facebook.png' |
| 996 | ) %>', |
| 997 | 'twitter': '<%= image_url( |
| 998 | 'newsletter_editor/social-icons/02-grey/Twitter.png' |
| 999 | ) %>', |
| 1000 | 'youtube': '<%= image_url( |
| 1001 | 'newsletter_editor/social-icons/02-grey/Youtube.png' |
| 1002 | ) %>', |
| 1003 | 'website': '<%= image_url( |
| 1004 | 'newsletter_editor/social-icons/02-grey/Website.png' |
| 1005 | ) %>', |
| 1006 | 'email': '<%= image_url( |
| 1007 | 'newsletter_editor/social-icons/02-grey/Email.png' |
| 1008 | ) %>', |
| 1009 | 'instagram': '<%= image_url( |
| 1010 | 'newsletter_editor/social-icons/02-grey/Instagram.png' |
| 1011 | ) %>', |
| 1012 | 'pinterest': '<%= image_url( |
| 1013 | 'newsletter_editor/social-icons/02-grey/Pinterest.png' |
| 1014 | ) %>', |
| 1015 | 'linkedin': '<%= image_url( |
| 1016 | 'newsletter_editor/social-icons/02-grey/LinkedIn.png' |
| 1017 | ) %>', |
| 1018 | 'bluesky': '<%= image_url( |
| 1019 | 'newsletter_editor/social-icons/02-grey/Bluesky.png' |
| 1020 | ) %>', |
| 1021 | }, |
| 1022 | 'white': { |
| 1023 | 'custom': '<%= image_url( |
| 1024 | 'newsletter_editor/social-icons/custom.png' |
| 1025 | ) %>', |
| 1026 | 'facebook': '<%= image_url( |
| 1027 | 'newsletter_editor/social-icons/09-white/Facebook.png' |
| 1028 | ) %>', |
| 1029 | 'twitter': '<%= image_url( |
| 1030 | 'newsletter_editor/social-icons/09-white/Twitter.png' |
| 1031 | ) %>', |
| 1032 | 'youtube': '<%= image_url( |
| 1033 | 'newsletter_editor/social-icons/09-white/Youtube.png' |
| 1034 | ) %>', |
| 1035 | 'website': '<%= image_url( |
| 1036 | 'newsletter_editor/social-icons/09-white/Website.png' |
| 1037 | ) %>', |
| 1038 | 'email': '<%= image_url( |
| 1039 | 'newsletter_editor/social-icons/09-white/Email.png' |
| 1040 | ) %>', |
| 1041 | 'instagram': '<%= image_url( |
| 1042 | 'newsletter_editor/social-icons/09-white/Instagram.png' |
| 1043 | ) %>', |
| 1044 | 'pinterest': '<%= image_url( |
| 1045 | 'newsletter_editor/social-icons/09-white/Pinterest.png' |
| 1046 | ) %>', |
| 1047 | 'linkedin': '<%= image_url( |
| 1048 | 'newsletter_editor/social-icons/09-white/LinkedIn.png' |
| 1049 | ) %>', |
| 1050 | 'bluesky': '<%= image_url( |
| 1051 | 'newsletter_editor/social-icons/09-white/Bluesky.png' |
| 1052 | ) %>', |
| 1053 | }, |
| 1054 | 'black': { |
| 1055 | 'custom': '<%= image_url( |
| 1056 | 'newsletter_editor/social-icons/custom.png' |
| 1057 | ) %>', |
| 1058 | 'facebook': '<%= image_url( |
| 1059 | 'newsletter_editor/social-icons/10-black/Facebook.png' |
| 1060 | ) %>', |
| 1061 | 'twitter': '<%= image_url( |
| 1062 | 'newsletter_editor/social-icons/10-black/Twitter.png' |
| 1063 | ) %>', |
| 1064 | 'youtube': '<%= image_url( |
| 1065 | 'newsletter_editor/social-icons/10-black/Youtube.png' |
| 1066 | ) %>', |
| 1067 | 'website': '<%= image_url( |
| 1068 | 'newsletter_editor/social-icons/10-black/Website.png' |
| 1069 | ) %>', |
| 1070 | 'email': '<%= image_url( |
| 1071 | 'newsletter_editor/social-icons/10-black/Email.png' |
| 1072 | ) %>', |
| 1073 | 'instagram': '<%= image_url( |
| 1074 | 'newsletter_editor/social-icons/10-black/Instagram.png' |
| 1075 | ) %>', |
| 1076 | 'pinterest': '<%= image_url( |
| 1077 | 'newsletter_editor/social-icons/10-black/Pinterest.png' |
| 1078 | ) %>', |
| 1079 | 'linkedin': '<%= image_url( |
| 1080 | 'newsletter_editor/social-icons/10-black/LinkedIn.png' |
| 1081 | ) %>', |
| 1082 | 'bluesky': '<%= image_url( |
| 1083 | 'newsletter_editor/social-icons/10-black/Bluesky.png' |
| 1084 | ) %>', |
| 1085 | }, |
| 1086 | 'circles': { |
| 1087 | 'custom': '<%= image_url( |
| 1088 | 'newsletter_editor/social-icons/custom.png' |
| 1089 | ) %>', |
| 1090 | 'facebook': '<%= image_url( |
| 1091 | 'newsletter_editor/social-icons/03-circles/Facebook.png' |
| 1092 | ) %>', |
| 1093 | 'twitter': '<%= image_url( |
| 1094 | 'newsletter_editor/social-icons/03-circles/Twitter.png' |
| 1095 | ) %>', |
| 1096 | 'youtube': '<%= image_url( |
| 1097 | 'newsletter_editor/social-icons/03-circles/Youtube.png' |
| 1098 | ) %>', |
| 1099 | 'website': '<%= image_url( |
| 1100 | 'newsletter_editor/social-icons/03-circles/Website.png' |
| 1101 | ) %>', |
| 1102 | 'email': '<%= image_url( |
| 1103 | 'newsletter_editor/social-icons/03-circles/Email.png' |
| 1104 | ) %>', |
| 1105 | 'instagram': '<%= image_url( |
| 1106 | 'newsletter_editor/social-icons/03-circles/Instagram.png' |
| 1107 | ) %>', |
| 1108 | 'pinterest': '<%= image_url( |
| 1109 | 'newsletter_editor/social-icons/03-circles/Pinterest.png' |
| 1110 | ) %>', |
| 1111 | 'linkedin': '<%= image_url( |
| 1112 | 'newsletter_editor/social-icons/03-circles/LinkedIn.png' |
| 1113 | ) %>', |
| 1114 | 'bluesky': '<%= image_url( |
| 1115 | 'newsletter_editor/social-icons/03-circles/Bluesky.png' |
| 1116 | ) %>', |
| 1117 | }, |
| 1118 | 'full-flat-roundrect': { |
| 1119 | 'custom': '<%= image_url( |
| 1120 | 'newsletter_editor/social-icons/custom.png' |
| 1121 | ) %>', |
| 1122 | 'facebook': '<%= image_url( |
| 1123 | 'newsletter_editor/social-icons/04-full-flat-roundrect/Facebook.png' |
| 1124 | ) %>', |
| 1125 | 'twitter': '<%= image_url( |
| 1126 | 'newsletter_editor/social-icons/04-full-flat-roundrect/Twitter.png' |
| 1127 | ) %>', |
| 1128 | 'youtube': '<%= image_url( |
| 1129 | 'newsletter_editor/social-icons/04-full-flat-roundrect/Youtube.png' |
| 1130 | ) %>', |
| 1131 | 'website': '<%= image_url( |
| 1132 | 'newsletter_editor/social-icons/04-full-flat-roundrect/Website.png' |
| 1133 | ) %>', |
| 1134 | 'email': '<%= image_url( |
| 1135 | 'newsletter_editor/social-icons/04-full-flat-roundrect/Email.png' |
| 1136 | ) %>', |
| 1137 | 'instagram': '<%= image_url( |
| 1138 | 'newsletter_editor/social-icons/04-full-flat-roundrect/Instagram.png' |
| 1139 | ) %>', |
| 1140 | 'pinterest': '<%= image_url( |
| 1141 | 'newsletter_editor/social-icons/04-full-flat-roundrect/Pinterest.png' |
| 1142 | ) %>', |
| 1143 | 'linkedin': '<%= image_url( |
| 1144 | 'newsletter_editor/social-icons/04-full-flat-roundrect/LinkedIn.png' |
| 1145 | ) %>', |
| 1146 | 'bluesky': '<%= image_url( |
| 1147 | 'newsletter_editor/social-icons/04-full-flat-roundrect/Bluesky.png' |
| 1148 | ) %>', |
| 1149 | }, |
| 1150 | 'full-gradient-square': { |
| 1151 | 'custom': '<%= image_url( |
| 1152 | 'newsletter_editor/social-icons/custom.png' |
| 1153 | ) %>', |
| 1154 | 'facebook': '<%= image_url( |
| 1155 | 'newsletter_editor/social-icons/05-full-gradient-square/Facebook.png' |
| 1156 | ) %>', |
| 1157 | 'twitter': '<%= image_url( |
| 1158 | 'newsletter_editor/social-icons/05-full-gradient-square/Twitter.png' |
| 1159 | ) %>', |
| 1160 | 'youtube': '<%= image_url( |
| 1161 | 'newsletter_editor/social-icons/05-full-gradient-square/Youtube.png' |
| 1162 | ) %>', |
| 1163 | 'website': '<%= image_url( |
| 1164 | 'newsletter_editor/social-icons/05-full-gradient-square/Website.png' |
| 1165 | ) %>', |
| 1166 | 'email': '<%= image_url( |
| 1167 | 'newsletter_editor/social-icons/05-full-gradient-square/Email.png' |
| 1168 | ) %>', |
| 1169 | 'instagram': '<%= image_url( |
| 1170 | 'newsletter_editor/social-icons/05-full-gradient-square/Instagram.png' |
| 1171 | ) %>', |
| 1172 | 'pinterest': '<%= image_url( |
| 1173 | 'newsletter_editor/social-icons/05-full-gradient-square/Pinterest.png' |
| 1174 | ) %>', |
| 1175 | 'linkedin': '<%= image_url( |
| 1176 | 'newsletter_editor/social-icons/05-full-gradient-square/LinkedIn.png' |
| 1177 | ) %>', |
| 1178 | 'bluesky': '<%= image_url( |
| 1179 | 'newsletter_editor/social-icons/05-full-gradient-square/Bluesky.png' |
| 1180 | ) %>', |
| 1181 | }, |
| 1182 | 'full-symbol-color': { |
| 1183 | 'custom': '<%= image_url( |
| 1184 | 'newsletter_editor/social-icons/custom.png' |
| 1185 | ) %>', |
| 1186 | 'facebook': '<%= image_url( |
| 1187 | 'newsletter_editor/social-icons/06-full-symbol-color/Facebook.png' |
| 1188 | ) %>', |
| 1189 | 'twitter': '<%= image_url( |
| 1190 | 'newsletter_editor/social-icons/06-full-symbol-color/Twitter.png' |
| 1191 | ) %>', |
| 1192 | 'youtube': '<%= image_url( |
| 1193 | 'newsletter_editor/social-icons/06-full-symbol-color/Youtube.png' |
| 1194 | ) %>', |
| 1195 | 'website': '<%= image_url( |
| 1196 | 'newsletter_editor/social-icons/06-full-symbol-color/Website.png' |
| 1197 | ) %>', |
| 1198 | 'email': '<%= image_url( |
| 1199 | 'newsletter_editor/social-icons/06-full-symbol-color/Email.png' |
| 1200 | ) %>', |
| 1201 | 'instagram': '<%= image_url( |
| 1202 | 'newsletter_editor/social-icons/06-full-symbol-color/Instagram.png' |
| 1203 | ) %>', |
| 1204 | 'pinterest': '<%= image_url( |
| 1205 | 'newsletter_editor/social-icons/06-full-symbol-color/Pinterest.png' |
| 1206 | ) %>', |
| 1207 | 'linkedin': '<%= image_url( |
| 1208 | 'newsletter_editor/social-icons/06-full-symbol-color/LinkedIn.png' |
| 1209 | ) %>', |
| 1210 | 'bluesky': '<%= image_url( |
| 1211 | 'newsletter_editor/social-icons/06-full-symbol-color/Bluesky.png' |
| 1212 | ) %>', |
| 1213 | }, |
| 1214 | 'full-symbol-black': { |
| 1215 | 'custom': '<%= image_url( |
| 1216 | 'newsletter_editor/social-icons/custom.png' |
| 1217 | ) %>', |
| 1218 | 'facebook': '<%= image_url( |
| 1219 | 'newsletter_editor/social-icons/07-full-symbol-black/Facebook.png' |
| 1220 | ) %>', |
| 1221 | 'twitter': '<%= image_url( |
| 1222 | 'newsletter_editor/social-icons/07-full-symbol-black/Twitter.png' |
| 1223 | ) %>', |
| 1224 | 'youtube': '<%= image_url( |
| 1225 | 'newsletter_editor/social-icons/07-full-symbol-black/Youtube.png' |
| 1226 | ) %>', |
| 1227 | 'website': '<%= image_url( |
| 1228 | 'newsletter_editor/social-icons/07-full-symbol-black/Website.png' |
| 1229 | ) %>', |
| 1230 | 'email': '<%= image_url( |
| 1231 | 'newsletter_editor/social-icons/07-full-symbol-black/Email.png' |
| 1232 | ) %>', |
| 1233 | 'instagram': '<%= image_url( |
| 1234 | 'newsletter_editor/social-icons/07-full-symbol-black/Instagram.png' |
| 1235 | ) %>', |
| 1236 | 'pinterest': '<%= image_url( |
| 1237 | 'newsletter_editor/social-icons/07-full-symbol-black/Pinterest.png' |
| 1238 | ) %>', |
| 1239 | 'linkedin': '<%= image_url( |
| 1240 | 'newsletter_editor/social-icons/07-full-symbol-black/LinkedIn.png' |
| 1241 | ) %>', |
| 1242 | 'bluesky': '<%= image_url( |
| 1243 | 'newsletter_editor/social-icons/07-full-symbol-black/Bluesky.png' |
| 1244 | ) %>', |
| 1245 | }, |
| 1246 | 'full-symbol-grey': { |
| 1247 | 'custom': '<%= image_url( |
| 1248 | 'newsletter_editor/social-icons/custom.png' |
| 1249 | ) %>', |
| 1250 | 'facebook': '<%= image_url( |
| 1251 | 'newsletter_editor/social-icons/08-full-symbol-grey/Facebook.png' |
| 1252 | ) %>', |
| 1253 | 'twitter': '<%= image_url( |
| 1254 | 'newsletter_editor/social-icons/08-full-symbol-grey/Twitter.png' |
| 1255 | ) %>', |
| 1256 | 'youtube': '<%= image_url( |
| 1257 | 'newsletter_editor/social-icons/08-full-symbol-grey/Youtube.png' |
| 1258 | ) %>', |
| 1259 | 'website': '<%= image_url( |
| 1260 | 'newsletter_editor/social-icons/08-full-symbol-grey/Website.png' |
| 1261 | ) %>', |
| 1262 | 'email': '<%= image_url( |
| 1263 | 'newsletter_editor/social-icons/08-full-symbol-grey/Email.png' |
| 1264 | ) %>', |
| 1265 | 'instagram': '<%= image_url( |
| 1266 | 'newsletter_editor/social-icons/08-full-symbol-grey/Instagram.png' |
| 1267 | ) %>', |
| 1268 | 'pinterest': '<%= image_url( |
| 1269 | 'newsletter_editor/social-icons/08-full-symbol-grey/Pinterest.png' |
| 1270 | ) %>', |
| 1271 | 'linkedin': '<%= image_url( |
| 1272 | 'newsletter_editor/social-icons/08-full-symbol-grey/LinkedIn.png' |
| 1273 | ) %>', |
| 1274 | 'bluesky': '<%= image_url( |
| 1275 | 'newsletter_editor/social-icons/08-full-symbol-grey/Bluesky.png' |
| 1276 | ) %>', |
| 1277 | }, |
| 1278 | }, |
| 1279 | dividers: [ |
| 1280 | 'hidden', |
| 1281 | 'dotted', |
| 1282 | 'dashed', |
| 1283 | 'solid', |
| 1284 | 'double', |
| 1285 | 'groove', |
| 1286 | 'ridge' |
| 1287 | ] |
| 1288 | }, |
| 1289 | socialIcons: { |
| 1290 | 'behance': { |
| 1291 | title: 'Behance', |
| 1292 | defaultLink: 'https://www.behance.net/', |
| 1293 | }, |
| 1294 | 'bluesky': { |
| 1295 | title: 'Bluesky', |
| 1296 | defaultLink: 'https://bsky.app/', |
| 1297 | }, |
| 1298 | 'custom': { |
| 1299 | title: '<%= __('Custom') | escape('js') %>', |
| 1300 | defaultLink: '', |
| 1301 | }, |
| 1302 | 'discord': { |
| 1303 | title: 'Discord', |
| 1304 | defaultLink: 'https://discord.com/', |
| 1305 | }, |
| 1306 | 'email': { |
| 1307 | title: '<%= __('Email') | escape('js') %>', |
| 1308 | linkFieldName: '<%= __('Email') | escape('js') %>', |
| 1309 | defaultLink: '', |
| 1310 | }, |
| 1311 | 'facebook': { |
| 1312 | title: 'Facebook', |
| 1313 | defaultLink: 'https://www.facebook.com/', |
| 1314 | }, |
| 1315 | 'feed': { |
| 1316 | title: '<%= __('RSS Feed') | escape('js') %>', |
| 1317 | defaultLink: '', |
| 1318 | }, |
| 1319 | 'github': { |
| 1320 | title: 'GitHub', |
| 1321 | defaultLink: 'https://github.com/', |
| 1322 | }, |
| 1323 | 'gravatar': { |
| 1324 | title: 'Gravatar', |
| 1325 | defaultLink: 'https://gravatar.com/', |
| 1326 | }, |
| 1327 | 'instagram': { |
| 1328 | title: 'Instagram', |
| 1329 | defaultLink: 'https://www.instagram.com/', |
| 1330 | }, |
| 1331 | 'linkedin': { |
| 1332 | title: 'LinkedIn', |
| 1333 | defaultLink: 'https://www.linkedin.com/', |
| 1334 | }, |
| 1335 | 'mastodon': { |
| 1336 | title: 'Mastodon', |
| 1337 | defaultLink: 'https://mastodon.social/', |
| 1338 | }, |
| 1339 | 'medium': { |
| 1340 | title: 'Medium', |
| 1341 | defaultLink: 'https://medium.com/', |
| 1342 | }, |
| 1343 | 'patreon': { |
| 1344 | title: 'Patreon', |
| 1345 | defaultLink: 'https://www.patreon.com/', |
| 1346 | }, |
| 1347 | 'pinterest': { |
| 1348 | title: 'Pinterest', |
| 1349 | defaultLink: 'https://www.pinterest.com/', |
| 1350 | }, |
| 1351 | 'reddit': { |
| 1352 | title: 'Reddit', |
| 1353 | defaultLink: 'https://www.reddit.com/', |
| 1354 | }, |
| 1355 | 'spotify': { |
| 1356 | title: 'Spotify', |
| 1357 | defaultLink: 'https://open.spotify.com/', |
| 1358 | }, |
| 1359 | 'telegram': { |
| 1360 | title: 'Telegram', |
| 1361 | defaultLink: 'https://t.me/', |
| 1362 | }, |
| 1363 | 'threads': { |
| 1364 | title: 'Threads', |
| 1365 | defaultLink: 'https://www.threads.net/', |
| 1366 | }, |
| 1367 | 'tiktok': { |
| 1368 | title: 'TikTok', |
| 1369 | defaultLink: 'https://www.tiktok.com/', |
| 1370 | }, |
| 1371 | 'tumblr': { |
| 1372 | title: 'Tumblr', |
| 1373 | defaultLink: 'https://www.tumblr.com/', |
| 1374 | }, |
| 1375 | 'twitch': { |
| 1376 | title: 'Twitch', |
| 1377 | defaultLink: 'https://www.twitch.tv/', |
| 1378 | }, |
| 1379 | 'twitter': { |
| 1380 | title: 'Twitter / X', |
| 1381 | defaultLink: 'https://x.com/', |
| 1382 | }, |
| 1383 | 'vimeo': { |
| 1384 | title: 'Vimeo', |
| 1385 | defaultLink: 'https://vimeo.com/', |
| 1386 | }, |
| 1387 | 'website': { |
| 1388 | title: '<%= __('Website') | escape('js') %>', |
| 1389 | defaultLink: '', |
| 1390 | }, |
| 1391 | 'whatsapp': { |
| 1392 | title: 'WhatsApp', |
| 1393 | defaultLink: 'https://wa.me/', |
| 1394 | }, |
| 1395 | 'wordpress': { |
| 1396 | title: 'WordPress', |
| 1397 | defaultLink: 'https://wordpress.com/', |
| 1398 | }, |
| 1399 | 'x': { |
| 1400 | title: 'X', |
| 1401 | defaultLink: 'https://x.com/', |
| 1402 | }, |
| 1403 | 'youtube': { |
| 1404 | title: 'YouTube', |
| 1405 | defaultLink: 'https://www.youtube.com/', |
| 1406 | }, |
| 1407 | }, |
| 1408 | blockDefaults: { |
| 1409 | abandonedCartContent: { |
| 1410 | amount: '2', |
| 1411 | withLayout: true, |
| 1412 | contentType: 'product', |
| 1413 | postStatus: 'publish', // 'draft'|'pending'|'publish' |
| 1414 | inclusionType: 'include', // 'include'|'exclude' |
| 1415 | displayType: 'excerpt', // 'excerpt'|'full'|'titleOnly' |
| 1416 | titleFormat: 'h1', // 'h1'|'h2'|'h3' |
| 1417 | titleAlignment: 'left', // 'left'|'center'|'right' |
| 1418 | titleIsLink: false, // false|true |
| 1419 | imageFullWidth: false, // true|false |
| 1420 | featuredImagePosition: 'alternate', // 'centered'|'left'|'right'|'alternate'|'none', |
| 1421 | pricePosition: 'below', // 'hidden'|'above'|'below' |
| 1422 | readMoreType: 'none', // 'link'|'button'|'none' |
| 1423 | readMoreText: '', |
| 1424 | readMoreButton: {}, |
| 1425 | sortBy: 'newest', // 'newest'|'oldest', |
| 1426 | showDivider: true, // true|false |
| 1427 | divider: { |
| 1428 | context: 'abandonedCartContent.divider', |
| 1429 | styles: { |
| 1430 | block: { |
| 1431 | backgroundColor: 'transparent', |
| 1432 | padding: '13px', |
| 1433 | borderStyle: 'solid', |
| 1434 | borderWidth: '3px', |
| 1435 | borderColor: '#aaaaaa', |
| 1436 | }, |
| 1437 | }, |
| 1438 | }, |
| 1439 | backgroundColor: '#ffffff', |
| 1440 | backgroundColorAlternate: '#eeeeee', |
| 1441 | }, |
| 1442 | automatedLatestContent: { |
| 1443 | amount: '5', |
| 1444 | withLayout: false, |
| 1445 | contentType: 'post', // 'post'|'page'|'mailpoet_page' |
| 1446 | inclusionType: 'include', // 'include'|'exclude' |
| 1447 | displayType: 'excerpt', // 'excerpt'|'full'|'titleOnly' |
| 1448 | titleFormat: 'h1', // 'h1'|'h2'|'h3'|'ul' |
| 1449 | titleAlignment: 'left', // 'left'|'center'|'right' |
| 1450 | titleIsLink: false, // false|true |
| 1451 | imageFullWidth: false, // true|false |
| 1452 | featuredImagePosition: 'belowTitle', // 'belowTitle'|'aboveTitle'|'none', |
| 1453 | showAuthor: 'no', // 'no'|'aboveText'|'belowText' |
| 1454 | authorPrecededBy: '<%= __('Author:') | escape('js') %>', |
| 1455 | showCategories: 'no', // 'no'|'aboveText'|'belowText' |
| 1456 | categoriesPrecededBy: '<%= __('Categories:') | escape('js') %>', |
| 1457 | readMoreType: 'button', // 'link'|'button' |
| 1458 | readMoreText: '<%= __('Read more') | escape('js') %>', |
| 1459 | readMoreButton: { |
| 1460 | text: '<%= __('Read more') | escape('js') %>', |
| 1461 | url: '[postLink]', |
| 1462 | context: 'automatedLatestContent.readMoreButton', |
| 1463 | styles: { |
| 1464 | block: { |
| 1465 | backgroundColor: '#2ea1cd', |
| 1466 | borderColor: '#0074a2', |
| 1467 | borderWidth: '1px', |
| 1468 | borderRadius: '5px', |
| 1469 | borderStyle: 'solid', |
| 1470 | width: '180px', |
| 1471 | lineHeight: '40px', |
| 1472 | fontColor: '#ffffff', |
| 1473 | fontFamily: 'Verdana', |
| 1474 | fontSize: '18px', |
| 1475 | fontWeight: 'normal', |
| 1476 | textAlign: 'center', |
| 1477 | } |
| 1478 | } |
| 1479 | }, |
| 1480 | sortBy: 'newest', // 'newest'|'oldest', |
| 1481 | showDivider: true, // true|false |
| 1482 | divider: { |
| 1483 | context: 'automatedLatestContent.divider', |
| 1484 | styles: { |
| 1485 | block: { |
| 1486 | backgroundColor: 'transparent', |
| 1487 | padding: '13px', |
| 1488 | borderStyle: 'solid', |
| 1489 | borderWidth: '3px', |
| 1490 | borderColor: '#aaaaaa', |
| 1491 | }, |
| 1492 | }, |
| 1493 | }, |
| 1494 | backgroundColor: '#ffffff', |
| 1495 | backgroundColorAlternate: '#eeeeee', |
| 1496 | }, |
| 1497 | automatedLatestContentLayout: { |
| 1498 | amount: '5', |
| 1499 | withLayout: true, |
| 1500 | contentType: 'post', // 'post'|'page'|'mailpoet_page' |
| 1501 | inclusionType: 'include', // 'include'|'exclude' |
| 1502 | displayType: 'excerpt', // 'excerpt'|'full'|'titleOnly' |
| 1503 | titleFormat: 'h1', // 'h1'|'h2'|'h3'|'ul' |
| 1504 | titleAlignment: 'left', // 'left'|'center'|'right' |
| 1505 | titleIsLink: false, // false|true |
| 1506 | imageFullWidth: false, // true|false |
| 1507 | featuredImagePosition: 'alternate', // 'centered'|'left'|'right'|'alternate'|'none', |
| 1508 | showAuthor: 'no', // 'no'|'aboveText'|'belowText' |
| 1509 | authorPrecededBy: '<%= __('Author:') | escape('js') %>', |
| 1510 | showCategories: 'no', // 'no'|'aboveText'|'belowText' |
| 1511 | categoriesPrecededBy: '<%= __('Categories:') | escape('js') %>', |
| 1512 | readMoreType: 'button', // 'link'|'button' |
| 1513 | readMoreText: '<%= __('Read more') | escape('js') %>', |
| 1514 | readMoreButton: { |
| 1515 | text: '<%= __('Read more') | escape('js') %>', |
| 1516 | url: '[postLink]', |
| 1517 | context: 'automatedLatestContentLayout.readMoreButton', |
| 1518 | styles: { |
| 1519 | block: { |
| 1520 | backgroundColor: '#2ea1cd', |
| 1521 | borderColor: '#0074a2', |
| 1522 | borderWidth: '1px', |
| 1523 | borderRadius: '5px', |
| 1524 | borderStyle: 'solid', |
| 1525 | width: '180px', |
| 1526 | lineHeight: '40px', |
| 1527 | fontColor: '#ffffff', |
| 1528 | fontFamily: 'Verdana', |
| 1529 | fontSize: '18px', |
| 1530 | fontWeight: 'normal', |
| 1531 | textAlign: 'center', |
| 1532 | } |
| 1533 | } |
| 1534 | }, |
| 1535 | sortBy: 'newest', // 'newest'|'oldest', |
| 1536 | showDivider: true, // true|false |
| 1537 | divider: { |
| 1538 | context: 'automatedLatestContentLayout.divider', |
| 1539 | styles: { |
| 1540 | block: { |
| 1541 | backgroundColor: 'transparent', |
| 1542 | padding: '13px', |
| 1543 | borderStyle: 'solid', |
| 1544 | borderWidth: '3px', |
| 1545 | borderColor: '#aaaaaa', |
| 1546 | }, |
| 1547 | }, |
| 1548 | }, |
| 1549 | backgroundColor: '#ffffff', |
| 1550 | backgroundColorAlternate: '#eeeeee', |
| 1551 | }, |
| 1552 | button: { |
| 1553 | text: '<%= __('Button') | escape('js') %>', |
| 1554 | url: '', |
| 1555 | styles: { |
| 1556 | block: { |
| 1557 | backgroundColor: '#2ea1cd', |
| 1558 | borderColor: '#0074a2', |
| 1559 | borderWidth: '1px', |
| 1560 | borderRadius: '5px', |
| 1561 | borderStyle: 'solid', |
| 1562 | width: '180px', |
| 1563 | lineHeight: '40px', |
| 1564 | fontColor: '#ffffff', |
| 1565 | fontFamily: 'Verdana', |
| 1566 | fontSize: '18px', |
| 1567 | fontWeight: 'normal', |
| 1568 | textAlign: 'center', |
| 1569 | }, |
| 1570 | }, |
| 1571 | }, |
| 1572 | container: { |
| 1573 | image: { |
| 1574 | src: null, |
| 1575 | display: 'scale', |
| 1576 | }, |
| 1577 | styles: { |
| 1578 | block: { |
| 1579 | backgroundColor: 'transparent', |
| 1580 | }, |
| 1581 | }, |
| 1582 | }, |
| 1583 | divider: { |
| 1584 | styles: { |
| 1585 | block: { |
| 1586 | backgroundColor: 'transparent', |
| 1587 | padding: '13px', |
| 1588 | borderStyle: 'solid', |
| 1589 | borderWidth: '3px', |
| 1590 | borderColor: '#aaaaaa', |
| 1591 | }, |
| 1592 | }, |
| 1593 | }, |
| 1594 | dynamicProducts: { |
| 1595 | amount: '10', |
| 1596 | withLayout: true, |
| 1597 | contentType: 'product', |
| 1598 | terms: [], // List of category and tag objects |
| 1599 | inclusionType: 'include', // 'include'|'exclude' |
| 1600 | displayType: 'excerpt', // 'excerpt'|'full'|'titleOnly' |
| 1601 | excludeOutOfStock: true, // true|false |
| 1602 | titleFormat: 'h1', // 'h1'|'h2'|'h3' |
| 1603 | titleAlignment: 'left', // 'left'|'center'|'right' |
| 1604 | titleIsLink: false, // false|true |
| 1605 | imageFullWidth: false, // true|false |
| 1606 | titlePosition: 'abovePost', // 'abovePost'|'aboveExcerpt' |
| 1607 | featuredImagePosition: 'left', // 'centered'|'right'|'left'|'alternate'|'none' |
| 1608 | pricePosition: 'below', // 'hidden'|'above'|'below' |
| 1609 | readMoreType: 'link', // 'link'|'button' |
| 1610 | readMoreText: 'Buy now', |
| 1611 | readMoreButton: { |
| 1612 | text: 'Buy now', |
| 1613 | url: '[postLink]', |
| 1614 | context: 'dynamicProducts.readMoreButton', |
| 1615 | styles: { |
| 1616 | block: { |
| 1617 | backgroundColor: '#2ea1cd', |
| 1618 | borderColor: '#0074a2', |
| 1619 | borderWidth: '1px', |
| 1620 | borderRadius: '5px', |
| 1621 | borderStyle: 'solid', |
| 1622 | width: '180px', |
| 1623 | lineHeight: '40px', |
| 1624 | fontColor: '#ffffff', |
| 1625 | fontFamily: 'Verdana', |
| 1626 | fontSize: '18px', |
| 1627 | fontWeight: 'normal', |
| 1628 | textAlign: 'center', |
| 1629 | } |
| 1630 | } |
| 1631 | }, |
| 1632 | sortBy: 'newest', // 'newest'|'oldest', |
| 1633 | showDivider: true, // true|false |
| 1634 | dynamicProductsType: 'selected', // 'cross-sell'|'order'|'selected'|'cart' |
| 1635 | divider: { |
| 1636 | context: 'dynamicProducts.divider', |
| 1637 | styles: { |
| 1638 | block: { |
| 1639 | backgroundColor: 'transparent', |
| 1640 | padding: '13px', |
| 1641 | borderStyle: 'solid', |
| 1642 | borderWidth: '3px', |
| 1643 | borderColor: '#aaaaaa', |
| 1644 | }, |
| 1645 | }, |
| 1646 | }, |
| 1647 | backgroundColor: '#ffffff', |
| 1648 | backgroundColorAlternate: '#eeeeee', |
| 1649 | }, |
| 1650 | footer: { |
| 1651 | text: '<p><a href="[link:subscription_unsubscribe_url]"><%= __('Unsubscribe') %></a> | <a href="[link:subscription_manage_url]"><%= __('Manage subscription') %></a><br /><%= __('Add your postal address here!') %></p>', |
| 1652 | styles: { |
| 1653 | block: { |
| 1654 | backgroundColor: 'transparent', |
| 1655 | }, |
| 1656 | text: { |
| 1657 | fontColor: '#222222', |
| 1658 | fontFamily: 'Arial', |
| 1659 | fontSize: '12px', |
| 1660 | textAlign: 'center', |
| 1661 | }, |
| 1662 | link: { |
| 1663 | fontColor: '#6cb7d4', |
| 1664 | textDecoration: 'none', |
| 1665 | }, |
| 1666 | }, |
| 1667 | }, |
| 1668 | image: { |
| 1669 | link: '', |
| 1670 | src: '', |
| 1671 | alt: '<%= __('An image of...') | escape('js') %>', |
| 1672 | fullWidth: false, |
| 1673 | width: '281px', |
| 1674 | height: '190px', |
| 1675 | styles: { |
| 1676 | block: { |
| 1677 | textAlign: 'center', |
| 1678 | }, |
| 1679 | }, |
| 1680 | }, |
| 1681 | posts: { |
| 1682 | amount: '10', |
| 1683 | withLayout: true, |
| 1684 | contentType: 'post', // 'post'|'page'|'mailpoet_page' |
| 1685 | postStatus: 'publish', // 'draft'|'pending'|'private'|'publish'|'future' |
| 1686 | inclusionType: 'include', // 'include'|'exclude' |
| 1687 | displayType: 'excerpt', // 'excerpt'|'full'|'titleOnly' |
| 1688 | titleFormat: 'h1', // 'h1'|'h2'|'h3'|'ul' |
| 1689 | titleAlignment: 'left', // 'left'|'center'|'right' |
| 1690 | titleIsLink: false, // false|true |
| 1691 | imageFullWidth: false, // true|false |
| 1692 | featuredImagePosition: 'alternate', // 'centered'|'left'|'right'|'alternate'|'none', |
| 1693 | showAuthor: 'no', // 'no'|'aboveText'|'belowText' |
| 1694 | authorPrecededBy: '<%= __('Author:') | escape('js') %>', |
| 1695 | showCategories: 'no', // 'no'|'aboveText'|'belowText' |
| 1696 | categoriesPrecededBy: '<%= __('Categories:') | escape('js') %>', |
| 1697 | readMoreType: 'link', // 'link'|'button' |
| 1698 | readMoreText: '<%= __('Read more') | escape('js') %>', |
| 1699 | readMoreButton: { |
| 1700 | text: '<%= __('Read more') | escape('js') %>', |
| 1701 | url: '[postLink]', |
| 1702 | context: 'posts.readMoreButton', |
| 1703 | styles: { |
| 1704 | block: { |
| 1705 | backgroundColor: '#2ea1cd', |
| 1706 | borderColor: '#0074a2', |
| 1707 | borderWidth: '1px', |
| 1708 | borderRadius: '5px', |
| 1709 | borderStyle: 'solid', |
| 1710 | width: '180px', |
| 1711 | lineHeight: '40px', |
| 1712 | fontColor: '#ffffff', |
| 1713 | fontFamily: 'Verdana', |
| 1714 | fontSize: '18px', |
| 1715 | fontWeight: 'normal', |
| 1716 | textAlign: 'center', |
| 1717 | }, |
| 1718 | }, |
| 1719 | }, |
| 1720 | sortBy: 'newest', // 'newest'|'oldest', |
| 1721 | showDivider: true, // true|false |
| 1722 | divider: { |
| 1723 | context: 'posts.divider', |
| 1724 | styles: { |
| 1725 | block: { |
| 1726 | backgroundColor: 'transparent', |
| 1727 | padding: '13px', |
| 1728 | borderStyle: 'solid', |
| 1729 | borderWidth: '3px', |
| 1730 | borderColor: '#aaaaaa', |
| 1731 | }, |
| 1732 | }, |
| 1733 | }, |
| 1734 | backgroundColor: '#ffffff', |
| 1735 | backgroundColorAlternate: '#eeeeee', |
| 1736 | }, |
| 1737 | products: { |
| 1738 | amount: '10', |
| 1739 | withLayout: true, |
| 1740 | contentType: 'product', |
| 1741 | postStatus: 'publish', // 'draft'|'pending'|'publish' |
| 1742 | inclusionType: 'include', // 'include'|'exclude' |
| 1743 | displayType: 'excerpt', // 'excerpt'|'full'|'titleOnly' |
| 1744 | titleFormat: 'h1', // 'h1'|'h2'|'h3' |
| 1745 | titleAlignment: 'left', // 'left'|'center'|'right' |
| 1746 | titleIsLink: false, // false|true |
| 1747 | imageFullWidth: false, // true|false |
| 1748 | featuredImagePosition: 'alternate', // 'centered'|'left'|'right'|'alternate'|'none', |
| 1749 | pricePosition: 'below', // 'hidden'|'above'|'below' |
| 1750 | readMoreType: 'link', // 'link'|'button' |
| 1751 | readMoreText: '<%= _x('Buy now', 'Text of a button which links to an ecommerce product page') | escape('js') %>', |
| 1752 | readMoreButton: { |
| 1753 | text: '<%= _x('Buy now', 'Text of a button which links to an ecommerce product page') | escape('js') %>', |
| 1754 | url: '[postLink]', |
| 1755 | context: 'posts.readMoreButton', |
| 1756 | styles: { |
| 1757 | block: { |
| 1758 | backgroundColor: '#2ea1cd', |
| 1759 | borderColor: '#0074a2', |
| 1760 | borderWidth: '1px', |
| 1761 | borderRadius: '5px', |
| 1762 | borderStyle: 'solid', |
| 1763 | width: '180px', |
| 1764 | lineHeight: '40px', |
| 1765 | fontColor: '#ffffff', |
| 1766 | fontFamily: 'Verdana', |
| 1767 | fontSize: '18px', |
| 1768 | fontWeight: 'normal', |
| 1769 | textAlign: 'center', |
| 1770 | }, |
| 1771 | }, |
| 1772 | }, |
| 1773 | sortBy: 'newest', // 'newest'|'oldest', |
| 1774 | showDivider: true, // true|false |
| 1775 | divider: { |
| 1776 | context: 'posts.divider', |
| 1777 | styles: { |
| 1778 | block: { |
| 1779 | backgroundColor: 'transparent', |
| 1780 | padding: '13px', |
| 1781 | borderStyle: 'solid', |
| 1782 | borderWidth: '3px', |
| 1783 | borderColor: '#aaaaaa', |
| 1784 | }, |
| 1785 | }, |
| 1786 | }, |
| 1787 | backgroundColor: '#ffffff', |
| 1788 | backgroundColorAlternate: '#eeeeee', |
| 1789 | }, |
| 1790 | social: { |
| 1791 | iconSet: 'default', |
| 1792 | styles: { |
| 1793 | block: { |
| 1794 | textAlign: 'center' |
| 1795 | } |
| 1796 | }, |
| 1797 | icons: [ |
| 1798 | { |
| 1799 | type: 'socialIcon', |
| 1800 | iconType: 'facebook', |
| 1801 | link: 'http://www.facebook.com', |
| 1802 | image: '<%= image_url( |
| 1803 | 'newsletter_editor/social-icons/01-social/Facebook.png' |
| 1804 | ) %>', |
| 1805 | height: '32px', |
| 1806 | width: '32px', |
| 1807 | text: '<%= __('Facebook') | escape('js') %>', |
| 1808 | }, |
| 1809 | { |
| 1810 | type: 'socialIcon', |
| 1811 | iconType: 'twitter', |
| 1812 | link: 'http://www.twitter.com', |
| 1813 | image: '<%= image_url( |
| 1814 | 'newsletter_editor/social-icons/01-social/Twitter.png' |
| 1815 | ) %>', |
| 1816 | height: '32px', |
| 1817 | width: '32px', |
| 1818 | text: '<%= __('Twitter') | escape('js') %>', |
| 1819 | }, |
| 1820 | ], |
| 1821 | }, |
| 1822 | spacer: { |
| 1823 | styles: { |
| 1824 | block: { |
| 1825 | backgroundColor: 'transparent', |
| 1826 | height: '40px', |
| 1827 | }, |
| 1828 | }, |
| 1829 | }, |
| 1830 | text: { |
| 1831 | text: '<%= __('Edit this to insert text.') | escape('js') %>', |
| 1832 | }, |
| 1833 | header: { |
| 1834 | text: '<a href="[link:newsletter_view_in_browser_url]"><%= __('View this in your browser.') %></a>', |
| 1835 | styles: { |
| 1836 | block: { |
| 1837 | backgroundColor: 'transparent', |
| 1838 | }, |
| 1839 | text: { |
| 1840 | fontColor: '#222222', |
| 1841 | fontFamily: 'Arial', |
| 1842 | fontSize: '12px', |
| 1843 | textAlign: 'center', |
| 1844 | }, |
| 1845 | link: { |
| 1846 | fontColor: '#6cb7d4', |
| 1847 | textDecoration: 'underline', |
| 1848 | }, |
| 1849 | }, |
| 1850 | }, |
| 1851 | woocommerceHeading: { |
| 1852 | contents: <%= json_encode(woocommerce.email_headings) %>, |
| 1853 | }, |
| 1854 | coupon: { |
| 1855 | type: 'coupon', |
| 1856 | discountType: <%= json_encode(woocommerce.coupon.defaults.discountType) %>, |
| 1857 | code: <%= json_encode(woocommerce.coupon.defaults.code) %>, |
| 1858 | amountMax: <%= json_encode(woocommerce.coupon.defaults.amountMax) %>, |
| 1859 | amount: 10, |
| 1860 | expiryDay: 10, |
| 1861 | styles: { |
| 1862 | block: { |
| 1863 | backgroundColor: '#ffffff', |
| 1864 | borderColor: '#000000', |
| 1865 | borderWidth: '1px', |
| 1866 | borderRadius: '5px', |
| 1867 | borderStyle: 'solid', |
| 1868 | width: '200px', |
| 1869 | lineHeight: '40px', |
| 1870 | fontColor: '#000000', |
| 1871 | fontFamily: 'Verdana', |
| 1872 | fontSize: '18px', |
| 1873 | fontWeight: 'normal', |
| 1874 | textAlign: 'center', |
| 1875 | }, |
| 1876 | }, |
| 1877 | }, |
| 1878 | }, |
| 1879 | shortcodes: <%= json_encode(shortcodes) %>, |
| 1880 | sidepanelWidth: '331px', |
| 1881 | newsletterPreview: { |
| 1882 | width: '1024px', |
| 1883 | height: '768px', |
| 1884 | previewTypeLocalStorageKey: 'newsletter_editor.preview_type' |
| 1885 | }, |
| 1886 | validation: { |
| 1887 | validateUnsubscribeLinkPresent: <%= mss_active and is_wc_transactional_email != true and is_confirmation_email_type != true ? 'true' : 'false' %>, |
| 1888 | validateReEngageLinkPresent: <%= mss_active and is_wc_transactional_email != true and is_confirmation_email_type != true ? 'true' : 'false' %>, |
| 1889 | validateActivationLinkIsPresent: <%= is_confirmation_email_type ? 'true' : 'false' %>, |
| 1890 | }, |
| 1891 | urls: { |
| 1892 | send: '<%= admin_url('admin.php?page=mailpoet-newsletters#/send/' ~ (params('id') | intval)) %>', |
| 1893 | imageMissing: '<%= image_url( |
| 1894 | "newsletter_editor/image-missing.svg" |
| 1895 | ) %>', |
| 1896 | }, |
| 1897 | currentUserId: '<%= current_wp_user.wp_user_id %>', |
| 1898 | mtaMethod: '<%= settings["mta"]["method"] %>', |
| 1899 | woocommerceCustomizerEnabled: <%= woocommerce.customizer_enabled ? 'true' : 'false' %>, |
| 1900 | confirmationEmailCustomizerEnabled: <%= is_confirmation_email_customizer_enabled ? 'true' : 'false' %>, |
| 1901 | <% if is_wc_transactional_email %> |
| 1902 | overrideGlobalStyles: { |
| 1903 | text: { |
| 1904 | fontColor: <%= json_encode(woocommerce.text_color) %>, |
| 1905 | }, |
| 1906 | h1: { |
| 1907 | fontColor: <%= json_encode(woocommerce.base_color) %>, |
| 1908 | }, |
| 1909 | h2: { |
| 1910 | fontColor: <%= json_encode(woocommerce.base_color) %>, |
| 1911 | }, |
| 1912 | h3: { |
| 1913 | fontColor: <%= json_encode(woocommerce.base_color) %>, |
| 1914 | }, |
| 1915 | link: { |
| 1916 | fontColor: <%= json_encode(woocommerce.link_color) %>, |
| 1917 | }, |
| 1918 | wrapper: { |
| 1919 | backgroundColor: <%= json_encode(woocommerce.body_background_color) %>, |
| 1920 | }, |
| 1921 | body: { |
| 1922 | backgroundColor: <%= json_encode(woocommerce.background_color) %>, |
| 1923 | }, |
| 1924 | woocommerce: { |
| 1925 | brandingColor: <%= json_encode(woocommerce.base_color) %>, |
| 1926 | headingFontColor: <%= json_encode(woocommerce.base_text_color) %>, |
| 1927 | isSavedWithUpdatedStyles: true, |
| 1928 | }, |
| 1929 | }, |
| 1930 | hiddenWidgets: ['automatedLatestContentLayout', 'header', 'footer', 'posts', 'products'], |
| 1931 | <% endif %> |
| 1932 | <% if is_confirmation_email_type %> |
| 1933 | hiddenWidgets: ['automatedLatestContentLayout', 'coupon', 'header', 'footer', 'posts', 'products', 'dynamicProducts'], |
| 1934 | <% endif %> |
| 1935 | coupon: <%= json_encode(woocommerce.coupon.config) %>, |
| 1936 | }; |
| 1937 | |
| 1938 | wp.hooks.doAction('mailpoet_newsletters_editor_initialize', config); |
| 1939 | |
| 1940 | </script> |
| 1941 | <% endblock %> |
| 1942 |