args['show_thumbnail'] ) ) {
return;
}
/**
* Thumbnail size
*
* @var string
*/
$thumb_size = $this->args['thumb_size'];
if ( 0 === $this->query->current_post && $this->args['show_first_thumbnail_bigger'] ) {
$thumb_size = $this->args['first_thumb_size'];
}
$post_ID = $this->query->post->ID;
$get_thumb_attr = array(
'itemprop' => 'image',
'class' => sprintf(
'attachment-%1$s size-%1$s %2$s',
$thumb_size,
$this->args['image_class']
),
);
if ( has_post_thumbnail( $post_ID ) ) : ?>
args['add_permalink_wrapper'] ) ? '' : sprintf(
'',
get_the_permalink()
),
get_the_post_thumbnail( $post_ID, $thumb_size, $get_thumb_attr ),
empty( $this->args['add_permalink_wrapper'] ) ? '' : ''
); ?>
args['thumb_id'] ) :?>
args['thumb_id'], '_wp_attachment_image_alt', true ) ) );
$the_post_thumbnail = wp_get_attachment_image( $this->args['thumb_id'], $thumb_size, false, $get_thumb_attr );
printf(
'%1$s%2$s%3$s',
empty( $this->args['add_permalink_wrapper'] ) ? '' : sprintf(
'',
get_the_permalink()
),
apply_filters( 'italystrap_widget_the_post_thumbnail', $the_post_thumbnail ),
empty( $this->args['add_permalink_wrapper'] ) ? '' : ''
); ?>