<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:ce="http://typo3.org/ns/TYPO3/CMS/FluidStyledContent/ViewHelpers" data-namespace-typo3-fluid="true">

<f:if condition="{data.frame_class} == '38'">
    <f:then>
        <f:render partial="Media/Type/Carousel" arguments="{gallery: gallery, dimensions: column.dimensions, data: data, settings: settings}"/>
    </f:then>
    <f:else>
        <div class="ce-gallery{f:if(condition: data.imageborder, then: ' ce-border')}" data-ce-columns="{gallery.count.columns}" data-ce-images="{gallery.count.files}">
            <f:for each="{gallery.rows}" as="row">
                <f:for each="{row.columns}" as="column">
                    <f:if condition="{column.media}">
                        <div class="ce-gallery--item">
                            <f:render partial="Media/Type" arguments="{file: column.media, dimensions: column.dimensions, data: data, settings: settings}"/>
                        </div>
                    </f:if>
                </f:for>
            </f:for>
        </div>
    </f:else>
</f:if>
</html>
