Skip to content

Commit

Permalink
Add vkpdc_iframe-wrapper vkpdc_iframe-wrapper--archive class for disp…
Browse files Browse the repository at this point in the history
…lay_image
  • Loading branch information
mtdkei authored and mtdkei committed Jan 15, 2025
1 parent aadfd4e commit b3295cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/content-archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ function vkpdc_render_post_item( $post = null, $attributes = [] ) {
if ( $attributes['display_image'] === 'featured' ) {
if ( has_post_thumbnail() ) {
$size = ! empty( $attributes['thumbnail_size'] ) ? $attributes['thumbnail_size'] : 'full';
$html .= '<div class="vkpdc_iframe-wrapper vkpdc_iframe-wrapper--archive">';
$html .= get_the_post_thumbnail( $post->ID, $size );
$html .= '</div>';
} else {
$html .= $iframe . apply_filters( 'vkpdc_single_post_iframe_after', '' );
}
Expand Down

0 comments on commit b3295cc

Please sign in to comment.