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

<poi:link.article
    article="{article}"
    class="tb-teaser"
    additionalAttributes="{
        itemscope: 'itemscope',
        itemtype: 'http://schema.org/City',
        itemid: 'urn:uuid:{article.persistenceObjectIdentifier}'
    }">

    <vh:render section="content" arguments="{_all}" />
</poi:link.article>

<f:section name="content">
    <span itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
        <vh:render partial="PointOfInterests/Teaser/Common/Image" arguments="{_all}"/>
        <div class="tb-teaser__text">
            <f:if condition="{article.flatAttributes.cureLabel}">
                <span itemprop="additionalProperty" itemscope itemtype="http://schema.org/PropertyValue">
                    <meta itemprop="name" content="topline">
                    <p class="tb-teaser__topline" itemprop="value">{article.flatAttributes.cureLabel}</p>
                </span>
            </f:if>
            <span itemprop="additionalProperty" itemscope itemtype="http://schema.org/PropertyValue">
                <meta itemprop="name" content="headline">
                <h3 class="tb-teaser__title" itemprop="value">
                    {article.name}
                </h3>
                <vh:format.crop maxCharacters="150" append=" …" input="{article.abstract}" />
            </span>
        </div>
    </span>
</f:section>
