From 951c846bfafd2730ebc873d3b3289d2a2868a162 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Thu, 12 Mar 2015 09:47:24 -0400 Subject: [PATCH] Change archive thumbnail helper function Makes the image output match Genesis image by including alt tag, updated class, itemprop. --- includes/helper-functions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/helper-functions.php b/includes/helper-functions.php index ccce146..62562e8 100644 --- a/includes/helper-functions.php +++ b/includes/helper-functions.php @@ -160,10 +160,13 @@ function display_featured_image_genesis_add_archive_thumbnails() { $permalink = get_the_permalink(); $alignment = genesis_get_option( 'image_alignment' ); - $image = sprintf( '', + $itemprop = 'itemprop="image"'; + $image = sprintf( '', esc_url( $permalink ), esc_url( $image_url ), - esc_attr( $alignment ) + esc_attr( $alignment ) . ' post-image entry-image', + esc_html( the_title_attribute( 'echo=0' ) ), + esc_attr( $itemprop ) ); echo $image;