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:
@@ -4,6 +4,7 @@ namespace App\Support;
|
||||
|
||||
use App\Models\Event;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class WatermarkConfigResolver
|
||||
{
|
||||
@@ -35,7 +36,15 @@ class WatermarkConfigResolver
|
||||
];
|
||||
}
|
||||
|
||||
$baseSetting = WatermarkSetting::query()->first();
|
||||
$baseSetting = null;
|
||||
|
||||
if (class_exists(\App\Models\WatermarkSetting::class) && \Illuminate\Support\Facades\Schema::hasTable('watermark_settings')) {
|
||||
try {
|
||||
$baseSetting = \App\Models\WatermarkSetting::query()->first();
|
||||
} catch (\Throwable) {
|
||||
$baseSetting = null;
|
||||
}
|
||||
}
|
||||
$base = [
|
||||
'asset' => $baseSetting?->asset ?? config('watermark.base.asset', 'branding/fotospiel-watermark.png'),
|
||||
'position' => $baseSetting?->position ?? config('watermark.base.position', 'bottom-right'),
|
||||
@@ -87,4 +96,3 @@ class WatermarkConfigResolver
|
||||
];
|
||||
}
|
||||
}
|
||||
use App\Models\WatermarkSetting;
|
||||
|
||||
Reference in New Issue
Block a user