fix: lightbox watermark loading, white label translations, and dynamic footer year

- Fix watermarked images not opening in lightbox (add /api prefix to photo URLs)
- Add i18n translations for 'White Label' and 'Hide Powered by' branding settings
- Add complete logo customization translations (EN and DE)
- Replace hardcoded © 2024 with dynamic current year in footer
- Use company name from settings in default footer text
This commit is contained in:
Paul Nothaft
2026-01-15 14:16:00 +01:00
parent ea20446a79
commit ce8587b24d
7 changed files with 59 additions and 11 deletions
+3 -3
View File
@@ -12,10 +12,10 @@ interface PhotoUrlOptions {
*/
export function getPhotoUrl({ slug, photo, watermarkEnabled = false, token }: PhotoUrlOptions): string {
if (watermarkEnabled && token) {
// Use the watermarked photo endpoint
return `/gallery/${slug}/photo/${photo.id}`;
// Use the watermarked photo endpoint (needs /api prefix)
return `/api/gallery/${slug}/photo/${photo.id}`;
}
// Use the static photo URL
return photo.url;
}