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

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