Skip to content

Commit

Permalink
[BUGFIX] add extension name to data-video-url if it is not a youtube …
Browse files Browse the repository at this point in the history
…video (#473)
  • Loading branch information
mesosa authored and dmh committed Feb 7, 2019
1 parent 5ae78ef commit e5f2278
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Resources/Private/Templates/GridElements/Parallax.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
<f:if condition="{files.0.type} == 4">
<f:if condition="{files.1}">
<f:then>
<div class="parallax parallax-video clearfix {f:if(condition: data.pi_flexform.data.columns.lDEF.hideInMobile.vDEF, then: ' hidden-xs hidden-sm')}" data-video-url="{f:uri.typolink(parameter: 'file:{files.0.originalFile.uid}')}" style="background-image: url('{f:uri.image(image : files.1.originalFile)}'); height: {f:if(condition: data.pi_flexform.data.columns.lDEF.height.vDEF, then: data.pi_flexform.data.columns.lDEF.height.vDEF, else: 'auto')};" > </f:then>
<div class="parallax parallax-video clearfix {f:if(condition: data.pi_flexform.data.columns.lDEF.hideInMobile.vDEF, then: ' hidden-xs hidden-sm')}"
data-video-url="{f:if(condition: '{files.0.extension} !== youtube', then: '{files.0.extension}:')}{f:uri.typolink(parameter: 'file:{files.0.originalFile.uid}')}" style="background-image: url('{f:uri.image(image : files.1.originalFile)}'); height: {f:if(condition: data.pi_flexform.data.columns.lDEF.height.vDEF, then: data.pi_flexform.data.columns.lDEF.height.vDEF, else: 'auto')};">
</f:then>
<f:else>
<div class="parallax parallax-video clearfix {f:if(condition: data.pi_flexform.data.columns.lDEF.hideInMobile.vDEF, then: ' hidden-xs hidden-sm')}" data-video-url="{f:uri.typolink(parameter: 'file:{files.0.originalFile.uid}')}" style=" height: {f:if(condition: data.pi_flexform.data.columns.lDEF.height.vDEF, then: data.pi_flexform.data.columns.lDEF.height.vDEF, else: 'auto')};" >
<div class="parallax parallax-video clearfix {f:if(condition: data.pi_flexform.data.columns.lDEF.hideInMobile.vDEF, then: ' hidden-xs hidden-sm')}"
data-video-url="{f:if(condition: '{files.0.extension} !== youtube', then: '{files.0.extension}:')}{f:uri.typolink(parameter: 'file:{files.0.originalFile.uid}')}" style=" height: {f:if(condition: data.pi_flexform.data.columns.lDEF.height.vDEF, then: data.pi_flexform.data.columns.lDEF.height.vDEF, else: 'auto')};" >
</f:else>
</f:if>
</f:if>
Expand Down

0 comments on commit e5f2278

Please sign in to comment.