Add newsletter subscription to petition form

Add Listmonk integration for newsletter subscriptions
Add newsletter checkbox to form
Handle newsletter subscription on form submission
Add session flag for thank you page
Remove duplicate sign-now ID from form section
This commit is contained in:
Ruben 2026-01-16 21:43:48 +01:00
parent afeeb658de
commit 054c59f177
3 changed files with 84 additions and 9 deletions

View file

@ -1,4 +1,4 @@
<h1>Show your support by signing here</h1>
<h1 id="sign-now">Show your support by signing here</h1>
<?= $petition_form ?? '' ?>
<?= $petition_signatures ?? '' ?>

View file

@ -1,4 +1,4 @@
<h1>Signer her for å vise din støtte</h1>
<h1 id="sign-now">Signer her for å vise din støtte</h1>
<?= $petition_form ?? '' ?>
<?= $petition_signatures ?? '' ?>