
 <div id="<?php echo $dhtrigger;?>" class="bgvideo gridnode <?php echo $cssname;?>" <?php echo $stylev;?>>
   <ul>  
      <?php 
      foreach($result['data'] as $k=>$v){
         // pre($v);
        $title = $v['title']; $titlestyle = $v['titlestyle']; 
         $kvsm= $v['kvsm'];         
        $img = get_img($kvsm);  $dateday  =   $v['dateday'];
        $desp  =   $v['desp'];
        $titlestylev=$titlestyle<>''?' style="'.$titlestyle.'" ':'';   
 
            $link = $v['link'];          
            $nodeurl = linkhref($link).$titlestylev;  
     
        
   $kjia = $k+1; 
   $kyu = $kjia%$cus_columns;

$haswowv ='';
if(is_int(strpos($cssname,'haswow'))) $haswowv = 'wow fadeInUp ';
$datev ='';
if(is_int(strpos($cssname,'hasdate'))) $datev = '<span class="date">'.$dateday.'</span>';
//echo '<p>'.$kyu.'<p>';
    ?>
     <li class="boxcol  <?php echo $haswowv.$cus_columnsv;?>">
        <div class="bor">
            <?php 
            if(!is_int(strpos($cssname,'hasnoimg'))){
              ?>
             <div class="img">
              <a <?php echo $nodeurl;?>>                  
              <img class="mt10" src="<?php echo $img?>"  alt="<?php echo $title?>" /> 
                   <?php 
                    echo '<div class="bgvideoarrow"></div>';
                    
                   ?>
            </a>        
            </div>
            <?php 
            }
            ?>

             <div class="text">
             <?php 
                echo $datev;
             ?>
             

              <a  <?php echo $nodeurl;?> class="title"><?php echo $title?></a>   

             <?php 
              
              if($cus_substrnum>0) echo '<div class="desp">'.$desp.'</div>';
             ?>             
        
              <?php 
              
               if($nodebtnmore<>''){               
              ?>
              <div class="tc dmbtn morexs  ptb10">
                 <a  class="more"  <?php echo $nodeurl;?>><?php echo $nodebtnmore;?>  </a>
              </div>              
               <?php 
               }
              ?>
            </div>
         </div>   
     </li>
  <?php
   if(is_int(strpos($cssname,'sliderenable'))) $kyu=100000;
//   if($kyu==0) echo '<li class="c"> </li>';
}
?>
</ul> <div class="c"> </div>
</div>


<?php 
if($linktitle<>'')  echo  '<div class="dmbtn mt10 tc"><a class="more" '.linkhref($linkurl).'>'.$linktitle.'</a></div>'; 
  ?>
<div class="c"> </div>

<?php 
if(is_int(strpos($cssname,'sliderenable'))){

 
$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?>>ul').slick({ 
 
         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>
<?php 
}
?>