{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace events=Newland\Toubiz\Events\Neos\ViewHelpers}

<f:if condition="{article.marketingPrice.value}">
    <p class="tb-teaser__marketing-price mt-1">
        <f:if condition="{article.marketingPrice.prefix}">
            <span class="tb-teaser__marketing-price__prefix">
                {article.marketingPrice.prefix}
            </span>
        </f:if>
        <span class="tb-teaser__marketing-price__value">
            {events:format.priceFormat(price: article.marketingPrice.value)}
            <f:if condition="{article.marketingPrice.currency} == 'chf'">
                <f:then>
                    CHF
                </f:then>
                <f:else>
                    €
                </f:else>
            </f:if>
        </span>
        <f:if condition="{article.marketingPrice.comment}">
            / {article.marketingPrice.comment}
        </f:if>
    </p>
</f:if>
