<?php 

$sql_result = $db->query( "SELECT id, title, date, alt_name, category, short_story, flag FROM " . PREFIX . "_post WHERE approve='1' ORDER BY news_read DESC LIMIT 0,9" );

while ( $row = $db->get_row()){$row['date'] = strtotime( $row['date'] );
$row['category'] = intval( $row['category'] );

if( $config['allow_alt_url'] == "yes"){
if( $row['flag'] and $config['seo_type']){
if( $row['category'] and $config['seo_type'] == 2 ){$full_link = $config['http_home_url'] . get_url( $row['category'] ) . "/" . $row['id'] . "-" . $row['alt_name'] . ".html";
}
else
{
$full_link = $config['http_home_url'] . $row['id'] . "-" . $row['alt_name'] . ".html";
}
}
else
{
$full_link = $config['http_home_url'] . date( 'Y/m/d/', $row['date'] ) . $row['alt_name'] . ".html";}
}
else
{
$full_link = $config['http_home_url'] . "index.php?newsid=" . $row['id'];}$title = substr( $row['title'], 0, 35 ) . "...";
$short_story = substr( strip_tags($row['short_story']), 0, 200 )."...";$shortnews = $row['short_story'];

preg_match_all( '#<img[^>]*\\ssrc=(\'|")(.*?)\\1.*?>#i',$shortnews,$total);foreach( $total[2] as $image )

echo('
<dl><dt>


<div class="gk_is_text_item">
<h4><a href="'.$full_link.'">'.$title.'</a></h4>
<p>'.$short_story.'</p>
</div>



</dd></dl>');}

?>