{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<div class="tb-teaser__text">
    <p class="tb-teaser__topline">
        <strong>{article.categoriesSorted.0.title}</strong>
        <f:if condition="{article.mainAddress.city}">
            • <span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><span itemprop="addressLocality">{article.mainAddress.city}</span></span>
        </f:if>
    </p>

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

    <ul class="tb-teaser__characteristics">
        <f:for
            each="{vh:collection.slice(collection: article.flatAttributes.gastronomyStyle, offset: 0, length: 2)}"
            as="item">

            <li class="tb-teaser__characteristics-item" itemprop="servesCuisine">
                <vh:translate
                    id="property.attribute.gastronomyStyle.values.{item}"
                    package="Newland.Toubiz.Poi.Neos"
                    source="Views/Filter"
                >
                    {item}
                </vh:translate>
            </li>
        </f:for>
    </ul>

    <div class="tb-teaser__description">
        <f:if condition="{article.addresses.0.phoneNumber}">
            <p>
                {vh:translate(id: 'property.phoneNumber', package: 'Newland.Toubiz.Poi.Neos', source: 'Models/Address')}
                <span itemprop="telephone">{article.addresses.0.phoneNumber}</span>
            </p>
        </f:if>

        {article.abstract -> f:format.stripTags() -> f:format.htmlentitiesDecode()}
    </div>
</div>
