{namespace neos=Neos\Neos\ViewHelpers}

<div class="tb-swiper c-hero-slider">
    <figure
        {f:if(condition: '{neos:rendering.inBackend()}', then: '', else: 'data-toubiz-swiper')}
        data-toubiz-swiper-id="{node.identifier}"
        data-toubiz-swiper-slides-per-view="(int) 1"
        data-toubiz-swiper-loop="(bool) true"
        data-toubiz-swiper-limit-shake="(bool) false"
        class="tb-swiper__container">

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

    </figure>
    <f:if condition="!{neos:rendering.inBackend()}">
        <nav class="tb-swiper__navigation">
            <button class="tb-swiper__button tb-swiper__button--prev js-swiper-prev-{node.identifier}">
                <span>
                    <svg class="c-icon tb-swiper__button-icon"
                            aria-labelledby="tb-swiper-prev"
                            focusable="false">

                        <title id="tb-swiper-prev">Zurück</title>
                        <use xlink:href="#icon-angle-left"/>
                    </svg>
                </span>
            </button>
            <button class="tb-swiper__button tb-swiper__button--next js-swiper-next-{node.identifier}">
                <span>
                    <svg class="c-icon tb-swiper__button-icon"
                            aria-labelledby="tb-swiper-next"
                            focusable="false">

                        <title id="tb-swiper-next">Weiter</title>
                        <use xlink:href="#icon-angle-right"/>
                    </svg>
                </span>
            </button>
        </nav>
    </f:if>
</div>
