Untitled Snippet

Send Snippet To: Save this snippet to Code Collector Pro -- view all _co._'s snippets
language: Other
license: Other

Code for Snippet:

	<div class="video-lightbox" style="background-image: url(<?php if(get_field('video_background', 'option')) {  the_field('video_background','option'); } else { ?><?php bloginfo('url'); ?>/wp-content/uploads/2015/08/video-poster.jpg<?php } ?>);">
		<div class="container">
			<h2><?php the_field('video_heading','option'); ?></h2>
			<?php if(get_field('youtube_video_id','option')) { $video = get_field('youtube_video_id','option'); $site = "youtube"; } elseif(get_field('vimeo_video_id','option')) { $video = get_field('vimeo_video_id','option'); $site = "vimeo"; } ?>
			<a href="#" class="slvj-link-lightbox 1" data-videoid="<?php echo $video; ?>" data-videosite="<?php echo $site; ?>"><img src="<?php the_field('play_button','option'); ?>" alt="" width="335" height="236"></a>
			<p><?php the_field('about_the_video','option'); ?></p>
comments powered by Disqus


Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 458
Date Added: 2015-11-13 19:30:43
Last Modified: 2015-11-13 12:30:53

Web Analytics