mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Add mailing address to email footers
This commit is contained in:
parent
d252d328e1
commit
30a3dd053f
6 changed files with 77 additions and 39 deletions
|
@ -47,8 +47,8 @@ class NewsletterSubscriber extends PropertiesBase{
|
||||||
$em->PostmarkStream = EMAIL_POSTMARK_STREAM_BROADCAST;
|
$em->PostmarkStream = EMAIL_POSTMARK_STREAM_BROADCAST;
|
||||||
$em->To = $this->Email;
|
$em->To = $this->Email;
|
||||||
$em->Subject = 'Action required: confirm your newsletter subscription';
|
$em->Subject = 'Action required: confirm your newsletter subscription';
|
||||||
$em->Body = Template::EmailNewsletterConfirmation(['subscriber' => $this]);
|
$em->Body = Template::EmailNewsletterConfirmation(['subscriber' => $this, 'isSubscribedToSummary' => $this->IsSubscribedToSummary, 'isSubscribedToNewsletter' => $this->IsSubscribedToNewsletter]);
|
||||||
$em->TextBody = Template::EmailNewsletterConfirmationText(['subscriber' => $this]);
|
$em->TextBody = Template::EmailNewsletterConfirmationText(['subscriber' => $this, 'isSubscribedToSummary' => $this->IsSubscribedToSummary, 'isSubscribedToNewsletter' => $this->IsSubscribedToNewsletter]);
|
||||||
$em->Send();
|
$em->Send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,12 @@
|
||||||
<img src="https://standardebooks.org/images/logo-small.png" alt="The Standard Ebooks logo."/>
|
<img src="https://standardebooks.org/images/logo-small.png" alt="The Standard Ebooks logo."/>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
<address>
|
||||||
|
<p>Standard Ebooks L<sup>3</sup>C</p>
|
||||||
|
<p>1658 N. Milwaukee Ave. Unit 204</p>
|
||||||
|
<p>Chicago, IL 60647</p>
|
||||||
|
</address>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
5
templates/EmailFooterText.php
Normal file
5
templates/EmailFooterText.php
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
Standard Ebooks L3C
|
||||||
|
1658 N. Milwaukee Ave. Unit 204
|
||||||
|
Chicago, IL 60647
|
|
@ -10,40 +10,45 @@ $preheader = $preheader ?? null;
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
@font-face{
|
@font-face{
|
||||||
font-family: "League Spartan";
|
font-family: "League Spartan";
|
||||||
src: url("https://standardebooks.org/fonts/league-spartan-bold.woff2") format("woff2");
|
|
||||||
font-weight: bold;
|
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
font-weight: bold;
|
||||||
|
src: url("https://standardebooks.org/fonts/league-spartan-bold.woff2") format("woff2");
|
||||||
}
|
}
|
||||||
|
|
||||||
body{
|
body{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body{
|
||||||
|
text-align: left;
|
||||||
|
background-color: #E9E7E0;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
font-family: "Georgia", serif;
|
font-family: "Georgia", serif;
|
||||||
hyphens: auto;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
hyphens: auto;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-webkit-text-size-adjust: none;
|
|
||||||
color: #222222;
|
color: #222222;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 50em;
|
max-width: 80ch;
|
||||||
padding: 2em;
|
padding: 2em;
|
||||||
background-color: #E9E7E0;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-webkit-text-size-adjust: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
<? if($preheader){ ?>
|
<? if($preheader){ ?>
|
||||||
.preheader{
|
.preheader{
|
||||||
display:none !important;
|
display: none !important;
|
||||||
visibility: hidden;
|
|
||||||
mso-hide: all;
|
|
||||||
font-size: 1px;
|
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
line-height: 1px;
|
font-size: 1px;
|
||||||
height: 0;
|
height: 0;
|
||||||
width: 0;
|
line-height: 1px;
|
||||||
|
mso-hide: all;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -9999px;
|
top: -9999px;
|
||||||
|
visibility: hidden;
|
||||||
|
width: 0;
|
||||||
}
|
}
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
||||||
|
@ -69,15 +74,15 @@ $preheader = $preheader ?? null;
|
||||||
h1{
|
h1{
|
||||||
border-bottom: 3px double #222;
|
border-bottom: 3px double #222;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
padding-bottom: 1em;
|
line-height: 1.3;
|
||||||
|
padding-bottom: .75em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
line-height: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2{
|
h2{
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
text-decoration: underline double;
|
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
|
text-decoration: underline double;
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
|
@ -91,15 +96,24 @@ $preheader = $preheader ?? null;
|
||||||
color: #4f9d85;
|
color: #4f9d85;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
address{
|
||||||
|
font-size: .75em;
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
address p{
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.intro{
|
.intro{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer{
|
.footer{
|
||||||
text-align: center;
|
border-top: 1px solid #ccc;
|
||||||
border-top: 3px double #222;
|
|
||||||
padding-top: 1em;
|
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
|
padding-top: 1em;
|
||||||
|
text-align: center;
|
||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,25 +128,23 @@ $preheader = $preheader ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.button{
|
a.button{
|
||||||
display: inline-block;
|
|
||||||
border: 1px solid rgba(0, 0, 0, .5);
|
|
||||||
font-style: normal;
|
|
||||||
box-sizing: border-box;
|
|
||||||
background-color: #4f9d85;
|
background-color: #4f9d85;
|
||||||
|
border: 1px solid rgba(0, 0, 0, .5);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 1em 2em;
|
|
||||||
color: #fff;
|
|
||||||
text-decoration: none;
|
|
||||||
font-family: "League Spartan", sans-serif;
|
|
||||||
font-weight: bold;
|
|
||||||
text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
|
|
||||||
box-shadow: 2px 2px 0 rgba(0, 0, 0, .5), 1px 1px 0px rgba(255,255,255, .5) inset;
|
box-shadow: 2px 2px 0 rgba(0, 0, 0, .5), 1px 1px 0px rgba(255,255,255, .5) inset;
|
||||||
position: relative;
|
box-sizing: border-box;
|
||||||
text-transform: lowercase;
|
color: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
min-height: calc(1.4em + 2em + 2px);
|
display: inline-block;
|
||||||
|
font-family: "League Spartan", sans-serif;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: bold;
|
||||||
hyphens: none;
|
hyphens: none;
|
||||||
|
min-height: calc(1.4em + 2em + 2px);
|
||||||
|
padding: 1em 2em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
|
||||||
|
text-transform: lowercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.button:hover{
|
a.button:hover{
|
||||||
|
@ -140,9 +152,11 @@ $preheader = $preheader ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-row{
|
.button-row{
|
||||||
|
margin: 2em auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="body">
|
||||||
<? if($preheader){ ?><p class="preheader"><?= Formatter::ToPlainText($preheader) ?><? for($i = 0; $i < 150 - strlen($preheader); $i++){ ?>‌ <? } ?></p><? } ?>
|
<? if($preheader){ ?><p class="preheader"><?= Formatter::ToPlainText($preheader) ?><? for($i = 0; $i < 150 - strlen($preheader); $i++){ ?>‌ <? } ?></p><? } ?>
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
<?= Template::EmailHeader() ?>
|
<?= Template::EmailHeader() ?>
|
||||||
<h1>Confirm your newsletter subscription</h1>
|
<h1>Confirm your newsletter subscription</h1>
|
||||||
<p>Thank you for subscribing to the Standard Ebooks newsletter!</p>
|
<p>Thank you for subscribing to the Standard Ebooks newsletter!</p>
|
||||||
<p>Please use the button below to confirm your newsletter subscription. You won’t receive our newsletters until you confirm your subscription.</p>
|
<p>You subscribed to:</p>
|
||||||
|
<ul>
|
||||||
|
<? if($IsSubscribedToNewsletter){ ?><li><p>The occasional Standard Ebooks newsletter</p></li><? } ?>
|
||||||
|
<? if($isSubscribedToSummary){ ?><li><p>A monthly summary of new ebook releases</p></li><? } ?>
|
||||||
|
</ul>
|
||||||
|
<p>Please use the button below to confirm your subscription—you won’t receive email from us until you do.</p>
|
||||||
<p class="button-row">
|
<p class="button-row">
|
||||||
<a href="<?= $subscriber->Url ?>/confirm" class="button">Yes, subscribe me to the newsletter</a>
|
<a href="<?= $subscriber->Url ?>/confirm" class="button">Yes, confirm my subscription</a>
|
||||||
</p>
|
</p>
|
||||||
<p>If you didn’t subscribe to our newsletter, or you’re not sure why you received this email, you can safely delete it and you won’t receive any more email from us.</p>
|
<p>If you didn’t subscribe, or you’re not sure why you received this email, you can safely delete it and you won’t receive any more email from us.</p>
|
||||||
<?= Template::EmailFooter() ?>
|
<?= Template::EmailFooter() ?>
|
||||||
|
|
|
@ -2,8 +2,16 @@
|
||||||
|
|
||||||
Thank you for subscribing to the Standard Ebooks newsletter!
|
Thank you for subscribing to the Standard Ebooks newsletter!
|
||||||
|
|
||||||
Please use the link below to confirm your newsletter subscription. You won’t receive our newsletters until you confirm your subscription.
|
You subscribed to:
|
||||||
|
|
||||||
|
<? if($IsSubscribedToNewsletter){ ?>- The occasional Standard Ebooks newsletter
|
||||||
|
<? } ?>
|
||||||
|
<? if($isSubscribedToSummary){ ?>- A monthly summary of new ebook releases
|
||||||
|
<? } ?>
|
||||||
|
Please use the link below to confirm your subscription—you won’t receive email from us until you do.
|
||||||
|
|
||||||
<<?= $subscriber->Url ?>/confirm>
|
<<?= $subscriber->Url ?>/confirm>
|
||||||
|
|
||||||
If you didn’t subscribe to our newsletter, or you’re not sure why you received this email, you can safely delete it and you won’t receive any more email from us.
|
If you didn’t subscribe, or you’re not sure why you received this email, you can safely delete it and you won’t receive any more email from us.
|
||||||
|
|
||||||
|
<?= Template::EmailFooterText() ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue