summaryrefslogtreecommitdiff
path: root/resources/views/layouts/parts/footer.twig
blob: 85d874737ebb4efa6df8a1d2f8331e4a5ef6f00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div class="col-md-12">
    <hr/>
    <div class="text-center footer" style="margin-bottom: 10px;">
        {% block eventinfo %}
            {% if event_config.event_name %}
                {% if event_config.event_start_date and event_config.event_end_date %}
                    {{ __('%s, from %s to %s', [
                        event_config.event_name,
                        date(event_config.event_start_date).format(__('Y-m-d')),
                        date(event_config.event_end_date).format(__('Y-m-d'))
                    ]) }}
                {% elseif event_config.event_start_date %}
                    {{ __('%s, starting %s', [
                        event_config.event_name,
                        date(event_config.event_start_date).format(__('Y-m-d'))
                    ]) }}
                {% else %}
                    {{ event_config.event_name }}
                {% endif %} <br>
            {% elseif event_config.event_start_date and event_config.event_end_date %}
                {{ __('Event from %s to %s', [
                    date(event_config.event_start_date).format(__('Y-m-d')),
                    date(event_config.event_end_date).format(__('Y-m-d'))
                ]) }} <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>
        · <a href="https://github.com/engelsystem/engelsystem/">{{ __('Development Platform') }}</a>
        · <a href="{{ url('credits') }}">{{ __('Credits') }}</a>
    </div>
</div>