1<#include "${fullTemplatesPath}/newsletter_macros.ftl" >
2<#assign
3 color = themeDisplay.getScopeGroup().getExpandoBridge().getAttribute("branding-color", false)!"#aa1a4d"
4 pageUrl = themeDisplay.getLayout().getGroup().getPublicLayoutSet().getVirtualHostname()!"https://www.mitarbeitervorteile.de"
5 imageUrl = themeDisplay.getCDNDynamicResourcesHost()?replace("https:", "http:")!""
6 height = backgroundSize.getData()!400
7 friendlyURLLocalService = serviceLocator.findService("com.mivo.friendly.url.service.FriendlyUrlLocalService")
8 isMarketplaceProduct = false
9/>
10
11<#if !height?has_content>
12 <#assign height = 400 />
13</#if>
14
15<#if pageUrl == "">
16 <#assign pageUrl = "mitarbeitervorteile.de" + themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getLayout().getGroup().getFriendlyURL()>
17</#if>
18<#assign pageUrl = "https://" + pageUrl>
19
20<#if backgroundImage.backgroundImageLink.getData()?has_content>
21 <#assign pageUrl = pageUrl + backgroundImage.backgroundImageLink.getData() >
22</#if>
23
24<#if imageUrl == "" || imageUrl?contains("localhost")>
25 <#assign imageUrl = "http://static.mitarbeitervorteile.de">
26</#if>
27
28<#if !color?has_content>
29 <#assign color = "#aa1a4d">
30</#if>
31
32<#if marketplaceProduct??>
33 <#assign
34 isMarketplaceProduct = marketplaceProduct.getData() == "true"
35 marketplaceURL = ""
36 />
37</#if>
38
39<#if isMarketplaceProduct && backgroundImage.backgroundImageLink??>
40 <#assign marketplaceURL = friendlyURLLocalService.getMarketplaceProductURL(themeDisplay.getScopeGroup(), backgroundImage.backgroundImageLink.getData()) />
41</#if>
42
43<!-- Newsletter Intro Start -->
44<table class="innerPortletContainer nlIntro" width="650">
45 <tr>
46 <td>
47 <#if
48 title?? && title.getData()?has_content ||
49 subtitle?? && subtitle.getData()?has_content ||
50 buttonText?? && buttonText.getData()?has_content
51 >
52 <table
53 style="width: 100%; height: ${height}px;" class="deviceWidth introImage">
54 <tr>
55 <td background="${imageUrl}${backgroundImage.getData()}"
56 style="background-image: url(${imageUrl}${backgroundImage.getData()}); background-position: center top; background-size: cover; background-color: #0E191D;">
57 <!--[if gte mso 9]>
58 <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width: 650px; height: ${height}px;">
59 <v:fill type="frame" src="${imageUrl}${backgroundImage.getData()}" color="#0E191D" />
60 <v:textbox inset="0,0,0,0">
61 <![endif]-->
62 <table>
63 <tr>
64 <td style="padding: 30px 30px 0;">
65 <b style="font-size: 40px;color:${textColor.getData()};">${title.getData()}</b>
66 </td>
67 </tr>
68 <#if subtitle??>
69 <tr>
70 <td style="font-size: 30px; padding: 0 30px 10px;color:${textColor.getData()};">${subtitle.getData()}</td>
71 </tr>
72 </#if>
73 <#if buttonText?? && buttonText.getData()?has_content>
74 <tr>
75 <td style="padding: 40px;">
76 <@printButton href=isMarketplaceProduct?then(marketplaceURL, pageUrl) text=buttonText.getData() color=color fullwidth=false target=isMarketplaceProduct?then("_blank", "_self")/>
77 </td>
78 </tr>
79 </#if>
80 </table>
81 <!--[if gte mso 9]>
82 </v:textbox>
83 </v:rect>
84 <![endif]-->
85 </td>
86 </tr>
87 </table>
88 <#else >
89 <a href="${isMarketplaceProduct?then(marketplaceURL, pageUrl)}" style="text-decoration: none;" target="${isMarketplaceProduct?then("_blank", "_self")}">
90 <img style="width: 100%" src="${imageUrl}${backgroundImage.getData()}" alt="" />
91 </a>
92 </#if>
93
94
95 <table>
96 <tr>
97 <td style="padding: 10px;">
98 <b>${languageUtil.get(locale, "mivo-newsletter-salutation")} %%FIRST_NAME_REPLACER%% %%LAST_NAME_REPLACER%%,</b>
99 ${content.getData()}
100 </td>
101 </tr>
102 </table>
103
104 </td>
105 </tr>
106</table>
107<!-- Newsletter Intro END -->