'', 'video_image_source' => '', 'fss_video_cover' => '', 'video_ext_image' => '', 'video_ext_image_size' => '', 'fss_video_shadow' => '', 'fss_play_button' => '', 'css_animation_image' => '', ),$atts)); $default_src = vc_asset_url( 'vc/no_image.png' ); $dimensions = vc_extract_dimensions( $video_ext_image_size ); $hwstring = $dimensions ? image_hwstring( $dimensions[0], $dimensions[1] ) : ''; if ($video_image_source == 'external_link') { if (!$video_ext_image) { $content_image =''; } else { $content_image =''; } } else { if (!$fss_video_cover) { $content_image =''; } else { $cover_image = wpb_getImageBySize ( $params = array( 'post_id' => NULL, 'attach_id' => $fss_video_cover, 'thumb_size' => 'full', 'class' => "" ) ); $content_image = $cover_image['thumbnail']; } } $video_w = 500; $video_h = $video_w / 1.61; //1.61 golden ratio global $wp_embed; if ( is_object( $wp_embed ) ) { $embed = $wp_embed->run_shortcode( '[embed width="' . $video_w . '"' . $video_h . ']' . $fss_video_url . '[/embed]' ); } /* Animation delay */ if ('' !== $css_animation_image) { $animation_delay = 'data-animation-delay="200"'; } else { $animation_delay = ''; } $wrapper_class = implode(' ', array('side-featured-wrapper', $fss_video_shadow, $css_animation_image, )); $output = '
'.$content_image.'
'.$embed.'
'; return $output; } }