Skip to content

Commit

Permalink
Merge pull request #132 from wikitongues/dropbox_link
Browse files Browse the repository at this point in the history
dropbox link > permalink if avavailable
  • Loading branch information
bogreudell authored Feb 18, 2021
2 parents 203b640 + e2220a9 commit 62d430c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/video-preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
$public_status
*/ ?>
<div class="wt_video-preview">
<?php if ( $dropbox_link ): ?>
<a href="<?php echo $dropbox_link; ?>" target="_blank">
<?php else: ?>
<a href="<?php echo $video_permalink; ?>">
<?php endif; ?>
<!-- we should find a way to format this string correctly in the exported Airtable CSV rather than parsing the string here -->
<?php if ( $video_thumbnail ):
preg_match('#\((.*?)\)#', $video_thumbnail, $match); ?>
Expand Down

0 comments on commit 62d430c

Please sign in to comment.