{namespace neos=Neos\Neos\ViewHelpers}
{namespace events=Newland\Toubiz\Events\Neos\PublicViewHelpers}

<div class="c-live-item">
    <a class="c-live-item__title" href="#"
    data-target-enhancement
    data-target-enhancement-targets.0="#submenu-events-widget"
    data-target-enhancement-plugins.0.name="toggle-aria-expanded"
    data-target-enhancement-exclusive-group="subnavigation"
    aria-expanded="false">

        <h3>{f:translate(id: 'live.eventCalendar', source: 'Views/LiveWidgets', package: 'Newland.CityTheme')}</h3>
        <svg class="c-icon c-icon--live-tab"
            aria-hidden="true"
            focusable="false">

            <use xlink:href="#icon-angle-down"/>
        </svg>
    </a>
    <div class="c-live-item__content" id="submenu-events-widget">
        <events:widget.simplisticTeaserList node="{node}" limit="3" />

        <f:if condition="{liveEventsLink}">
            <div class="c-neos-text spacing-top--xs">
                <a href="{f:if(condition: '{neos:rendering.inBackend()}', then: '', else: liveEventsLink)}" {f:if(condition:'{liveEventsLinkNewTab}', then: 'target="_blank"')}>
                    {f:translate(id: 'live.eventCalendar', source: 'Views/LiveWidgets', package: 'Newland.CityTheme')}
                </a>
            </div>
        </f:if>
    </div>
</div>
