Commit graph

17 commits

Author SHA1 Message Date
Ruben
3b85806b08 Move petition map documentation to docs directory
Remove outdated plugin documentation from custom directory
2026-02-26 23:05:05 +01:00
Ruben
9d02424aac Add fullscreen map view for petition signatures
Add CSS for fullscreen mode with CTA button
Implement first name only display for map markers
Add fullscreen toggle button with proper icons
Update template to support fullpage mode
Add new page with fullscreen map view
2026-02-26 22:44:05 +01:00
Ruben
e8919e5842 Add animated counter to petition map
Update petition map counter to show animated count of signatures
with matching timing to dot animation and improved text formatting

Remove redundant header styles from CSS
Move counter styling to dedicated CSS section

Update counter text to be more concise and present tense
2026-02-26 22:21:41 +01:00
Ruben
bd993ea6ca Increase petition map animation duration to 30 seconds
Add lazy initialization for petition map
Update documentation with new positioning guidance
Note full-width section rendering behavior
2026-02-26 21:40:56 +01:00
Ruben
a7829982d0 Add petition map to medical cannabis petition page
Add anonymous SVG icon for anonymous signers

Add Norway fylker GeoJSON for map boundaries

Add CSS styles for petition map

Add JavaScript for interactive petition map

Add .htaccess to block direct access to data files

Add petition-map plugin to process and display map data

Add documentation for the petition-map plugin

Add mock petition data generator tool
2026-02-25 23:11:35 +01:00
Ruben
f2dc4ec647 Add scroll reveal effect to news preview cards 2026-02-07 17:54:42 +01:00
Ruben
288415d40c Add bottom padding to news preview date styling 2026-02-07 17:22:17 +01:00
Ruben
1766b370dd Add news preview plugin with three display sizes
The plugin displays latest news items from /nyheter/ section with three
size options:
- small: horizontal scrolling cards
- medium: responsive grid
- large: responsive grid with summaries

Usage: Add to metadata.ini and call with <?= news_preview() ?> or <?=
news_preview(5, 'large') ?>
2026-02-07 17:16:06 +01:00
Ruben
36591e7438 Add per-form Listmonk list UUIDs to newsletter plugin
Add support for specifying Listmonk list UUIDs per form instance
Update petition form to use metadata-defined UUIDs
Add success confirmation message to newsletter forms
Update documentation with new functionality
2026-02-07 15:34:43 +01:00
Ruben
b88baf1bef Add confirmation message for newsletter signup
Add success confirmation message to newsletter plugin
Update translation files with confirmation text
Improve form handling to show confirmation message
Add styling for confirmation message display
Ensure name field is properly included in form
2026-02-07 00:32:43 +01:00
Ruben
201f5ebb6a Update resend confirmation flow with improved messaging
Improve the resend confirmation flow by:
- Consolidating multiple status messages into a single generic response
- Adding HTML support for the result message
- Moving the instruction text after the message display
- Simplifying the PHP logic by removing redundant checks
- Making the messaging more privacy-conscious by not revealing email
  existence
- Adding a link to sign again in the result message

The changes follow the project's minimal PHP philosophy while improving
user experience and security.
2026-02-02 00:26:42 +01:00
Ruben
c8efa479bc Add resend confirmation functionality for petition signatures
Add link to resend confirmation page from main form
Add new resend confirmation page with form
Implement backend logic to handle resend requests
Add translations for new functionality
Update thank you page with resend confirmation link
2026-02-02 00:14:34 +01:00
Ruben
798bf268aa Add petition-specific SMTP configuration support
Allow separate SMTP account for petition emails
to improve deliverability through proper SPF/DKIM
configuration matching the from address
2026-02-01 20:10:10 +01:00
Ruben
8f49bb17cd Add email sending logging functionality
Add petitionId parameter to email functions
Update email sending calls to include petitionId
Add error message parameter to internal email functions
Improve error handling in email sending functions
Update thank you email to use signature email from CSV
Add SMTP connection error logging to error message
Add SMTP config not found error logging
Add SMTP disabled error logging
Add signature not found error logging
2026-01-22 20:54:28 +01:00
Ruben
8f88e242b7 Add newsletter signup plugin with Listmonk integration
Add newsletter signup page with small theme example
2026-01-17 00:03:41 +01:00
Ruben
054c59f177 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
2026-01-16 21:43:48 +01:00
Ruben
4a5d035c2e Add petition form plugin with GDPR-compliant double opt-in email
confirmation
2026-01-16 00:37:13 +01:00