Commit b96f5ca0 authored by Andy Hausmann's avatar Andy Hausmann

Added option to define whether the Image Caption should be shown or not.

parent e18e76a0
......@@ -15,6 +15,18 @@
<type>array</type>
<el>
<settings.showCaption>
<TCEforms>
<label>
LLL:EXT:flexslider/Resources/Private/Language/locallang_be.xml:flexforms_settings.showCaption
</label>
<config>
<type>check</type>
<default>1</default>
</config>
</TCEforms>
</settings.showCaption>
<settings.slideDirection>
<TCEforms>
<label>
......
......@@ -14,6 +14,8 @@ plugin.tx_flexslider {
flexslider = {$plugin.tx_flexslider.settings.lib.flexslider}
moveToFooter = {$plugin.tx_flexslider.settings.lib.moveToFooter}
}
# Boolean: Define whether the image caption should be shown or not
showCaption = 1
# String: Select your animation type, "fade" or "slide"
animation = fade
# String: Select the sliding direction, "horizontal" or "vertical"
......
......@@ -22,6 +22,7 @@
Cropping is allowed - whether it works, depends on your setup. Example: width = 960c
]]></label>
<label index="flexforms_settings.showCaption">Show Image Caption</label>
<label index="flexforms_settings.animation">Animation effect</label>
<label index="flexforms_settings.animation.fade">Fade</label>
<label index="flexforms_settings.animation.slide">Slide</label>
......@@ -60,6 +61,7 @@
Bild-Zuschnitt ist erlaubt - ob es funktioniert, hängt vom Setup ab. Beispiel: width = 960c
]]></label>
<label index="flexforms_settings.showCaption">Zeige Bildbeschreibung</label>
<label index="flexforms_settings.animation">Animationseffekt</label>
<label index="flexforms_settings.animation.fade">Faden</label>
<label index="flexforms_settings.animation.slide">Sliden</label>
......
......@@ -36,14 +36,16 @@
maxWidth="{settings.images.maxWidth}" maxHeight="{settings.images.maxHeight}" />
</f:else>
</f:if>
<p class="flex-caption">
<f:if condition="{slide.title}">
<strong>{slide.title}</strong>
</f:if>
<f:if condition="{slide.subtitle}">
<span>{slide.subtitle}</span>
</f:if>
</p>
<f:if condition="{settings.showCaption} > 0">
<p class="flex-caption">
<f:if condition="{slide.title}">
<strong>{slide.title}</strong>
</f:if>
<f:if condition="{slide.subtitle}">
<span>{slide.subtitle}</span>
</f:if>
</p>
</f:if>
</li>
</f:for>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment