ID, 'featured_video' ) ) {
$video_code = get_post_meta( $post->ID, 'featured_video', true );
wp_enqueue_script( 'jquery-fitvids' );
if ( false === strpos( $video_code, '[video src="' ) ) {
$video_code = '[video src="' . $video_code . '"]';
}
if ( false !== strpos( $video_code, '[video src="' ) && has_post_thumbnail() ) {
$video_code = str_replace( '[video src="', '[video poster="' . esc_url( get_the_post_thumbnail_url( null, 'full' ) ) . '" src="', $video_code );
}
?>
ID, 'supported_images' );
if ( empty( $image_ids ) ) {
$image_ids = array();
}
if ( $featured_id ) {
$image_ids = array_merge( array( $featured_id ), $image_ids );
}
if ( is_array( $image_ids ) && count( $image_ids ) ) {
if ( count( $image_ids ) > 1 && 'slider' != alpha_get_loop_prop( 'posts_layout' ) ) {
$col_cnt = alpha_get_responsive_cols( array( 'xlg' => 1 ) );
// Disable dot in loop because of small image.
$attrs = array(
'col_sp' => 'no',
'loop' => true,
);
?>
ID );
if ( $thumbnail_id ) {
do_action( 'begin_fetch_post_thumbnail_html', $post->ID, $thumbnail_id, $size );
if ( in_the_loop() ) {
update_post_thumbnail_cache();
}
$html = wp_get_attachment_image( $thumbnail_id, $size, false );
do_action( 'end_fetch_post_thumbnail_html', $post->ID, $thumbnail_id, $size );
} else {
$html = '';
}
echo apply_filters( 'post_thumbnail_html', $html, $post->ID, $thumbnail_id, $size, '' );
// Caption
$caption = get_the_post_thumbnail_caption();
if ( $caption ) {
?>
1 ) {
?>