32 lines
1014 B
PHP
32 lines
1014 B
PHP
<?php
|
|
|
|
$lp_intro_video_position = Upstudy::setting( 'lp_intro_video_position' );
|
|
$lp_single_page_layout = Upstudy::setting( 'lp_single_page_layout' );
|
|
|
|
$upstudy_lp_video = get_post_meta( get_the_ID(), 'upstudy_lp_video', true);
|
|
|
|
|
|
if ($upstudy_lp_video) :
|
|
|
|
echo '<div class="intro-video-sidebar intro-video-sidebar is__sidebar">';
|
|
echo '<div class="intro-video-content">';
|
|
echo '<div class="intro-video" style="background-image: url(' . esc_url( get_the_post_thumbnail_url(get_the_ID(),'full') ) . ')">';
|
|
|
|
echo '<a href="' . esc_url( $upstudy_lp_video ) . '" class="upstudy-popup-videos bla-2">';
|
|
echo '<i class="dt-icon-play-button"></i>';
|
|
echo '</a>';
|
|
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '</div>'; // End intro-video-sidebar
|
|
|
|
elseif( has_post_thumbnail()) :
|
|
|
|
echo '<div class="post-thumbnail">';
|
|
the_post_thumbnail( 'large' );
|
|
echo '</div>';
|
|
|
|
endif;
|
|
|
|
//}
|