94 lines
3.1 KiB
HTML
94 lines
3.1 KiB
HTML
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
|
<f:layout name="Preview"/>
|
|
<f:section name="Content">
|
|
|
|
<f:asset.css identifier="vitec-backend-preview" href="EXT:vitec/Resources/Public/Css/backend-preview.css"/>
|
|
|
|
<div class="vitec-preview">
|
|
|
|
<f:comment>Thumbnail: video poster falls back to the image</f:comment>
|
|
<f:if condition="{data.featured_image.0}">
|
|
<f:then>
|
|
<f:image image="{data.featured_image.0}"
|
|
class="vitec-preview__thumb"
|
|
width="120c"
|
|
height="80c"
|
|
alt="Featured Content Preview"/>
|
|
</f:then>
|
|
<f:else>
|
|
<div class="vitec-preview__thumb-placeholder">No Image</div>
|
|
</f:else>
|
|
</f:if>
|
|
|
|
<div class="vitec-preview__body">
|
|
<div class="vitec-preview__label">VITEC · Featured Content</div>
|
|
|
|
<h3 class="vitec-preview__headline">
|
|
<f:if condition="{data.header}">
|
|
<f:then>{data.header}</f:then>
|
|
<f:else>
|
|
<em style="color:#c00;">⚠ Headline missing</em>
|
|
</f:else>
|
|
</f:if>
|
|
</h3>
|
|
|
|
<f:if condition="{data.subheader}">
|
|
<div class="vitec-preview__subline">{data.subheader}</div>
|
|
</f:if>
|
|
|
|
<f:if condition="{data.bodytext}">
|
|
<div class="vitec-preview__body-text">
|
|
<f:format.stripTags>{data.bodytext}</f:format.stripTags>
|
|
</div>
|
|
</f:if>
|
|
|
|
<f:if condition="{data.cta_label}">
|
|
<div class="vitec-preview__ctas">
|
|
<span class="vitec-preview__cta-btn">{data.cta_label} →</span>
|
|
</div>
|
|
</f:if>
|
|
</div>
|
|
|
|
<div class="vitec-preview__settings">
|
|
|
|
<span class="vitec-badge">
|
|
<f:switch expression="{data.featured_layout}">
|
|
<f:case value="text_left">◧ Text left</f:case>
|
|
<f:case value="text_right">◨ Text right</f:case>
|
|
<f:defaultCase>{data.featured_layout}</f:defaultCase>
|
|
</f:switch>
|
|
</span>
|
|
|
|
<f:if condition="{data.featured_video.0}">
|
|
<span class="vitec-badge">▶ Video</span>
|
|
</f:if>
|
|
|
|
<f:comment>
|
|
The preview cannot paint the styles, so the chosen one is named.
|
|
Same reasoning as in the hero section.
|
|
</f:comment>
|
|
<f:if condition="{data.cta_label}">
|
|
<span class="vitec-badge">Button: {data.button_style}</span>
|
|
</f:if>
|
|
|
|
<f:if condition="{data.overlay_color}">
|
|
<span class="vitec-badge">
|
|
Overlay: {data.overlay_color} · {data.overlay_opacity} · from {data.overlay_gradient_start}%
|
|
</span>
|
|
</f:if>
|
|
|
|
<f:if condition="{data.cta_label} && {data.cta.url} == ''">
|
|
<span class="vitec-badge vitec-badge--warning">⚠ Button text without link</span>
|
|
</f:if>
|
|
|
|
<f:if condition="{data.featured_image.0} == '' && {data.featured_video.0} == ''">
|
|
<span class="vitec-badge vitec-badge--warning">⚠ No image or video</span>
|
|
</f:if>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</f:section>
|
|
</html>
|