<?php $this->block('content'); ?>
<div class="<?= $this->class ?> swiper-slide slide_<?= $this->id ?>"<?= $this->cssID ?>>
<?php if ($this->src || count($this->videoFiles)): ?>
<div class="swiper-slide-image">
<?php if ($this->videoFiles): ?>
<video class="no-mejs" autoplay loop muted>
<?php foreach ($this->videoFiles as $video): ?>
<source src="<?php echo TL_FILES_URL . $video->path ?>" type="video/<?php echo $video->extension ?>">
<?php endforeach ?>
</video>
<?php endif; ?>
</div>
<style>
<?= $this->backgroundStyle ?>
<?php if ($this->backgroundStyleResponsive): ?><?= $this->backgroundStyleResponsive ?><?php endif; ?>
</style>
<?php endif; ?>
<div class="slide-content">
<?php if ($this->text): ?>
<span class="slide-text"><?= $this->text ?></span>
<?php endif; ?>
</div>
<?php if ($this->link || $this->imageLink): ?>
<a class="slide-url" href="<?= ($this->link ?: $this->imageLink) ?>"<?php if ($this->fullsize): ?> data-lightbox="<?= $this->lightboxId ?>"<?php endif; ?>></a>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>