mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
16 lines
581 B
PHP
16 lines
581 B
PHP
<? if($GLOBALS['User'] === null){
|
|
|
|
// The Kindle browsers renders <aside> as an undismissable popup. Serve a <div> to Kindle instead. See https://github.com/standardebooks/web/issues/204
|
|
$element = 'aside';
|
|
|
|
if(stripos($_SERVER['HTTP_USER_AGENT'] ?? '', 'kindle') !== false){
|
|
$element = 'div';
|
|
}
|
|
?>
|
|
|
|
<<?= $element ?> class="donation">
|
|
<p>We rely on your support to help us keep producing beautiful, free, and unrestricted editions of literature for the digital age.</p>
|
|
<p>Will you <a href="/donate">support our efforts with a donation</a>?</p>
|
|
</<?= $element ?>>
|
|
|
|
<? } ?>
|