Add array index
This commit is contained in:
parent
64fc3e9586
commit
767be0043a
1 changed files with 6 additions and 6 deletions
|
@ -7,15 +7,15 @@
|
||||||
</summary>
|
</summary>
|
||||||
@if($checkin->note)
|
@if($checkin->note)
|
||||||
@if(preg_match("/\[\[[^\]]+\]\]/", $checkin->note, $filepath))
|
@if(preg_match("/\[\[[^\]]+\]\]/", $checkin->note, $filepath))
|
||||||
@if(preg_match("/\.webm/", $filepath))
|
@if(preg_match("/\.webm/", $filepath[0]))
|
||||||
<video controls>
|
<video controls>
|
||||||
<source src="/{{ $filepath }}" type="video/webm">
|
<source src="/{{ $filepath[0] }}" type="video/webm">
|
||||||
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath }}">link to the video</a> instead.</p>
|
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath[0] }}">link to the video</a> instead.</p>
|
||||||
</video>
|
</video>
|
||||||
@elseif(preg_match("/\.ogg/", $filepath))
|
@elseif(preg_match("/\.ogg/", $filepath[0]))
|
||||||
<audio controls>
|
<audio controls>
|
||||||
<source src="/{{ $filepath }}" type="audio/off">
|
<source src="/{{ $filepath[0] }}" type="audio/off">
|
||||||
<p>Download <a href="/{{ $filepath }}">OGG</a> audio.</p>
|
<p>Download <a href="/{{ $filepath[0] }}">OGG</a> audio.</p>
|
||||||
</audio>
|
</audio>
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
|
|
Loading…
Reference in a new issue