Размер файла: 528B
<?php
$count = DB::GET_COLUMN("SELECT COUNT(`ID`) FROM `COMMUNITIES` LIMIT 5000");
ECHO "<li class='main-wrapper'><a href='/modules/?path=communities' class='main2'>";
ECHO "<span class='main-wrapper-icons'>";
S_ICONS('users', '#CDA17D', 70);
ECHO "</span>";
IF ($count >= 5000){
$comm_count = "5000+";
}ELSE{
$comm_count = $count;
}
ECHO "<span class='menu-list-text-main'>".LG('Сообщества')."</span>";
ECHO "<span class='menu-list-count-main'>".$comm_count."</span>";
ECHO "</a></li>";
?>