-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.j2.html
70 lines (55 loc) · 2.47 KB
/
template.j2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%;">
<head>
<title>{{ title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
{% from "macros/style.j2.html" import style_macro %}
{{ style_macro() }}
<body bgcolor="ffffff" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" offset="0">
<div id="preview">{{ subtitle }}</div>
<div id="mailsub" class="wrapper" align="center" bgcolor="626262" border="0" cellpadding="0" cellspacing="0" width="100%">
<table class="main" align="center" bgcolor="ffffff" border="0" cellpadding="0" cellspacing="0" width="600">
<tbody>
{% if logo == "top" %}
{% from "macros/logo.j2.html" import logo_macro with context %}
{{ logo_macro(source, source_link, source_logo, source_logo_alt, campaign) }}
{% endif %}
{% if header %}
{% from "macros/header_body_footer.j2.html" import text_block_macro with context %}
{{ text_block_macro(header) }}
{% endif %}
{% if events_list_top %}
{% for events_row in events_list_top %}
{% from "macros/events_list.j2.html" import events_list_macro with context %}
{{ events_list_macro(events_row) }}
{% endfor %}
{% endif %}
{% if body %}
{% from "macros/header_body_footer.j2.html" import text_block_macro with context %}
{{ text_block_macro(body) }}
{% endif %}
{% if events_list_bottom %}
{% for events_row in events_list_bottom %}
{% from "macros/events_list.j2.html" import events_list_macro with context %}
{{ events_list_macro(events_row) }}
{% endfor %}
{% endif %}
{% if footer %}
{% from "macros/header_body_footer.j2.html" import text_block_macro with context %}
{{ text_block_macro(footer) }}
{% endif %}
{% if logo == "bottom" %}
{% from "macros/logo.j2.html" import logo with context %}
{{ logo(source, source_link, source_logo, source_logo_alt, campaign) }}
{% endif %}
{% from "macros/social.j2.html" import social_macro with context %}
{{ social_macro(social, source, source_social_text, source_link, campaign) }}
</tbody>
</table>
</div>
</body>
</html>