Commit graph

83 commits

Author SHA1 Message Date
Ruben
df912a4da0 Rename $pageMetadata to $metadata 2026-05-10 22:02:48 +02:00
Ruben
a8141746d9 Exclude nyhetsbrev and newsletter from feed 2026-05-10 21:28:54 +02:00
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
23671d5ed8 Add news preview functionality to homepage
Add news preview plugin to metadata
Add news preview translation strings
Create news preview content files
Rename goals section to position 4
Move newsletter section to position 5
2026-02-07 17:16:26 +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
002395946d Update newsletter confirmation instructions for clarity
Clarify that users must click "Confirm" to complete their subscription
in both English and Norwegian content and language files
2026-02-07 16:35:40 +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
631c784efc Add feed link to head section when available 2026-02-06 19:03:13 +01:00
Ruben
180d3c8e22 Add option to send confirmation to specific email addresses
Add customizable email delay for bulk operations
Fix URL typo in confirmation email
Update menu options and case handling
2026-02-03 17:35:11 +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
fffd51422c Add signature deletion functionality to petition CLI
Introduce new modifyPetitionFile helper function for atomic CSV
operations
Refactor manual confirmation to use the new helper function
Add new manuallyDeleteSignatures function with confirmation flow
Update menu to include deletion option and adjust numbering
2026-02-01 20:49:06 +01:00
Ruben
fdbf9a3210 Add manual signature confirmation by email address
Add new menu option to manually confirm signatures by email address
Search through all petition files to find matching emails
Update status from pending to confirmed when found
Display results with confirmation status and petition IDs
Handle multiple emails via comma-separated input
Maintain proper file locking to prevent race conditions
2026-02-01 20:27:34 +01:00
Ruben
bb82e9a4b9 Update SMTP host validation for third-party services
Simplify validation to check DNS records instead of MX records
Remove redundant port 80 checks that fail for mail-only subdomains
Maintain compatibility with services like Mailgun and SendGrid
2026-02-01 20:10:27 +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
5194ba8213 Add ignore list functionality for petition management
Add functionality to mark entries as ignored for malformed emails and
other issues
Add ignore list file and management functions
Update menu to include ignore option
Implement interactive ignore marking for failed emails and unconfirmed
signatures
Add color-coded output for better visibility
Update function signatures to support ignore list filtering
2026-01-24 22:44:08 +01:00
Ruben
7659b0cf5e Create petition-cli.php 2026-01-22 20:54:31 +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
7151d3b933 Add cover styling for petition pages
Add responsive cover image styling with object-fit and height
constraints
Adjust cover image positioning to focus on bottom of image
Update HTML class to include cover styling context
2026-01-17 13:35:42 +01:00
Ruben
f0320cd870 Update image and grid container sizing
Fix image width to 100% for consistent sizing
Adjust grid container gutter to 0.8rem for symmetry
2026-01-17 13:03:36 +01:00
Ruben
673ff9400d Update list template structure to use semantic section element 2026-01-17 13:03:23 +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
482e24c477 Update base.css 2026-01-17 00:03:19 +01:00
Ruben
e23167d771 Add newsletter form translations for English and Norwegian
[newsletter]
Add labels, placeholders, and messages for both languages
Include success and error states for user feedback
2026-01-17 00:03:03 +01:00
Ruben
c50c4d481f Add base URL rewrite rules and secure petition data files
Add base URL rewrite rules for app routing
Secure petition data files with access restrictions
2026-01-16 22:02:14 +01:00
Ruben
3965898c10 Update config.ini 2026-01-16 22:01:59 +01:00
Ruben
0ae35f6c8f Add Listmonk newsletter configuration example
This provides a template for integrating Listmonk's public API
with the newsletter functionality, including list UUIDs and
basic configuration options.
2026-01-16 21:46:39 +01:00
Ruben
269bfe994c Add newsletter subscription option to petition form
Update email error message to suggest checking address
Add petition form plugin to thank you page metadata
2026-01-16 21:44:48 +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
Ruben
e21282112d Add huge class for larger table styling 2026-01-16 00:36:11 +01:00
Ruben
27a1ae0751 Add GDPR consent and privacy policy translations
Add month names in both languages
Clarify display preference wording
Update privacy policy and consent text for both English and Norwegian
Add GDPR rights information
2026-01-16 00:36:07 +01:00
Ruben
b452c73de3 Update translation keys to use dot notation
Update content rendering to use wrapped content fallback
2026-01-14 23:16:19 +01:00
Ruben
443c44d095 Add section headers to language files and update petition messages
Add GDPR-compliant expiration to confirmation links
Add IP rate limiting error message
Update region list to current Norwegian counties
Add signature deletion functionality
Add thank you email with deletion option
Improve error messages and user feedback
2026-01-14 23:16:14 +01:00
Ruben
22717168ae Update article structure and fix translation keys
Fix translation keys in FAQ template
Add article wrapper to page template
2026-01-14 23:15:58 +01:00
Ruben
fd1f152e55 Update email validation to return false for invalid addresses
Fix email validation to properly handle invalid addresses by returning
false
2026-01-14 20:25:59 +01:00
Ruben
b1f19e2cdd Add inherit font to table elements 2026-01-14 20:25:51 +01:00
Ruben
82b94a1eb7 Add petition form translations for English and Norwegian
Add Norwegian region names for petition form

Add email confirmation messages for petition form

Add error handling messages for petition form

Add signature display options for petition form
2026-01-14 20:25:42 +01:00
Ruben
ee7bb7a7a6 Add petition-specific SMTP configuration options
Add optional petition-specific SMTP configuration overrides
to the example configuration file, maintaining the existing
defaults while allowing customization for petition emails
2026-01-14 20:24:57 +01:00
Ruben
c91971968e Remove trailing whitespace from CSS properties 2025-12-13 16:38:47 +01:00
Ruben
f949439ebf Add content and translations 2025-12-12 21:55:12 +01:00
Ruben
a273a7a7a0 Add language switching and improve table styling
Add h4 styling Improve footnotes styling Add table styling with
alternating row colors Make site multilingual with language switching
Update footer to use translations Improve language handling in
navigation links
2025-12-12 21:55:12 +01:00
Ruben
cab5b17506 Add translation support for FAQ summary and answer links
Use translations for FAQ summary label and read full answer button text
while falling back to default Norwegian text if translations are not
available
2025-12-12 21:55:12 +01:00