 

 <div id="<?php echo $dhtrigger;?>" class="sidebar_imgtop <?php echo $cssname;?>" <?php echo $stylev;?>>
   <ul>  
      <?php 
      foreach($result['data'] as $k=>$v){
         $title = $v['title']; $titlestyle = $v['titlestyle']; 
        $img = get_img($v['kvsm']); 
        $dateday  =   $v['dateday'];
        $desp  =   $v['desp'];
        $titlestylev=$titlestyle<>''?' style="'.$titlestyle.'" ':'';   
 
            $link = $v['link'];          
            $nodeurl = linkhref($link).$titlestylev; 
   
    ?>
     <li> 
             <div class="img">
              <a <?php echo $nodeurl;?>> <img class="mt10" src="<?php echo $img?>"  alt="<?php echo $title?>">  </a>
            </div>			
			<div class="text">
				<h5 class="title"><a <?php echo $nodeurl;?>><?php echo $title?></a></h5>
				 
				<?php  if($cus_substrnum>0) 
						echo '<div class="desp">'.$desp.'</div>';
				?>
           </div> 
     </li> 
  <?php
  
}
?> 
</ul>
</div>
 