Add referral id to URLs in twig templates

[MAILPOET-2182]
This commit is contained in:
Rostislav Wolny
2019-08-07 13:32:02 +02:00
committed by M. Shull
parent ee144a780d
commit ebbcbc2015
3 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@
</p> </p>
<p> <p>
<a class="button button-primary" target="_blank" href="https://account.mailpoet.com?s=<%= subscriber_count %>"><%= __('Visit MailPoet.com to purchase a key') %></a> <a class="button button-primary" target="_blank" href="<%= add_referral_id('https://account.mailpoet.com?s=' ~ subscriber_count) %>"><%= __('Visit MailPoet.com to purchase a key') %></a>
</p> </p>
</div> </div>
<% endblock %> <% endblock %>

View File

@@ -9,7 +9,7 @@
<p><%= __('Dont miss out on our only sale of the year which ends on November 30.') %></p> <p><%= __('Dont miss out on our only sale of the year which ends on November 30.') %></p>
<p><%= __('Theres never been a better time to change gears.') %></p> <p><%= __('Theres never been a better time to change gears.') %></p>
<a <a
href="https://account.mailpoet.com/?s=<%= subscriber_count %>&utm_source=plugin&utm_medium=premium&utm_campaign=discount" href="<%= add_referral_id('https://account.mailpoet.com/?s=' ~ subscriber_count ~ '&utm_source=plugin&utm_medium=premium&utm_campaign=discount') %>"
class="button button-primary" class="button button-primary"
style="font-size: 1.5em; padding: 10px 18px; height: 46px;" style="font-size: 1.5em; padding: 10px 18px; height: 46px;"
> >
@@ -131,7 +131,7 @@
<p style="text-align: center"> <p style="text-align: center">
<a <a
target="_blank" target="_blank"
href="https://account.mailpoet.com?s=<%= subscriber_count %>&utm_source=plugin&utm_medium=premium&utm_campaign=purchase" href="<%= add_referral_id('https://account.mailpoet.com?s=' ~ subscriber_count ~ '&utm_source=plugin&utm_medium=premium&utm_campaign=purchase') %>"
class="button button-primary" class="button button-primary"
style="font-size: 1.5em; padding: 10px 18px; height: 46px;" style="font-size: 1.5em; padding: 10px 18px; height: 46px;"
><%= __("Purchase Now") %></a> ><%= __("Purchase Now") %></a>
@@ -143,7 +143,7 @@
|raw |raw
%></p> %></p>
<p style="text-align: center"><%= __("Dont need to use our sending service? Not a problem; we understand. You can also [link]buy the Premium[/link] features separately. Prices start at $149 per year for 1 website, $249 for 4 sites and $499 for an unlimited number of sites.") <p style="text-align: center"><%= __("Dont need to use our sending service? Not a problem; we understand. You can also [link]buy the Premium[/link] features separately. Prices start at $149 per year for 1 website, $249 for 4 sites and $499 for an unlimited number of sites.")
|replaceLinkTags('https://account.mailpoet.com/premium?utm_source=plugin&utm_medium=premium&utm_campaign=buy-premium', {'target' : '_blank'}) |replaceLinkTags(add_referral_id('https://account.mailpoet.com/premium?utm_source=plugin&utm_medium=premium&utm_campaign=buy-premium'), {'target' : '_blank'})
|raw |raw
%></p> %></p>
</div> </div>

View File

@@ -97,7 +97,7 @@
</div> </div>
<div class="mailpoet_actions"> <div class="mailpoet_actions">
<div class="mailpoet_invalid_key <% if(mss_key_valid) %> mailpoet_hidden <% endif %>"> <div class="mailpoet_invalid_key <% if(mss_key_valid) %> mailpoet_hidden <% endif %>">
<a class="button-primary" href="https://www.mailpoet.com/free-plan/" rel="noopener noreferrer" target="_blank"><%= __('Free up to 1,000 subscribers') %></a> <a class="button-primary" href="<%= add_referral_id('https://www.mailpoet.com/free-plan') %>" rel="noopener noreferrer" target="_blank"><%= __('Free up to 1,000 subscribers') %></a>
<%= __("or") %> <%= __("or") %>
<%= <%=
__("[link]enter your key[/link]") __("[link]enter your key[/link]")