QM: Wiedervorlage und Lesebestätigung, Platzhalter für Profilbilder (0.21.0)
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m54s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m29s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m38s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m7s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m13s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m24s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 07:36:47 +00:00
parent 8701b6d1b8
commit 4d855c8a74
213 changed files with 1729 additions and 515 deletions

View file

@ -182,6 +182,8 @@ class Branding
'image_url' => $this->url($theme['profile_cover']),
'overlay' => $theme['profile_cover_overlay'] / 100,
],
// Platzhalter für Personen ohne Profilbild (sonst Initialen)
'avatar_placeholder_url' => $this->url($theme['avatar_placeholder']),
'footer' => [
'text' => $theme['footer_text'],
'links' => $theme['footer_links'],

View file

@ -33,6 +33,7 @@ class Theme
'login_text' => null,
'login_image' => null,
'profile_cover' => null,
'avatar_placeholder' => null,
'profile_cover_overlay' => 70,
'footer_text' => null,
'footer_links' => [],
@ -171,7 +172,7 @@ class Theme
$theme[$text] = filled($theme[$text]) ? mb_substr(trim((string) $theme[$text]), 0, 500) : null;
}
foreach (['logo_light', 'logo_dark', 'logo_mark', 'app_icon', 'login_image', 'profile_cover', 'custom_font'] as $file) {
foreach (['logo_light', 'logo_dark', 'logo_mark', 'app_icon', 'login_image', 'profile_cover', 'avatar_placeholder', 'custom_font'] as $file) {
$theme[$file] = is_string($theme[$file]) && preg_match('#^(theme|branding)/[A-Za-z0-9/_.-]+$#', $theme[$file]) && ! str_contains($theme[$file], '..') ? $theme[$file] : null;
}

View file

@ -14,7 +14,7 @@ class ThemeTransfer
{
public const FORMAT = 'inhaus-theme';
private const FILES = ['logo_light', 'logo_dark', 'logo_mark', 'app_icon', 'login_image', 'profile_cover', 'custom_font'];
private const FILES = ['logo_light', 'logo_dark', 'logo_mark', 'app_icon', 'login_image', 'profile_cover', 'avatar_placeholder', 'custom_font'];
private const MIME = [
'image/svg+xml' => 'svg', 'image/png' => 'png', 'image/jpeg' => 'jpg', 'image/webp' => 'webp', 'font/woff2' => 'woff2',