Skip to content

Node.js based forum software built for the modern web

banned and invitation

Julian Lam0b8b3fafbf97
diff --git a/public/images/emails/banneduser.png b/public/images/emails/banneduser.png
new file mode 100644
index 0000000000..4eac70d8ca
Binary files /dev/null and b/public/images/emails/banneduser.png differ
diff --git a/src/views/emails/banned.tpl b/src/views/emails/banned.tpl
index 2384fe1549..9c25ea9d9e 100644
--- a/src/views/emails/banned.tpl
+++ b/src/views/emails/banned.tpl
@@ -1,18 +1,54 @@
-<p>
- [[email:banned.text1, {username}, {site_title}]]
- <!-- IF until -->
- [[email:banned.text2, {until}]]
- <!-- ENDIF until -->
-</p>
+<!-- IMPORT emails/partials/header.tpl -->
-<!-- IF reason -->
-<p>
- [[email:banned.text3]]
-</p>
+<!-- Email Body : BEGIN -->
+<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">
-<p>
- {reason}
-</p>
-<!-- ENDIF reason -->
+ <!-- Hero Image, Flush : BEGIN -->
+ <tr>
+ <td bgcolor="#efeff0" style="text-align: center; background-image: url({url}/assets/images/emails/triangularbackground.png); background-size: cover; background-repeat: no-repeat;">
+ <img src="{url}/assets/images/emails/banneduser.png" width="300" height="300" border="0" align="center" style="width: 300px; height: 300px; max-width: 300px; height: auto; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;" class="g-img">
+ </td>
+ </tr>
+ <!-- Hero Image, Flush : END -->
-<!-- IMPORT emails/partials/footer.tpl -->
\ No newline at end of file
+ <!-- 1 Column Text + Button : BEGIN -->
+ <tr>
+ <td bgcolor="#efeff0">
+ <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
+ <tr>
+ <td style="padding: 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
+ <h1 style="margin: 0 0 10px 0; font-family: sans-serif; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_with_name, {username}]]</h1>
+ <p style="margin: 0;">
+ [[email:banned.text1, {username}, {site_title}]]
+ <!-- IF until -->
+ <br><br>[[email:banned.text2, {until}]]
+ <!-- ENDIF until -->
+ </p>
+ </td>
+ </tr>
+ <!-- IF reason -->
+ <tr>
+ <td style="padding: 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
+ <h1 style="margin: 0 0 10px 0; font-family: sans-serif; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_with_name, {username}]]</h1>
+ <p style="margin: 0;">
+ [[email:banned.text3]]
+ <br><br>{reason}
+ </p>
+ </td>
+ </tr>
+ <!-- ENDIF reason -->
+ <tr>
+ <td style="padding: 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
+ <h2 style="margin: 0 0 10px 0; font-family: sans-serif; font-size: 18px; line-height: 21px; color: #333333; font-weight: bold;">[[email:closing]]</h2>
+ <p style="margin: 0;">{site_title}</p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <!-- 1 Column Text + Button : END -->
+
+</table>
+<!-- Email Body : END -->
+
+<!-- IMPORT emails/partials/footer.tpl -->
diff --git a/src/views/emails/invitation.tpl b/src/views/emails/invitation.tpl
index 1b574dde08..da800eebdb 100644
--- a/src/views/emails/invitation.tpl
+++ b/src/views/emails/invitation.tpl
@@ -1,11 +1,53 @@
-<p>[[email:greeting_no_name]],</p>
+<!-- IMPORT emails/partials/header.tpl -->
-<p>
- <strong>[[email:invitation.text1, {username}, {site_title}]]</strong>
-</p>
+<!-- Email Body : BEGIN -->
+<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">
-<blockquote>
- <a href="{registerLink}">[[email:invitation.ctr]]</a>
-</blockquote>
+ <!-- Hero Image, Flush : BEGIN -->
+ <tr>
+ <td bgcolor="#efeff0" style="text-align: center; background-image: url({url}/assets/images/emails/triangularbackground.png); background-size: cover; background-repeat: no-repeat;">
+ <img src="{url}/assets/images/emails/invitation.png" width="300" height="300" border="0" align="center" style="width: 300px; height: 300px; max-width: 300px; height: auto; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;" class="g-img">
+ </td>
+ </tr>
+ <!-- Hero Image, Flush : END -->
-<!-- IMPORT emails/partials/footer.tpl -->
\ No newline at end of file
+ <!-- 1 Column Text + Button : BEGIN -->
+ <tr>
+ <td bgcolor="#efeff0">
+ <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
+ <tr>
+ <td style="padding: 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
+ <h1 style="margin: 0 0 10px 0; font-family: sans-serif; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_no_name]]</h1>
+ <p style="margin: 0;">[[email:invitation.text1, {username}, {site_title}]]</p>
+ </td>
+ </tr>
+ <tr>
+ <td style="padding: 0 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
+ <!-- Button : BEGIN -->
+ <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" style="margin: auto;">
+ <tr>
+ <td style="border-radius: 3px; background: #222222; text-align: center;" class="button-td">
+ <a href="{registerLink}" style="background: #222222; border: 15px solid #222222; font-family: sans-serif; font-size: 13px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: bold;" class="button-a">
+ <span style="color:#ffffff;" class="button-link">&nbsp;&nbsp;&nbsp;&nbsp;[[email:invitation.ctr]]&nbsp;&nbsp;&nbsp;&nbsp;</span>
+ </a>
+ </td>
+ </tr>
+ </table>
+ <!-- Button : END -->
+ </td>
+ </tr>
+ <tr>
+ <td style="padding: 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
+ <h2 style="margin: 0 0 10px 0; font-family: sans-serif; font-size: 18px; line-height: 21px; color: #333333; font-weight: bold;">[[email:closing]]</h2>
+ <p style="margin: 0;">{site_title}</p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <!-- 1 Column Text + Button : END -->
+
+</table>
+<!-- Email Body : END -->
+
+<!-- IMPORT emails/partials/footer.tpl -->