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

<poi:link.article
    article="{article}"
    class="tb-teaser tb-teaser--{teaserStyle}"
>
    <common:slot.render slot="aboveTeaser" context="{ article: article }" />
    <vh:render section="content" arguments="{_all}" />
    <common:slot.render slot="belowTeaser" context="{ article: article }" />
</poi:link.article>

<f:section name="content">
    <vh:render partial="PointOfInterests/Teaser/Common/Image" arguments="{_all}"/>
    <div class="tb-teaser__text">
        <vh:render partial="PointOfInterests/Teaser/Common/Topline" arguments="{_all}"/>
        <f:if condition="{article.openingTimes}">
            <vh:render
                partial="PointOfInterests/OpeningTimes"
                arguments="{article: article, displayTable: 0}"/>

        </f:if>

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

        <vh:render partial="PointOfInterests/Teaser/Common/MarketingPrice" arguments="{_all}" />

        <vh:render partial="PointOfInterests/Teaser/Common/Awards" arguments="{_all}" />
    </div>
</f:section>
