<% extends 'layout.html' %> <% block templates %> <%= partial( 'newsletter_editor_template_tools_generic', 'newsletter/templates/blocks/base/toolsGeneric.hbs' ) %> <%= partial( 'newsletter_editor_template_automated_latest_content_block', 'newsletter/templates/blocks/automatedLatestContent/block.hbs' ) %> <%= partial( 'newsletter_editor_template_automated_latest_content_widget', 'newsletter/templates/blocks/automatedLatestContent/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_automated_latest_content_settings', 'newsletter/templates/blocks/automatedLatestContent/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_button_block', 'newsletter/templates/blocks/button/block.hbs' ) %> <%= partial( 'newsletter_editor_template_button_widget', 'newsletter/templates/blocks/button/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_button_settings', 'newsletter/templates/blocks/button/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_container_block', 'newsletter/templates/blocks/container/block.hbs' ) %> <%= partial( 'newsletter_editor_template_container_block_empty', 'newsletter/templates/blocks/container/emptyBlock.hbs' ) %> <%= partial( 'newsletter_editor_template_container_one_column_widget', 'newsletter/templates/blocks/container/oneColumnLayoutWidget.hbs' ) %> <%= partial( 'newsletter_editor_template_container_two_column_widget', 'newsletter/templates/blocks/container/twoColumnLayoutWidget.hbs' ) %> <%= partial( 'newsletter_editor_template_container_three_column_widget', 'newsletter/templates/blocks/container/threeColumnLayoutWidget.hbs' ) %> <%= partial( 'newsletter_editor_template_container_settings', 'newsletter/templates/blocks/container/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_container_column_settings', 'newsletter/templates/blocks/container/columnSettings.hbs' ) %> <%= partial( 'newsletter_editor_template_divider_block', 'newsletter/templates/blocks/divider/block.hbs' ) %> <%= partial( 'newsletter_editor_template_divider_widget', 'newsletter/templates/blocks/divider/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_divider_settings', 'newsletter/templates/blocks/divider/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_footer_block', 'newsletter/templates/blocks/footer/block.hbs' ) %> <%= partial( 'newsletter_editor_template_footer_widget', 'newsletter/templates/blocks/footer/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_footer_settings', 'newsletter/templates/blocks/footer/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_header_block', 'newsletter/templates/blocks/header/block.hbs' ) %> <%= partial( 'newsletter_editor_template_header_widget', 'newsletter/templates/blocks/header/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_header_settings', 'newsletter/templates/blocks/header/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_image_block', 'newsletter/templates/blocks/image/block.hbs' ) %> <%= partial( 'newsletter_editor_template_image_widget', 'newsletter/templates/blocks/image/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_image_settings', 'newsletter/templates/blocks/image/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_posts_block', 'newsletter/templates/blocks/posts/block.hbs' ) %> <%= partial( 'newsletter_editor_template_posts_widget', 'newsletter/templates/blocks/posts/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_posts_settings', 'newsletter/templates/blocks/posts/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_posts_settings_display_options', 'newsletter/templates/blocks/posts/settingsDisplayOptions.hbs' ) %> <%= partial( 'newsletter_editor_template_posts_settings_selection', 'newsletter/templates/blocks/posts/settingsSelection.hbs' ) %> <%= partial( 'newsletter_editor_template_posts_settings_selection_empty', 'newsletter/templates/blocks/posts/settingsSelectionEmpty.hbs' ) %> <%= partial( 'newsletter_editor_template_posts_settings_single_post', 'newsletter/templates/blocks/posts/settingsSinglePost.hbs' ) %> <%= partial( 'newsletter_editor_template_social_block', 'newsletter/templates/blocks/social/block.hbs' ) %> <%= partial( 'newsletter_editor_template_social_block_icon', 'newsletter/templates/blocks/social/blockIcon.hbs' ) %> <%= partial( 'newsletter_editor_template_social_widget', 'newsletter/templates/blocks/social/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_social_settings', 'newsletter/templates/blocks/social/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_social_settings_icon', 'newsletter/templates/blocks/social/settingsIcon.hbs' ) %> <%= partial( 'newsletter_editor_template_social_settings_icon_selector', 'newsletter/templates/blocks/social/settingsIconSelector.hbs' ) %> <%= partial( 'newsletter_editor_template_social_settings_styles', 'newsletter/templates/blocks/social/settingsStyles.hbs' ) %> <%= partial( 'newsletter_editor_template_spacer_block', 'newsletter/templates/blocks/spacer/block.hbs' ) %> <%= partial( 'newsletter_editor_template_spacer_widget', 'newsletter/templates/blocks/spacer/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_spacer_settings', 'newsletter/templates/blocks/spacer/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_text_block', 'newsletter/templates/blocks/text/block.hbs' ) %> <%= partial( 'newsletter_editor_template_text_widget', 'newsletter/templates/blocks/text/widget.hbs' ) %> <%= partial( 'newsletter_editor_template_text_settings', 'newsletter/templates/blocks/text/settings.hbs' ) %> <%= partial( 'newsletter_editor_template_heading', 'newsletter/templates/components/heading.hbs' ) %> <%= partial( 'newsletter_editor_template_save', 'newsletter/templates/components/save.hbs' ) %> <%= partial( 'newsletter_editor_template_styles', 'newsletter/templates/components/styles.hbs' ) %> <%= partial( 'newsletter_editor_template_newsletter_preview', 'newsletter/templates/components/newsletterPreview.hbs' ) %> <%= partial( 'newsletter_editor_template_sidebar', 'newsletter/templates/components/sidebar/sidebar.hbs' ) %> <%= partial( 'newsletter_editor_template_sidebar_content', 'newsletter/templates/components/sidebar/content.hbs' ) %> <%= partial( 'newsletter_editor_template_sidebar_layout', 'newsletter/templates/components/sidebar/layout.hbs' ) %> <%= partial( 'newsletter_editor_template_sidebar_preview', 'newsletter/templates/components/sidebar/preview.hbs' ) %> <%= partial( 'newsletter_editor_template_sidebar_styles', 'newsletter/templates/components/sidebar/styles.hbs' ) %> <% endblock %> <% block content %>

<%= __('Newsletter Editor') %>

<% endblock %> <% block translations %> <% set helpTooltipSendPreview = __("Didn't receive the test email? Read our [link]quick guide[/link] to sending issues.

A MailPoet logo will appear in the footer of all emails sent with the free version of MailPoet.") |replaceLinkTags('http://beta.docs.mailpoet.com/article/146-my-newsletters-are-not-being-received', {'target' : '_blank'}) |escape('js') %> <%= localize({ 'failedToFetchAvailablePosts': __('Failed to fetch available posts'), 'failedToFetchRenderedPosts': __('Failed to fetch rendered posts'), 'shortcodesWindowTitle': __('Select a shortcode'), 'unsubscribeLinkMissing': __('All emails must include an "Unsubscribe" link. Add a footer widget to your email to continue.'), 'automatedLatestContentMissing': __('Please add an "Automated Latest Content" widget to the email from the right sidebar.'), 'newsletterPreviewEmailMissing': __('Enter an email address to send the preview newsletter to.'), 'newsletterPreviewSent': __('Your test email has been sent!'), 'templateNameMissing': __('Please add a template name'), 'helpTooltipSendPreview': helpTooltipSendPreview, 'helpTooltipDesignerStyles': __('We only include fonts that will display in all email clients. We understand it can feel limiting!'), 'helpTooltipDesignerSubjectLine': __("You can add MailPoet shortcodes here. For example, you can add your subscribers' first names by using this shortcode: [subscriber:firstname | default:reader] Simply copy and paste the shortcode into the field."), 'helpTooltipDesignerPreheader': __("This optional text will appear in your subscribers' inboxes, beside the subject line. Write something enticing!"), 'helpTooltipDesignerFullWidth': __("This option eliminates padding around the image. It only works if the image is larger than the column size."), 'helpTooltipDesignerIdealWidth': __("Use images with widths of at least 1,000 pixels to ensure sharp display on high density screens, like mobile devices."), 'templateDescriptionMissing': __('Please add a template description'), 'templateSaved': __('Template has been saved.'), 'templateSaveFailed': __('Template has not been saved, please try again'), 'categoriesAndTags': __('Categories & tags'), 'noPostsToDisplay': __('There is no content to display.'), 'previewShouldOpenInNewTab': __('Your preview should open in a new tab. Please ensure your browser is not blocking popups from this page.'), 'newsletterPreview': __('Newsletter Preview'), 'newsletterBodyIsCorrupted': __('Contents of this newsletter are corrupted and may be lost, you may need to add new content to this newsletter, or create a new one. If possible, please contact us and report this issue.'), 'saving': __('Saving...'), 'unsavedChangesWillBeLost': __('There are unsaved changes which will be lost if you leave this page.'), 'selectColor': _x('Select', 'select color'), 'cancelColorSelection': _x('Cancel', 'cancel color selection'), 'newsletterIsPaused': __('Email sending has been paused.'), 'selectType': __('Select type'), 'events': __('Events'), 'conditions': _x('Conditions', 'Configuration options for automatic email events'), 'template': __('Template'), 'designer': __('Designer'), 'send': __('Send'), }) %> <% endblock %> <% block after_css %> <%= stylesheet( 'newsletter_editor.css' ) %> <% endblock %> <% block after_javascript %> <%= javascript( 'lib/tinymce/tinymce.jquery.min.js', 'lib/tinymce/jquery.tinymce.min.js', 'lib/mailpoet_shortcodes/plugin.js', 'lib/wplink/plugin.js', 'newsletter_editor.js' ) %> <%= do_action('mailpoet_newsletter_editor_after_javascript') %> <% endblock %>