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>
|
||||
@if($checkin->note)
|
||||
@if(preg_match("/\[\[[^\]]+\]\]/", $checkin->note, $filepath))
|
||||
@if(preg_match("/\.webm/", $filepath))
|
||||
@if(preg_match("/\.webm/", $filepath[0]))
|
||||
<video controls>
|
||||
<source src="/{{ $filepath }}" type="video/webm">
|
||||
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath }}">link to the video</a> instead.</p>
|
||||
<source src="/{{ $filepath[0] }}" type="video/webm">
|
||||
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath[0] }}">link to the video</a> instead.</p>
|
||||
</video>
|
||||
@elseif(preg_match("/\.ogg/", $filepath))
|
||||
@elseif(preg_match("/\.ogg/", $filepath[0]))
|
||||
<audio controls>
|
||||
<source src="/{{ $filepath }}" type="audio/off">
|
||||
<p>Download <a href="/{{ $filepath }}">OGG</a> audio.</p>
|
||||
<source src="/{{ $filepath[0] }}" type="audio/off">
|
||||
<p>Download <a href="/{{ $filepath[0] }}">OGG</a> audio.</p>
|
||||
</audio>
|
||||
@endif
|
||||
@else
|
||||
|
|
Loading…
Reference in a new issue