
 <div id="image-boxes" class="flex-section">
 <bookmark id="fsec-<?php echo $count_l; ?>"></bookmark>
 <div class="container">
 	<div class="section">
 
 <?php if(get_sub_field('sec_title')) { ?>  
            <div class="title"><?php the_sub_field ('sec_title'); ?></div>
            <?php } ?>
            
            <div class="row">


<?php  if( have_rows('boxes') ): while ( have_rows('boxes') ) : the_row(); 
	$image = get_sub_field('image');
	$size = 'article';
			if($image){
			$thumb = $image['sizes'][ $size ];
			}
		
$link = get_sub_field('box_link');
if( $link ): 
    $link_url = $link['url'];
    $link_title = $link['title'];
    $link_target = $link['target'] ? $link['target'] : '_self';
    ?>
<?php endif; ?>					

<div class="col-lg-3 col-md-6">
	<div class="article mht">
  	
         <div class="art-img">
         	 
        <?php if($image){?>
        <a href="<?php  echo  $link_url; ?>" <?php echo $link_target; ?>>
        <img src="<?php echo $thumb; ?>" alt="<?php the_sub_field ('box_title'); ?>" />
        </a>
        <?php } else { ?>
        <a href="<?php  echo  $link_url; ?>" <?php echo $link_target; ?>>
        <img src="<?php bloginfo ('template_url'); ?>/images/noimage.png"  alt="<?php the_sub_field ('box_title'); ?>" />   
        </a>
        <?php } ?>
        </div>
        
        <div class="inner" data-mh="inner">
        	<div class="art-title"  data-mh="title">
            <a href="<?php  echo  $link_url; ?>" <?php echo $link_target; ?>><?php the_sub_field ('box_title'); ?></a>
           </div>
   
            
             
        </div><!--ibox-content-->
     </div><!--imagebox-->
   </div><!--col-->
   
        <?php
		endwhile;
		endif; ?>
      
</div><!--row-->
</div><!--section-->
</div><!--cont-->
</div><!--section-->