mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 06:45:14 -04:00
Add summer donation drive
This commit is contained in:
parent
ab6ec0f2fc
commit
102125332e
1 changed files with 14 additions and 7 deletions
|
@ -105,13 +105,20 @@ const EMAIL_LOG_FILE_PATH = '/var/log/local/standardebooks.org-email.log';
|
||||||
/** **`TRUE`** to enable automatic donation drives; **`FALSE`** to disable all donation drives. */
|
/** **`TRUE`** to enable automatic donation drives; **`FALSE`** to disable all donation drives. */
|
||||||
const DONATION_DRIVES_ENABLED = true;
|
const DONATION_DRIVES_ENABLED = true;
|
||||||
const DONATION_DRIVE_DATES = [
|
const DONATION_DRIVE_DATES = [
|
||||||
// new DonationDrive(
|
new DonationDrive(
|
||||||
// 'Spring drive',
|
'Spring drive',
|
||||||
// new DateTimeImmutable('Second Monday of May', SITE_TZ),
|
new DateTimeImmutable('Second Monday of May', SITE_TZ),
|
||||||
// new DateTimeImmutable('Second Monday of May 22:00 +2 weeks', SITE_TZ),
|
new DateTimeImmutable('Second Monday of May 22:00 +2 weeks', SITE_TZ),
|
||||||
// 40,
|
40,
|
||||||
// 20
|
20
|
||||||
// ),
|
),
|
||||||
|
new DonationDrive(
|
||||||
|
'Summer drive',
|
||||||
|
new DateTimeImmutable('Second Monday of August', SITE_TZ),
|
||||||
|
new DateTimeImmutable('Second Monday of August 22:00 +2 weeks', SITE_TZ),
|
||||||
|
40,
|
||||||
|
20
|
||||||
|
),
|
||||||
new DonationDrive(
|
new DonationDrive(
|
||||||
'Holiday drive',
|
'Holiday drive',
|
||||||
NOW < new DateTimeImmutable('January 7, 22:00', SITE_TZ) ? new DateTimeImmutable('November 25 -1 year', SITE_TZ) : new DateTimeImmutable('November 25', SITE_TZ),
|
NOW < new DateTimeImmutable('January 7, 22:00', SITE_TZ) ? new DateTimeImmutable('November 25 -1 year', SITE_TZ) : new DateTimeImmutable('November 25', SITE_TZ),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue