init
This commit is contained in:
9
site/snippets/blocks/video.php
Normal file
9
site/snippets/blocks/video.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$video = $data->file()->toFile();
|
||||
$poster = $data->poster()->toFile();
|
||||
$loop = $data->loop()->toBool();
|
||||
?>
|
||||
|
||||
<?php if ($video): ?>
|
||||
<video controls controlsList="nodownload" src="<?= $video->url() ?>" <?= $poster ? "poster=\"{$poster->url()}\"" : "" ?> <?= $loop ? "loop" : "" ?>></video>
|
||||
<?php endif ?>
|
||||
Reference in New Issue
Block a user