Commit graph

156 commits

Author SHA1 Message Date
Ruben Solvang
ee7143d1fa Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest 2026-02-06 20:36:03 +01:00
Ruben
99ef5f93c2 Update history page with improved formatting and links 2026-02-06 20:35:48 +01:00
Ruben
a142b0562f Add documentation for content system, newsletter plugin, petition
system, and templates

Add content system documentation

Add newsletter plugin documentation

Add petition system documentation

Add templates documentation
2026-02-06 19:15:29 +01:00
Ruben
2f024e28be Update AGENT.md with expanded documentation structure 2026-02-06 19:15:21 +01:00
Ruben
631c784efc Add feed link to head section when available 2026-02-06 19:03:13 +01:00
Ruben Solvang
37d5c7dcee Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest 2026-02-03 17:35:26 +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 Solvang
6b924b42b1 Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest 2026-02-02 00:26:50 +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 Solvang
702f2cd73e Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest 2026-02-02 00:15:02 +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 Solvang
80f308d186 Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest 2026-02-01 22:08:49 +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 Solvang
093dfb9d0a Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest 2026-02-01 20:12:41 +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
609bd5dd34 Update compose to set correct permissions for data directory 2026-02-01 20:09:58 +01:00
Ruben Solvang
959386a365 Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest 2026-01-24 22:45:56 +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 Solvang
7972a4c5ce Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest 2026-01-22 20:55:28 +01:00
Ruben Solvang
d32c6f1362 cPanel additions 2026-01-22 20:55:19 +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 Solvang
b79bcd9fe9 Merge branch 'latest' of forge.dmz.skyfritt.net:stopplidelsen/innhold into latest 2026-01-20 21:20:38 +01:00
Ruben
252ba5ed63 Update warning message formatting for clarity
Add emphasis to spam folder check instruction
2026-01-20 21:20:28 +01:00
Ruben Solvang
118c76fa6d cPanel PHP INI additions 2026-01-20 21:20:02 +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
199b49ef9e Update announcement bar styling and structure
Add label element with uppercase styling
Adjust content font size for better readability
Maintain semantic HTML structure
2026-01-17 13:35:35 +01:00
Ruben
cb590ac1ab Change filenames for priority 2026-01-17 13:04:18 +01:00
Ruben
4e488ee403 Remove medical cannabis petition campaign files
Update metadata title for better context
2026-01-17 13:03: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
2cf9839152 Remove escape class from cover section 2026-01-17 01:05:39 +01:00
Ruben Solvang
e49aaa108f Fix merge conflicts 2026-01-17 01:04:57 +01:00
Ruben Solvang
4ad9a23b3f Innhold lagt til pfra server-siden 2026-01-17 00:29:54 +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
e7f2832751 Add announcement bar for medical cannabis petition 2026-01-17 00:03:33 +01:00
Ruben
482e24c477 Update base.css 2026-01-17 00:03:19 +01:00
Ruben
30876a8ad5 Update metadata with newsletter signup plugin 2026-01-17 00:03:15 +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
375db3c3f7 Add announcement bar styling
Implement responsive announcement bar with gradient background
and hover effects using modern CSS features like nesting
and clamp() for fluid typography
2026-01-17 00:02:58 +01:00
Ruben
8018157c7a Add unescape class to brochure CTA content
This change ensures the content is rendered without HTML escaping,
allowing proper formatting of the text and links.
2026-01-17 00:02:45 +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
93cfbea69a Add custom data CSV files to gitignore 2026-01-16 22:02:08 +01:00
Ruben
3965898c10 Update config.ini 2026-01-16 22:01:59 +01:00
Ruben
de2c121188 Remove English and Norwegian thank you pages for petition
The pages were deleted as they are no longer needed in the current
implementation of the petition system
2026-01-16 21:47:43 +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
4eadaea6c6 Add Listmonk newsletter configuration
Configure Listmonk integration with enabled status and list UUIDs
Add Listmonk newsletter configuration

Uses Listmonk's public subscription API with double opt-in
Includes two list UUIDs for newsletter subscriptions
Add Listmonk newsletter configuration

Add listmonk-config.php to .gitignore
2026-01-16 21:45:21 +01:00
Ruben
1f74cb3c84 Add thank you page for medical cannabis petition
Add English and Norwegian versions of the thank you page
with confirmation instructions and newsletter subscription
notification when applicable

Style the warning highlight with oklch color
2026-01-16 21:45:01 +01:00