{namespace media=Neos\Media\ViewHelpers}
{namespace neos=Neos\Neos\ViewHelpers}
{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<section class="c-infobox-grid {marginTop}">
    <f:if condition="{neos:rendering.inBackend()}">
        <f:then>
            {neos:contentElement.editable(property: 'title', tag: 'h2', class: 'c-infobox-grid__headline')}
        </f:then>
        <f:else>
            <f:if condition="{title -> vh:string.notEmpty()}">
                <h2 class="c-infobox-grid__headline">
                    {title}
                </h2>
            </f:if>
        </f:else>
    </f:if>

    {items -> f:format.raw()}
</section>
