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 @@ ...@@ -15,6 +15,18 @@
<type>array</type> <type>array</type>
<el> <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> <settings.slideDirection>
<TCEforms> <TCEforms>
<label> <label>
......
...@@ -14,6 +14,8 @@ plugin.tx_flexslider { ...@@ -14,6 +14,8 @@ plugin.tx_flexslider {
flexslider = {$plugin.tx_flexslider.settings.lib.flexslider} flexslider = {$plugin.tx_flexslider.settings.lib.flexslider}
moveToFooter = {$plugin.tx_flexslider.settings.lib.moveToFooter} 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" # String: Select your animation type, "fade" or "slide"
animation = fade animation = fade
# String: Select the sliding direction, "horizontal" or "vertical" # String: Select the sliding direction, "horizontal" or "vertical"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
Cropping is allowed - whether it works, depends on your setup. Example: width = 960c Cropping is allowed - whether it works, depends on your setup. Example: width = 960c
]]></label> ]]></label>
<label index="flexforms_settings.showCaption">Show Image Caption</label>
<label index="flexforms_settings.animation">Animation effect</label> <label index="flexforms_settings.animation">Animation effect</label>
<label index="flexforms_settings.animation.fade">Fade</label> <label index="flexforms_settings.animation.fade">Fade</label>
<label index="flexforms_settings.animation.slide">Slide</label> <label index="flexforms_settings.animation.slide">Slide</label>
...@@ -60,6 +61,7 @@ ...@@ -60,6 +61,7 @@
Bild-Zuschnitt ist erlaubt - ob es funktioniert, hängt vom Setup ab. Beispiel: width = 960c Bild-Zuschnitt ist erlaubt - ob es funktioniert, hängt vom Setup ab. Beispiel: width = 960c
]]></label> ]]></label>
<label index="flexforms_settings.showCaption">Zeige Bildbeschreibung</label>
<label index="flexforms_settings.animation">Animationseffekt</label> <label index="flexforms_settings.animation">Animationseffekt</label>
<label index="flexforms_settings.animation.fade">Faden</label> <label index="flexforms_settings.animation.fade">Faden</label>
<label index="flexforms_settings.animation.slide">Sliden</label> <label index="flexforms_settings.animation.slide">Sliden</label>
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
maxWidth="{settings.images.maxWidth}" maxHeight="{settings.images.maxHeight}" /> maxWidth="{settings.images.maxWidth}" maxHeight="{settings.images.maxHeight}" />
</f:else> </f:else>
</f:if> </f:if>
<f:if condition="{settings.showCaption} > 0">
<p class="flex-caption"> <p class="flex-caption">
<f:if condition="{slide.title}"> <f:if condition="{slide.title}">
<strong>{slide.title}</strong> <strong>{slide.title}</strong>
...@@ -44,6 +45,7 @@ ...@@ -44,6 +45,7 @@
<span>{slide.subtitle}</span> <span>{slide.subtitle}</span>
</f:if> </f:if>
</p> </p>
</f:if>
</li> </li>
</f:for> </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