{#
Event Archive Banner
Displays an info banner for archived events (status = 'archive')
SEO-optimized: Shows content without redirect to preserve backlinks and SEO juice
Required variables:
- event: Event entity
- isEnglish: Boolean (optional, defaults to false)
Usage:
{% include '@StartPlatzEvent/Default/_event.part.archive-banner.html.twig' %}
#}
{% if event.status == 'archive' %}
<section class="bg-light py-4 border-bottom">
<div class="container">
<div class="alert alert-info mb-0" role="alert">
<div class="row align-items-center">
<div class="col-md-8">
<h4 class="alert-heading mb-2">
<i class="fas fa-archive mr-2"></i>
{% if isEnglish is defined and isEnglish %}
This event has taken place
{% else %}
Diese Veranstaltung hat stattgefunden
{% endif %}
</h4>
<p class="mb-0">
{% if event.startDate %}
{% if isEnglish is defined and isEnglish %}
Event date: {{ event.startDate|date('F j, Y') }}
{% else %}
Veranstaltungsdatum: {{ event.startDate|date('d.m.Y') }}
{% endif %}
{% endif %}
</p>
</div>
<div class="col-md-4 text-md-right mt-3 mt-md-0">
<a href="{{ path('events_list') }}" class="btn btn-primary">
<i class="fas fa-calendar-alt mr-2"></i>
{% if isEnglish is defined and isEnglish %}
View current events
{% else %}
Aktuelle Events ansehen
{% endif %}
</a>
</div>
</div>
</div>
</div>
</section>
{% endif %}