summaryrefslogtreecommitdiff
path: root/resources/views/layouts/parts/footer.twig
blob: 827b635a7723fa8893cf37dab9f42591dd7e42c1 (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 config('name') %}
                {% if config('event_start') and config('event_end') %}
                    {{ __('%1$s, from %2$s to %3$s', [
                        config('name'),
                        config('event_start').format(__('Y-m-d')),
                        config('event_end').format(__('Y-m-d'))
                    ]) }}
                {% elseif config('event_start') %}
                    {{ __('%1$s, starting %2$s', [
                        config('name'),
                        config('event_start').format(__('Y-m-d'))
                    ]) }}
                {% else %}
                    {{ config('name') }}
                {% endif %} <br>
            {% elseif config('event_start') and config('event_end') %}
                {{ __('Event from %1$s to %2$s', [
                    config('event_start').format(__('Y-m-d')),
                    config('event_end').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>