Compare commits

...

2 Commits

Author SHA1 Message Date
Tony Air 8332f55109 FIX: Video 2024-03-25 03:58:29 +02:00
Tony Air 7ac2a3002b FIX: Elemental && Video File 2024-03-24 22:26:18 +02:00
2 changed files with 6 additions and 2 deletions

View File

@ -74,6 +74,10 @@ class BaseElementEx extends DataExtension
public function updateCMSEditLink(&$link): void
{
if(!method_exists($this->owner, 'inlineEditable')) {
return;
}
if (!$this->owner->inlineEditable()) {
$page = $this->owner->getPage();

View File

@ -1,6 +1,6 @@
<% if $Video || $Image %>
<% if $Video || $Image || $VideoFile %>
<% if $VideoFile %>
<video autoplay="autoplay" muted="muted" loop="loop">
<video preload="none" autoplay="autoplay" muted="muted" loop="loop">
<source src="{$VideoFile.Link}" type="video/mp4" />
Your browser does not support the video tag.
</video>