{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>

    <f:if condition="{article.starClassifications} || {article.averageRating} > 0">
        <f:then>
            <vh:render
                partial="PointOfInterests/Attribute"
                arguments="{
                    type: 'starRating',
                    starClassifications: article.starClassifications,
                    averageRating: article.averageRating,
                    numberOfRatings: article.numberOfRatings
                }" />

        </f:then>
    </f:if>
</div>
