Skip to content

Commit c9a92d7

Browse files
author
Simon L. Lange
committed
Faxe-378: Test af email template
1 parent 50c03a7 commit c9a92d7

File tree

2 files changed

+69
-12
lines changed

2 files changed

+69
-12
lines changed

web/themes/custom/fds_faxe_theme/templates/anonymous_subscriptions/anonymous-subscriptions-message.html.twig

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,71 @@
44
* Anonymous subscription messages template.
55
*/
66
#}
7+
<!DOCTYPE html>
8+
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office">
9+
<head>
10+
<meta charset="utf-8">
11+
<meta name="viewport" content="width=device-width,initial-scale=1">
12+
<meta name="x-apple-disable-message-reformatting">
13+
<title></title>
14+
<style type="text/css">
15+
@media screen and(max-width: 460px) {
16+
.two-col {
17+
background-size: 150px, 300px !important;
18+
background-position: calc(100% + 50px) -75px, -110px -90px !important;
19+
}
20+
.two-col .column {
21+
max-width: 100% !important;
22+
}
23+
.two-col .footerpad {
24+
padding: 10px !important;
25+
}
26+
}
27+
@media screen and(min-width: 461px) {
28+
.two-col .column {
29+
max-width: 50% !important;
30+
}
31+
}
32+
</style>
33+
</head>
34+
<body style="margin:0;padding:0;word-spacing:normal;background-color:#ebebeb;">
35+
<div role="article" aria-roledescription="email" lang="en" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;background-color:#ffffff;">
36+
<table role="presentation" style="width:100%;border:0;border-spacing:0;">
37+
<tr>
38+
<td style="padding:10px 0;text-align:right;">
39+
den.
40+
{{ "now"|date('U')|format_date("custom", "j. F Y") }}
41+
</td>
42+
</tr>
43+
<tr>
44+
<td style="font-family: Arial; color: #333333; font-size: 15px; padding:10px 0;text-align:left;">
45+
{{ message|raw }}
46+
{% if link %}
47+
<div class="anonymous-subscription-url">
48+
{{ link }}
49+
</div>
50+
{% endif %}
51+
</td>
52+
</tr>
53+
</table>
54+
{# <div class="spacer" style="line-height:26px;height:26px;mso-line-height-rule:exactly;">&nbsp;</div> #}
55+
56+
<table class="spacer">
57+
<tr>
58+
<td style="line-height:26px;height:26px;mso-line-height-rule:exactly;">
59+
&nbsp;
60+
</td>
61+
</tr>
62+
</table>
63+
64+
65+
{# </div> #}
66+
</td>
67+
</tr>
68+
</table>
69+
</td>
70+
</tr>
71+
</table>
72+
</div>
73+
</body>
74+
</html>

web/themes/custom/fds_faxe_theme/templates/swiftmailer/swiftmailer.html.twig

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,7 @@
4444
</tr>
4545
<tr>
4646
<td style="text-align:left;font-family:Arial,sans-serif;">
47-
den.
48-
{{ "now"|date('U')|format_date("custom", "j. F Y") }}
49-
</td>
50-
</tr>
51-
<tr>
52-
<td style="font-family: Arial; color: #333333; font-size: 15px; padding:10px 0;text-align:left;">
53-
{{ message|raw }}
54-
{% if link %}
55-
<div class="anonymous-subscription-url">
56-
{{ link }}
57-
</div>
58-
{% endif %}
47+
{{ body|raw }}
5948
</td>
6049
</tr>
6150
</table>

0 commit comments

Comments
 (0)