{namespace common=Newland\Toubiz\Common\Neos\ViewHelpers}
{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<common:slot.render slot="aboveTitle" context="{ eventDate: eventDate }" />
<common:slot.render slot="aboveTeaserTitle" context="{ eventDate: eventDate }" />

<p class="tb-teaser__topline">
    <f:if condition="{eventDate.event.location.city}">
        <span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
            <span itemprop="address" itemtype="http://schema.org/PostalAddress"
                  content="{eventDate.event.location.fullAddress}">

                <strong>{eventDate.event.location.city}</strong>
            </span>
        </span>

        <f:if condition="{eventDate.event.categories -> f:count()} > 0">
            •
        </f:if>
    </f:if>

    <f:for each="{eventDate.event.categories}" as="category">
        <span>{category.title}</span>
    </f:for>
</p>

<common:slot.render slot="belowTitle" context="{ eventDate: eventDate }" />
<common:slot.render slot="belowTeaserTitle" context="{ eventDate: eventDate }" />
