{namespace neos=Neos\Neos\ViewHelpers}

<f:if condition="{node.parent.parent.nodetype} == 'Newland.CityTheme:Container'">
    <section class="o-container o-container--sm">
</f:if>

<div class="c-button__wrapper {marginTop} {alignment}">
    <f:if condition="{showLinkPopup}">
        <f:then>
            <div
                class="c-button {buttonType} {buttonColor}"
                data-target-enhancement
                data-target-enhancement-targets.0="[data-link-popup-{node.identifier}]"
                data-target-enhancement-plugins.0.name="toggle-aria-expanded"
                data-target-enhancement-exclusive-group="link-popup">
                {linkTitle}
            </div>
            <f:render partial="LinkPopUp" arguments="{_all}" />
        </f:then>
        <f:else>
            <a class="c-button {buttonType} {buttonColor}" href="{link}" title="{linkTitle}" {f:if(condition: openLinkInNewWindow, then: 'target="_blank"')}>
                {linkTitle}
            </a>
        </f:else>
    </f:if>
</div>


<f:if condition="{node.parent.parent.nodetype} == 'Newland.CityTheme:Container'">
    </section>
</f:if>
