2021-07-22 21:22:21 +02:00
|
|
|
{% import 'macros/base.twig' as m %}
|
|
|
|
|
2018-09-23 19:13:19 +02:00
|
|
|
<div class="col-md-12">
|
|
|
|
<hr/>
|
2023-12-16 03:07:16 +01:00
|
|
|
<div class="text-center footer mb-3">
|
2018-09-23 19:13:19 +02:00
|
|
|
{% block eventinfo %}
|
2018-09-25 17:33:31 +02:00
|
|
|
{% if config('name') %}
|
|
|
|
{% if config('event_start') and config('event_end') %}
|
2023-11-23 17:37:06 +01:00
|
|
|
{{ __('footer.eventinfo.name_start_end', [
|
2018-09-25 17:33:31 +02:00
|
|
|
config('name'),
|
2023-11-23 14:30:46 +01:00
|
|
|
config('event_start').format(__('general.date')),
|
|
|
|
config('event_end').format(__('general.date'))
|
2018-09-23 19:13:19 +02:00
|
|
|
]) }}
|
2023-08-13 16:09:56 +02:00
|
|
|
{%- if config('enable_show_day_of_event') and day_of_event is defined -%}
|
|
|
|
, {{ __('event.day', [day_of_event]) }}
|
|
|
|
{% endif %}
|
2018-09-25 17:33:31 +02:00
|
|
|
{% elseif config('event_start') %}
|
2023-11-23 17:37:06 +01:00
|
|
|
{{ __('footer.eventinfo.name_start', [
|
2018-09-25 17:33:31 +02:00
|
|
|
config('name'),
|
2023-11-23 14:30:46 +01:00
|
|
|
config('event_start').format(__('general.date'))
|
2018-09-23 19:13:19 +02:00
|
|
|
]) }}
|
2023-08-13 16:09:56 +02:00
|
|
|
{%- if config('enable_show_day_of_event') and day_of_event is defined -%}
|
|
|
|
, {{ __('event.day', [day_of_event]) }}
|
|
|
|
{% endif %}
|
2018-09-23 19:13:19 +02:00
|
|
|
{% else %}
|
2018-09-25 17:33:31 +02:00
|
|
|
{{ config('name') }}
|
2018-09-23 19:13:19 +02:00
|
|
|
{% endif %} <br>
|
2018-09-25 17:33:31 +02:00
|
|
|
{% elseif config('event_start') and config('event_end') %}
|
2023-11-23 17:37:06 +01:00
|
|
|
{{ __('footer.eventinfo.start_end', [
|
2023-11-23 14:30:46 +01:00
|
|
|
config('event_start').format(__('general.date')),
|
|
|
|
config('event_end').format(__('general.date'))
|
2023-08-13 16:09:56 +02:00
|
|
|
]) }}
|
|
|
|
{%- if config('enable_show_day_of_event') and day_of_event is defined -%}
|
|
|
|
, {{ __('event.day', [day_of_event]) }}
|
|
|
|
{% endif %} <br>
|
2018-09-23 19:13:19 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2023-12-24 14:08:41 +01:00
|
|
|
{% for name,opt in config('footer_items') %}
|
|
|
|
{% set url = opt is iterable ? opt[0] : opt %}
|
|
|
|
{% set permission = opt is iterable ? opt[1] : null %}
|
|
|
|
{% if not permission or has_permission_to(permission) %}
|
|
|
|
<a href="{% if url starts with '/' %}{{ url(url) }}{% else %}{{ url }}{% endif %}">
|
|
|
|
{% if '@' in url %}{{ m.icon('envelope') }}{% endif %}
|
|
|
|
{{ __(name) }}
|
|
|
|
</a> ·
|
|
|
|
{% endif %}
|
2018-10-24 14:54:37 +02:00
|
|
|
{% endfor %}
|
2023-11-23 17:37:06 +01:00
|
|
|
<a href="https://github.com/engelsystem/engelsystem/issues">{{ __('footer.issues') }}</a>
|
|
|
|
· <a href="https://github.com/engelsystem/engelsystem/">{{ __('footer.github') }}</a>
|
|
|
|
· <a href="{{ url('/credits') }}">{{ __('credits.title') }}</a>
|
2018-09-23 19:13:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|