Skip to content

Commit 50c03a7

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

File tree

2 files changed

+12
-143
lines changed

2 files changed

+12
-143
lines changed

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

Lines changed: 0 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -4,145 +4,3 @@
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 align="center" style="background-color:#ebebeb;padding:25px;">
39-
<table width="912">
40-
<tr>
41-
<td align="center" style="padding: 0; padding-top: 7px;width:912px;margin:20px auto;background-color:#ffffff;">
42-
{# <div class="outer" style="padding-top: 7px;width:912px;margin:20px auto;background:#ffffff;"> #}
43-
<table align="center" role="presentation" style="width:666px;border:0;border-spacing:0;">
44-
<tr>
45-
<td style="padding:20px 0;font-family:Arial,sans-serif;font-size:24px;line-height:28px;font-weight:bold;">
46-
<a href="{{ url('<front>') }}" style="display:block; float:left;">
47-
<img src="{{ logo_url }}" alt="Faxe logotype" style="border:0;" width="277" height="22">
48-
</a>
49-
</td>
50-
</tr>
51-
<tr>
52-
<td style="padding:10px 0;text-align:right;">
53-
den.
54-
{{ "now"|date('U')|format_date("custom", "j. F Y") }}
55-
</td>
56-
</tr>
57-
<tr>
58-
<td style="font-family: Arial; color: #333333; font-size: 15px; padding:10px 0;text-align:left;">
59-
{{ message|raw }}
60-
{% if link %}
61-
<div class="anonymous-subscription-url">
62-
{{ link }}
63-
</div>
64-
{% endif %}
65-
</td>
66-
</tr>
67-
</table>
68-
{# <div class="spacer" style="line-height:26px;height:26px;mso-line-height-rule:exactly;">&nbsp;</div> #}
69-
70-
<table class="spacer">
71-
<tr>
72-
<td style="line-height:26px;height:26px;mso-line-height-rule:exactly;">
73-
&nbsp;
74-
</td>
75-
</tr>
76-
</table>
77-
78-
<table>
79-
<tr>
80-
<td></td>
81-
</tr>
82-
</table>
83-
84-
85-
<table bgcolor="#D1D3D4" align="center" height="240" border="0" cellspacing="0" cellpadding="0" style="width:100%;">
86-
<tbody>
87-
<tr>
88-
<td height="240" bgcolor="#D1D3D4" background="{{ base_url }}themes/custom/fds_faxe_theme/dist/images/blobs.png" border="0" style="vertical-align:top;padding:0;background-repeat:no-repeat; background-size: cover; background-position: center;">
89-
{# <div class="two-col" style="background-color:#D1D3D4;background-image:url({{ base_url }}themes/custom/fds_redwhite_theme/dist/images/small-circle.png),url({{ base_url }}themes/custom/fds_redwhite_theme/dist/images/big-circle.png); background-repeat:no-repeat; background-size:auto,400px; background-position:calc(100% + 60px) -95px, -160px -90px;text-align:center;font-size:0;"> #}
90-
<table align="center">
91-
<tr>
92-
<td style="vertical-align:top;width:333px;padding-top:40px;">
93-
<div class="column" style="display:inline-block;vertical-align:middle;">
94-
<div class="footerpad" style="">
95-
<p style="margin:0;font-family:Arial,sans-serif;font-size:16px;line-height:18px;color:#333;">
96-
<img src="{{ logo_url }}" alt="Faxe logotype" width="277" height="22" style="display:block;height:auto;"/>
97-
</p>
98-
</div>
99-
</div>
100-
</td>
101-
<td style="vertical-align:top;width:333px;padding-top:40px;">
102-
<div class="column" style="display:inline-block;vertical-align:middle;">
103-
<div class="footerpad" style="font-size:16px;line-height:18px;text-align:left;">
104-
<p style="margin-top:0;margin-bottom:16px;font-family:Arial,sans-serif;color:#333;">
105-
{% if theme_settings.contact_information.business_owner_name %}
106-
{{ theme_settings.contact_information.business_owner_name | trans }}
107-
{% endif %}
108-
<br>
109-
{% if theme_settings.contact_information.address %}
110-
{{ theme_settings.contact_information.address }}
111-
{% endif %}
112-
<br>
113-
{% if theme_settings.contact_information.zipcode and theme_settings.contact_information.city %}
114-
{{ theme_settings.contact_information.zipcode }}
115-
{{ theme_settings.contact_information.city }}
116-
{% endif %}
117-
<br>
118-
<br>
119-
{% if theme_settings.contact_information.phone_readable %}
120-
{{ theme_settings.contact_information.phone_readable }}
121-
{% endif %}
122-
<br>
123-
{% if theme_settings.contact_information.email %}
124-
<a href="mailto: {{ theme_settings.contact_information.email }}" style="color:#333; font-weight:bold; text-decoration:none;">
125-
{{ theme_settings.contact_information.email }}
126-
</a>
127-
{% endif %}
128-
</p>
129-
</div>
130-
</div>
131-
</td>
132-
</tr>
133-
</table>
134-
{# </div> #}
135-
</td>
136-
</tr>
137-
</tbody>
138-
</table>
139-
{# </div> #}
140-
</td>
141-
</tr>
142-
</table>
143-
</td>
144-
</tr>
145-
</table>
146-
</div>
147-
</body>
148-
</html>

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,18 @@
4444
</tr>
4545
<tr>
4646
<td style="text-align:left;font-family:Arial,sans-serif;">
47-
{{ body|raw }}
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 %}
4859
</td>
4960
</tr>
5061
</table>

0 commit comments

Comments
 (0)