<?php
	if( is_array(rs::getField('rst_home_box_post')) ) {
	$box_home_style = rs::getField('rst_extend_box_style') ? rs::getField('rst_extend_box_style') : '1';	
	if($box_home_style == 2){
		$class_box_style = ' box_style_02';
	}else{
		$class_box_style = ' ';
	}	
?>
<div class="container"> 
	<div class="content-box-home row">
		<?php 
			foreach( rs::getField('rst_home_box_post') as $box_post ) {
		?>	
			<div class="col-md-4 col-sm-4 <?php echo esc_attr($class_box_style) ?>">
				<div class="rst-inner-box-home">
					<a href="<?php echo $box_post['rst_link_box'] ?>">
						<img alt="" src="<?php echo bfi_thumb(wp_get_attachment_url($box_post['rst_image_box'],'full'),array('width'=> 370, 'height'=> 220)) ?>">
						<div class="rst-container-box-detail-home">
							<div class="rst-inner-box-detail-home">
								<h2>
									<?php echo $box_post['rst_title_box'] ?>
								</h2> <!-- Post Title-->
							</div>
						</div>
					</a>
				</div>
			</div>
		<?php		
			}
		?>
	</div>
</div>
<?php
	}
?>