engelsystem/resources/views/layouts/parts/footer.twig

39 lines
1.6 KiB
Twig
Raw Normal View History

2018-09-23 19:13:19 +02:00
<div class="col-md-12">
<hr/>
<div class="text-center footer" style="margin-bottom: 10px;">
{% block eventinfo %}
{% if config('name') %}
{% if config('event_start') and config('event_end') %}
2018-09-23 19:13:19 +02:00
{{ __('%s, from %s to %s', [
config('name'),
config('event_start').format(__('Y-m-d')),
config('event_end').format(__('Y-m-d'))
2018-09-23 19:13:19 +02:00
]) }}
{% elseif config('event_start') %}
2018-09-23 19:13:19 +02:00
{{ __('%s, starting %s', [
config('name'),
config('event_start').format(__('Y-m-d'))
2018-09-23 19:13:19 +02:00
]) }}
{% else %}
{{ config('name') }}
2018-09-23 19:13:19 +02:00
{% endif %} <br>
{% elseif config('event_start') and config('event_end') %}
2018-09-23 19:13:19 +02:00
{{ __('Event from %s to %s', [
config('event_start').format(__('Y-m-d')),
config('event_end').format(__('Y-m-d'))
2018-09-23 19:13:19 +02:00
]) }} <br>
{% endif %}
{% endblock %}
{% for name,url in config('footer_items') %}
<a href="{{ url }}">
{% if '@' in url %}<span class="glyphicon glyphicon-envelope"></span>{% endif %}
{{ __(name) }}
</a> ·
{% endfor %}
<a href="https://github.com/engelsystem/engelsystem/issues">{{ __('Bugs / Features') }}</a>
2018-09-23 19:13:19 +02:00
· <a href="https://github.com/engelsystem/engelsystem/">{{ __('Development Platform') }}</a>
· <a href="{{ url('credits') }}">{{ __('Credits') }}</a>
</div>
</div>