Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

- Added the third option 'thumbnails' to the controlNav option #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Classes/Controller/FlexsliderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ public function initializeAction() {
if (isset($this->settings['ff']['video']) && $this->settings['ff']['video'] != 'ts')
$this->settings['video'] = $this->settings['ff']['video'];
if (isset($this->settings['ff']['controlNav']) && $this->settings['ff']['controlNav'] != 'ts')
$this->settings['controlNav'] = $this->settings['ff']['controlNav'];
{
if ( $this->settings['ff']['controlNav'] == 'thumbnails')
$this->settings['controlNav'] = "'thumbnails'";
else
$this->settings['controlNav'] = $this->settings['ff']['controlNav'];
}


if (isset($this->settings['ff']['directionNav']) && $this->settings['ff']['directionNav'] != 'ts')
$this->settings['directionNav'] = $this->settings['ff']['directionNav'];
if (isset($this->settings['ff']['keyboard']) && $this->settings['ff']['keyboard'] != 'ts')
Expand Down
4 changes: 4 additions & 0 deletions Configuration/FlexForm/Flexslider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@
<numIndex index="0">LLL:EXT:ws_flexslider/Resources/Private/Language/locallang.xml:ff.no</numIndex>
<numIndex index="1">false</numIndex>
</numIndex>
<numIndex index="4" type="array">
<numIndex index="0">LLL:EXT:ws_flexslider/Resources/Private/Language/locallang.xml:ff.thumbnails</numIndex>
<numIndex index="1">thumbnails</numIndex>
</numIndex>
</items>
<maxitems>1</maxitems>
<size>1</size>
Expand Down
5 changes: 3 additions & 2 deletions Resources/Private/Language/locallang.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<!-- Primary Controls -->
<label index="ff.controlNav">Control navigation on</label>
<label index="ff.directionNav">Direction navigation on</label>
<label index="ff.thumbnails">Thumbnails</label>

<!-- Secondary Navigation -->
<label index="ff.secondarynavigation">Secondary navigation</label>
Expand Down Expand Up @@ -84,7 +85,7 @@
<label index="playText">Play</label>
<label index="prevText">Previous</label>
<label index="nextText">Next</label>

</languageKey>
<languageKey index="de" type="array">

Expand Down Expand Up @@ -169,4 +170,4 @@

</languageKey>
</data>
</T3locallang>
</T3locallang>
6 changes: 3 additions & 3 deletions Resources/Private/Partials/Entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

<f:section name="Entry">

<li>
<li data-thumb="{f:uri.image(src:item.image.uid, treatIdAsReference:1, width: settings.maxwidth, height: settings.maxheight)}" data-caption="{item.title}">
<div class="slidercontent wsflexslider-{item.styleclass}">
<f:if condition="{item.image}">
<f:image src="{item.image.uid}" treatIdAsReference="1" title="{item.image.originalResource.title}" alt="{item.image.originalResource.alternative}" width="{settings.maxwidth}" height="{settings.maxheight}" />
<f:image src="{item.image.uid}" treatIdAsReference="1" title="{item.image.originalResource.title}" alt="{item.image.originalResource.alternative}" width="{settings.maxwidth}" height="{settings.maxheight}" />

</f:if>
<div class="caption-wrapper caption-align-{item.textposition}">
Expand All @@ -30,4 +30,4 @@

</f:section>

</div>
</div>