-
is_featured( get_the_ID() ) &&
get_post_thumbnail_id( get_the_ID() )
) {
/**
* Fire an action before the list widget featured image
*/
do_action( 'tribe_events_list_widget_before_the_event_image' );
/**
* Allow the default post thumbnail size to be filtered
*
* @param $size
*/
$thumbnail_size = apply_filters( 'tribe_events_list_widget_thumbnail_size', 'hamroclass-thumb-600x600' );
/**
* Filters whether the featured image link should be added to the Events List Widget
*
* @since 4.5.13
*
* @param bool $featured_image_link Whether the featured image link should be added or not
*/
$featured_image_link = apply_filters( 'tribe_events_list_widget_featured_image_link', true );
$post_thumbnail = get_the_post_thumbnail( null, $thumbnail_size );
if ( $featured_image_link ) {
$post_thumbnail = '' . $post_thumbnail . '';
}
?>