Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
||||
xmlns:bk2k="http://typo3.org/ns/BK2K/BootstrapPackage/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<f:if condition="{files}">
|
||||
|
||||
<f:variable name="imagecols">{data.imagecols as integer}</f:variable>
|
||||
<f:variable name="columnConfig">{settings.gallery.columns.{imagecols}}</f:variable>
|
||||
<bk2k:data.imageVariants as="variants" variants="{variants}" multiplier="{columnConfig.multiplier}"
|
||||
gutters="{columnConfig.gutters}" corrections="{columnConfig.corrections}" />
|
||||
|
||||
<div class="gallery-row">
|
||||
<f:for each="{files}" as="file" iteration="fileIteration">
|
||||
<div class="gallery-item {columnConfig.class}">
|
||||
<f:render partial="Media/Type" arguments="{file: file, data: data, settings: settings, variants: variants}" />
|
||||
</div>
|
||||
</f:for>
|
||||
</div>
|
||||
|
||||
</f:if>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
||||
xmlns:bk2k="http://typo3.org/ns/BK2K/BootstrapPackage/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<figure class="image">
|
||||
<f:if condition="{file.properties.link}">
|
||||
<f:then>
|
||||
<f:link.typolink parameter="{file.properties.link}" title="{file.properties.title}">
|
||||
<f:render partial="Media/Rendering/Image"
|
||||
arguments="{file: file, data: data, settings: settings, variants: variants}" />
|
||||
<f:if condition="{file.properties.title}">
|
||||
<h4><f:format.nl2br>{file.properties.title}</f:format.nl2br></h4>
|
||||
</f:if>
|
||||
</f:link.typolink>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:if condition="{data.image_zoom}">
|
||||
<f:then>
|
||||
<bk2k:link.lightbox image="{file}" maxHeight="{settings.lightbox.image.maxHeight}"
|
||||
maxWidth="{settings.lightbox.image.maxWidth}" class="{settings.lightbox.cssClass}"
|
||||
rel="{settings.lightbox.prefix}-{data.uid}" title="{file.properties.title}"
|
||||
caption="{file.properties.description}">
|
||||
<f:render partial="Media/Rendering/Image"
|
||||
arguments="{file: file, data: data, settings: settings, variants: variants}" />
|
||||
</bk2k:link.lightbox>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:render partial="Media/Rendering/Image"
|
||||
arguments="{file: file, data: data, settings: settings, variants: variants}" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:if condition="{file.properties.description} && !{data.image_zoom}">
|
||||
<figcaption class="caption">
|
||||
<f:format.nl2br>{file.properties.description}</f:format.nl2br>
|
||||
</figcaption>
|
||||
</f:if>
|
||||
</figure>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user