Compare commits
2 commits
2f1134e327
...
70f398edaf
Author | SHA1 | Date | |
---|---|---|---|
70f398edaf | |||
6f222d4c98 |
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
$embedMissing = null;
|
||||
if (preg_match("/\[\[([^\]]+)\]\]/", $checkin->note, $filepath)) {
|
||||
if (preg_match("/\.webm/", $filepath[1])) {
|
||||
$hasEmbed = 'video';
|
||||
$hasEmbed = 'videos';
|
||||
$trip_slug = preg_replace( '/[^A-Za-z0-9-]+/', '-', strtolower( $trip->name ) );
|
||||
if (file_exists(public_path() . "/" . $trip_slug . "/" . $hasEmbed . "/" . $filepath[1])) {
|
||||
$path = "/" . $trip_slug . "/" .$hasEmbed . "/" . $filepath[1];
|
||||
|
@ -49,7 +49,7 @@
|
|||
<span class="checkin-icon">🖼️</span>
|
||||
@endif
|
||||
@if($hasEmbed)
|
||||
@if($hasEmbed === 'video')
|
||||
@if($hasEmbed === 'videos')
|
||||
<span class="checkin-icon @if($embedMissing) checkin-icon--missing @endif">📹</span>
|
||||
@endif
|
||||
@if($hasEmbed === 'audio')
|
||||
|
|
Loading…
Reference in a new issue