<?php
$news = $db->query('SELECT * FROM `news` ORDER BY `id` DESC LIMIT 1')->row();
if (count($news)) {
?>
<span class='vidget'><img src='/style/icons/news.png' alt='' /> <a href='/news/'><?php echo $news['title']; ?></a>(<?php echo vremja($news['time']); ?>)?></span>
<div class='news'></div>
<?php
}
?>