function genesis_do_post_image() { if ( ! is_singular() && genesis_get_option( 'content_archive_thumbnail' ) ) { $img = genesis_get_image( [ 'format' => 'html', 'size' => genesis_get_option( 'image_size' ), 'context' => 'archive', 'attr' => genesis_parse_attr( 'entry-image', [] ), ] ); if ( ! empty( $img ) ) { genesis_markup( [ 'open' => '<a %s>', 'close' => '</a>', 'content' => $img, 'context' => 'entry-image-link', ] ); } } }