Add more type hints and work on some code formatting

This commit is contained in:
Alex Cabal 2024-11-08 13:50:59 -06:00
parent 06b82cdaaa
commit c3c588cc1b
35 changed files with 343 additions and 167 deletions

View file

@ -1,10 +1,24 @@
<?= Template::EmailHeader() ?>
<?
/**
* @var bool $isSubscribedToNewsletter
* @var bool $isSubscribedToSummary
* @var NewsletterSubscription $subscription
*/
?><?= Template::EmailHeader() ?>
<h1>Confirm your newsletter subscription</h1>
<p>Thank you for subscribing to the Standard Ebooks newsletter!</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><? } ?>
<? 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 wont receive email from us until you do.</p>
<p class="button-row">