Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- File to overwrite the Video.html - core extension fluid_styled_content -->
- <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
- <figure class="video">
- <f:if condition="{file.originalFile.properties.extension} == 'youtube'">
- <f:then>
- <a data-fancybox="gallery" class="gallery--youtube" href="https://www.youtube.com/embed/{file.contents}" data-width="640" data-height="360" data-caption="{file.description}">
- <f:image image="{file}" height="200" width="400" />
- </a>
- <f:if condition="{file.description}">
- <figcaption class="video-caption">
- <h1>{file.description}</h1>
- </figcaption>
- </f:if>
- </f:then>
- <f:else>
- <div class="video-embed">
- <f:render partial="Media/Rendering/Video" arguments="{file: file, dimensions: dimensions, settings: settings}" />
- </div>
- <f:if condition="{file.description}">
- <figcaption class="video-caption">
- {file.description}
- </figcaption>
- </f:if>
- </f:else>
- </f:if>
- </figure>
- </html>
Add Comment
Please, Sign In to add comment