{% set slug = event.slug | replace({'/':''}) %}
<div class="post post-event">
<div class="row visible-xs-block">
<div class="col-xs-12">
<h3><a href="{{ path('event_show_single', {slug: slug} + templateVars) }}">{{ event.title }}</a></h3>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<a href="{{ path('event_show_single', {slug: slug} + templateVars) }}">
<div class="calendar">
<img class="hidden-xs img-responsive" src="{{ event.imagelink ?: 'https://placehold.co/500x400/7AB800/000000' }}" alt="">
<div class="date visible-xs">
<div class="day">{{ event.startDate|date('d') }}</div>
<div class="year">{{ event.startDate|date('M Y') }}</div>
</div>
<div class="type">{{ event.type }}</div>
</div>
</a>
</div>
<div class="col-xs-8">
<div class="post-head">
<h2 class="hidden-xs"><a href="{{ path('event_show_single', {slug: slug} + templateVars) }}">{{ event.title }}</a></h2>
</div>
<div class="post-body">
<ul class="list-unstyled">
<li><i class="fa fa-clock-o fa-fw"></i>{{ event.startDate|date('l, d.m.y, H:i') }} - {{ event.endDate|date('H:i') }} Uhr</li>
{% if event.venueName %}
<li><i class="fa fa-map-marker fa-fw"></i>{{ event.venueName }}, {{ event.venueAddress }}</li>
{% endif %}
{% if event.trainer %}
<li><i class="fa fa-bullhorn fa-fw"></i> {{ event.trainer }}</li>
{% endif %}
</ul>
</div>
</div>
</div>
<div class="row hidden-xs">
<div class="col-xs-12">
{% set tags = event.tags|split('#') %}
{% for tag in tags %}
{% if tag is not empty %}
{% set tag = tag|trim %}
<a href="{{ path('events_list', {tag: tag} + templateVars) }}" class="btn btn-sort sort-gray">{{ tag }}</a>
{% endif %}
{% endfor %}
{% if app.user.admin is defined and app.user.admin %}
<a target="_blank" class="btn btn-sort sort-gray" href="{{ path('admin_event_edit', {id: event.id} + templateVars) }}" role="button">update</a>
{% endif %}
</div>
</div>
<div class="row">
<div class="col-xs-6"></div>
<div class="col-xs-6">
<a href="{{ path('event_show_single', {slug: slug} + templateVars) }}" class="btn btn-green">{{ (lang is defined and lang == 'DE') ? 'Mehr Infos' : 'More' }}</a>
<a href="{{ path('event_show_single', {slug: slug} + templateVars) }}" class="btn btn-green hidden-xs">{{ (lang is defined and lang == 'DE') ? 'Jetzt buchen!' : 'Book now' }}</a>
</div>
</div>
</div>
<hr class="hr-section">