Commit graph

44 commits

Author SHA1 Message Date
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
Ruben
0565e81292 Update config to enable languages plugin 2025-11-11 23:39:13 +01:00
Ruben
a558bf3afb Update title and add social media metadata
Add Open Graph and Twitter Card metadata for better social sharing
Implement dynamic title formatting with site title suffix Add support
for social sharing images with fallback to hero image Include default
description for better SEO Ensure proper URL handling for both HTTP and
HTTPS
2025-11-04 23:01:36 +01:00
Ruben
7e44e7e132 Add CSRF protection and rate limiting to contact form
Improve contact form styling with dedicated CSS file Move contact form
styles from base.css to separate file Add security measures to custom
directory with .htaccess Update honeypot field styling and
implementation
2025-11-04 22:33:14 +01:00
Ruben
c013c2cde3 Add contact form with spam protection
Add social media links to contact page

Move history content to dedicated page

Add SMTP configuration file

Update frontpage link styling
2025-11-04 22:19:58 +01:00
Ruben
b3cefcdc57 Add PHPMailer Lite vendor library
This commit adds the PHPMailer Lite library to the vendor directory. The
library is a lightweight version of PHPMailer designed for sending
emails with support for SMTP, Sendmail, and IMAP transports. It includes
features like HTML email composition, attachments, and embedded images.
The library is licensed under the MIT license and requires PHP version
8.0.0 or greater.
2025-11-04 22:19:44 +01:00
Ruben
b8d944cc9d Add dynamic meta description and page-specific CSS
Add meta description tag when available Include page-specific CSS when
provided
2025-11-03 23:10:09 +01:00
Ruben
f503e5289f Fix navigation list item structure in base template 2025-11-03 22:35:50 +01:00
Ruben
45de82b8df Update PHP version to 8.4.14 and hide analytics pixel 2025-11-01 23:42:13 +01:00
Ruben
102ad19f8d Update analytics tracking to use current page URL
Fix tracking to use the actual page URL instead of a hardcoded test path
2025-10-21 22:14:53 +02:00
Ruben
63dab82d1d Add GoatCounter tracking script to base template 2025-10-21 22:10:53 +02:00
Ruben
9cb7638892 Update link to use redirect URL instead of direct URL 2025-10-21 21:57:37 +02:00
Ruben
08feb3bdbf Reduce spacing between card action buttons 2025-10-21 21:55:41 +02:00
Ruben
a9b3b4e765 Remove commented article margin rule and apply to aside only 2025-10-21 21:44:32 +02:00
Ruben
0e9a488f10 Add about section and improve CTA styling
Update CTA section text and styling Move about section to top of page
Remove duplicate about section Adjust spacing and margins for better
layout
2025-10-21 21:42:29 +02:00
Ruben
76ed5e78ca Update frontpage and contact information
Update contact details and social media links Add "Learn more" button to
front page Remove English frontpage and contact page Improve
call-to-action section text
2025-10-21 21:15:27 +02:00
Ruben
e4f770626f Use pdf link if available for cover images 2025-10-21 20:33:06 +02:00
Ruben
18782afc7d Add link to deep article when available
Add conditional logic to display "Les dybdeartikkel" link when redirect
URL is present, otherwise show "Les mer" link
2025-10-20 22:17:46 +02:00
Ruben
5879af9a99 Add download link for organization's bylaws
Add styling for button element on contact page
2025-10-16 22:17:31 +02:00
Ruben
89c4ce89b6 Add FAQ page template and improve button styling
Update frontpage content and styling Add metadata for new FAQ pages
Implement consistent button styling across templates
2025-10-15 20:51:38 +02:00
Ruben
5d50632523 Add list-card-grid template and update metadata
Update brosjyrer and FAQ pages to use new list-card-grid template
instead of deprecated list_style grid option
2025-10-15 19:28:40 +02:00
Ruben
32c470d2d6 Fix ordered list 2025-10-05 22:28:11 +02:00
Ruben
c501635912 Move documentation files from custom to content directory 2025-10-03 13:12:38 +02:00
Ruben
cea2c167ff Update internal links to use absolute paths
Update developer documentation paths and rename to "Utvikling"
2025-10-03 12:35:36 +02:00
Ruben
7ad0062dee Add documentation 2025-10-03 12:30:04 +02:00
Ruben
3a6b282d05 Update logo path to use public directory 2025-10-03 00:11:01 +02:00
Ruben
fa08ef2289 Use $contentDir instead of $_SERVER for logo path 2025-10-03 00:10:46 +02:00
Ruben
968a78f549 Update logo path to use DOCUMENT_ROOT for consistency 2025-10-03 00:08:40 +02:00
Ruben
abf0c7017c Add article about medical cannabis and patient organizations
Add logo and favicon assets for the website
2025-10-02 23:59:37 +02:00
Ruben
ea6a97b6cb Remove favicon and logo assets and update button styling
Refactor button styles into reusable component Update navigation to use
button component Move logo to assets directory
2025-10-02 23:35:53 +02:00
Ruben
c4697e47c8 Add articles and brochures section
Add brochures section to frontpage

Add grid view template

Add article about medical cannabis study for patient organizations

Add brochure for doctors

Add brochure for patient organizations

Add brochure for politicians

Update styles to support new sections

Update news article date
2025-10-02 22:29:21 +02:00
Ruben
b0ad85f1ac Add August-September activity summary article
Add English translations for categories and tags Add Norwegian
translations for categories and tags Add page template for displaying
metadata Add news section to navigation menu
2025-10-02 20:19:03 +02:00
Ruben
466c297fe4 Remove outdated article content and metadata
Update CSS grid layout for main content area

Add language-specific footer content
2025-10-02 20:16:18 +02:00
Ruben
f48cdc268b Initial commit 2025-10-02 17:01:55 +02:00