Файл: sys/user/index/m_j.php
Строк: 31
<?php
$jurnal_counter = count::query('jurnal', " `read` = '0' AND `id_kont` = " . $user['id']);
if ($jurnal_counter > 0) {
$jurnal_counter = "<span class='label label-default label-pill'>+$jurnal_counter</span>";
} else {
$jurnal_counter = null;
}
echo "<div class='$div_mod'>";
echo "<a href='/mail/'><span class='fa fa-envelope fa-fw'></span> " . lang('Почта') . "</a>";
echo "</div>";
echo "<div class='$div_mod'>";
echo "<a href='jurnal'><span class='fa fa-bell fa-fw'></span> " . lang('Журнал') . " $jurnal_counter</a>";
echo "</div>";
echo "<div class='$div_mod'>";
echo "<a href='/forum/journal.php'><span class='fa fa-clipboard fa-fw'></span> " . lang('Журнал форума') . " </a>";
echo "</div>";