feat: dedicated logos per country for accommodation bookings

This commit is contained in:
Björn Fromme
2026-08-05 12:28:43 +02:00
parent 84df3a94d9
commit e5fa63b7e8
13 changed files with 171 additions and 3 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
<div class="flex items-center justify-between">
<a href="{{ path('app_account') }}" title="zu meinem Account">
{% if booking_theme() == 'sbw' %}
{# The operating entity depends on where the accommodation is, so its logo wins over the host's #}
{% set country_logo = accommodation|default(null) and accommodation.country ? accommodation.country.logo : null %}
{% if country_logo %}
<img src="{{ asset('build/images/' ~ country_logo) }}" alt="" class="h-14 my-1 w-auto">
{% elseif booking_theme() == 'sbw' %}
<img src="{{ asset('build/images/logo_sbw.svg') }}" alt="" class="h-10 my-2 w-auto">
{% elseif booking_theme() == 'ser' %}
<img src="{{ asset('build/images/logo_ser.svg') }}" alt="" class="h-10 my-2 w-auto">