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