@php $seo = app(\App\Services\Seo::class); $ads = app(\App\Services\AdManager::class); $color = fn ($key) => preg_match('/^#[0-9a-fA-F]{3,8}$/', (string) $site->brand($key)) ? $site->brand($key) : \App\Models\Site::DEFAULT_BRANDING[$key]; $bodyFont = \App\Support\Fonts::stack($site->brand('font')); // Heading font: the theme's own unless the site sets one. $headingFont = \App\Support\Fonts::exists($site->brand('heading_font')) ? \App\Support\Fonts::stack($site->brand('heading_font')) : null; $fontScale = ['sm' => '93.75%', 'md' => '100%', 'lg' => '106.25%'][$site->brand('font_scale')] ?? '100%'; // Content sections render before the layout, so fonts chosen in blocks are already registered. $fontCss = \App\Support\Fonts::stylesheet(); // Custom code of the site (Paramètres → Code personnalisé), trusted: only site managers can edit it. $customCode = $site->setting('code.enabled', true) ? (array) $site->setting('code', []) : []; $ga4 = $site->seoSetting('ga4_id'); $ga4 = $ga4 && preg_match('/^G-[A-Z0-9]+$/', $ga4) ? $ga4 : null; @endphp
{{ trans('network.remember_language', ['lang' => $langName], $code) }} {{ trans('network.switch_language', ['lang' => $langName], $code) }}
@endforeach