<main class="zero"><ul class="top"><li><a class="ajax block" href="<?=$spot?>">
<img alt="" class="icon" src="/design/icons/<?=$top['icon']?>.png"><?=$top['link']?></a></li></ul>
<? if ($form) : ?><form name="msg"><p><img alt="" class="icos" src="/design/icons/pencil.png"><?=$answer?>:<br>
<textarea id="smiles" maxlength="500" name="text"></textarea></p><div class="smiles"><span>
<img class="smile" src="/design/smiles/smile.png" alt=":)"></span><span><img class="smile" src="/design/smiles/wink.png" alt=";)">
</span><span><img class="smile" src="/design/smiles/laugh.png" alt=":D"></span><span><img class="smile" src="/design/smiles/biggrin.png" alt="XD">
</span><span><img class="smile" src="/design/smiles/tongue.png" alt=":P"></span><span><img class="smile" src="/design/smiles/cool.png" alt="8)">
</span><span><img class="smile" src="/design/smiles/shock.png" alt=":O"></span><span><img class="smile" src="/design/smiles/happen.png" alt=":|">
</span><span><img class="smile" src="/design/smiles/sad.png" alt=":("></span><span><img class="smile" src="/design/smiles/angry.png" alt=":Z">
</span></div><? if ($reply) : ?><input type="hidden" name="id" value="<?=$return['id']?>"><input type="hidden" name="reply" value="<?=$return['user']?>">
<? endif; ?><input type="hidden" name="token" value="<?=TOKEN?>"><button><?=$button?></button></form><? if ($reply) : ?><ul class="bottom">
<li><a class="ajax block" href="/profile/<?=$USER->nick($author['nick'])?>"><img alt="" class="icon" src="/design/icons/<?=$USER->sex($author['sex'])?>.png">
Профиль игрока</a></li><? if (USER['status'] == 'admin') : ?><li><a class="ajax block" href="/chat/block/<?=$return['id']?>/token/<?=TOKEN?>">
<img alt="" class="icon" src="/design/icons/<?=$icon?>.png"><?=$locked?></a></li><? endif; ?></ul><? endif; ?><? else : ?><p class="notice">
<img alt="" class="icos" src="/design/icons/cross.png"><?=$ban?></p><? endif; ?><? if ($empty) : ?><p class="chat notice">
<img alt="" class="icos" src="/design/icons/cross.png">Сообщения отсутствуют.</p><? elseif ($reply) : ?><? else : ?><ul class="msg">
<? 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; ?></ul>
<? if ($pages > 1) : ?><ul class="page"><? if ($page != 1) : ?><li><a class="ajax button shop" href="/chat"><?=$one?></a></li><? endif; ?><? if ($page != 2) : ?>
<li><a class="ajax button shop" href="/chat/page/2"><?=$two?></a></li><? endif; ?><? if ($page != 3 && $pages > 2) : ?><li><a class="ajax button shop" href="/chat/page/3">3</a>
</li><? endif; ?><? if ($page != 4 && $pages > 3) : ?><li><a class="ajax button shop" href="/chat/page/4">4</a></li><? endif; ?><? if ($page != 5 && $pages > 4) : ?>
<li><a class="ajax button shop" href="/chat/page/5">5</a></li><? endif; ?></ul><? endif; ?><? endif; ?></main>