Create template for email - refs BT#9898 #TMI

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 066ad50666
commit e917751cc5
  1. 7
      main/template/default/mail/footer.tpl
  2. 12
      main/template/default/mail/header.tpl
  3. 33
      main/template/default/mail/mail.tpl

@ -0,0 +1,7 @@
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td style="background-color: #2C3E50; border-bottom: 1px solid #2C3E50; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);">
&nbsp;
</td>
</tr>
</table>

@ -0,0 +1,12 @@
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td width="245">
<a href="{{ _p.web }}">
<img src="{{ _p.web_css_theme ~ 'images/header-logo.png' }}" alt="{{ _s.site_name }}">
</a>
</td>
<td width="100%">
&nbsp;
</td>
</tr>
</table>

@ -0,0 +1,33 @@
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ _s.institution }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body style="margin: 0; padding: 0;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border-collapse: collapse;">
<tr>
<td>
{% include template ~ '/mail/header.tpl' %}
</td>
</tr>
<tr>
<td cellpadding="0" cellspacing="0" style="padding: 40px 10px">
{{ content }}
</td>
</tr>
<tr>
<td>
{% include template ~ '/mail/footer.tpl' %}
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Loading…
Cancel
Save