Skip to content

Commit 0156704

Browse files
samtukeSam Tuke
authored andcommitted
Remove [footer] placeholder and replace with custom footer; Improve footer styling
1 parent d028f2d commit 0156704

File tree

1 file changed

+17
-70
lines changed

1 file changed

+17
-70
lines changed

public_html/lists/admin/defaultsystemtemplate.php

Lines changed: 17 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -16,70 +16,6 @@
1616
<br /></div>
1717
EOD;
1818

19-
$templateWithLogo = <<<EOD
20-
<!doctype html>
21-
<html>
22-
<head>
23-
<title></title>
24-
</head>
25-
<body>
26-
<div id="shell" style="margin: 0px; background: none repeat scroll 0% 0% rgb(235, 235, 235); color: rgb(102, 102, 102); padding: 0px; text-align: center; width: 100%;"><noscript>
27-
<table cellspacing="0" border="0" class="required" style="margin: 0px auto;" width="600" cellpadding="10">
28-
<tr>
29-
<td align="right" style="font-size: 14px; font-family: Arial; line-height: 1.3em; text-align: left;">
30-
<p style="font-size: 14px; margin: 10px; line-height: 1.3em; font-family: Arial; padding: 0px; text-align: right;"><a href="[PREFERENCESURL]" title="Change subscription options" style="color: #4A4A4A; text-decoration: none;">Change Subscription</a> : <a href="[UNSUBSCRIBEURL]" title="Unsubscribe" style="color: #4A4A4A; text-decoration: none;">Unsubscribe</a></p>
31-
</td>
32-
</tr>
33-
</table>
34-
</noscript>
35-
<table cellpadding="0" cellspacing="0" id="Box" style="margin: 10px auto; background: none repeat scroll 0% 0% rgb(255, 255, 255); color: rgb(102, 102, 102); padding: 0pt;" width="580">
36-
<tbody>
37-
<tr>
38-
<td style="font-size: 14px; line-height: 1.3em; font-family: Arial; text-align: left;">
39-
<table border="0" cellpadding="0" cellspacing="0" id="Header" style="background: none repeat scroll 0% 0% rgb(255, 255, 255);" width="600">
40-
<tbody>
41-
<tr valign="top">
42-
<td style="font-size: 14px; line-height: 1.3em; font-family: Arial; text-align: left;"><a href="[WEBSITE]" title="[ORGANISATION_NAME]"><img alt="***" src="[LOGO:290]" style="display: block;margin-left: auto;margin-right: auto;" /></a></td>
43-
</tr>
44-
</tbody>
45-
</table>
46-
<!--content table starts-->
47-
48-
<table border="0" cellpadding="0" cellspacing="0" class="content" style="background-color: rgb(255, 255, 255); color: rgb(102, 102, 102);" width="600">
49-
<tbody>
50-
<tr valign="top">
51-
<td style="font-size: 14px; line-height: 1.3em; font-family: Arial; text-align: left;"><img alt="" height="20" src="pad.png" style="border: 0px none;" width="20" /></td>
52-
<td class="maincontent" style="font-size: 14px; font-family: Arial; line-height: 1.3em; text-align: left;">
53-
<h1 style="font-size: 1.8em; margin: 1em 0pt; color: rgb(87, 164, 210); padding: 0pt; letter-spacing: -1px;">[SUBJECT]</h1>
54-
55-
<p style="font-size: 14px; margin: 0.5em 0pt 1em; line-height: 1.3em; font-family: Arial; text-align: left;">[CONTENT]</p>
56-
</td>
57-
<td style="font-size: 14px; line-height: 1.3em; font-family: Arial; text-align: left;"><img alt="" height="20" src="pad.png" style="border: 0px none;" width="20" /></td>
58-
</tr>
59-
</tbody>
60-
</table>
61-
<!--content table ends--><!--content table starts-->
62-
63-
<table border="0" cellpadding="0" cellspacing="0" class="content" style="background-color: rgb(255, 255, 255); color: rgb(102, 102, 102);" width="600">
64-
<tbody>
65-
<tr valign="top">
66-
<td style="font-size: 14px; line-height: 1.3em; font-family: Arial; text-align: left;"><img alt="" height="20" src="pad.png" style="border: 0px none;" width="20" /></td>
67-
<td class="maincontent" style="font-size: 14px; margin:5px;font-family: Arial; line-height: 1.3em; text-align: left;">
68-
<p style="font-size: 14px; margin: 0.5em 0pt; line-height: 1.3em; font-family: Arial; text-align: left;">[FOOTER]</p>
69-
</td>
70-
<td style="font-size: 14px; line-height: 1.3em; font-family: Arial; text-align: left;"><img alt="" height="20" src="pad.png" style="border: 0px none;" width="20" /></td>
71-
</tr>
72-
</tbody>
73-
</table>
74-
</td>
75-
</tr>
76-
</tbody>
77-
</table>
78-
</div>
79-
</body>
80-
</html>
81-
EOD;
82-
8319
$simpleResponsiveTemplate = <<<EOD
8420
<!doctype html>
8521
<html>
@@ -336,12 +272,10 @@
336272
line-height: 100%;
337273
}
338274
.apple-link a {
339-
color: inherit !important;
340275
font-family: inherit !important;
341276
font-size: inherit !important;
342-
font-weight: inherit !important;
277+
font-weight: bold !important;
343278
line-height: inherit !important;
344-
text-decoration: none !important;
345279
}
346280
.templatebtn-primary table td:hover {
347281
background-color: #34495e !important;
@@ -374,7 +308,10 @@
374308
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse: separate;mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 100%;">
375309
<tbody>
376310
<tr>
377-
<td style="font-family: sans-serif;font-size: 14px;vertical-align: top;"><span class="preheader">This is preheader text. Some clients will show this text as a preview.</span> [CONTENT]</td>
311+
<td style="font-family: sans-serif;font-size: 14px;vertical-align: top;">
312+
<span class="preheader">This is preheader text. Some clients will show this text as a preview.</span>
313+
[CONTENT]
314+
</td>
378315
</tr>
379316
</tbody>
380317
</table>
@@ -389,9 +326,19 @@
389326
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse: separate;mso-table-lspace: 0pt;mso-table-rspace: 0pt;width: 100%;">
390327
<tbody>
391328
<tr>
392-
<td class="templatecontent-block" style="font-family: sans-serif;font-size: 14px;vertical-align: top;"><span class="apple-link">[FOOTER]</span>
329+
<td class="templatecontent-block" style="font-family: sans-serif;font-size: 13px;vertical-align: top;">
330+
<span class="apple-link">
331+
<div class="footer">
332+
<p>This message was sent to [EMAIL] by [FROMEMAIL]
333+
<br/>To change your details and preferences visit your <a href="[PREFERENCESURL]">preferences page</a>
334+
<br/>To receive no further messages <a href="[UNSUBSCRIBEURL]">unsubscribe</a></p>
335+
</div>
336+
</span>
337+
<p>
338+
<a href="[CONTACT]" style="color: #3498db; text-decoration: underline;">Add us to your address book</a> |
339+
<a href="[FORWARDURL]" style="color: #3498db; text-decoration: underline;">Forward this message</a>
393340
394-
<p><a href="[FORWARDURL]" style="color: #3498db; text-decoration: underline;">Forward this message</a></p>
341+
</p>
395342
</td>
396343
</tr>
397344
</tbody>

0 commit comments

Comments
 (0)