Размер файла: 523B
<?php
$count = DB::GET_COLUMN("SELECT COUNT(`ID`) FROM `GUESTBOOK` LIMIT 5000");
ECHO "<li class='main-wrapper'><a href='/modules/?path=guestbook' class='main2'>";
ECHO "<span class='main-wrapper-icons'>";
S_ICONS('comment', '#EBDA4C', 70);
ECHO "</span>";
IF ($count >= 5000){
$guest_count = "5000+";
}ELSE{
$guest_count = $count;
}
ECHO "<span class='menu-list-text-main'>".LG('Гостевая')."</span>";
ECHO "<span class='menu-list-count-main'>".$guest_count."</span>";
ECHO "</a></li>";
?>