<? foreach($chat as &$post) : ?><li><? if ($post['user'] != USER['id']) : ?><a class="ajax list" href="<?=$post['link']?>"><? endif; ?>
<article class="chat"><h4><img alt="" class="icos" src="/design/icons/<?=$USER->sex($post['sex'])?>.png"><?=$post['nick']?>
<img alt="" class="icos" src="/design/icons/<?=$post['visit']?>.png"></h4><p class="text"><? if ($post['reply'] != false) : ?><span class="color">
<?=$post['reply']?></span>, <? endif; ?><?=$post['text']?></p><p class="time"><img alt="" class="icos" src="/design/icons/time.png">
<?=$post['time']?></p></article><? if ($post['user'] != USER['id']) : ?></a><? endif; ?></li><? endforeach; ?>