 <script type="text/javascript">
		jQuery(document).ready(function() {
		jQuery('#testi-scroll').slick({
		 infinite: true,
		  slidesToShow: 2,
		   slidesToScroll: 1,
		  autoplay: false,
		  autoplaySpeed: 5000,
		  dots: false,
		  vertical: false,
		  arrows: true,
		  <?php if(get_the_lang() == 'he') {?>
		  rtl:true,
		  <?php } ?>
		  centerMode:false,
		  centerPadding:'0px',
		  responsive: [
{
breakpoint: 1281,
settings: {
slidesToShow: 1,
arrows: true,
autoplay: false,
}
},
{
breakpoint: 820,
settings: {
slidesToShow: 1,
arrows: false,
autoplay: true,
}
}
]
		  
 });
		  
});
		
		</script>



<div id="testi-scroll" >  
    	       
    
        
<?php $args = array(
	'post_type' => 'testimonials',
	'posts_per_page' => '10',
	'post_status' => 'publish'

		);

	$t_query = new WP_Query($args);
	if ( $t_query->have_posts() ): while ( $t_query->have_posts() ): $t_query->the_post(); ?>
    
    <div class="slide-tem">
    <div class="testi-item">
   	
    	<div class="row no-gutters">
         <div class="col-xl-7 col-lg-7 col-md-7">
    	<div class="testi-side">
                
     <?php if(has_post_thumbnail())  { ?>
         <div class="tes-img">
                <?php if(get_field('video_link')) {?> 
                <a href="<?php the_field('video_link') ?>" class="mpopup_iframe">
             <img src="<?php bloginfo ('template_url'); ?>/images/play.png" alt="play" class="play" />     
           <img src="<?php the_post_thumbnail_url ('testi'); ?>" alt="<?php the_title(); ?>" />
           </a>
           <?php } else { ?>
             <img src="<?php the_post_thumbnail_url ('testi'); ?>" alt="<?php the_title(); ?>" />
           <?php } ?>       
         </div>                   
                              
        <?php } else { ?>
        
           <div class="tes-img no-img">
                   <?php if(get_field('video_link')) {?> 
                <a href="<?php the_field('video_link') ?>" class="mpopup_iframe">
             <img src="<?php bloginfo ('template_url'); ?>/images/play.png" alt="play" class="play" />          
              <img src="<?php bloginfo ('template_url'); ?>/images/testi.png"  alt="<?php the_title() ?>" />
              </a>
               <?php } else { ?>
             <img src="<?php bloginfo ('template_url'); ?>/images/testi.png"  alt="<?php the_title() ?>" />
           <?php } ?>        
            </div>                   
                                          
         <?php } ?>
    	  
    	</div><!--side-->
    </div><!--col-->
   
     <div class="col-xl-5 col-lg-5 col-md-5">    		 
        <div class="testi-entry">
		<span class="bq-open"><img src="<?php bloginfo ('template_url'); ?>/images/bq.png"  alt="blockqoute" /></span>
		<div class="entry"><?php theme_excerpt('50'); ?></div>
        
         <div class="entry-after">
        <div class="testi-title"><?php the_title(); ?></div>
          <?php if(get_field('subtitle')) {?>
         <div class="t-subtitle"><?php the_field('subtitle') ?></div>
          <?php } ?>
          </div><!--after-->
        </div>
       
          
    </div><!--col-->
    
  
</div><!--row-->
   	
         
    </div><!--item-->
    
   </div><!--slide-tem-->
	
	<?php endwhile;
		endif;
		wp_reset_query();
?>				
</div><!--scroll-->
	

