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

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

<p class="tb-teaser__topline">
    <span class="uppercase">{article.categoriesSorted.0.title}</span>

    <f:if condition="{article.mainAddress.city} || {article.addresses.0.street -> vh:string.notEmpty()}">
        •
        <span>
            <f:if condition="{article.mainAddress.city}">
                <span>{article.mainAddress.city}</span>
            </f:if>
            <f:if condition="{article.addresses.0.street -> vh:string.notEmpty()}">
                <span class="hidden print:block">
                    {article.addresses.0.street}
                </span>
            </f:if>
        </span>
    </f:if>
</p>

<h3 class="tb-teaser__title">
    {article.name}
</h3>

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