 
<div id="<?php echo $dhtrigger;?>" class="slickslider blockclients <?php  echo  $cssname?>">
<ul>
<?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);
?>
         <li>
              <?php echo $linkurlarr[0];?>
                 <img class="mt10" src="<?php echo $img?>"  alt="<?php echo $title?>"> 
              <?php echo $linkurlarr[1];?>    
            </li>
<?php 
 
 }
  ?>
  </ul>
</div>

 <?php 
 $bxauto= 'true';
if(is_int(strpos($cssname,'bxstop'))) $bxauto= 'false'; 

$ifdots = 'true';
$ifarrows = 'true';
 if(is_int(strpos($cssname,'dotsfalse'))) $ifdots = 'false';
if(is_int(strpos($cssname,'arrowsfalse'))) $ifarrows = 'false'; 

 ?>

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


 });


});
</script>
