function role_modeling_main_video_html($videoData) { $maskId = rand(); ?> <div class="item clearfix" id="video-<?php echo $videoData['videoId']; ?> "> <section class="left"> <a data-fancybox-type="ajax" href="<?php echo $videoData['permalink']; ?> " class="video-link mask grunge fancybox" style="overflow:inherit"> <div class="svgMask" style="background-image: url(<?php echo $videoData['thumbnail']; ?> );"> </div> <div class="play-button"></div> </a> <p class="video-tip"><?php echo $videoData['text']; ?> </p> </section> <h2 class="title"><?php echo $videoData['title']; ?> </h2> <?php video_info_html($videoData); ?> </div> <?php }
<?php $id = get_the_ID(); $youtubeId = get_youtube_id($id); $videoData = get_video_data($id, $youtubeId); ?> <div class="video-container" id="playerContainer" data-video-id="<?php echo $youtubeId; ?> "> <div id="player"></div> <section id="playerInfo" class="disabled"> <h2 class="title"><?php get_the_title($id); ?> </h2> <?php video_info_html($videoData); ?> </section> <?php get_template_part('social'); ?> </div> <?php social_include();