<div class="img-wrap">
	<?php if( rs::getField('rst_gallery') ) { ?>
	<div class="rst-galleries" class="owl-carousel owl-theme">
		<?php 
			foreach( rs::getField('rst_gallery') as $key=>$gallery ) { 
		?>
		<div class="item">
			<img src="<?php echo esc_url( bfi_thumb(rst_get_attachment_image_src( $gallery, 'full' ),array('width' =>800,'height' => 450))) ?>" alt="" />
		</div>
		<?php } ?>
	</div>
	<?php } else {
		the_post_thumbnail();
	} ?>
</div>