Commit 330ad6e2 authored by Andy Hausmann's avatar Andy Hausmann

Added options and localizations.

parent a53926c6
......@@ -73,7 +73,7 @@
</label>
<config>
<type>input</type>
<size>30</size>
<size>5</size>
</config>
</TCEforms>
</settings.slideshowSpeed>
......@@ -85,7 +85,7 @@
</label>
<config>
<type>input</type>
<size>30</size>
<size>5</size>
</config>
</TCEforms>
</settings.animationDuration>
......@@ -114,6 +114,18 @@
</TCEforms>
</settings.randomize>
<settings.animationLoop>
<TCEforms>
<label>
LLL:EXT:flexslider/Resources/Private/Language/locallang_be.xml:flexforms_settings.animationLoop
</label>
<config>
<type>check</type>
<default>1</default>
</config>
</TCEforms>
</settings.animationLoop>
<settings.pauseOnHover>
<TCEforms>
<label>
......
......@@ -26,8 +26,12 @@ plugin.tx_flexslider {
animationDuration = 600
# Boolean: Create navigation for previous/next navigation? (true/false)
directionNav = true
# Boolean: Create pause/play dynamic element
pausePlay = false
# Boolean: Randomize slide order
randomize = false
# Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
animationLoop = true
# Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
pauseOnHover = false
}
......
......@@ -15,10 +15,14 @@
<label index="tx_flexslider_domain_model_flexslider.caption">caption</label>
<label index="prevText">Previous</label>
<label index="nextText">Next</label>
<label index="pauseText">Pause</label>
<label index="playText">Play</label>
</languageKey>
<languageKey index="de" type="array">
<label index="prevText">Zurück</label>
<label index="nextText">Weiter</label>
<label index="pauseText">Pause</label>
<label index="playText">Abspielen</label>
</languageKey>
</data>
</T3locallang>
\ No newline at end of file
......@@ -21,6 +21,7 @@
<label index="flexforms_settings.animationDuration">Animation duration (in ms), defaults to 600</label>
<label index="flexforms_settings.directionNav">Show direction navigation</label>
<label index="flexforms_settings.randomize">Randomize slide order</label>
<label index="flexforms_settings.animationLoop">Loop animation</label>
<label index="flexforms_settings.pauseOnHover">Pause the slideshow when hovering</label>
</languageKey>
<languageKey index="de" type="array">
......@@ -39,6 +40,7 @@
<label index="flexforms_settings.animationDuration">Animationsdauer (in ms), Standard: 600</label>
<label index="flexforms_settings.directionNav">Zeige Richtungs-Navigation</label>
<label index="flexforms_settings.randomize">Sortierung nach Zufall</label>
<label index="flexforms_settings.animationLoop">Slideshow wiederholen</label>
<label index="flexforms_settings.pauseOnHover">Slideshow pasusiren bei Mouseover</label>
</languageKey>
</data>
......
......@@ -23,7 +23,11 @@ $(window).load(function() {
directionNav: <f:if condition="{settings.directionNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
prevText: "<f:translate key="prevText">vor</f:translate>",
nextText: "<f:translate key="nextText">weiter</f:translate>",
pausePlay: <f:if condition="{settings.pausePlay} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
pauseText: "<f:translate key="pauseText">vor</f:translate>",             //String: Set the text for the "pause" pausePlay item
playText: "<f:translate key="playText">vor</f:translate>",               //String: Set the text for the "play" pausePlay item
randomize: <f:if condition="{settings.randomize} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
animationLoop: <f:if condition="{settings.animationLoop} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>,
pauseOnHover: <f:if condition="{settings.pauseOnHover} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>
<![CDATA[
});
......
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