 

<div id="<?php echo $dhtrigger;?>" class="testimonialsbox2  <?php  echo  $cssname?>" <?php  echo  $stylev?>>
<div class="container">
<?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="imgtext  gridhalf"> 
                   <div class="img col_2f5"><img src="<?php echo $img?>" alt="<?php echo $title?>" /></div>
                    <div class="text col_3f5"> <?php echo $desp?></div>
                    <div class="c"></div>

                </div> 

        					<div class="title "> 
        					   <h5><?php echo $title; ?></h5>
        					   <span><?php echo $dhtitlebz1; ?></span>
                   </div>
        				 
        			   
      </div>
<?php 
 
 }
  ?>
 </div>
</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?> .container').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>
