ro
a92e124957
the default theme included with fipamo was a bit janky, so that's been cleaned to bring it more inline with current accessiblility standards, an updated mobile friendly menu, updated the logo and plugged in the fresh colors. the layout is still a bit boring but the main purpose of the default is to show how templating works, so it needs to be kept as simple as possible but it still has some room for making it pop a bit more.
34 lines
1.3 KiB
PHP
34 lines
1.3 KiB
PHP
<div class="slide-show">
|
|
@if(count($media)>1)
|
|
@foreach($media as $item)
|
|
@if($item['type'] == "mp4")
|
|
<div id="{{$loop->index}}" class="slide">
|
|
<video controls autoplay muted>
|
|
|
|
<source src="{{$item['file']}}" type="video/mp4">
|
|
|
|
Please get a better browser. They're free.
|
|
</video>
|
|
</div>
|
|
@else
|
|
<div id="{{$loop->index}}" class="slide hide" style="background: url({{ $item['file'] }}) no-repeat center center / cover"></div>
|
|
@endif
|
|
@endforeach
|
|
@else
|
|
@if(isset($media[0]) && $media != '')
|
|
@if($media[0]['type'] == "mp4")
|
|
<div id="0" class="slide">
|
|
<video controls autoplay muted>
|
|
<source src="{{$media[0]['file']}}" type="video/mp4">
|
|
Please get a better browser. They're free.
|
|
</video>
|
|
</div>
|
|
@else
|
|
<div id="0" class="slide" style="background: url({{ $media[0]['file'] }}) no-repeat center center / cover"></div>
|
|
@endif
|
|
@else
|
|
<div id="0" class="slide" style="background: url({{ $info['image'] }}) no-repeat center center / cover"></div>
|
|
@endif
|
|
@endif
|
|
</div>
|