{namespace neos=Neos\Neos\ViewHelpers}

<f:if condition="{parts.notificationsCount} > 0">
    <f:then>
        <f:if condition="{node.nodeType.name} == 'Newland.CityTheme:FrontPage'">
            <f:then>
                <div class="c-notification-container c-notification-container--home">
                    {parts.notifications -> f:format.raw()}
                </div>
            </f:then>
            <f:else>
                <div class="c-notification-container">
                    {parts.notifications -> f:format.raw()}
                </div>
            </f:else>
        </f:if>
    </f:then>
    <f:else>
        <f:if condition="{neos:rendering.inBackend()}">
            <div class="c-notification c-notification--placeholder">
                {parts.notifications -> f:format.raw()}
            </div>
        </f:if>
    </f:else>
</f:if>
