photobooth funktionen im event admin verlinkt, gäste pwa zeigt photobooth nur noch an, wenn diese aktiviert ist. kontaktformular optimiert. teilen-link mit iMessage und whatsapp erweitert.
This commit is contained in:
@@ -918,6 +918,21 @@ class EventPublicController extends BaseController
|
||||
];
|
||||
}
|
||||
|
||||
private function resolveFontFamily(Event $event): ?string
|
||||
{
|
||||
$fontFamily = Arr::get($event->settings, 'branding.font_family')
|
||||
?? Arr::get($event->tenant?->settings, 'branding.font_family');
|
||||
|
||||
if (! is_string($fontFamily)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$normalized = strtolower(trim($fontFamily));
|
||||
$defaultInter = strtolower('Inter, sans-serif');
|
||||
|
||||
return $normalized === $defaultInter ? null : $fontFamily;
|
||||
}
|
||||
|
||||
private function encodeGalleryCursor(Photo $photo): string
|
||||
{
|
||||
return base64_encode(json_encode([
|
||||
@@ -1378,8 +1393,7 @@ class EventPublicController extends BaseController
|
||||
];
|
||||
|
||||
$branding = $this->buildGalleryBranding($event);
|
||||
$fontFamily = Arr::get($event->settings, 'branding.font_family')
|
||||
?? Arr::get($event->tenant?->settings, 'branding.font_family');
|
||||
$fontFamily = $this->resolveFontFamily($event);
|
||||
$brandingAllowed = $this->determineBrandingAllowed($event);
|
||||
$logoUrl = $brandingAllowed
|
||||
? (Arr::get($event->settings, 'branding.logo_url')
|
||||
@@ -1399,6 +1413,7 @@ class EventPublicController extends BaseController
|
||||
'updated_at' => $event->updated_at,
|
||||
'type' => $eventTypeData,
|
||||
'join_token' => $joinToken?->token,
|
||||
'photobooth_enabled' => (bool) $event->photobooth_enabled,
|
||||
'branding' => [
|
||||
'primary_color' => $branding['primary_color'],
|
||||
'secondary_color' => $branding['secondary_color'],
|
||||
|
||||
@@ -59,6 +59,7 @@ class MarketingController extends Controller
|
||||
'name' => 'required|string|max:255',
|
||||
'email' => 'required|email|max:255',
|
||||
'message' => 'required|string|max:1000',
|
||||
'nickname' => 'present|size:0',
|
||||
]);
|
||||
|
||||
$locale = app()->getLocale();
|
||||
|
||||
Reference in New Issue
Block a user