-
-
Notifications
You must be signed in to change notification settings - Fork 200
/
Image.html
36 lines (36 loc) · 1.79 KB
/
Image.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<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:render partial="Media/Rendering/Image" arguments="{file: file, data: data, settings: settings, variants: variants}" />
<f:if condition="{file.properties.description}">
<figcaption class="caption"><f:format.nl2br>{file.properties.description}</f:format.nl2br></figcaption>
</f:if>
<f:if condition="{file.properties.link}">
<f:then>
<f:link.typolink parameter="{file.properties.link}" />
</f:then>
<f:else>
<f:if condition="{data.image_zoom}">
<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}"
lightbox-title="{file.properties.title}"
lightbox-alt="{file.properties.alternative}"
lightbox-caption="{file.properties.description}"
>
<f:if condition="{file.properties.title}">
<f:then>
{f:translate(key: 'lightbox.link.title.prefixed', extensionName: 'bootstrap_package', arguments: '{0: file.properties.title}')}
</f:then>
<f:else>
{f:translate(key: 'lightbox.link.title', extensionName: 'bootstrap_package')}
</f:else>
</f:if>
</bk2k:link.lightbox>
</f:if>
</f:else>
</f:if>
</figure>
</html>