mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 07:14:59 -04:00
Add public domain day banner
This commit is contained in:
parent
1b604ca97f
commit
c65035630f
16 changed files with 293 additions and 105 deletions
|
@ -4,7 +4,7 @@ $donationDrive = DonationDrive::GetByIsRunning();
|
|||
if(
|
||||
!DONATION_DRIVES_ENABLED // Drives aren't enabled.
|
||||
||
|
||||
($autoHide ?? $_COOKIE['hide-donation-alert'] ?? false) // If the user has hidden the box.
|
||||
($autoHide ?? (HttpInput::Bool(COOKIE, 'hide-donation-alert') ?? false)) // If the user has hidden the box.
|
||||
||
|
||||
Session::$User !== null // If a user is logged in.
|
||||
||
|
||||
|
@ -44,6 +44,7 @@ else{
|
|||
<aside class="donation closable">
|
||||
<? if($autoHide){ ?>
|
||||
<form action="/settings" method="<?= Enums\HttpMethod::Post->value ?>">
|
||||
<input type="hidden" name="_method" value="<?= Enums\HttpMethod::Patch->value ?>" />
|
||||
<input type="hidden" name="hide-donation-alert" value="true" />
|
||||
<button class="close" title="Close this box">Close this box</button>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue