Skip to content

Commit

Permalink
deploy: 238fbdb
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Sep 2, 2024
1 parent fcd817a commit 2e442ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wp-conference-schedule.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,13 @@
$image_size = 'thumbnail';
}
$image_size = ( is_numeric( $image_size ) ) ? array( $image_size, $image_size ) : $image_size;
echo get_the_post_thumbnail( $post_id, $image_size, array( 'class' => 'wpcsp-speaker-image' ) );}
$thumb_id = get_post_thumbnail_id( $post_id );
$thumb_size = wp_get_attachment_image_src( $thumb_id, $image_size );
if ( 720 > $thumb_size[1] || 720 > $thumb_size[2] ) {
$image_size = 'small-square';
}
echo get_the_post_thumbnail( $post_id, $image_size, array( 'class' => 'wpcsp-speaker-image' ) );
}
?>

<<?php echo esc_html( $heading_level ); ?> class="wpcsp-speaker-name">
Expand Down

0 comments on commit 2e442ff

Please sign in to comment.