>
';
foreach( $post_media as $image_id ) {
echo '' . wp_get_attachment_image( absint( $image_id ), $image_size ) . '';
}
echo '';
}
} // /! is_single()
/**
* Featured image fallback
*
* If no gallery, display featured image. Aalso, always display
* featured image on single post page.
*/
if (
( is_single() && has_post_thumbnail() && ! $pagination_suffix )
|| ( ! is_single() && has_post_thumbnail() && empty( $post_media ) )
) {
$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 ) );
?>
';
wmhook_entry_top();
echo '';
if (
! is_single()
|| ( is_single() && has_excerpt() && ! $pagination_suffix )
) {
the_excerpt();
}
if ( is_single() ) {
the_content();
}
echo '
';
wmhook_entry_bottom();
echo '';
?>