Node.js based forum software built for the modern web
feat: revamp email templates to be more style agnostic (#7375)
Julian Lamf32a992237ff
diff --git a/public/images/emails/banneduser.png b/public/images/emails/banneduser.pngdeleted file mode 100644index 4eac70d8ca..0000000000Binary files a/public/images/emails/banneduser.png and /dev/null differdiff --git a/public/images/emails/digestheader.jpg b/public/images/emails/digestheader.jpgdeleted file mode 100644index 4c873e41b7..0000000000Binary files a/public/images/emails/digestheader.jpg and /dev/null differdiff --git a/public/images/emails/emailconfirm.png b/public/images/emails/emailconfirm.pngdeleted file mode 100644index d066015bd9..0000000000Binary files a/public/images/emails/emailconfirm.png and /dev/null differdiff --git a/public/images/emails/invitation.png b/public/images/emails/invitation.pngdeleted file mode 100644index 283372c9fa..0000000000Binary files a/public/images/emails/invitation.png and /dev/null differdiff --git a/public/images/emails/newtopic.png b/public/images/emails/newtopic.pngdeleted file mode 100644index bc5718563a..0000000000Binary files a/public/images/emails/newtopic.png and /dev/null differdiff --git a/public/images/emails/nodebb.png b/public/images/emails/nodebb.pngdeleted file mode 100644index 9cfe1cd70c..0000000000Binary files a/public/images/emails/nodebb.png and /dev/null differdiff --git a/public/images/emails/notification.png b/public/images/emails/notification.pngdeleted file mode 100644index 0e10a1580c..0000000000Binary files a/public/images/emails/notification.png and /dev/null differdiff --git a/public/images/emails/password.png b/public/images/emails/password.pngdeleted file mode 100644index 7a7358e082..0000000000Binary files a/public/images/emails/password.png and /dev/null differdiff --git a/public/images/emails/triangularbackground.png b/public/images/emails/triangularbackground.pngdeleted file mode 100644index c47ad51810..0000000000Binary files a/public/images/emails/triangularbackground.png and /dev/null differdiff --git a/public/images/emails/unreadpost.png b/public/images/emails/unreadpost.pngdeleted file mode 100644index 8228478618..0000000000Binary files a/public/images/emails/unreadpost.png and /dev/null differdiff --git a/public/language/en-GB/email.json b/public/language/en-GB/email.jsonindex 813ba0f2ce..1e083e0651 100644--- a/public/language/en-GB/email.json+++ b/public/language/en-GB/email.json@@ -32,11 +32,11 @@"digest.latest_topics": "Latest topics from %1","digest.cta": "Click here to visit %1","digest.unsub.info": "This digest was sent to you due to your subscription settings.",- "digest.no_topics": "There have been no active topics in the past %1","digest.day": "day","digest.week": "week","digest.month": "month","digest.subject": "Digest for %1",+ "digest.title": "Your Daily Digest","notif.chat.subject": "New chat message received from %1","notif.chat.cta": "Click here to continue the conversation",diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.jsindex b6d56c9e7b..d1b7a989d0 100644--- a/public/src/modules/helpers.js+++ b/public/src/modules/helpers.js@@ -205,14 +205,14 @@function renderDigestAvatar(block) {if (block.teaser) {if (block.teaser.user.picture) {- return '<img style="vertical-align: middle; width: 16px; height: 16px; padding-right: 8px;" src="' + block.teaser.user.picture + '" title="' + block.teaser.user.username + '" />';+ return '<img style="vertical-align: middle; width: 32px; height: 32px; padding-right: 8px; border-radius: 50%;" src="' + block.teaser.user.picture + '" title="' + block.teaser.user.username + '" />';}- return '<div style="vertical-align: middle; width: 16px; height: 16px; line-height: 16px; font-size: 10px; margin-right: 8px; background-color: ' + block.teaser.user['icon:bgColor'] + '; color: white; text-align: center; display: inline-block;">' + block.teaser.user['icon:text'] + '</div>';+ return '<div style="vertical-align: middle; width: 32px; height: 32px; line-height: 32px; font-size: 16px; margin-right: 8px; background-color: ' + block.teaser.user['icon:bgColor'] + '; color: white; text-align: center; display: inline-block; border-radius: 50%;">' + block.teaser.user['icon:text'] + '</div>';}if (block.user.picture) {- return '<img style="vertical-align: middle; width: 16px; height: 16px; padding-right: 8px;" src="' + block.user.picture + '" title="' + block.user.username + '" />';+ return '<img style="vertical-align: middle; width: 32px; height: 32px; padding-right: 8px; border-radius: 50%" src="' + block.user.picture + '" title="' + block.user.username + '" />';}- return '<div style="vertical-align: middle; width: 16px; height: 16px; line-height: 16px; font-size: 10px; margin-right: 8px; background-color: ' + block.user['icon:bgColor'] + '; color: white; text-align: center; display: inline-block;">' + block.user['icon:text'] + '</div>';+ return '<div style="vertical-align: middle; width: 32px; height: 32px; line-height: 32px; font-size: 16px; margin-right: 8px; background-color: ' + block.user['icon:bgColor'] + '; color: white; text-align: center; display: inline-block; border-radius: 50%;">' + block.user['icon:text'] + '</div>';}function userAgentIcons(data) {diff --git a/src/emailer.js b/src/emailer.jsindex 33048b7ed1..d0f859efd7 100644--- a/src/emailer.js+++ b/src/emailer.js@@ -195,12 +195,13 @@ Emailer.send = function (template, uid, params, callback) {settings: async.apply(User.getSettings, uid),}, next);},- function (results, next) {+ async function (results, next) {if (!results.email) {winston.warn('uid : ' + uid + ' has no email, not sending.');return next();}params.uid = uid;+ params.rtl = await translator.translate('[[language:dir]]', results.settings.userLang) === 'rtl';Emailer.sendToEmail(template, results.email, results.settings.userLang, params, next);},], callback);@@ -282,6 +283,7 @@ Emailer.sendToEmail = function (template, email, language, params, callback) {pid: params.pid,fromUid: params.fromUid,headers: params.headers,+ rtl: params.rtl,};Plugins.fireHook('filter:email.modify', data, next);},diff --git a/src/socket.io/admin.js b/src/socket.io/admin.jsindex 76a3ca6476..a8c0537e20 100644--- a/src/socket.io/admin.js+++ b/src/socket.io/admin.js@@ -296,8 +296,9 @@ SocketAdmin.email.test = function (socket, data, callback) {showUnsubscribe: true,}, next);},- ]);+ ], callback);break;+default:emailer.send(data.template, socket.uid, payload, callback);break;diff --git a/src/topics/teaser.js b/src/topics/teaser.jsindex b2e2f57758..2ff12db4a8 100644--- a/src/topics/teaser.js+++ b/src/topics/teaser.js@@ -23,6 +23,7 @@ module.exports = function (Topics) {var teaserPids = [];var postData;var tidToPost = {};+ const teaserPost = this ? this.teaserPost : meta.config.teaserPost;topics.forEach(function (topic) {counts.push(topic && topic.postcount);@@ -30,9 +31,9 @@ module.exports = function (Topics) {if (topic.teaserPid === 'null') {delete topic.teaserPid;}- if (meta.config.teaserPost === 'first') {+ if (teaserPost === 'first') {teaserPids.push(topic.mainPid);- } else if (meta.config.teaserPost === 'last-post') {+ } else if (teaserPost === 'last-post') {teaserPids.push(topic.teaserPid || topic.mainPid);} else { // last-reply and everything else uses teaserPid like `last` that was used beforeteaserPids.push(topic.teaserPid);diff --git a/src/user/digest.js b/src/user/digest.jsindex 8feb9b4dd9..2ece74489a 100644--- a/src/user/digest.js+++ b/src/user/digest.js@@ -180,8 +180,24 @@ Digest.send = function (data, callback) {next(null, data);}},- function (data, next) {- next(null, data.topics);+ (data, next) => {+ // Re-generate teasers with different teaserPost option+ topics.getTeasers.bind({ teaserPost: 'last-post' })(data.topics, uid, function (err, teasers) {+ if (err) {+ return next(err);+ }++ data.topics.map(function (topicObj, i) {+ if (teasers[i].content.length > 255) {+ teasers[i].content = teasers[i].content.slice(0, 255) + '...';+ }++ topicObj.teaser = teasers[i];+ return topicObj;+ });++ next(null, data.topics);+ });},], callback);}diff --git a/src/views/emails/banned.tpl b/src/views/emails/banned.tplindex db8975c993..20d82ba8df 100644--- a/src/views/emails/banned.tpl+++ b/src/views/emails/banned.tpl@@ -2,46 +2,41 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">-- <!-- 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 -->-<!-- 1 Column Text + Button : BEGIN --><tr>- <td bgcolor="#efeff0">+ <td bgcolor="#ffffff"><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 style="padding: 40px 40px 6px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_with_name, {username}]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:banned.text1, {username}, {site_title}]]</h1></td></tr><!-- IF reason --><tr>- <td style="padding: 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">+ <td style="padding: 20px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;"><p style="margin: 0;">[[email:banned.text3]]- <br><br>{reason}+ </p>+ <p style="margin: 0; padding: 6px 0px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 13px; line-height: 26px; color: #666666;">+ {reason}</p></td></tr><!-- ENDIF reason -->+ <!-- IF until --><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 style="padding: 20px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <p style="margin: 0;">+ [[email:banned.text2, {until}]]+ </p></td></tr>+ <!-- ENDIF until --></table></td></tr>diff --git a/src/views/emails/digest.tpl b/src/views/emails/digest.tplindex 38fba1232f..c24c7fbd9a 100644--- a/src/views/emails/digest.tpl+++ b/src/views/emails/digest.tpl@@ -3,71 +3,88 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">- <!-- 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/digestheader.jpg" width="600" height="208" border="0" align="center" style="width: 600px; height: 208px; max-height: 300px; height: auto; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;" class="g-img">- </td>- </tr>- <!-- Hero Image, Flush : END -->-<!-- 1 Column Text + Button : BEGIN --><tr>- <td bgcolor="#efeff0">+ <td bgcolor="#ffffff"><table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"><tr>- <td style="padding: 40px 40px 24px 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>+ <td style="padding: 40px 40px 6px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_with_name, {username}]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:digest.title]]</h1></td></tr><!-- IF notifications.length --><tr>- <td style="padding: 0px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">- <p style="margin: 0;">[[email:digest.notifications, {site_title}]]</p>- <ul>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <ul style="margin: 0; padding: 0;"><!-- BEGIN notifications --><li style="text-decoration: none; list-style-type: none; padding-bottom: 0.5em;">- <a href="{url}{notifications.path}">- <!-- IF notifications.image -->- <img style="vertical-align: middle; width: 16px; height: 16px; padding-right: 8px;" src="{notifications.image}" />- <!-- ELSE -->- <div style="vertical-align: middle; width: 16px; height: 16px; line-height: 16px; font-size: 10px; margin-right: 8px; background-color: {notifications.user.icon:bgColor}; color: white; text-align: center; display: inline-block;">{notifications.user.icon:text}</div>- <!-- ENDIF notifications.image -->- {notifications.bodyShort}- </a>+ <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">+ <tr>+ <td style="padding: 16px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; width: 32px;">+ <!-- IF notifications.image -->+ <img style="vertical-align: middle; width: 32px; height: 32px; padding-right: 8px; border-radius: 50%" src="{notifications.image}" />+ <!-- ELSE -->+ <div style="vertical-align: middle; width: 32px; height: 32px; line-height: 32px; font-size: 16px; margin-right: 8px; background-color: {notifications.user.icon:bgColor}; color: white; text-align: center; display: inline-block; border-radius: 50%">{notifications.user.icon:text}</div>+ <!-- ENDIF notifications.image -->+ </td>+ <td style="padding: 16px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; line-height: 16px; color: #333333;">+ <p style="margin: 0;"><a style="text-decoration:none !important; text-decoration:none; color: #333333;" href="{url}{notifications.path}">{notifications.bodyShort}</a></p>+ </td>+ </tr>+ </table></li><!-- END notifications --></ul></td></tr><!-- ENDIF notifications.length -->+ <!-- IF recent.length --><tr>- <td style="padding: 0px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">- <p style="margin: 0;">[[email:digest.latest_topics, {site_title}]]</p>- <ul>- <!-- IF recent.length -->+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 16px 0 24px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:digest.latest_topics, {site_title}]]</h1>+ <ul style="margin: 0; padding: 0;"><!-- BEGIN recent --><li style="text-decoration: none; list-style-type: none; padding-bottom: 0.5em;">- <a href="{url}/topic/{recent.slug}">- {function.renderDigestAvatar}{recent.title}- </a>- </li>- <!-- END recent -->- <!-- ELSE -->- <li style="text-decoration: none; list-style-type: none; padding-bottom: 0.5em; font-style: italic;">- [[email:digest.no_topics, [[email:digest.{interval}]]]]+ <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">+ <tr>+ <td style="padding: 6px 16px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; width: 32px; vertical-align: top;">{function.renderDigestAvatar}</td>+ <td style="padding: 6px 16px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; line-height: 16px; color: #333333;">+ <p style="margin: 0;"><a style="text-decoration:none !important; text-decoration:none; color: #333333;" href="{url}/uid/{recent.user.uid}"><strong>{recent.teaser.user.username}</strong></a></p>+ <p style="margin: 0;"><a style="text-decoration:none !important; text-decoration:none; color: #aaaaaa; font-size: 12px; line-height: 16px;" href="{url}/topic/{recent.slug}"><strong>{recent.title}</strong></a></p>+ </td>+ </tr>+ <tr>+ <td colspan="2" style="padding: 8px 16px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; line-height: 16px; color: #333333;">+ <p style="margin: 0; padding: 6px 0px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 13px; line-height: 26px; color: #666666;">{recent.teaser.content}</p>+ <p style="margin: 0; padding: 6px 0px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 12px; line-height: 16px;">+ <a style="text-decoration:none !important; text-decoration:none; text-transform: capitalize; color: #666666; font-size: 12px; line-height: 16px;" href="{url}/topic/{recent.slug}">+ <strong><span style="color: #aaaaaa;">›</span> [[global:read_more]]</strong>+ </a>+ </p>+ </td>+ </tr>+ </table></li>- <!-- ENDIF recent.length -->+ <!-- IF !@last -->+ <li style="text-decoration: none; list-style-type: none; margin: 0px 64px 16px 64px; border-bottom: 1px solid #dddddd"></li>+ <!-- END -->+ <!-- END --></ul></td></tr>+ <!-- END --><tr>- <td style="padding: 0 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">+ <td style="padding: 32px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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="{url}" 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">+ <a href="{url}" style="background: #222222; border: 15px solid #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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"> [[email:digest.cta, {site_title}]] </span></a></td>@@ -76,12 +93,6 @@<!-- 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>diff --git a/src/views/emails/invitation.tpl b/src/views/emails/invitation.tplindex 799ac67fd5..64d60307d1 100644--- a/src/views/emails/invitation.tpl+++ b/src/views/emails/invitation.tpl@@ -2,33 +2,32 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">-- <!-- 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 -->-<!-- 1 Column Text + Button : BEGIN --><tr>- <td bgcolor="#efeff0">+ <td bgcolor="#ffffff"><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>- <p style="margin: 0;">[[email:invitation.text2, {expireDays}]]</p>+ <td style="padding: 40px 40px 6px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_no_name]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:invitation.text1, {username}, {site_title}]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 20px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <p style="margin: 0; padding: 6px 0px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 13px; line-height: 26px; color: #666666;">[[email:invitation.text2, {expireDays}]]</p></td></tr><tr>- <td style="padding: 0 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">+ <td style="padding: 32px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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">+ <a href="{registerLink}" style="background: #222222; border: 15px solid #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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"> [[email:invitation.ctr]] </span></a></td>@@ -37,12 +36,6 @@<!-- 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>diff --git a/src/views/emails/notif_chat.tpl b/src/views/emails/notif_chat.tpldeleted file mode 100644index 275a5bf782..0000000000--- a/src/views/emails/notif_chat.tpl+++ /dev/null@@ -1,58 +0,0 @@-<!-- IMPORT emails/partials/header.tpl -->--<!-- Email Body : BEGIN -->-<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">-- <!-- 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/newtopic.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 -->-- <!-- 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 40px 0px 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 0 20px 0;">{summary}:</p>- </td>- </tr>- <tr>- <td style="padding: 0px 60px 40px 60px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">- {message.content}- </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="{url}/chats/{roomId}" 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"> [[email:notif.chat.cta]] </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 -->diff --git a/src/views/emails/notif_post.tpl b/src/views/emails/notif_post.tpldeleted file mode 100644index 168743512f..0000000000--- a/src/views/emails/notif_post.tpl+++ /dev/null@@ -1,57 +0,0 @@-<!-- IMPORT emails/partials/header.tpl -->--<!-- Email Body : BEGIN -->-<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">-- <!-- 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/unreadpost.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 -->-- <!-- 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 40px 0px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">- <p style="margin: 0 0 20px 0;">{intro}</p>- </td>- </tr>- <tr>- <td style="padding: 0px 60px 40px 60px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">- {postBody}- </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="{url}/post/{pid}" 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"> [[email:notif.post.cta]] </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 -->diff --git a/src/views/emails/notification.tpl b/src/views/emails/notification.tplindex d1301ace7a..60579d48cd 100644--- a/src/views/emails/notification.tpl+++ b/src/views/emails/notification.tpl@@ -3,55 +3,48 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">- <!-- 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/notification.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 -->+ <!-- 1 Column Text + Button : BEGIN -->+ <tr>+ <td bgcolor="#ffffff">+ <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">+ <tr>+ <td style="padding: 40px 40px 6px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_with_name, {username}]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">{intro}</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 20px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <p style="margin: 0; padding: 6px 0px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 13px; line-height: 26px; color: #666666;">+ {body}+ </p>+ </td>+ </tr>+ <tr>+ <td style="padding: 32px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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="{url}{path}" style="background: #222222; border: 15px solid #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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"> [[email:notif.cta]] </span>+ </a>+ </td>+ </tr>+ </table>+ <!-- Button : END -->+ </td>+ </tr>+ </table>+ </td>+ </tr>+ <!-- 1 Column Text + Button : END -->- <!-- 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 40px 0px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">- <p style="margin: 0 0 20px 0;">{intro}</p>- </td>- </tr>- <tr>- <td style="padding: 0px 60px 40px 60px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">- {body}- </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="{url}{path}" 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"> [[email:notif.cta]] </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 -->- </table>- <!-- Email Body : END -->-- <!-- IMPORT emails/partials/footer.tpl -->+<!-- IMPORT emails/partials/footer.tpl -->diff --git a/src/views/emails/partials/footer.tpl b/src/views/emails/partials/footer.tplindex 20bbd90f0e..13b350ef23 100644--- a/src/views/emails/partials/footer.tpl+++ b/src/views/emails/partials/footer.tpl@@ -1,7 +1,7 @@<!-- Email Footer : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 680px;"><tr>- <td style="padding: 40px 10px;width: 100%;font-size: 12px; font-family: sans-serif; line-height:18px; text-align: center; color: #888888;">+ <td style="padding: 40px 10px;width: 100%;font-size: 12px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; line-height:18px; text-align: center; color: #888888;"><br><br><!-- IF showUnsubscribe -->[[email:notif.post.unsub.info]] <a href="{url}/uid/{uid}/settings">[[email:unsub.cta]]</a>.diff --git a/src/views/emails/partials/header.tpl b/src/views/emails/partials/header.tplindex 61867b16d3..c3185b8175 100644--- a/src/views/emails/partials/header.tpl+++ b/src/views/emails/partials/header.tpl@@ -153,15 +153,15 @@</head>-<body width="100%" bgcolor="#222222" style="margin: 0; mso-line-height-rule: exactly;">- <center style="width: 100%; background: #222222; text-align: left;">+<body width="100%" bgcolor="#f6f6f6" style="margin: 0; mso-line-height-rule: exactly;">+ <center style="width: 100%; background: #f6f6f6; text-align: left;"><!--Set the email width. Defined in two places:1. max-width for all clients except Desktop Windows Outlook, allowing the email to squish on narrow but never go wider than 600px.2. MSO tags for Desktop Windows Outlook enforce a 600px width.-->- <div style="max-width: 600px; margin: auto;" class="email-container">+ <div style="max-width: 600px; margin: auto;<!-- IF rtl --> text-align: right; direction: rtl;<!-- END -->" class="email-container"><!--[if mso]><table role="presentation" cellspacing="0" cellpadding="0" border="0" width="600" align="center"><tr>@@ -173,7 +173,7 @@<tr><td style="padding: 20px 0; text-align: center"><!-- IF logo.src -->- <img src="{logo.src}" height="{logo.height}" width="{logo.width}" alt="{site_title}" border="0" style="height: {logo.height}px; width: {logo.width}px; background: #222222; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">+ <img src="{logo.src}" height="{logo.height}" width="{logo.width}" alt="{site_title}" border="0" style="height: {logo.height}px; width: {logo.width}px; background: #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;"><!-- ELSE --> <!-- ENDIF logo.src -->diff --git a/src/views/emails/registration_accepted.tpl b/src/views/emails/registration_accepted.tplindex 879104f473..a1368e8727 100644--- a/src/views/emails/registration_accepted.tpl+++ b/src/views/emails/registration_accepted.tpl@@ -3,29 +3,33 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">- <!-- 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 -->-<!-- 1 Column Text + Button : BEGIN --><tr>- <td bgcolor="#efeff0">+ <td bgcolor="#ffffff"><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:welcome.text1, {site_title}]]</p>- <p style="margin: 0;">[[email:welcome.text3]]</p>+ <td style="padding: 40px 40px 6px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:welcome.text1, {site_title}]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:welcome.text3]]</h1></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 style="padding: 32px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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="{url}" style="background: #222222; border: 15px solid #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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"> [[email:digest.cta, {site_title}]] </span>+ </a>+ </td>+ </tr>+ </table>+ <!-- Button : END --></td></tr></table>diff --git a/src/views/emails/reset.tpl b/src/views/emails/reset.tplindex fd981c3b1e..0b78f51c16 100644--- a/src/views/emails/reset.tpl+++ b/src/views/emails/reset.tpl@@ -3,32 +3,34 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">- <!-- 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/emailconfirm.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 -->-<!-- 1 Column Text + Button : BEGIN --><tr>- <td bgcolor="#efeff0">+ <td bgcolor="#ffffff"><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:reset.text1]]</p>- <p style="margin: 0;">[[email:reset.text2]]</p>+ <td style="padding: 40px 40px 6px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_no_name]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:reset.text1]]</h1></td></tr><tr>- <td style="padding: 0 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">+ <td style="padding: 20px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <p style="margin: 0;">+ [[email:reset.text2]]+ </p>+ </td>+ </tr>+ <tr>+ <td style="padding: 32px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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="{reset_link}" 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">+ <a href="{reset_link}" style="background: #222222; border: 15px solid #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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"> [[email:reset.cta]] </span></a></td>@@ -37,12 +39,6 @@<!-- 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>diff --git a/src/views/emails/reset_notify.tpl b/src/views/emails/reset_notify.tplindex 1758035729..03b2c27ac2 100644--- a/src/views/emails/reset_notify.tpl+++ b/src/views/emails/reset_notify.tpl@@ -3,29 +3,40 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">- <!-- 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/emailconfirm.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 -->-<!-- 1 Column Text : BEGIN --><tr>- <td bgcolor="#efeff0">+ <td bgcolor="#ffffff"><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:reset.notify.text1, {date}]]</p>- <p style="margin: 0;">[[email:reset.notify.text2]]</p>+ <td style="padding: 40px 40px 6px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_with_name, {username}]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:reset.notify.text1, {date}]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 20px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <p style="margin: 0;">+ [[email:reset.notify.text2]]+ </p></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 style="padding: 32px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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="{url}" style="background: #222222; border: 15px solid #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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"> [[email:digest.cta, {site_title}]] </span>+ </a>+ </td>+ </tr>+ </table>+ <!-- Button : END --></td></tr></table>diff --git a/src/views/emails/test.tpl b/src/views/emails/test.tplindex d777eafc10..5192c6776c 100644--- a/src/views/emails/test.tpl+++ b/src/views/emails/test.tpl@@ -3,28 +3,33 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">- <!-- 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/emailconfirm.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 -->-<!-- 1 Column Text : BEGIN --><tr>- <td bgcolor="#efeff0">+ <td bgcolor="#ffffff"><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:test.text1]]</p>+ <td style="padding: 40px 40px 6px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_no_name]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:test.text1]]</h1></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 style="padding: 32px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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="{url}" style="background: #222222; border: 15px solid #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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"> [[email:digest.cta, {site_title}]] </span>+ </a>+ </td>+ </tr>+ </table>+ <!-- Button : END --></td></tr></table>diff --git a/src/views/emails/verify_email.tpl b/src/views/emails/verify_email.tplindex 1a061786cb..d4107cdd5b 100644--- a/src/views/emails/verify_email.tpl+++ b/src/views/emails/verify_email.tpl@@ -3,31 +3,34 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">- <!-- 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/emailconfirm.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 -->-<!-- 1 Column Text + Button : BEGIN --><tr>- <td bgcolor="#efeff0">+ <td bgcolor="#ffffff"><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:verify.text1]]</h1>- <p style="margin: 0;">[[email:welcome.text2]]</p>+ <td style="padding: 40px 40px 6px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:greeting_no_name]]</h1>+ </td>+ </tr>+ <tr>+ <td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:email.verify.text1]]</h1></td></tr><tr>- <td style="padding: 0 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">+ <td style="padding: 20px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <p style="margin: 0;">+ [[email:welcome.text2]]+ </p>+ </td>+ </tr>+ <tr>+ <td style="padding: 32px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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="{confirm_link}" 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">+ <a href="{confirm_link}" style="background: #222222; border: 15px solid #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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"> [[email:welcome.cta]] </span></a></td>@@ -36,12 +39,6 @@<!-- 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>diff --git a/src/views/emails/welcome.tpl b/src/views/emails/welcome.tplindex 5fd1311c67..01dd5f04b6 100644--- a/src/views/emails/welcome.tpl+++ b/src/views/emails/welcome.tpl@@ -3,31 +3,23 @@<!-- Email Body : BEGIN --><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">- <!-- 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/emailconfirm.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 -->-<!-- 1 Column Text + Button : BEGIN --><tr>- <td bgcolor="#efeff0">+ <td bgcolor="#ffffff"><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:welcome.text1, {site_title}]]</h1>+ <td style="padding: 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 24px; line-height: 27px; color: #333333; font-weight: normal;">[[email:welcome.text1, {site_title}]]</h1><p style="margin: 0;">[[email:welcome.text2]]</p></td></tr><tr>- <td style="padding: 0 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">+ <td style="padding: 32px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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="{confirm_link}" 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">+ <a href="{confirm_link}" style="background: #222222; border: 15px solid #222222; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; 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"> [[email:welcome.cta]] </span></a></td>@@ -36,12 +28,6 @@<!-- 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>