Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flexslider
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hebotek
flexslider
Commits
afca8580
Commit
afca8580
authored
Apr 23, 2012
by
Andy Hausmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added language labels, documentation and more.
parent
330ad6e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
11 deletions
+51
-11
setup.txt
Configuration/TypoScript/setup.txt
+25
-6
README.md
README.md
+20
-1
List.html
Resources/Private/Templates/FlexSlider/List.html
+6
-4
No files found.
Configuration/TypoScript/setup.txt
View file @
afca8580
...
...
@@ -19,24 +19,43 @@ plugin.tx_flexslider {
# String: Select the sliding direction, "horizontal" or "vertical"
slideDirection = horizontal
# Boolean: Animate slider automatically
slideshow =
false
slideshow =
0
# Integer: Set the speed of the slideshow cycling, in milliseconds
slideshowSpeed = 7000
# Integer: Set the speed of animations, in milliseconds
animationDuration = 600
# Boolean: Create navigation for previous/next navigation? (true/false)
directionNav = true
directionNav = 1
# Boolean: Allow slider navigating via keyboard left/right keys
keyboardNav = 1
# Boolean: Allow slider navigating via mousewheel
mousewheel = 0
# Boolean: Create pause/play dynamic element
pausePlay =
false
pausePlay =
0
# Boolean: Randomize slide order
randomize =
false
randomize =
0
# Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
animationLoop =
true
animationLoop =
1
# Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
pauseOnHover =
false
pauseOnHover =
0
}
}
/*
* Localization via TS
*/
plugin.tx_flexslider._LOCAL_LANG.default {
//prevText =
//nextText =
//pauseText =
//playText =
}
/*
* Styles injection via TS
*/
plugin.tx_flexslider._CSS_DEFAULT_STYLE (
)
\ No newline at end of file
README.md
View file @
afca8580
...
...
@@ -17,7 +17,7 @@ Install by Extension Manager as usual
Currently this Extension isn't available through TER. The Extension key 'flexslider' has already been reserved for this Extension. If it reaches a stable state, it will be uploaded immediately.
## Configur
e
## Configur
ation
*
Include
**static Extension Template**
*
Create
**Frontend plugin**
...
...
@@ -85,6 +85,25 @@ _This section isn't completed yet._
}
### Language Overrides
Use the following TS Setup Object Path to override localizations.
plugin.tx_flexslider._LOCAL_LANG.en {
languageLabel = value
}
### Further stuff
Take a look at
*
/Configuration/Typoscript/constants.txt
*
/Configuration/Typoscript/setup.txt
to get further infos about settings and language labels.
## How to
### … use the Plugin in a Library
...
...
Resources/Private/Templates/FlexSlider/List.html
View file @
afca8580
...
...
@@ -4,12 +4,12 @@
<f:section
name=
"main"
>
<f:flashMessages
/>
<fs:AddJQuery
altJQueryFile=
"{settings.lib.jQuery}"
/>
<fs:AddCssJs
file=
"{settings.lib.flexslider}"
moveToFooter=
"{settings.lib.moveToFooter}"
/>
<fs:AddCssJs
file=
"{settings.css}"
/>
<f:flashMessages
/>
<script
type=
"text/javascript"
>
<!
[
CDATA
[
$
(
window
).
load
(
function
()
{
...
...
@@ -21,11 +21,13 @@ $(window).load(function() {
slideshowSpeed
:
<
f
:
if
condition
=
"{settings.slideshowSpeed} > 0"
><
f
:
then
>
{
settings
.
slideSpeed
}
<
/f:then><f:else>7000</
f
:
else
><
/f:if>
,
animationDuration
:
<
f
:
if
condition
=
"{settings.animationDuration} > 0"
><
f
:
then
>
{
settings
.
animationDuration
}
<
/f:then><f:else>600</
f
:
else
><
/f:if>
,
directionNav
:
<
f
:
if
condition
=
"{settings.directionNav} > 0"
><
f
:
then
>
true
<
/f:then><f:else>false</
f
:
else
><
/f:if>
,
keyboardNav
:
<
f
:
if
condition
=
"{settings.keyboardNav} > 0"
><
f
:
then
>
true
<
/f:then><f:else>false</
f
:
else
><
/f:if>
,
mousewheel
:
<
f
:
if
condition
=
"{settings.mousewheel} > 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
pauseText
:
"<f:translate key="
pauseText
">vor</f:translate>"
,
playText
:
"<f:translate key="
playText
">vor</f:translate>"
,
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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment