have_posts() ) { ?>
have_posts() ) { $posts->the_post(); $attributes['counter']++; $attributes['post_meta_list'] = abr_block_convert_post_meta( $options, 'reviews' ); $attributes['post_meta_compact'] = isset( $options['reviewsMetaCompact'] ) ? $options['reviewsMetaCompact'] : false; $attributes['thumbnail'] = isset( $options['imageSize'] ) ? $options['imageSize'] : 'large'; if ( in_array( $attributes['layout'], array( 'reviews-3', 'reviews-4', 'reviews-5' ), true ) ) { if ( 1 === $attributes['counter'] ) { $attributes['post_meta_list'] = abr_block_convert_post_meta( $options, 'reviewsLarge' ); $attributes['post_meta_compact'] = isset( $options['reviewsLargeMetaCompact'] ) ? $options['reviewsLargeMetaCompact'] : false; $attributes['thumbnail'] = isset( $options['largeImageSize'] ) ? $options['largeImageSize'] : 'large'; } else { $attributes['post_meta_list'] = abr_block_convert_post_meta( $options, 'reviewsSmall' ); $attributes['post_meta_compact'] = isset( $options['reviewsSmallMetaCompact'] ) ? $options['reviewsSmallMetaCompact'] : false; $attributes['thumbnail'] = isset( $options['smallImageSize'] ) ? $options['smallImageSize'] : 'large'; } } ?>