Add thank-you page to ebook downloads

This commit is contained in:
Alex Cabal 2024-02-25 20:12:20 -06:00
parent 29fc6f9ff2
commit 9437beaee9
9 changed files with 222 additions and 16 deletions

View file

@ -10,6 +10,7 @@ $isXslt = $isXslt ?? false;
$feedUrl = $feedUrl ?? null;
$feedTitle = $feedTitle ?? '';
$isErrorPage = $isErrorPage ?? false;
$downloadUrl = $downloadUrl ?? null;
// As of Sep 2022, all versions of Safari have a bug where if the page is served as XHTML,
// then <picture> elements download all <source>s instead of the first supported match.
@ -81,6 +82,9 @@ if(!$isXslt){
<meta content="@standardebooks" name="twitter:site"/>
<meta content="@standardebooks" name="twitter:creator"/>
<? } ?>
<? if($downloadUrl !== null){ ?>
<meta http-equiv="refresh" content="0; url=<?= Formatter::EscapeHtml($downloadUrl) ?>" />
<? } ?>
</head>
<body>
<header>