{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>{article.mainAddress.city}</span>
        </f:if>
    </p>

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

    <ul class="tb-teaser__characteristics">
        <f:for
            each="{article.flatAttributes.gastronomyStyle}"
            as="item"
            iteration="iterator"
        >
            <f:if condition="{iterator.index} < 2">
                <li class="tb-teaser__characteristics-item">
                    <vh:translate
                        id="property.attribute.gastronomyStyle.values.{item}"
                        package="Newland.Toubiz.Poi.Neos"
                        source="Models/Article"
                    >
                        {item}
                    </vh:translate>
                </li>
            </f:if>
        </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>{article.addresses.0.phoneNumber}</span>
            </p>
        </f:if>

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