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

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

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