DEV CommiDEV Committ
This commit is contained in:
1 parent
4541c58fe7
commit
c6759186cb
145 files changed
+2742
-579
No files matched your search
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
||||
<rect x="1.5" y="3" width="13" height="10" rx="1.4" fill="none" stroke="#000" stroke-width="1.2"/>
|
||||
<polygon points="6.5,5.8 11,8 6.5,10.2" fill="#000" opacity="0.7"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 262 B |
@@ -0,0 +1,46 @@
|
||||
name: vitec/video
|
||||
group: vitec_custom_components
|
||||
prefixFields: true
|
||||
prefixType: vendor
|
||||
|
||||
fields:
|
||||
- identifier: header
|
||||
useExistingField: true
|
||||
required: true
|
||||
|
||||
- identifier: header_layout
|
||||
useExistingField: true
|
||||
|
||||
- identifier: header_position
|
||||
useExistingField: true
|
||||
|
||||
- identifier: header_link
|
||||
useExistingField: true
|
||||
|
||||
- identifier: subheader
|
||||
useExistingField: true
|
||||
|
||||
- identifier: youtube_code
|
||||
type: Text
|
||||
max: 50
|
||||
description: 'YouTube video ID (e.g. "dQw4w9WgXcQ") OR full URL. Leave empty to use Custom Video instead.'
|
||||
|
||||
- identifier: poster
|
||||
type: File
|
||||
minitems: 0
|
||||
maxitems: 1
|
||||
allowed: common-image-types
|
||||
|
||||
- identifier: custom_video
|
||||
type: File
|
||||
minitems: 0
|
||||
maxitems: 1
|
||||
allowed: mp4,webm,ogv,mov,m4v
|
||||
|
||||
- identifier: hide_controls
|
||||
type: Checkbox
|
||||
default: 0
|
||||
|
||||
- identifier: debug
|
||||
type: Checkbox
|
||||
default: 0
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xliff version="1.2">
|
||||
<file source-language="en" datatype="plaintext" original="messages">
|
||||
<body>
|
||||
<trans-unit id="title">
|
||||
<source>VITEC · Video</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="description">
|
||||
<source>Embedded video — YouTube code or uploaded video file, with optional poster image.</source>
|
||||
</trans-unit>
|
||||
|
||||
<trans-unit id="youtube_code.label">
|
||||
<source>YouTube Code</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="youtube_code.description">
|
||||
<source>YouTube video ID (e.g. "dQw4w9WgXcQ") OR full URL. Leave empty to use Custom Video instead.</source>
|
||||
</trans-unit>
|
||||
|
||||
<trans-unit id="poster.label">
|
||||
<source>Poster Image</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="poster.description">
|
||||
<source>Thumbnail / poster shown before the video plays.</source>
|
||||
</trans-unit>
|
||||
|
||||
<trans-unit id="custom_video.label">
|
||||
<source>Custom Video</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="custom_video.description">
|
||||
<source>Upload an MP4/WebM/OGV/MOV/M4V file, or pick one from the file list.</source>
|
||||
</trans-unit>
|
||||
|
||||
<trans-unit id="hide_controls.label">
|
||||
<source>Hide Player Controls</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="hide_controls.description">
|
||||
<source>When enabled, the video player UI (play/pause, scrub bar, volume) is hidden. Useful for autoplaying background loops.</source>
|
||||
</trans-unit>
|
||||
|
||||
<trans-unit id="debug.label">
|
||||
<source>Allow Debug Output</source>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
<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: poster image, then default placeholder</f:comment>
|
||||
<f:if condition="{data.poster.0}">
|
||||
<f:then>
|
||||
<f:image image="{data.poster.0}"
|
||||
class="vitec-preview__thumb vitec-preview__thumb--video"
|
||||
width="200c"
|
||||
height="120c"
|
||||
alt="Video poster preview"/>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<div class="vitec-preview__thumb-placeholder">▶</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
<div class="vitec-preview__body">
|
||||
<div class="vitec-preview__label">VITEC · Video</div>
|
||||
|
||||
<h3 class="vitec-preview__headline">
|
||||
<f:if condition="{data.header}">
|
||||
<f:then>{data.header}</f:then>
|
||||
<f:else>
|
||||
<em style="color:#c00;">⚠ Headline fehlt</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.youtube_code}">
|
||||
<div class="vitec-preview__body-text">
|
||||
<strong>YouTube:</strong> {data.youtube_code}
|
||||
</div>
|
||||
</f:if>
|
||||
</div>
|
||||
|
||||
<f:comment>Settings sidebar</f:comment>
|
||||
<div class="vitec-preview__settings">
|
||||
|
||||
<f:if condition="{data.youtube_code}">
|
||||
<span class="vitec-badge">▶ YouTube</span>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{data.custom_video.0}">
|
||||
<span class="vitec-badge">🎬 Custom Video</span>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{data.poster.0}">
|
||||
<span class="vitec-badge">🖼 Poster set</span>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="!{data.youtube_code} && !{data.custom_video.0}">
|
||||
<span class="vitec-badge vitec-badge--warning">⚠ Kein Video-Source</span>
|
||||
</f:if>
|
||||
<f:if condition="{data.hide_controls}">
|
||||
<span class="vitec-badge">⏸ Controls hidden</span>
|
||||
</f:if>
|
||||
|
||||
|
||||
<f:if condition="{data.debug}">
|
||||
<span class="vitec-badge vitec-badge--warning">⚙ Debug ON</span>
|
||||
</f:if>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</f:section>
|
||||
</html>
|
||||
@@ -0,0 +1,3 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<!-- Headless mode: JSON is built by nb-headless-content-blocks -->
|
||||
</html>
|
||||
Reference in new issue
Block a user