>
' . wp_oembed_get( $post_media ) . '
';
}
echo $post_media;
}
/**
* Featured image fallback
*/
if (
! is_single()
&& ! $post_media
&& has_post_thumbnail()
) {
$image_size = WM_IMAGE_SIZE_ITEMS;
$image_link = ( is_single() ) ? ( wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ) ) : ( array( esc_url( get_permalink() ) ) );
$image_link = array_filter( (array) apply_filters( 'wmhook_entry_image_link', $image_link ) );
?>
>
';
}
the_post_thumbnail( $image_size );
if ( ! empty( $image_link ) ) {
echo '';
}
?>
';
wmhook_entry_top();
echo '';
if (
! is_single()
|| ( is_single() && has_excerpt() && ! $pagination_suffix )
) {
the_excerpt();
}
if ( is_single() ) {
//Content is stripped out from media
echo apply_filters( 'the_content', $content );
}
echo '
';
wmhook_entry_bottom();
echo '';
?>