<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
      data-namespace-typo3-fluid="true">

<div style="padding: 10px; border: 1px solid #ccc;">
    <strong>Banner</strong>
    <f:if condition="{data.banner_variant}">
        <br />Variant: <f:if condition="{data.banner_variant} == 'with_subheadline'">With subheadline</f:if><f:if condition="{data.banner_variant} != 'with_subheadline'">Simple</f:if>
    </f:if>
    <f:if condition="{data.banner_headline}">
        <br />Headline: {data.banner_headline -> f:format.crop(maxCharacters: 50)}
    </f:if>
    <f:if condition="{data.banner_subheadline}">
        <br />Subheadline: {data.banner_subheadline -> f:format.crop(maxCharacters: 40)}
    </f:if>
    <f:if condition="{data.banner_image.0}">
        <br />Background image: set
    </f:if>
    <f:if condition="{data.banner_link}">
        <br />Button link: set
    </f:if>
</div>

</html>
