ID, 'featured_video', true ); if ( $video_code ) { 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 ) ) : // Caption $caption = get_the_post_thumbnail_caption(); if ( count( $image_ids ) > 1 ) { $col_cnt = alpha_get_responsive_cols( array( 'lg' => 1 ) ); $attrs = array( 'col_sp' => 'no', 'show_dots' => 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, '' ); if ( $caption ) { ?>
1 ) : ?>