Hi,
I want to add videos in kirby, the same way i do add images. I have placed the video template.
So how I can can mix the video with images and text inside kirby text?
My code:
<?php snippet('header') ?><div id="receiver_ajax"></div>
<div id="transition_project"></div>
<main class="main" id="project" role="main">
<a href="/#menu" id="close_menu">×</a>
<div id="text">
<div class="text">
<h1><?php echo $page->title()->html() ?></h1>
<?php echo $page->text()->kirbytext()->footnotes() ?>
<?php
$slideshow_video = $page->videos()->pluck('name', ',', true);
foreach(str::split($slideshow_video) as $filename_video):
$videos = array(
$page->videos()->find($filename_video . '.mp4'),
$page->videos()->find($filename_video . '.webm'),
$page->videos()->find($filename_video . '.ogg'),
);
snippet('video', array(
'videos' => $videos,
'thumb' => $page->images()->find($filename_video . '.jpg')
));
endforeach
?>
</div>
<h3>Try the beta version of Adil 1.0.0!</h3>
<br />
<a class="download" href="img/cover_3.png" download>→ Download (Mac OS)</a>
</div>
</main>