Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated example content to include examples in multiple languages. #14

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 63 additions & 50 deletions example/dd4tmp/Content/Footer.ampscript
Original file line number Diff line number Diff line change
@@ -1,51 +1,64 @@
<tr><td>
%%[
SET @bannerType = "Stress"

IF ([plan_type] == "SILVER") THEN
SET @bannerType = "Family"
ELSEIF([plan_type] == "GOLD") THEN
SET @bannerType = "Food"
ENDIF

SET @bannerId = CONTENTBLOCKBYNAME("BannerNameToId")
SET @bannerUrl = CONCAT("https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/campaign-toolkits/rachel-morris-customer-journey/banner-ads/MakanaHealthPlans-banner-ad-", @bannerId, ".png")
]%%
<!-- banner ad content area -->
<table style='background-color:#ffffff;' class='tmp--container' width='600' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='tmp--full-width' width='100%' align='left' style='padding:20px;'><img width='600' class='photo' style='display:block;' src='%%=V(@bannerUrl)=%%'></td>
</tr>
</table>
<!-- end content area -->
</td>
</tr>
<tr>
<td>
<!-- footer content area -->
<table style='background-color:#6c5e91;' class='tmp--container' width='600' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='tmp--full-width-center' width='100%' align='center' style='padding:25px 20px 0 20px;'><img width='50' id='style-footer-logo' src='https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-logo-footer-gray-2x.png'></td>
</tr>
</table>
<table style='background-color:#6c5e91;' class='tmp--container' width='600' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td style='color:#ffffff;font-family:Gotham, Arial, sans-serif;font-size:11px;font-style:normal;font-weight:normal;padding:20px 20px 10px 20px;' class='tmp--full-width-center' width='100%' align='center' width='432'><a href="%%view_email_url%%" alias="Web Version" target="_blank" style="color:#ffffff;text-decoration:none;">View as a Webpage</a> </td>
</tr>
<tr>
<td style='color:#ffffff;font-family:Gotham, Arial, sans-serif;font-size:11px;font-style:normal;font-weight:normal;padding:10px 20px 20px 20px;' class='tmp--full-width-center' width='100%' align='center' width='432'>%%Member_Busname%%
<br />%%Member_Addr%% %%Member_City%%, %%Member_State%%, %%Member_PostalCode%%, %%Member_Country%%.
<br /> </td>
</tr>
<tr>
<td style="font-family:Gotham, Helvetica, Arial, sans-serif; text-align:center; color:#ffffff; font-size:11px; font-weight:bold; line-height:14px; padding:0 25px 15px 25px;"> <img width="30" src="https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-social-icon-website-white.png" style="padding:0px 5px;" /> <img width="30" src="https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-social-icon-facebook-white.png" style="padding:0px 5px;" /> <img width="30" src="https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-social-icon-twitter-white.png" style="padding:0px 5px;" /> <img width="30" src="https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-social-icon-instagram-white.png" style="padding:0px 5px;" /> </td>
</tr>
</table>
<table style='background-color:#6c5e91;' class='tmp--container' width='600' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td style="font-family:Gotham, Helvetica, Arial, sans-serif;text-align:center;color:#ffffff;font-size:11px;font-style:normal;font-weight:normal;line-height:14px;padding:0 25px 35px 25px;"> <a href="%%profile_center_url%%" alias="Profile Center" target="_blank" style="color:#ffffff;text-decoration:none;">Profile Center</a> <span style="color:#aa95d1; padding:0 5px;">|</span> <a href="%%subscription_center_url%%" alias="Manage Subscriptions" target="_blank" style="color:#ffffff;text-decoration:none;">Manage Subscriptions </a> <span style="color:#aa95d1; padding:0 5px;">|</span> <a target="_blank" href="%%unsub_center_url%%" alias="Unsubscribe" title="Unsubscribe" style="color:#ffffff;text-decoration:none;">Unsubscribe </a> </td>
</tr>
</table>
<!-- end content area -->
</td>
<tr><td>
%%[
SET @bannerType = "Stress"

IF ([plan_type] == "SILVER") THEN
SET @bannerType = "Family"
ELSEIF([plan_type] == "GOLD") THEN
SET @bannerType = "Food"
ENDIF

SET @bannerId = CONTENTBLOCKBYNAME("BannerNameToId")
SET @bannerUrl = CONCAT("https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/campaign-toolkits/rachel-morris-customer-journey/banner-ads/MakanaHealthPlans-banner-ad-", @bannerId, ".png")
]%%
<!-- banner ad content area -->
<table style='background-color:#ffffff;' class='tmp--container' width='600' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='tmp--full-width' width='100%' align='left' style='padding:20px;'><img width='600' class='photo' style='display:block;' src='%%=V(@bannerUrl)=%%'></td>
</tr>
</table>
<!-- end content area -->
</td>
</tr>
<tr>
<td>
<!-- footer content area -->
<table style='background-color:#6c5e91;' class='tmp--container' width='600' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='tmp--full-width-center' width='100%' align='center' style='padding:25px 20px 0 20px;'><img width='50' id='style-footer-logo' src='https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-logo-footer-gray-2x.png'></td>
</tr>
</table>
<table style='background-color:#6c5e91;' class='tmp--container' width='600' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
%%[ If Member_Language == 'ES' then ]%%
<td style='color:#ffffff;font-family:Gotham, Arial, sans-serif;font-size:11px;font-style:normal;font-weight:normal;padding:20px 20px 10px 20px;' class='tmp--full-width-center' width='100%' align='center' width='432'><a href="%%view_email_url%%" alias="Web Version" target="_blank" style="color:#ffffff;text-decoration:none;">Ver este mensaje como p&aacute;gina web</a> </td>
%%[ ElseIf Member_Language == 'CN' then ]%%
<td style='color:#ffffff;font-family:Gotham, Arial, sans-serif;font-size:11px;font-style:normal;font-weight:normal;padding:20px 20px 10px 20px;' class='tmp--full-width-center' width='100%' align='center' width='432'><a href="%%view_email_url%%" alias="Web Version" target="_blank" style="color:#ffffff;text-decoration:none;">以网页形式查看此消息</a> </td>
%%[ Else ]%%
<td style='color:#ffffff;font-family:Gotham, Arial, sans-serif;font-size:11px;font-style:normal;font-weight:normal;padding:20px 20px 10px 20px;' class='tmp--full-width-center' width='100%' align='center' width='432'><a href="%%view_email_url%%" alias="Web Version" target="_blank" style="color:#ffffff;text-decoration:none;">View as a Webpage</a> </td>
%%[ EndIf]%%
</tr>
<tr>
<td style='color:#ffffff;font-family:Gotham, Arial, sans-serif;font-size:11px;font-style:normal;font-weight:normal;padding:10px 20px 20px 20px;' class='tmp--full-width-center' width='100%' align='center' width='432'>%%Member_Busname%%
<br />
<p>%%Member_Addr%% %%Member_City%%, %%Member_State%%, %%Member_PostalCode%%, %%Member_Country%%.</p>
</td>
</tr>
<tr>
<td style="font-family:Gotham, Helvetica, Arial, sans-serif; text-align:center; color:#ffffff; font-size:11px; font-weight:bold; line-height:14px; padding:0 25px 15px 25px;"> <img width="30" src="https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-social-icon-website-white.png" style="padding:0px 5px;" /> <img width="30" src="https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-social-icon-facebook-white.png" style="padding:0px 5px;" /> <img width="30" src="https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-social-icon-twitter-white.png" style="padding:0px 5px;" /> <img width="30" src="https://s3-us-west-2.amazonaws.com/rd-industry-emails/healthcare-life-sciences/makana/branding-assets/email-templates/branding-MakanaHealth-social-icon-instagram-white.png" style="padding:0px 5px;" /> </td>
</tr>
</table>
<table style='background-color:#6c5e91;' class='tmp--container' width='600' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
%%[ If Member_Language == 'ES' then ]%%
<td style="font-family:Gotham, Helvetica, Arial, sans-serif;text-align:center;color:#ffffff;font-size:11px;font-style:normal;font-weight:normal;line-height:14px;padding:0 25px 35px 25px;"> <a href="%%profile_center_url%%" alias="Profile Center" target="_blank" style="color:#ffffff;text-decoration:none;">Centro de perfil</a> <span style="color:#aa95d1; padding:0 5px;">|</span> <a href="%%subscription_center_url%%" alias="Manage Subscriptions" target="_blank" style="color:#ffffff;text-decoration:none;">Administrir suscripci&oacute;nes</a> <span style="color:#aa95d1; padding:0 5px;">|</span> <a target="_blank" href="%%unsub_center_url%%" alias="Unsubscribe" title="Unsubscribe" style="color:#ffffff;text-decoration:none;">Cancelar suscripci&oacute;n</a> </td>
%%[ ElseIf Member_Language == 'CN' then ]%%
<td style="font-family:Gotham, Helvetica, Arial, sans-serif;text-align:center;color:#ffffff;font-size:11px;font-style:normal;font-weight:normal;line-height:14px;padding:0 25px 35px 25px;"> <a href="%%profile_center_url%%" alias="Profile Center" target="_blank" style="color:#ffffff;text-decoration:none;">用户资料</a> <span style="color:#aa95d1; padding:0 5px;">|</span> <a href="%%subscription_center_url%%" alias="Manage Subscriptions" target="_blank" style="color:#ffffff;text-decoration:none;">管理订阅</a> <span style="color:#aa95d1; padding:0 5px;">|</span> <a target="_blank" href="%%unsub_center_url%%" alias="Unsubscribe" title="Unsubscribe" style="color:#ffffff;text-decoration:none;">取消订阅</a> </td>
%%[ Else ]%%
<td style="font-family:Gotham, Helvetica, Arial, sans-serif;text-align:center;color:#ffffff;font-size:11px;font-style:normal;font-weight:normal;line-height:14px;padding:0 25px 35px 25px;"> <a href="%%profile_center_url%%" alias="Profile Center" target="_blank" style="color:#ffffff;text-decoration:none;">Profile Center</a> <span style="color:#aa95d1; padding:0 5px;">|</span> <a href="%%subscription_center_url%%" alias="Manage Subscriptions" target="_blank" style="color:#ffffff;text-decoration:none;">Manage Subscriptions </a> <span style="color:#aa95d1; padding:0 5px;">|</span> <a target="_blank" href="%%unsub_center_url%%" alias="Unsubscribe" title="Unsubscribe" style="color:#ffffff;text-decoration:none;">Unsubscribe </a> </td>
%%[ EndIf ]%%
</tr>
</table>
<!-- end content area -->
</td>
</tr>
77 changes: 52 additions & 25 deletions example/dd4tmp/Content/Message.ampscript
Original file line number Diff line number Diff line change
@@ -1,26 +1,53 @@
<tr>
<td>
<!-- content area -->
<!-- message content area -->
<table style='background-color:#ffffff;' class='tmp--container' width='600' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td style='color:#404760;font-family:"Salesforce Sans", Arial, sans-serif;font-size:14px;font-style:normal;font-weight:normal;line-height:18px;padding:25px 25px 5px 25px;vertical-align:top;' width='100%' align='left'>
Welcome %%= IIF(EMPTY([first_name]), "super valued customer", [first_name]) =%%!
<br />
<br />We are so happy you've selected us for your healthcare needs. A full <strong>%%plan_type%%</strong> welcome kit has been shipped to your home address and will arrive in the mail in the next few days. In the meantime, please register in the online Makana Health Plans portal in order to get started with your account.
<!-- ============================== -->
<!-- CTA BTN -->
<!-- ============================== -->
<table class='tmp--full-width' align='left' width='100%'>
<tr>
<td style='padding:20px 0 10px 0;'>
<a style='border-radius:0px;background-color:#6c5f91;border-top:12px solid #6c5f91;border-bottom:12px solid #6c5f91;border-right:18px solid #6c5f91;border-left:18px solid #6c5f91;color:#ffffff;display:inline-block;font-family:"Salesforce Sans", Arial, sans-serif;font-size:12px;font-style:normal;text-transform:uppercase;font-weight:normal;line-height:16px;text-align:center;text-decoration:none;' href='' target='_blank'>Register in Portal</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- end content area -->
</td>
<tr>
<td>
<!-- content area -->
<!-- message content area -->
<table style='background-color:#ffffff;' class='tmp--container' width='600' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td style='color:#404760;font-family:"Salesforce Sans", Arial, sans-serif;font-size:14px;font-style:normal;font-weight:normal;line-height:18px;padding:25px 25px 5px 25px;vertical-align:top;' width='100%' align='left'>
%%[ If Member_Language == "ES" then ]%%
<p>%%= Iif(EMPTY([first_name]), "Estimado cliente,", Concat("Querido ", [first_name], ",")) =%%</p>
<p>Estamos muy contentos de que nos haya elegido para sus necesidades médicas. Se ha enviado un kit de bienvenida<strong>%%=Iif(Empty(plan_type),"", Concat(" ", plan_type))=%%</strong>, que le llegará a su casa por correo en los próximos días. Mientras espera, regístrese en el portal electronico de Makana Health Plans para empezar a utilizar su cuenta.</p>
<!-- ============================== -->
<!-- CTA BTN -->
<!-- ============================== -->
<table class='tmp--full-width' align='left' width='100%'>
<tr>
<td style='padding:20px 0 10px 0;'>
<a style='border-radius:0px;background-color:#6c5f91;border-top:12px solid #6c5f91;border-bottom:12px solid #6c5f91;border-right:18px solid #6c5f91;border-left:18px solid #6c5f91;color:#ffffff;display:inline-block;font-family:"Salesforce Sans", Arial, sans-serif;font-size:12px;font-style:normal;text-transform:uppercase;font-weight:normal;line-height:16px;text-align:center;text-decoration:none;' href='' target='_blank'>Registrarse en el portal</a>
</td>
</tr>
</table>
%%[ ElseIf Member_Language == "CN" then ]%%
<p>%%= Iif(EMPTY([last_name]), "致相关人士", Concat("致: ", [last_name], [first_name])) =%%</p>
<p>我们很高兴您选择我们来满足您的医疗保健需求。全套 <strong>%%=Iif(Empty(plan_type),"", plan_type))=%%</strong> 欢迎套件已寄往您的家庭住址,并将在未来几天内寄达。在此期间,请在 Makana 健康计划在线门户网站注册,以便开始使用您的账户。</p>
<!-- ============================== -->
<!-- CTA BTN -->
<!-- ============================== -->
<table class='tmp--full-width' align='left' width='100%'>
<tr>
<td style='padding:20px 0 10px 0;'>
<a style='border-radius:0px;background-color:#6c5f91;border-top:12px solid #6c5f91;border-bottom:12px solid #6c5f91;border-right:18px solid #6c5f91;border-left:18px solid #6c5f91;color:#ffffff;display:inline-block;font-family:"Salesforce Sans", Arial, sans-serif;font-size:12px;font-style:normal;text-transform:uppercase;font-weight:normal;line-height:16px;text-align:center;text-decoration:none;' href='' target='_blank'>在门户中注册您的帐户</a>
</td>
</tr>
</table>
%%[ Else ]%%
<p>Welcome %%= Iif(EMPTY([first_name]), "valued customer", [first_name]) =%%!</p>
<p>We are so happy you've selected us for your healthcare needs. A full <strong>%%=Iif(Empty(plan_type),"", plan_type))=%%</strong> welcome kit has been shipped to your home address and will arrive in the mail in the next few days. In the meantime, please register in the online Makana Health Plans portal in order to get started with your account.</p>
<!-- ============================== -->
<!-- CTA BTN -->
<!-- ============================== -->
<table class='tmp--full-width' align='left' width='100%'>
<tr>
<td style='padding:20px 0 10px 0;'>
<a style='border-radius:0px;background-color:#6c5f91;border-top:12px solid #6c5f91;border-bottom:12px solid #6c5f91;border-right:18px solid #6c5f91;border-left:18px solid #6c5f91;color:#ffffff;display:inline-block;font-family:"Salesforce Sans", Arial, sans-serif;font-size:12px;font-style:normal;text-transform:uppercase;font-weight:normal;line-height:16px;text-align:center;text-decoration:none;' href='' target='_blank'>Register in Portal</a>
</td>
</tr>
</table>
%%[ EndIf ]%%
</td>
</tr>
</table>
<!-- end content area -->
</td>
</tr>
2 changes: 1 addition & 1 deletion example/dd4tmp/dd4tmp.ampscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%%=CONTENTBLOCKBYNAME("Style")=%%
</head>
<!-- background color -->
<body bgcolor="5#ff3788">
<body bgcolor="#ff3788">
<!-- background color -->
<table bgcolor="#ffffff" width="100%" border="0" cellspacing="0" cellpadding="0">
%%=CONTENTBLOCKBYNAME("LOGO")=%%
Expand Down
Loading
Loading