Created
May 7, 2021 17:19
-
-
Save jbd91/ef421a6445f47f75b3e1886dc336919f to your computer and use it in GitHub Desktop.
modal video conditional
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ($landing_block_video_vimeo || $landing_block_video_youtube) : ?> | |
<div class="reveal small" id="videoModal<?php echo $i; ?>" data-reveal> | |
<?php if ($landing_block_video_vimeo) : ?> | |
<div class="responsive-embed"> | |
<iframe src="https://player.vimeo.com/video/<?php echo $landing_block_video_vimeo ?>" | |
width="640" height="360" | |
frameborder="0" allow="autoplay; fullscreen" | |
allowfullscreen></iframe> | |
</div> | |
<?php elseif ($landing_block_video_youtube) : ?> | |
<div class="responsive-embed"> | |
<iframe src="https://player.vimeo.com/video/<?php echo $landing_block_video_youtube; ?>" | |
width="640" height="360" | |
frameborder="0" allow="autoplay; fullscreen" | |
allowfullscreen></iframe> | |
</div> | |
<?php endif; ?> | |
<button class="close-button" data-close aria-label="Close reveal" type="button"> | |
<i class="fas fa-times"></i> | |
</button> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment