Skip to content

Commit

Permalink
[!!!][TASK] Remove t3kit_extension_tools reference (#154)
Browse files Browse the repository at this point in the history
* [TASK] template uploads use svg viewhelper from theme_t3kit

* [TASK] use fluid dynamic variable instead of t3kit_extension_tools arrayKeyValue viewhelper when adding class from slider image appearance in Slider template

* [TASK] correct package name

* [TASK] remove textmedia setupts
  • Loading branch information
pixelmatseriks authored and dmh committed Apr 19, 2017
1 parent f950aea commit 9929947
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Classes/Utility/HelperUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/**
* Class MainUtility
* @package T3kit\T3kitExtensionTools\Utility
* @package T3kit\themeT3kit\Utility
*/
class HelperUtility
{
Expand Down
7 changes: 0 additions & 7 deletions Configuration/TypoScript/Library/tt_content.textmedia.setupts

This file was deleted.

3 changes: 1 addition & 2 deletions Resources/Private/Templates/ContentElements/Slider.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{namespace xtools=T3kit\T3kitExtensionTools\ViewHelpers}
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<f:layout name="Default" />
Expand All @@ -9,7 +8,7 @@
<div class="img-slider swiper-container js__img-slider" data-autoplay="{f:if(condition: '{settings.autoplay} > 0', then: settings.autoplay)}">
<div class="swiper-wrapper img-slider__wrp">
<f:for each="{slides}" as="image">
<div class="swiper-slide img-slider__slide {xtools:get.arrayKeyValue(array: settings.appearance, key: image.referenceProperties.tx_themet3kit_slide_appearance)}">
<div class="swiper-slide img-slider__slide {settings.appearance.{image.referenceProperties.tx_themet3kit_slide_appearance}}">
<div data-background="{f:uri.image(src: '{image.uid}', treatIdAsReference:"1", width:'{f:if(condition: data.imagewidth, then: data.imagewidth, else: settings.defaultWidth)}')}" class="swiper-lazy img-slider__slide-bg">
<div class="swiper-lazy-preloader"></div>
<div class="img-slider__caption {f:if(condition: '{settings.captionAlign} == 0', then: '_left-align')}{f:if(condition: '{settings.captionAlign} == 1', then: '_center-align')}{f:if(condition: '{settings.captionAlign} == 2', then: '_right-align')}">
Expand Down
5 changes: 2 additions & 3 deletions Resources/Private/Templates/FluidStyledContent/Uploads.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{namespace t3kit=T3kit\T3kitExtensionTools\ViewHelpers\Render}
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<f:layout name="Default" />
Expand All @@ -8,7 +7,7 @@
<f:for each="{files}" as="file" iteration="fileIterator">
<li>
<f:if condition="{data.uploads_type} == 1">
<t3kit:svg source="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.svg', extensionName: 'theme_t3kit')}"></t3kit:svg>
<t3kit:render.svg source="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.svg', extensionName: 'theme_t3kit')}"></t3kit:render.svg>
</f:if>
<f:if condition="{data.uploads_type} == 2">
<f:if condition="{f:uri.image(src: 'file:{f:if(condition: file.originalFile, then: \'file:{file.originalFile.uid}\', else: \'file:{file.uid}\')}')} != '/'">
Expand All @@ -18,7 +17,7 @@
</a>
</f:then>
<f:else>
<t3kit:svg source="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.svg', extensionName: 'theme_t3kit')}"></t3kit:svg>
<t3kit:render.svg source="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.svg', extensionName: 'theme_t3kit')}"></t3kit:render.svg>
</f:else>
</f:if>
</f:if>
Expand Down

0 comments on commit 9929947

Please sign in to comment.