Use 'cdn_url' function for all CDN URLs in views
[MAILPOET-1643]
This commit is contained in:
@ -1340,8 +1340,8 @@
|
|||||||
"newsletter_editor/image-missing.svg"
|
"newsletter_editor/image-missing.svg"
|
||||||
) %>',
|
) %>',
|
||||||
},
|
},
|
||||||
dragDemoUrl: '//ps.w.org/mailpoet/assets/newsletter-editor/editor-drag-demo.20181121-1440.mp4',
|
dragDemoUrl: '<%= cdn_url('newsletter-editor/editor-drag-demo.20181121-1440.mp4') %>',
|
||||||
backgroundImageDemoUrl: '//ps.w.org/mailpoet/assets/newsletter-editor/background-image-demo.20181121-1440.mp4',
|
backgroundImageDemoUrl: '<%= cdn_url('newsletter-editor/background-image-demo.20181121-1440.mp4') %>',
|
||||||
currentUserId: '<%= current_wp_user.wp_user_id %>',
|
currentUserId: '<%= current_wp_user.wp_user_id %>',
|
||||||
currentUserFirstName: '<%= current_wp_user.first_name %>',
|
currentUserFirstName: '<%= current_wp_user.first_name %>',
|
||||||
currentUserUsername: '<%= current_wp_user.login %>',
|
currentUserUsername: '<%= current_wp_user.login %>',
|
||||||
|
@ -25,9 +25,9 @@
|
|||||||
var mailpoet_woocommerce_active = <%= json_encode(is_woocommerce_active) %>;
|
var mailpoet_woocommerce_active = <%= json_encode(is_woocommerce_active) %>;
|
||||||
var mailpoet_automatic_emails = <%= json_encode(automatic_emails) %>;
|
var mailpoet_automatic_emails = <%= json_encode(automatic_emails) %>;
|
||||||
var mailpoet_in_app_announcements = mailpoet_settings.in_app_announcements;
|
var mailpoet_in_app_announcements = mailpoet_settings.in_app_announcements;
|
||||||
var mailpoet_free_welcome_emails_image = '//ps.w.org/mailpoet/assets/in-app-announcements/hello-illustration-for-welcome-emails.20181121-1440.png';
|
var mailpoet_free_welcome_emails_image = '<%= cdn_url('in-app-announcements/hello-illustration-for-welcome-emails.20181121-1440.png') %>';
|
||||||
var mailpoet_congratulations_success_image = '//ps.w.org/mailpoet/assets/newsletter/congrat-illu-success.20181121-1440.png';
|
var mailpoet_congratulations_success_image = '<%= cdn_url('newsletter/congrat-illu-success.20181121-1440.png') %>';
|
||||||
var mailpoet_congratulations_loading_image = '//ps.w.org/mailpoet/assets/newsletter/congratulation-page-illustration-transparent-LQ.20181121-1440.png';
|
var mailpoet_congratulations_loading_image = '<%= cdn_url('newsletter/congratulation-page-illustration-transparent-LQ.20181121-1440.png') %>';
|
||||||
var mailpoet_main_page = '<%= mailpoet_main_page %>';
|
var mailpoet_main_page = '<%= mailpoet_main_page %>';
|
||||||
<% set newUser = (is_new_user == true) ? 'true' : 'false' %>
|
<% set newUser = (is_new_user == true) ? 'true' : 'false' %>
|
||||||
var mailpoet_is_new_user = <%= newUser %>;
|
var mailpoet_is_new_user = <%= newUser %>;
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
<div class="feature-section one-col">
|
<div class="feature-section one-col">
|
||||||
<p class="lead-description"><%= __("Which links get the most clicks? Which subscribers opened your emails? With MailPoet's stats program, it's easy to find out. Need even more details? Integrating with Google Analytics is as easy as 1-2-3.") %></p>
|
<p class="lead-description"><%= __("Which links get the most clicks? Which subscribers opened your emails? With MailPoet's stats program, it's easy to find out. Need even more details? Integrating with Google Analytics is as easy as 1-2-3.") %></p>
|
||||||
<% set video_url = '//ps.w.org/mailpoet/assets/premium/premium-page-animated-stats.mp4' %>
|
<% set video_url = cdn_url('premium/premium-page-animated-stats.mp4') %>
|
||||||
<video autoplay loop width="100%" class="mailpoet_video">
|
<video autoplay loop width="100%" class="mailpoet_video">
|
||||||
<source type="video/mp4" src="<%= video_url %>" />
|
<source type="video/mp4" src="<%= video_url %>" />
|
||||||
<a href="<%= video_url %>"><%= video_url %></a>
|
<a href="<%= video_url %>"><%= video_url %></a>
|
||||||
@ -113,7 +113,7 @@
|
|||||||
|
|
||||||
<div class="feature-section">
|
<div class="feature-section">
|
||||||
<h2><%= __("We’re Here to Help!") %></h2>
|
<h2><%= __("We’re Here to Help!") %></h2>
|
||||||
<% set video_url = '//ps.w.org/mailpoet/assets/premium/premium-page-animated-support.mp4' %>
|
<% set video_url = cdn_url('premium/premium-page-animated-support.mp4') %>
|
||||||
<video autoplay loop width="100%" class="mailpoet_video half-width-centered">
|
<video autoplay loop width="100%" class="mailpoet_video half-width-centered">
|
||||||
<source type="video/mp4" src="<%= video_url %>" />
|
<source type="video/mp4" src="<%= video_url %>" />
|
||||||
<a href="<%= video_url %>"><%= video_url %></a>
|
<a href="<%= video_url %>"><%= video_url %></a>
|
||||||
|
@ -208,7 +208,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
var mailpoet_in_app_announcements = <%= json_encode(settings.in_app_announcements) %>;
|
var mailpoet_in_app_announcements = <%= json_encode(settings.in_app_announcements) %>;
|
||||||
var mailpoet_new_subscriber_announcement_image = '//ps.w.org/mailpoet/assets/in-app-announcements/new-subscriber-notification.20181121-1440.png';
|
var mailpoet_new_subscriber_announcement_image = '<%= cdn_url('in-app-announcements/new-subscriber-notification.20181121-1440.png') %>';
|
||||||
var mailpoet_installed_at = <%= json_encode(settings.installed_at) %>;
|
var mailpoet_installed_at = <%= json_encode(settings.installed_at) %>;
|
||||||
<% set newUser = (is_new_user == true) ? 'true' : 'false' %>
|
<% set newUser = (is_new_user == true) ? 'true' : 'false' %>
|
||||||
var mailpoet_is_new_user = <%= newUser %>;
|
var mailpoet_is_new_user = <%= newUser %>;
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<% block content %>
|
<% block content %>
|
||||||
<script>
|
<script>
|
||||||
var mailpoet_logo_url = '//ps.w.org/mailpoet/assets/welcome-wizard/mailpoet-logo.20181121-1440.png';
|
var mailpoet_logo_url = '<%= cdn_url('welcome-wizard/mailpoet-logo.20181121-1440.png') %>';
|
||||||
var woocommerce_screenshot_url = '//ps.w.org/mailpoet/assets/welcome-wizard/woocommerce-auto-emails-tilted.20181121-1440.png';
|
var woocommerce_screenshot_url = '<%= cdn_url('welcome-wizard/woocommerce-auto-emails-tilted.20181121-1440.png') %>';
|
||||||
var is_mp2_migration_complete = <%= json_encode(is_mp2_migration_complete) %>;
|
var is_mp2_migration_complete = <%= json_encode(is_mp2_migration_complete) %>;
|
||||||
var is_woocommerce_active = <%= json_encode(is_woocommerce_active) %>;
|
var is_woocommerce_active = <%= json_encode(is_woocommerce_active) %>;
|
||||||
var finish_wizard_url = '<%= finish_wizard_url %>';
|
var finish_wizard_url = '<%= finish_wizard_url %>';
|
||||||
|
Reference in New Issue
Block a user