<?php $related = roxima_get_related_posts( get_the_ID(), 3 ); ?>
<?php if ( $related->have_posts() ): ?>
	<div class="entry-related">
		<?php if ( get_theme_mod( 'single_related_title', __( 'You may also like', 'roxima' ) ) ): ?>
			<h3><?php echo esc_html( get_theme_mod( 'single_related_title', __( 'You may also like', 'roxima' ) ) ); ?></h3>
		<?php endif; ?>

		<div class="row">
			<?php while ( $related->have_posts() ): $related->the_post(); ?>
				<div class="col-md-4 col-sm-6 col-xs-12">
					<?php get_template_part( 'item', get_post_type() ); ?>
				</div>
			<?php endwhile; ?>
			<?php wp_reset_postdata(); ?>
		</div>
	</div>
<?php endif; ?>
