Commit fe808fc4 authored by Andy Hausmann's avatar Andy Hausmann

Added Randomize option.

parent 19dd0c90
...@@ -102,6 +102,18 @@ ...@@ -102,6 +102,18 @@
</TCEforms> </TCEforms>
</settings.directionNav> </settings.directionNav>
<settings.randomize>
<TCEforms>
<label>
LLL:EXT:flexslider/Resources/Private/Language/locallang_be.xml:flexforms_settings.randomize
</label>
<config>
<type>check</type>
<default>0</default>
</config>
</TCEforms>
</settings.randomize>
<settings.pauseOnHover> <settings.pauseOnHover>
<TCEforms> <TCEforms>
<label> <label>
......
...@@ -13,15 +13,17 @@ plugin.tx_flexslider { ...@@ -13,15 +13,17 @@ plugin.tx_flexslider {
# String: Select the sliding direction, "horizontal" or "vertical" # String: Select the sliding direction, "horizontal" or "vertical"
slideDirection = horizontal slideDirection = horizontal
# Boolean: Animate slider automatically # Boolean: Animate slider automatically
slideshow = 0 slideshow = false
# Integer: Set the speed of the slideshow cycling, in milliseconds # Integer: Set the speed of the slideshow cycling, in milliseconds
slideshowSpeed = 7000 slideshowSpeed = 7000
# Integer: Set the speed of animations, in milliseconds # Integer: Set the speed of animations, in milliseconds
animationDuration = 600 animationDuration = 600
# Boolean: Create navigation for previous/next navigation? (true/false) # Boolean: Create navigation for previous/next navigation? (true/false)
directionNav = 1 directionNav = true
# Boolean: Randomize slide order
randomize = false
# Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering # Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
pauseOnHover = 0 pauseOnHover = false
} }
} }
......
...@@ -65,6 +65,8 @@ _This section isn't completed yet._ ...@@ -65,6 +65,8 @@ _This section isn't completed yet._
animationDuration = 600 animationDuration = 600
# Boolean: Create navigation for previous/next navigation? (true/false) # Boolean: Create navigation for previous/next navigation? (true/false)
directionNav = 1 directionNav = 1
# Boolean: Randomize slide order
randomize = false
# Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering # Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
pauseOnHover = 0 pauseOnHover = 0
} }
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<label index="flexforms_settings.slideshowSpeed">Slideshow Speed (in ms), defaults to 7000</label> <label index="flexforms_settings.slideshowSpeed">Slideshow Speed (in ms), defaults to 7000</label>
<label index="flexforms_settings.animationDuration">Animation duration (in ms), defaults to 600</label> <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.directionNav">Show direction navigation</label>
<label index="flexforms_settings.randomize">Randomize slide order</label>
<label index="flexforms_settings.pauseOnHover">Pause the slideshow when hovering</label> <label index="flexforms_settings.pauseOnHover">Pause the slideshow when hovering</label>
</languageKey> </languageKey>
<languageKey index="de" type="array"> <languageKey index="de" type="array">
...@@ -37,6 +38,7 @@ ...@@ -37,6 +38,7 @@
<label index="flexforms_settings.slideshowSpeed">Slideshow-Geschwindigkeit (in ms), Standard: 7000</label> <label index="flexforms_settings.slideshowSpeed">Slideshow-Geschwindigkeit (in ms), Standard: 7000</label>
<label index="flexforms_settings.animationDuration">Animationsdauer (in ms), Standard: 600</label> <label index="flexforms_settings.animationDuration">Animationsdauer (in ms), Standard: 600</label>
<label index="flexforms_settings.directionNav">Zeige Richtungs-Navigation</label> <label index="flexforms_settings.directionNav">Zeige Richtungs-Navigation</label>
<label index="flexforms_settings.randomize">Sortierung nach Zufall</label>
<label index="flexforms_settings.pauseOnHover">Slideshow pasusiren bei Mouseover</label> <label index="flexforms_settings.pauseOnHover">Slideshow pasusiren bei Mouseover</label>
</languageKey> </languageKey>
</data> </data>
......
...@@ -17,6 +17,7 @@ $(window).load(function() { ...@@ -17,6 +17,7 @@ $(window).load(function() {
directionNav: <f:if condition="{settings.directionNav} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>, 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>", prevText: "<f:translate key="prevText">vor</f:translate>",
nextText: "<f:translate key="nextText">weiter</f:translate>", nextText: "<f:translate key="nextText">weiter</f:translate>",
randomize: <f:if condition="{settings.randomize} > 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> pauseOnHover: <f:if condition="{settings.pauseOnHover} > 0"><f:then>true</f:then><f:else>false</f:else></f:if>
<![CDATA[ <![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