 

<div id="<?php echo $dhtrigger;?>" class="testimonialsbox  <?php  echo  $cssname?>" <?php  echo  $stylev?>>
<?php
foreach($result['data'] as $k=>$v){
          // pre($v);
        $title = $v['title'];  
       $img  =   get_img($v['kv']);   
        $desp  =   $v['desp'];
        $despjj  =   $v['despjj'];
         
       $dhlinkurl =  $dhlinktitle= '';
            foreach ($v['arrcan'] as   $key=>$value) { 
                 $bsccc = $key;
                 $$bsccc=$value;
             }

//$linkurlarr =  get_nodelinkurl($dhlinkurl);

?>
        <div class="<?php echo $cus_columnsv;?>">  
            <div class="testimonialsboxinc">	
				<div class="img"> 
					<div class="imginc">    
						<img src="<?php echo $img?>" alt="<?php echo $title?>" />
					</div>
					<div class="title"><span><?php echo $title; ?></span></div>
					<div class="bz"><?php echo $dhtitlebz1; ?></div>
                 </div>
				 <div class="text  wow fadeInUp">  <?php echo $desp?></div> 
			 </div> 
      </div>
<?php 
 
 }
  ?>

</div>

 <?php 
$ifdots = 'true';
$ifarrows = 'true';
 if(is_int(strpos($cssname,'dotsfalse'))) $ifdots = 'false';
if(is_int(strpos($cssname,'arrowsfalse'))) $ifarrows = 'false';
$num800 = $cus_columns<=3?$cus_columns:3;
$num600 = $cus_columns<=2?$cus_columns:2; 
 ?>

 <script>
$(function(){
  
   $('#<?php echo $dhtrigger?>').slick({  //use div to avoid gridcol2
 
         infinite: true,
              slidesToShow: <?php echo $cus_columns;?>,
              slidesToScroll: <?php echo $cus_columns;?>,
              autoplay:true,
               dots: <?php echo $ifdots;?>, 
               arrows:  <?php echo $ifarrows;?>,
                 responsive: [                                 
                  {
                    breakpoint: 800,
                    settings: {
                      slidesToShow: <?php echo $num800;?>,
                      slidesToScroll: <?php echo $num800;?>,
                    }
                  },
                   {
                    breakpoint: 600,
                    settings: {
                      slidesToShow: <?php echo $num600;?>,
                      slidesToScroll: <?php echo $num600;?>,
                    }
                  },
                  {
                    breakpoint: 480,
                    settings: {
                      slidesToShow: 1,
                      slidesToScroll: 1,
                    }
                  }
                  ]
 });
});
</script>
