mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Hide donation alert for logged in patrons
This commit is contained in:
parent
850ad44e83
commit
d153daac3c
2 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
|
<? if($GLOBALS['User'] === null){ ?>
|
||||||
<aside class="donation">
|
<aside 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>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>
|
<p>Will you <a href="/donate">support our efforts with a donation</a>?</p>
|
||||||
</aside>
|
</aside>
|
||||||
|
<? } ?>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?
|
<?
|
||||||
|
|
||||||
// Hide the alert if the user has closed it
|
// Hide the alert if the user has closed it
|
||||||
if(!DONATION_DRIVE_ON || ($autoHide ?? $_COOKIE['hide-donation-alert'] ?? false)){
|
if(!DONATION_DRIVE_ON || ($autoHide ?? $_COOKIE['hide-donation-alert'] ?? false) || $GLOBALS['User'] !== null){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue