
 <div id="<?php echo $dhtrigger?>" class="news_scroll <?php   echo $cssname;?>"> 
 
  <ul>       
<?php 
 foreach($result['data'] as $k=>$v){
         // pre($v);
        $title = $v['title']; $titlestyle = $v['titlestyle']; 
        $kvsm= get_kvsm_cus($v['kvsm_cus'],$v['kvsm']);         
        $img = get_img($kvsm);  $dateday  =   $v['dateday'];
        $desp  =   $v['desp'];
        $titlestylev=$titlestyle<>''?' style="'.$titlestyle.'" ':'';   
 
            $link = $v['link'];          
            $nodeurl = linkhref($link).$titlestylev;  
     


 $arrdate = explode("-",$dateday);
 $year = @$arrdate[0];
 $month = @$arrdate[1];
 $day = intval(@$arrdate[2]);
 

 //$month = intval(@$arrdate[1]);
// $Month_E = array(1 => "Jan",
//         2 => "Feb",
//         3 => "Mar",
//         4 => "Apr",
//         5 => "May",
//         6 => "Jun",
//         7 => "Jul",
//         8 => "Aug",
//         9 => "Sep",
//         10 => "Oct",
//         11 => "Nov",
//         12 => "Dec");

//     $monthen = @$Month_E[$month];
     
 
   ?>


<li class="listgd">
     <div class="listleft">         
            <div class="circle">
            <div class="date">
              <span class="day"><?php echo $day?></span>
              <span class=""><?php echo $year.'-'.$month;?>  </span>           
            </div>                
            </div>
          </div>
           
		<div class="text">
			  <h4><a <?php echo $nodeurl?>><?php echo $title?></a></h4> 
			  <div class="datemob"> <?php echo $dateday;?> </div>                			  
			 <div class="desp"><?php echo $desp?> </div>
		</div>
  </li> 
   <?php
        }
   ?>    

  </ul>
</div> 



 <?php 
//if(is_int(strpos($cssname,'sliderenable'))){
?>
  <script>
$(function(){
  var num = <?php echo $cus_columns;?>;
 // if($('body').width()<800)   num = 3;
 // else    num = <?php echo $cus_columns;?>;
   $('#<?php echo $dhtrigger?>>ul').slick({  //use div to avoid gridcol2
 
         infinite: true,
              slidesToShow: num,
              slidesToScroll: num,
               autoplay:true,
              vertical:true, 
              dots: true, 
              arrows: false,              
 });
});
</script>
<?php 
//}
?>

