Skip to content

Commit

Permalink
Fix thumbnail uri call.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Apr 19, 2022
1 parent d307bde commit 911a657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ function centerrow_output_lightgallery($files = null) {
}
}
$videoSrcJson = json_encode($videoSrcObject);
$html .= '<li data-video="' . html_escape($videoSrcJson) . '" ' . $mediaCaptionAttribute . 'data-thumb="' . html_escape(metadata($media, 'thumbnailUri')) . '" data-download-url="' . $source . '" class="media resource">';
$html .= '<li data-video="' . html_escape($videoSrcJson) . '" ' . $mediaCaptionAttribute . 'data-thumb="' . html_escape(metadata($media, 'thumbnail_uri')) . '" data-download-url="' . $source . '" class="media resource">';
} else if ($mediaType == 'application/pdf') {
$html .= '<li data-iframe="' . html_escape($source) . '" '. $mediaCaptionAttribute . 'data-src="' . $source . '" data-thumb="' . html_escape(metadata($media, 'thumbnailUri')) . '" data-download-url="' . $source . '" class="media resource">';
$html .= '<li data-iframe="' . html_escape($source) . '" '. $mediaCaptionAttribute . 'data-src="' . $source . '" data-thumb="' . html_escape(metadata($media, 'thumbnail_uri')) . '" data-download-url="' . $source . '" class="media resource">';
} else {
$html .= '<li data-src="' . $source . '" ' . $mediaCaptionAttribute . 'data-thumb="' . html_escape(metadata($media, 'thumbnail_uri')) . '" data-download-url="' . $source . '" class="media resource">';
}
Expand Down

0 comments on commit 911a657

Please sign in to comment.