{namespace neos=Neos\Neos\ViewHelpers}
{namespace nvh=Newland\NeosViewHelpers\ViewHelpers}
{namespace poi=Newland\Toubiz\Poi\Neos\ViewHelpers}

<f:layout name="Default" />

<f:section name="Content">
    <f:if condition="{article.isAttraction}">
        <f:then>
            <article
                    itemscope
                    itemtype="http://schema.org/TouristAttraction"
                    itemid="urn:uid:{article.persistenceObjectIdentifier}">

                <f:render section="InnerContent" arguments="{_all}" />
            </article>
        </f:then>

        <f:else if="{article.isGastronomy}">
            <article
                    itemscope
                    itemtype="http://schema.org/Restaurant"
                    itemid="urn:uid:{article.persistenceObjectIdentifier}">

                <f:render section="InnerContent" arguments="{_all}" />
            </article>
        </f:else>

        <f:else if="{article.isTour}">
            <article
                    itemscope
                    itemtype="http://schema.org/TravelAction"
                    itemid="urn:uid:{article.persistenceObjectIdentifier}">

                <f:render section="InnerContent" arguments="{_all}" />
            </article>
        </f:else>

        <f:else>
            <article
                    itemscope
                    itemtype="http://schema.org/Place"
                    itemid="urn:uid:{article.persistenceObjectIdentifier}">

                <f:render section="InnerContent" arguments="{_all}" />
            </article>
        </f:else>
    </f:if>
</f:section>

<f:section name="InnerContent">
    <meta itemprop="mainEntityOfPage" content="{url}" />
    <header class="mb-8">
        <f:render partial="PointOfInterests/Show/Header" arguments="{_all}" />
    </header>

    <f:render partial="PointOfInterests/Show/Gallery" arguments="{_all}" />

    <div class="mb-10">
        <div class="tb-layout-detail">
            <section class="tb-layout-detail__main">
                <f:render partial="PointOfInterests/Show/Main" arguments="{_all}" />
            </section>

            <section class="tb-layout-detail__sidebar-last">
                <f:render partial="PointOfInterests/Show/Aside" arguments="{_all}" />
            </section>
        </div>
    </div>

    <div>
        <f:render partial="PointOfInterests/Show/Appendix" arguments="{_all}" />
    </div>
</f:section>
